Rev 193 | Rev 259 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 198 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | */ |
18 | */ |
19 | 19 | ||
20 | #include <windows.h> |
20 | #include <windows.h> |
21 | 21 | ||
22 | HANDLE hDllInstance = NULL; /* DLL instance handle */ |
22 | HINSTANCE hDllInstance = NULL; /* DLL instance handle */ |
23 | 23 | ||
24 | BOOL APIENTRY DllMain(HANDLE hInstance, DWORD fdwReason, LPVOID lpReserved); |
24 | BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpReserved); |
25 | 25 | ||
26 | BOOL APIENTRY DllMain(HANDLE hInstance, DWORD fdwReason, LPVOID lpReserved){ |
26 | BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpReserved){ |
27 | 27 | ||
28 | if (fdwReason == DLL_PROCESS_ATTACH) |
28 | if (fdwReason == DLL_PROCESS_ATTACH) |
29 | hDllInstance = hInstance; |
29 | hDllInstance = hInstance; |
30 | 30 | ||
31 | return TRUE; // Indicate that the DLL was initialized successfully. |
31 | return TRUE; // Indicate that the DLL was initialized successfully. |