Moved GUID definitions to their respective dll.
[wine] / dlls / shlwapi / shlwapi_main.c
1 /*
2  * SHLWAPI initialisation
3  *
4  *  Copyright 1998 Marcus Meissner
5  *  Copyright 1998 Juergen Schmied (jsch)
6  */
7
8 #include "winbase.h"
9 #include "winerror.h"
10 #include "debugtools.h"
11
12 #include "initguid.h"
13 #include "wine/obj_storage.h"
14
15 DEFAULT_DEBUG_CHANNEL(shell);
16
17 HINSTANCE shlwapi_hInstance = 0; 
18
19 /*************************************************************************
20  * SHLWAPI LibMain
21  *
22  * NOTES
23  *  calling oleinitialize here breaks sone apps.
24  */
25 BOOL WINAPI SHLWAPI_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
26 {
27         TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
28         switch (fdwReason)
29         {
30           case DLL_PROCESS_ATTACH:
31             shlwapi_hInstance = hinstDLL;
32             break;
33         }
34         return TRUE;
35 }
36
37 /***********************************************************************
38  * DllGetVersion [SHLWAPI]
39  *
40  * Retrieves version information of the 'SHLWAPI.DLL'
41  *
42  * PARAMS
43  *     pdvi [O] pointer to version information structure.
44  *
45  * RETURNS
46  *     Success: S_OK
47  *     Failure: E_INVALIDARG
48  *
49  * NOTES
50  *     Returns version of a SHLWAPI.dll from IE5.01.
51  */
52
53 HRESULT WINAPI SHLWAPI_DllGetVersion (DLLVERSIONINFO *pdvi)
54 {
55         if (pdvi->cbSize != sizeof(DLLVERSIONINFO)) 
56         {
57           WARN("wrong DLLVERSIONINFO size from app");
58           return E_INVALIDARG;
59         }
60
61         pdvi->dwMajorVersion = 5;
62         pdvi->dwMinorVersion = 0;
63         pdvi->dwBuildNumber = 2314;
64         pdvi->dwPlatformID = 1000;
65
66         TRACE("%lu.%lu.%lu.%lu\n",
67            pdvi->dwMajorVersion, pdvi->dwMinorVersion,
68            pdvi->dwBuildNumber, pdvi->dwPlatformID);
69
70         return S_OK;
71 }