When including 'wine/port.h', include it first.
[wine] / dlls / ole32 / ole32_main.c
1 /*
2  *  OLE32 Initialization
3  *
4  */
5 #include "windef.h"
6 #include "winerror.h"
7 #include "ole32_main.h"
8 #include "debugtools.h"
9
10 DEFAULT_DEBUG_CHANNEL(ole);
11
12 HINSTANCE OLE32_hInstance = 0;
13
14 /***********************************************************************
15  *              DllEntryPoint (OLE32.@)
16  */
17
18 BOOL WINAPI OLE32_DllEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
19 {
20     TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
21
22     switch(fdwReason) {
23     case DLL_PROCESS_ATTACH:
24         OLE32_hInstance = hinstDLL;
25         COMPOBJ_InitProcess();
26         break;
27
28     case DLL_PROCESS_DETACH:
29         COMPOBJ_UninitProcess();
30         OLE32_hInstance = 0;
31         break;
32     }
33     return TRUE;
34 }
35
36 /***********************************************************************
37  *              DllRegisterServer (OLE32.194)
38  */
39 HRESULT WINAPI OLE32_DllRegisterServer() {
40     /* FIXME: what Interfaces should we register ... */
41     FIXME("(), stub!\n");
42     return S_OK;
43 }