Changeset 9829 for trunk/include/custombuild.h
- Timestamp:
- Feb 20, 2003, 10:47:19 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/custombuild.h
r9798 r9829 24 24 LPVOID lpHandleData); 25 25 26 typedef BOOL (* WIN32API PFNDRVREAD)(LPVOID lpDriverData, 26 typedef BOOL (* WIN32API PFNDRVREAD)(LPVOID lpDriverData, 27 27 HANDLE hDevice, 28 28 DWORD dwFlags, … … 34 34 LPVOID lpHandleData); 35 35 36 typedef BOOL (* WIN32API PFNDRVWRITE)(LPVOID lpDriverData, 36 typedef BOOL (* WIN32API PFNDRVWRITE)(LPVOID lpDriverData, 37 37 HANDLE hDevice, 38 38 DWORD dwFlags, … … 45 45 46 46 typedef BOOL (* WIN32API PFNDRVCANCELIO)(LPVOID lpDriverData, HANDLE hDevice, DWORD dwFlags, PVOID lpHandleData); 47 typedef DWORD (* WIN32API PFNDRVGETOVERLAPPEDRESULT)(LPVOID lpDriverData, 47 typedef DWORD (* WIN32API PFNDRVGETOVERLAPPEDRESULT)(LPVOID lpDriverData, 48 48 HANDLE hDevice, 49 49 DWORD dwFlags, … … 53 53 LPVOID lpHandleData); 54 54 55 BOOL WIN32API RegisterCustomDriver(PFNDRVOPEN pfnDriverOpen, PFNDRVCLOSE pfnDriverClose, 55 BOOL WIN32API RegisterCustomDriver(PFNDRVOPEN pfnDriverOpen, PFNDRVCLOSE pfnDriverClose, 56 56 PFNDRVIOCTL pfnDriverIOCtl, PFNDRVREAD pfnDriverRead, 57 57 PFNDRVWRITE pfnDriverWrite, PFNDRVCANCELIO pfnDriverCancelIo, … … 95 95 void WIN32API SetFixedWaveBufferSize(); 96 96 97 //Override shared semaphore name used to synchronize global window handle 97 //Override shared semaphore name used to synchronize global window handle 98 98 //array access (to avoid name clash with Odin) 99 99 void WIN32API SetCustomWndHandleSemName(LPSTR pszSemName); 100 100 101 //Override shared semaphore name used to synchronize global memory map 101 //Override shared semaphore name used to synchronize global memory map 102 102 //list access (to avoid name clash with Odin) 103 103 void WIN32API SetCustomMMapSemName(LPSTR pszSemName); … … 130 130 void WIN32API EnablePhysicalDiskAccess(BOOL fEnable); 131 131 132 //Override a system color without forcing a desktop repaint (which 132 //Override a system color without forcing a desktop repaint (which 133 133 //SetSysColors does) 134 134 BOOL WIN32API ODIN_SetSysColors(INT nChanges, const INT *lpSysColor, … … 147 147 void WIN32API ODIN_DisableLXDllLoading(); 148 148 149 /** 150 * LoadLibrary*() callback function registered using ODIN_SetLxDllLoadCallback(). 151 * This is called for all LX modules which are loaded by LoadLibrary. 152 * 153 * @returns TRUE loading should succeed. The DLL is now registered. 154 * @returns FALSE loading should fail. 155 * @param hmodOS2 The OS/2 module handle. 156 * @param hInstance The Odin instance handle. 157 * If not NULL this means that the DLL is registered. 158 */ 159 typedef BOOL (* WIN32API PFNLXDLLLOAD)(HMODULE hmodOS2, HINSTANCE hInstance); 160 161 /** Custombuild API for registering a callback for LX Dll loading thru LoadLibrary*(). */ 162 BOOL WIN32API ODIN_SetLxDllLoadCallback(PFNLXDLLLOAD pfn); 163 164 /** 165 * FreeLibrary*() callback function registered using ODIN_SetLxDllUnLoadCallback(). 166 * This is called when an LX which was previously loaded using LoadLibrary*() is 167 * finally freed from Odin. The callback servers mainly the purpose of cleaning 168 * up any data associated with the DLL. 169 * 170 * It is called *AFTER* the module is freed from Odin but before it's actually 171 * unloaded from the OS/2 process. This means that the OS/2 handle is valid while 172 * the Odin handle is invalid. 173 * 174 * @param hmodOS2 The OS/2 module handle. 175 * @param hInstance The Odin instance handle (invalid!). 176 * @remark It likely that this callback will be called for more DLLs than the 177 * load callback. Do check handles properly. 178 */ 179 typedef void (* WIN32API PFNLXDLLUNLOAD)(HMODULE hmodOS2, HINSTANCE hInstance); 180 181 BOOL WIN32API ODIN_SetLxDllUnLoadCallback(PFNLXDLLUNLOAD pfn); 182 149 183 150 184 //****************************************************************************** … … 155 189 BOOL WIN32API ODIN_SetDllLoadCallback(ODINPROC_DLLLOAD pfnMyDllLoad); 156 190 191 157 192 //****************************************************************************** 158 193 // ODIN_SetProcAddress: Override a dll export 159 // 194 // 160 195 // Parameters: 161 196 // HMODULE hModule Module handle … … 171 206 //****************************************************************************** 172 207 // ODIN_SetTIBSwitch: override TIB switching 173 // 208 // 174 209 // Parameters: 175 210 // BOOL fSwitchTIB
Note:
See TracChangeset
for help on using the changeset viewer.