STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { long result; PyGILState_STATE state; LoadPython(); state = PyGILState_Ensure(); result = Call_GetClassObject(rclsid, riid, ppv); PyGILState_Release(state); return result; }
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { long result; #ifdef WITH_THREAD PyGILState_STATE state; #endif LoadPython(); #ifdef WITH_THREAD state = PyGILState_Ensure(); #endif result = Call_GetClassObject(rclsid, riid, ppv); #ifdef WITH_THREAD PyGILState_Release(state); #endif return result; }