blob: e80c3cfd8b2f4f14ec33ff7f28ea4b19826433ba [file] [log] [blame]
Guido van Rossum6dbd1901996-08-21 15:03:37 +00001/*
2
3Entry point for the Windows NT DLL.
4
5About the only reason for having this, is so initall() can automatically
6be called, removing that burden (and possible source of frustration if
7forgotten) from the programmer.
8
9*/
10#include "windows.h"
11
12/* NT and Python share these */
Guido van Rossum6dbd1901996-08-21 15:03:37 +000013#include "config.h"
Guido van Rossuma1ebdbd1997-05-05 22:18:50 +000014#include "Python.h"
Guido van Rossum6dbd1901996-08-21 15:03:37 +000015
16HMODULE PyWin_DLLhModule = NULL;
17
18BOOL WINAPI DllMain (HANDLE hInst,
19 ULONG ul_reason_for_call,
20 LPVOID lpReserved)
21{
22 switch (ul_reason_for_call)
23 {
24 case DLL_PROCESS_ATTACH:
25 PyWin_DLLhModule = hInst;
Guido van Rossuma1ebdbd1997-05-05 22:18:50 +000026 //initall();
Guido van Rossum6dbd1901996-08-21 15:03:37 +000027 break;
28 case DLL_PROCESS_DETACH:
29 break;
30 }
31 return TRUE;
32}