Added LdrDisableThreadCalloutsForDll.
[wine/wine-kai.git] / dlls / ole32 / ole32_main.c
blob388a0aa06add011d3ce0e9254e3812d29d0303d9
1 /*
2 * OLE32 Initialization
4 */
5 #include "windef.h"
6 #include "winerror.h"
7 #include "ole32_main.h"
8 #include "debugtools.h"
10 DEFAULT_DEBUG_CHANNEL(ole);
12 HINSTANCE OLE32_hInstance = 0;
14 /***********************************************************************
15 * DllEntryPoint (OLE32.@)
18 BOOL WINAPI OLE32_DllEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
20 TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
22 switch(fdwReason) {
23 case DLL_PROCESS_ATTACH:
24 OLE32_hInstance = hinstDLL;
25 COMPOBJ_InitProcess();
26 break;
28 case DLL_PROCESS_DETACH:
29 COMPOBJ_UninitProcess();
30 OLE32_hInstance = 0;
31 break;
33 return TRUE;
36 /***********************************************************************
37 * DllRegisterServer (OLE32.194)
39 HRESULT WINAPI OLE32_DllRegisterServer() {
40 /* FIXME: what Interfaces should we register ... */
41 FIXME("(), stub!\n");
42 return S_OK;