2 * SHLWAPI initialisation
4 * Copyright 1998 Marcus Meissner
5 * Copyright 1998 Juergen Schmied (jsch)
10 #include "debugtools.h"
13 #include "wine/obj_storage.h"
15 DEFAULT_DEBUG_CHANNEL(shell);
17 HINSTANCE shlwapi_hInstance = 0;
19 /*************************************************************************
23 * calling oleinitialize here breaks sone apps.
25 BOOL WINAPI SHLWAPI_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
27 TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
30 case DLL_PROCESS_ATTACH:
31 shlwapi_hInstance = hinstDLL;
37 /***********************************************************************
38 * DllGetVersion [SHLWAPI]
40 * Retrieves version information of the 'SHLWAPI.DLL'
43 * pdvi [O] pointer to version information structure.
47 * Failure: E_INVALIDARG
50 * Returns version of a SHLWAPI.dll from IE5.01.
53 HRESULT WINAPI SHLWAPI_DllGetVersion (DLLVERSIONINFO *pdvi)
55 if (pdvi->cbSize != sizeof(DLLVERSIONINFO))
57 WARN("wrong DLLVERSIONINFO size from app");
61 pdvi->dwMajorVersion = 5;
62 pdvi->dwMinorVersion = 0;
63 pdvi->dwBuildNumber = 2314;
64 pdvi->dwPlatformID = 1000;
66 TRACE("%lu.%lu.%lu.%lu\n",
67 pdvi->dwMajorVersion, pdvi->dwMinorVersion,
68 pdvi->dwBuildNumber, pdvi->dwPlatformID);