2000-07-09 13:19:35 +02:00
|
|
|
/*
|
|
|
|
* SHLWAPI initialisation
|
|
|
|
*
|
|
|
|
* Copyright 1998 Marcus Meissner
|
|
|
|
* Copyright 1998 Juergen Schmied (jsch)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "winbase.h"
|
2000-07-26 19:51:32 +02:00
|
|
|
#include "winerror.h"
|
2000-07-09 13:19:35 +02:00
|
|
|
#include "debugtools.h"
|
|
|
|
|
2000-08-03 06:22:35 +02:00
|
|
|
#include "initguid.h"
|
2000-09-26 02:00:55 +02:00
|
|
|
#include "wine/obj_base.h"
|
2000-08-03 06:22:35 +02:00
|
|
|
#include "wine/obj_storage.h"
|
2000-09-29 03:03:30 +02:00
|
|
|
#include "shlwapi.h"
|
2000-08-03 06:22:35 +02:00
|
|
|
|
2000-07-09 13:19:35 +02:00
|
|
|
DEFAULT_DEBUG_CHANNEL(shell);
|
|
|
|
|
|
|
|
HINSTANCE shlwapi_hInstance = 0;
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
|
|
* SHLWAPI LibMain
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* calling oleinitialize here breaks sone apps.
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SHLWAPI_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
|
|
|
{
|
|
|
|
TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
|
|
|
|
switch (fdwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
shlwapi_hInstance = hinstDLL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
2000-07-26 19:51:32 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllGetVersion [SHLWAPI]
|
|
|
|
*
|
|
|
|
* Retrieves version information of the 'SHLWAPI.DLL'
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pdvi [O] pointer to version information structure.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: S_OK
|
|
|
|
* Failure: E_INVALIDARG
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* Returns version of a SHLWAPI.dll from IE5.01.
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI SHLWAPI_DllGetVersion (DLLVERSIONINFO *pdvi)
|
|
|
|
{
|
|
|
|
if (pdvi->cbSize != sizeof(DLLVERSIONINFO))
|
|
|
|
{
|
|
|
|
WARN("wrong DLLVERSIONINFO size from app");
|
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
pdvi->dwMajorVersion = 5;
|
|
|
|
pdvi->dwMinorVersion = 0;
|
|
|
|
pdvi->dwBuildNumber = 2314;
|
|
|
|
pdvi->dwPlatformID = 1000;
|
|
|
|
|
|
|
|
TRACE("%lu.%lu.%lu.%lu\n",
|
|
|
|
pdvi->dwMajorVersion, pdvi->dwMinorVersion,
|
|
|
|
pdvi->dwBuildNumber, pdvi->dwPlatformID);
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|