Fixed miscellaneous typos, syntactic and grammatical errors.
[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 static INT OLE32_RefCount = 0;
14
15 /***********************************************************************
16  *              DllEntryPoint (OLE32.@)
17  */
18
19 BOOL WINAPI OLE32_DllEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
20 {
21     TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
22
23     switch(fdwReason) {
24     case DLL_PROCESS_ATTACH:
25         if(OLE32_hInstance == 0)
26             OLE32_hInstance = hinstDLL;
27         OLE32_RefCount++;
28         break;
29
30     case DLL_PROCESS_DETACH:
31         OLE32_RefCount--;
32         if(OLE32_RefCount == 0)
33             OLE32_hInstance = 0;
34         break;
35     }
36     return TRUE;
37 }
38
39 /***********************************************************************
40  *              DllRegisterServer (OLE32.@)
41  */
42 HRESULT WINAPI OLE32_DllRegisterServer() {
43     /* FIXME: what Interfaces should we register ... */
44     FIXME("(), stub!\n");
45     return S_OK;
46 }