2 * SHLWAPI initialisation
4 * Copyright 1998 Marcus Meissner
5 * Copyright 1998 Juergen Schmied (jsch)
10 #include "debugtools.h"
13 DEFAULT_DEBUG_CHANNEL(shell
);
15 HINSTANCE shlwapi_hInstance
= 0;
17 /*************************************************************************
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
);
28 case DLL_PROCESS_ATTACH
:
29 shlwapi_hInstance
= hinstDLL
;
35 /***********************************************************************
36 * DllGetVersion [SHLWAPI]
38 * Retrieves version information of the 'SHLWAPI.DLL'
41 * pdvi [O] pointer to version information structure.
45 * Failure: E_INVALIDARG
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");
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
);