Fix a minor typo in a docstring.
[python.git] / PC / dl_nt.c
bloba87b523818a3d2a27917fe37c0ca073d350fe2ed
1 /*
3 Entry point for the Windows NT DLL.
5 About the only reason for having this, is so initall() can automatically
6 be called, removing that burden (and possible source of frustration if
7 forgotten) from the programmer.
9 */
11 #include "Python.h"
12 #include "windows.h"
14 char dllVersionBuffer[16] = ""; // a private buffer
16 // Python Globals
17 HMODULE PyWin_DLLhModule = NULL;
18 const char *PyWin_DLLVersionString = dllVersionBuffer;
21 BOOL WINAPI DllMain (HANDLE hInst,
22 ULONG ul_reason_for_call,
23 LPVOID lpReserved)
25 switch (ul_reason_for_call)
27 case DLL_PROCESS_ATTACH:
28 PyWin_DLLhModule = hInst;
29 // 1000 is a magic number I picked out of the air. Could do with a #define, I spose...
30 LoadString(hInst, 1000, dllVersionBuffer, sizeof(dllVersionBuffer));
31 //initall();
32 break;
33 case DLL_PROCESS_DETACH:
34 break;
36 return TRUE;