reactos/dll/win32/shimgvw/comsup.c
Carlo Bramini 0d4e921c93
[SHIMGVW] Add new features (CORE-11044) (#3113)
Add these new features:

- Use accelerator table for keyboard hotkeys.
- Updated italian translation.
- Simplified creation of toolbar and tooltips.
- Added missing toolbar buttons.
- Initialize common controls for theming.

French translation by Kyle Katarn.
Polish translation by Adam Stachowicz.
2021-02-13 23:22:21 +09:00

59 lines
841 B
C

#define INITGUID
#include <windef.h>
#include "comsup.h"
LONG LockCount;
LONG ObjectCount;
VOID
DllInitServer(VOID)
{
ObjectCount = 0;
LockCount = 0;
}
STDAPI
DllRegisterServer(VOID)
{
/* Always return S_OK, since there is currently nothing that can go wrong */
return S_OK;
}
STDAPI
DllUnregisterServer(VOID)
{
/* Always return S_OK, since there is currently nothing that can go wrong */
return S_OK;
}
STDAPI
DllCanUnloadNow(VOID)
{
if ((ObjectCount != 0) || (LockCount != 0))
{
return S_FALSE;
}
else
{
return S_OK;
}
}
STDAPI
DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
HRESULT hr;
/* There are no classes to export, so always return CLASS_E_CLASSNOTAVAILABLE*/
*ppv = NULL;
hr = CLASS_E_CLASSNOTAVAILABLE;
return hr;
}