Staging
v0.5.1
https://github.com/python/cpython
Revision 7361451b97a30de0e758094ac83a1fb1f01ed5bb authored by Miss Islington (bot) on 27 August 2020, 01:17:40 UTC, committed by GitHub on 27 August 2020, 01:17:40 UTC
(cherry picked from commit 022bc7572f061e1d1132a4db9d085b29707701e7)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
1 parent 211e4c6
Raw File
Tip revision: 7361451b97a30de0e758094ac83a1fb1f01ed5bb authored by Miss Islington (bot) on 27 August 2020, 01:17:40 UTC
bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935) (#21977)
Tip revision: 7361451
dl_nt.c
/*

Entry point for the Windows NT DLL.

About the only reason for having this, is so initall() can automatically
be called, removing that burden (and possible source of frustration if
forgotten) from the programmer.

*/

#include "Python.h"
#include "windows.h"

#ifdef Py_ENABLE_SHARED

// Python Globals
HMODULE PyWin_DLLhModule = NULL;
const char *PyWin_DLLVersionString = MS_DLL_ID;

BOOL    WINAPI  DllMain (HANDLE hInst,
                                                ULONG ul_reason_for_call,
                                                LPVOID lpReserved)
{
    switch (ul_reason_for_call)
    {
        case DLL_PROCESS_ATTACH:
            PyWin_DLLhModule = hInst;
            break;

        case DLL_PROCESS_DETACH:
            break;
    }
    return TRUE;
}

#endif /* Py_ENABLE_SHARED */
back to top