Some borken memory monitoring programs divide by dwTotalPageFile,
[wine/testsucceed.git] / dlls / shlwapi / shlwapi_main.c
blob3ffea705382e0ea7513518f8e3d0a0db53fa073a
1 /*
2 * SHLWAPI initialisation
4 * Copyright 1998 Marcus Meissner
5 * Copyright 1998 Juergen Schmied (jsch)
6 */
8 #include "winbase.h"
9 #include "winerror.h"
10 #include "debugtools.h"
11 #include "shlwapi.h"
13 DEFAULT_DEBUG_CHANNEL(shell);
15 HINSTANCE shlwapi_hInstance = 0;
17 /*************************************************************************
18 * SHLWAPI LibMain
20 * NOTES
21 * calling oleinitialize here breaks sone apps.
23 BOOL WINAPI SHLWAPI_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
25 TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
26 switch (fdwReason)
28 case DLL_PROCESS_ATTACH:
29 shlwapi_hInstance = hinstDLL;
30 break;
32 return TRUE;
35 /***********************************************************************
36 * DllGetVersion [SHLWAPI]
38 * Retrieves version information of the 'SHLWAPI.DLL'
40 * PARAMS
41 * pdvi [O] pointer to version information structure.
43 * RETURNS
44 * Success: S_OK
45 * Failure: E_INVALIDARG
47 * NOTES
48 * Returns version of a SHLWAPI.dll from IE5.01.
51 HRESULT WINAPI SHLWAPI_DllGetVersion (DLLVERSIONINFO *pdvi)
53 if (pdvi->cbSize != sizeof(DLLVERSIONINFO))
55 WARN("wrong DLLVERSIONINFO size from app");
56 return E_INVALIDARG;
59 pdvi->dwMajorVersion = 5;
60 pdvi->dwMinorVersion = 0;
61 pdvi->dwBuildNumber = 2314;
62 pdvi->dwPlatformID = 1000;
64 TRACE("%lu.%lu.%lu.%lu\n",
65 pdvi->dwMajorVersion, pdvi->dwMinorVersion,
66 pdvi->dwBuildNumber, pdvi->dwPlatformID);
68 return S_OK;