We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f57c170 commit ec68092Copy full SHA for ec68092
1 file changed
PC/dl_nt.c
@@ -13,7 +13,12 @@ forgotten) from the programmer.
13
#include "config.h"
14
#include "Python.h"
15
16
+char dllVersionBuffer[16] = ""; // a private buffer
17
+
18
+// Python Globals
19
HMODULE PyWin_DLLhModule = NULL;
20
+const char *PyWin_DLLVersionString = dllVersionBuffer;
21
22
23
BOOL WINAPI DllMain (HANDLE hInst,
24
ULONG ul_reason_for_call,
@@ -23,6 +28,8 @@ BOOL WINAPI DllMain (HANDLE hInst,
28
{
29
case DLL_PROCESS_ATTACH:
25
30
PyWin_DLLhModule = hInst;
31
+ // 1000 is a magic number I picked out of the air. Could do with a #define, I spose...
32
+ LoadString(hInst, 1000, dllVersionBuffer, sizeof(dllVersionBuffer));
26
33
//initall();
27
34
break;
35
case DLL_PROCESS_DETACH:
0 commit comments