mirror of
https://github.com/reactos/reactos.git
synced 2024-08-23 19:58:25 +00:00
![Carlo Bramini](/assets/img/avatar_default.png)
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.
59 lines
841 B
C
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;
|
|
}
|