[pywin32-checkins] pywin32/win32/src win32profilemodule.cpp, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-11 05:10:23
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28498/win32/src Modified Files: win32profilemodule.cpp Log Message: Update to PYWIN_MODULE_* macros Index: win32profilemodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32profilemodule.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** win32profilemodule.cpp 15 Aug 2007 08:04:37 -0000 1.3 --- win32profilemodule.cpp 11 Dec 2008 05:10:18 -0000 1.4 *************** *** 463,478 **** ! ! extern "C" __declspec(dllexport) void ! initwin32profile(void) { ! PyObject *dict, *module; ! PyWinGlobals_Ensure(); ! module = Py_InitModule("win32profile", win32profile_functions); ! if (module==NULL) ! return; ! dict = PyModule_GetDict(module); ! if (dict==NULL) ! return; // PROFILEINFO flags --- 463,470 ---- ! PYWIN_MODULE_INIT_FUNC(win32profile) { ! PYWIN_MODULE_INIT_PREPARE(win32profile, win32profile_functions, ! "Interface to the User Profile Api."); // PROFILEINFO flags *************** *** 488,492 **** hmodule=GetModuleHandle(L"Userenv.dll"); if (hmodule==NULL) ! hmodule = LoadLibrary(L"Userenv.dll"); if (hmodule!=NULL){ pfnDeleteProfile=(DeleteProfilefunc)GetProcAddress(hmodule,"DeleteProfileW"); --- 480,484 ---- hmodule=GetModuleHandle(L"Userenv.dll"); if (hmodule==NULL) ! hmodule = LoadLibrary(L"Userenv.dll"); if (hmodule!=NULL){ pfnDeleteProfile=(DeleteProfilefunc)GetProcAddress(hmodule,"DeleteProfileW"); *************** *** 500,503 **** pfnUnloadUserProfile=(UnloadUserProfilefunc)GetProcAddress(hmodule,"UnloadUserProfile"); } ! } ! --- 492,496 ---- pfnUnloadUserProfile=(UnloadUserProfilefunc)GetProcAddress(hmodule,"UnloadUserProfile"); } ! PYWIN_MODULE_INIT_RETURN_SUCCESS; ! } ! |