winecrt0: Add a default implementation DllRegisterServer()/DllUnregisterServer().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-30 13:19:22 +02:00
parent bd6b53740c
commit 5d82baf974
148 changed files with 71 additions and 3055 deletions

View File

@ -24,5 +24,5 @@
28 stub ConvertSecurityDescriptorToSecDes
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
#@ stub DllRegisterServer
#@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

View File

@ -53,8 +53,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(adsldp);
DEFINE_GUID(CLSID_LDAP,0x228d9a81,0xc302,0x11cf,0x9a,0xa4,0x00,0xaa,0x00,0x4a,0x56,0x91);
DEFINE_GUID(CLSID_LDAPNamespace,0x228d9a82,0xc302,0x11cf,0x9a,0xa4,0x00,0xaa,0x00,0x4a,0x56,0x91);
static HMODULE adsldp_hinst;
static HRESULT LDAPNamespace_create(REFIID riid, void **obj);
typedef struct
@ -2114,28 +2112,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *obj)
FIXME("class %s/%s is not implemented\n", debugstr_guid(clsid), debugstr_guid(iid));
return CLASS_E_CLASSNOTAVAILABLE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources(adsldp_hinst);
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources(adsldp_hinst);
}
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
{
TRACE("%p,%u,%p\n", hinst, reason, reserved);
switch (reason)
{
case DLL_PROCESS_ATTACH:
adsldp_hinst = hinst;
DisableThreadLibraryCalls(hinst);
break;
}
return TRUE;
}

View File

@ -9,5 +9,5 @@
@ stdcall AmsiUninitialize(ptr)
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

View File

@ -37,20 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(amstream);
static HINSTANCE instance;
/* For the moment, do nothing here. */
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
/******************************************************************************
* Multimedia Streams ClassFactory
*/
@ -198,19 +184,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*ppv = &factory->IClassFactory_iface;
return S_OK;
}
/***********************************************************************
* DllRegisterServer (AMSTREAM.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (AMSTREAM.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -29,8 +29,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(atl);
#define ATLVer1Size FIELD_OFFSET(_ATL_MODULEW, dwAtlBuildVer)
HINSTANCE atl_instance;
typedef unsigned char cpp_bool;
static ICatRegister *catreg;
@ -970,7 +968,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
atl_instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
break;
case DLL_PROCESS_DETACH:

View File

@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(atl);
extern HINSTANCE atl_instance;
#define ATLVer1Size FIELD_OFFSET(_ATL_MODULEW, dwAtlBuildVer)
HRESULT WINAPI AtlModuleInit(_ATL_MODULEW* pM, _ATL_OBJMAP_ENTRYW* p, HINSTANCE h)
@ -528,19 +526,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppvObject)
FIXME("Not supported class %s\n", debugstr_guid(clsid));
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (ATL.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( atl_instance );
}
/***********************************************************************
* DllUnRegisterServer (ATL.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( atl_instance );
}

View File

@ -207,19 +207,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
return TRUE;
}
/***********************************************************************
* DllRegisterServer (AVIFIL32.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( AVIFILE_hModule );
}
/***********************************************************************
* DllUnregisterServer (AVIFIL32.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( AVIFILE_hModule );
}

View File

@ -237,19 +237,3 @@ HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline)
FIXME("(%s, %s): stub\n", bInstall ? "TRUE" : "FALSE", debugstr_w(cmdline));
return S_OK;
}
/***********************************************************************
* DllRegisterServer (BROWSEUI.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( BROWSEUI_hinstance );
}
/***********************************************************************
* DllUnregisterServer (BROWSEUI.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( BROWSEUI_hinstance );
}

View File

@ -33,35 +33,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(cdosys);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD reason, LPVOID lpv)
{
TRACE("(%p, %d, %p)\n", hInstDLL, reason, lpv);
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
{
FIXME("(%s, %s, %p) stub!\n", debugstr_guid(rclsid), debugstr_guid(riid), obj);
return CLASS_E_CLASSNOTAVAILABLE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -1,10 +1,5 @@
MODULE = comcat.dll
IMPORTS = ole32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
comcat_main.c
RC_SRCS = \
version.rc

View File

@ -247,19 +247,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (COMMDLG32.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources(COMDLG32_hInstance);
}
/***********************************************************************
* DllUnregisterServer (COMMDLG32.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources(COMDLG32_hInstance);
}

View File

@ -34,8 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(comsvcs);
static HINSTANCE COMSVCS_hInstance;
typedef struct dispensermanager
{
IDispenserManager IDispenserManager_iface;
@ -356,18 +354,6 @@ static HRESULT WINAPI dispenser_manager_cf_CreateInstance(IClassFactory *iface,
return ret;
}
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID lpv)
{
switch(reason)
{
case DLL_PROCESS_ATTACH:
COMSVCS_hInstance = hinst;
DisableThreadLibraryCalls(hinst);
break;
}
return TRUE;
}
static HRESULT WINAPI comsvcscf_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv )
{
*ppv = NULL;
@ -1031,19 +1017,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (comsvcs.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( COMSVCS_hInstance );
}
/***********************************************************************
* DllUnregisterServer (comsvcs.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( COMSVCS_hInstance );
}

View File

@ -16,6 +16,6 @@
@ stdcall CredUnPackAuthenticationBufferW(long ptr long ptr ptr ptr ptr ptr ptr)
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stdcall SspiPromptForCredentialsW(wstr ptr long wstr ptr ptr ptr long)

View File

@ -26,5 +26,5 @@
@ stub CryptExtOpenSTRW
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

View File

@ -37,8 +37,8 @@
37 stdcall CryptUIWizImport(long ptr wstr ptr ptr)
38 stub CryptUIWizQueryCertRequestNoDS
39 stub CryptUIWizSubmitCertRequestNoDS
40 stub DllRegisterServer
41 stub DllUnregisterServer
40 stdcall -private DllRegisterServer()
41 stdcall -private DllUnregisterServer()
42 stub EnrollmentCOMObjectFactory_getInstance
43 stub I_CryptUIProtect
44 stub I_CryptUIProtectFailure

View File

@ -40,20 +40,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(d3dxof);
static HINSTANCE instance;
/* For the moment, do nothing here. */
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
/******************************************************************************
* DirectX File ClassFactory
*/
@ -218,19 +204,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*ppv = &(factory->IClassFactory_iface);
return S_OK;
}
/***********************************************************************
* DllRegisterServer (D3DXOF.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (D3DXOF.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -778,16 +778,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
/***********************************************************************
* DllMain (DDRAW.0)
*

View File

@ -34,8 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddrawex);
static HINSTANCE instance;
struct ddrawex_class_factory
{
IClassFactory IClassFactory_iface;
@ -237,35 +235,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
return S_OK;
}
/***********************************************************************
* DllMain
*/
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = inst;
DisableThreadLibraryCalls( inst );
break;
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (DDRAWEX.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DDRAWEX.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -96,8 +96,6 @@ static const IClassFactoryVtbl ClassFactoryVtbl = {
ClassFactory_LockServer
};
static HINSTANCE dhtmled_instance;
/******************************************************************
* DllMain (dhtmled.ocx.@)
*/
@ -109,7 +107,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, VOID *reserved)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(instance);
dhtmled_instance = instance;
break;
case DLL_PROCESS_DETACH:
if (reserved) break;
@ -135,21 +132,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *out)
FIXME("no class for %s\n", debugstr_guid(clsid));
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (dhtmled.ocx.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(dhtmled_instance);
}
/***********************************************************************
* DllUnregisterServer (dhtmled.ocx.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(dhtmled_instance);
}

View File

@ -1680,22 +1680,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DINPUT.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( DINPUT_instance );
}
/***********************************************************************
* DllUnregisterServer (DINPUT.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( DINPUT_instance );
}
/******************************************************************************
* DInput hook thread
*/

View File

@ -30,34 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(manipulation);
static HINSTANCE dm_instance;
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
{
TRACE("(%p, %u, %p)\n", instance, reason, reserved);
switch (reason)
{
case DLL_PROCESS_ATTACH:
dm_instance = instance;
DisableThreadLibraryCalls(instance);
break;
}
return TRUE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( dm_instance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( dm_instance );
}
struct directmanipulation
{
IDirectManipulationManager2 IDirectManipulationManager2_iface;

View File

@ -23,7 +23,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmband);
static HINSTANCE instance;
LONG DMBAND_refCount = 0;
typedef struct {
@ -111,21 +110,6 @@ static const IClassFactoryVtbl classfactory_vtbl = {
static IClassFactoryImpl Band_CF = {{&classfactory_vtbl}, create_dmband};
static IClassFactoryImpl BandTrack_CF = {{&classfactory_vtbl}, create_dmbandtrack};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMBAND.@)
*
@ -154,19 +138,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMBAND.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMBAND.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -38,7 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmcompos);
static HINSTANCE instance;
LONG DMCOMPOS_refCount = 0;
typedef struct {
@ -136,20 +135,6 @@ static IClassFactoryImpl ChordMapTrack_CF = {{&classfactory_vtbl}, create_dmchor
static IClassFactoryImpl Template_CF = {{&classfactory_vtbl}, create_direct_music_template};
static IClassFactoryImpl SignPostTrack_CF = {{&classfactory_vtbl}, create_dmsignposttrack};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMCOMPOS.@)
*
@ -192,25 +177,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) {
WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMCOMPOS.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMCOMPOS.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
/******************************************************************
* Helper functions
*
*
*/

View File

@ -38,7 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmime);
static HINSTANCE instance;
LONG DMIME_refCount = 0;
typedef struct {
@ -137,21 +136,6 @@ static IClassFactoryImpl SegTriggerTrack_CF = {{&classfactory_vtbl}, create_dmse
static IClassFactoryImpl AudioPath_CF = {{&classfactory_vtbl}, create_dmaudiopath};
static IClassFactoryImpl WaveTrack_CF = {{&classfactory_vtbl}, create_dmwavetrack};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMIME.1)
*
@ -233,19 +217,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMIME.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMIME.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -36,7 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmloader);
static HINSTANCE instance;
LONG module_ref = 0;
typedef struct {
@ -124,18 +123,6 @@ static const IClassFactoryVtbl classfactory_vtbl = {
static IClassFactoryImpl dm_loader_CF = {{&classfactory_vtbl}, create_dmloader};
static IClassFactoryImpl dm_container_CF = {{&classfactory_vtbl}, create_dmcontainer};
/******************************************************************
* DllMain
*/
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMLOADER.@)
*/
@ -165,19 +152,3 @@ HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN(": no class found\n");
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMLOADER.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMLOADER.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -38,7 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmscript);
static HINSTANCE instance;
LONG DMSCRIPT_refCount = 0;
typedef struct {
@ -141,21 +140,6 @@ static IClassFactoryImpl ScriptAutoImplAudioPath_CF = {{&classfactory_vtbl},
create_unimpl_instance};
static IClassFactoryImpl ScriptAutoImplSong_CF = {{&classfactory_vtbl}, create_unimpl_instance};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMSCRIPT.@)
*
@ -220,20 +204,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMSCRIPT.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMSCRIPT.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -37,7 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmstyle);
static HINSTANCE instance;
LONG DMSTYLE_refCount = 0;
typedef struct {
@ -138,21 +137,6 @@ static IClassFactoryImpl MotifTrack_CF = {{&classfactory_vtbl}, create_dmmotiftr
static IClassFactoryImpl AuditionTrack_CF = {{&classfactory_vtbl}, create_dmauditiontrack};
static IClassFactoryImpl MuteTrack_CF = {{&classfactory_vtbl}, create_dmmutetrack};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMSTYLE.1)
*
@ -208,19 +192,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) {
WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMSTYLE.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMSTYLE.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -25,7 +25,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmsynth);
static HINSTANCE instance;
LONG DMSYNTH_refCount = 0;
typedef struct {
@ -112,21 +111,6 @@ static IClassFactoryImpl Synth_CF = {{&classfactory_vtbl}, DMUSIC_CreateDirectMu
static IClassFactoryImpl SynthSink_CF = {{&classfactory_vtbl},
DMUSIC_CreateDirectMusicSynthSinkImpl};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMSYNTH.@)
*
@ -161,22 +145,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMSYNTH.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMSYNTH.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
/******************************************************************
* Helper functions
*

View File

@ -39,7 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
static HINSTANCE instance;
LONG DMUSIC_refCount = 0;
typedef struct {
@ -123,21 +122,6 @@ static IClassFactoryImpl DirectMusic_CF = {{&classfactory_vtbl}, DMUSIC_CreateDi
static IClassFactoryImpl Collection_CF = {{&classfactory_vtbl},
DMUSIC_CreateDirectMusicCollectionImpl};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DMUSIC.@)
*
@ -171,22 +155,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMUSIC.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DMUSIC.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
/******************************************************************
* Helper functions
*

View File

@ -68,10 +68,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(dplay);
static HINSTANCE instance;
/* This is a globally exported variable at ordinal 6 of DPLAYX.DLL */
DWORD gdwDPlaySPRefCount = 0; /* FIXME: Should it be initialized here? */
DWORD gdwDPlaySPRefCount = 0;
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
@ -82,7 +80,6 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
switch ( fdwReason )
{
case DLL_PROCESS_ATTACH:
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
/* First instance perform construction of global processor data */
return DPLAYX_ConstructData();
@ -114,19 +111,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
return hr;
}
/***********************************************************************
* DllRegisterServer (DPLAYX.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DPLAYX.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -37,8 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dpnet);
static HINSTANCE instance;
static BOOL winsock_loaded = FALSE;
static BOOL WINAPI winsock_startup(INIT_ONCE *once, void *param, void **context)
@ -68,7 +66,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
@ -184,19 +181,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME("(%s,%s,%p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DPNET.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DPNET.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -38,18 +38,6 @@ HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface)
}
/******************************************************************
* DllRegisterServer (DPNHPAST.@)
*
*
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME(":stub\n");
return S_OK;
}
/******************************************************************
* DllGetClassObject (DPNHPAST.@)
*
@ -60,15 +48,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME(":stub\n");
return E_FAIL;
}
/******************************************************************
* DllUnregisterServer (DPNHPAST.@)
*
*
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME(":stub\n");
return S_OK;
}

View File

@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dpvoice);
static HINSTANCE DPVOICE_hInstance;
typedef struct
{
IClassFactory IClassFactory_iface;
@ -105,23 +103,6 @@ HRESULT WINAPI DirectPlayVoiceCreate(LPCGUID pIID, void **ppvInterface)
return E_NOTIMPL;
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
DPVOICE_hInstance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
break;
default:
break;
}
return TRUE;
}
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
{
int i = 0;
@ -142,13 +123,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
FIXME("(%s,%s,%p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( DPVOICE_hInstance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( DPVOICE_hInstance );
}

View File

@ -1,6 +1,3 @@
MODULE = drmclien.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
main.c
EXTRADLLFLAGS = -Wb,--prefer-native

View File

@ -1,4 +1,4 @@
@ stub DllMain
@ stdcall -private DllMain(long long ptr)
@ stub CanDecrypt
@ stub Decrypt
@ stub RequestLicense
@ -27,5 +27,5 @@
@ stub ?GetPublicKey@CDRMLiteCrypto@@QAEJPAUPKCERT@@@Z
@ stub ?QueryXferToPMEx@CDRMLiteCrypto@@QAEJPBDKPAKPAEK2K12@Z
@ stub ?RestoreLicenses@CDRMLiteCrypto@@QAEJKPAEPAGPAUIUnknown@@PAHPAX@Z
@ stdcall DllRegisterServer()
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

View File

@ -1,37 +0,0 @@
/*
*
* Copyright 2009 Austin English
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(drmclien);
/***********************************************************************
* DllRegisterServer (drmclien.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("Stub!\n");
return S_OK;
}

View File

@ -29,8 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dsdmo);
static HINSTANCE dsdmo_instance;
struct effect
{
IMediaObject IMediaObject_iface;
@ -799,19 +797,6 @@ static HRESULT waves_reverb_create(IUnknown *outer, IUnknown **out)
return S_OK;
}
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
{
switch(reason)
{
case DLL_PROCESS_ATTACH:
dsdmo_instance = instance;
DisableThreadLibraryCalls(dsdmo_instance);
break;
}
return TRUE;
}
struct class_factory
{
IClassFactory IClassFactory_iface;
@ -913,15 +898,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, void **out)
FIXME("%s not available, returning CLASS_E_CLASSNOTAVAILABLE.\n", debugstr_guid(clsid));
return CLASS_E_CLASSNOTAVAILABLE;
}
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(dsdmo_instance);
}
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(dsdmo_instance);
}

View File

@ -92,7 +92,6 @@ const WCHAR wine_vxd_drv[] = L"winemm.vxd";
/* All default settings, you most likely don't want to touch these, see wiki on UsefulRegistryKeys */
int ds_hel_buflen = 32768 * 2;
static HINSTANCE instance;
/*
* Get a config key from either the app-specific or the default config
@ -775,7 +774,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
/* Increase refcount on dsound by 1 */
GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)hInstDLL, &hInstDLL);
@ -788,19 +786,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (DSOUND.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DSOUND.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -31,8 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dsquery);
static HINSTANCE instance;
/******************************************************************
* IClassFactory implementation
*/
@ -196,24 +194,6 @@ static HRESULT CommonQuery_create(IUnknown *outer, REFIID riid, void **out)
return ICommonQuery_QueryInterface(&query->ICommonQuery_iface, riid, out);
}
/***********************************************************************
* DllMain
*/
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
{
TRACE("(%p, %u, %p)\n", inst, reason, reserved);
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = inst;
DisableThreadLibraryCalls(inst);
break;
}
return TRUE;
}
/***********************************************************************
* DllGetClassObject (DSQUERY.@)
*/
@ -245,19 +225,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
*out = NULL;
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DSQUERY.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DSQUERY.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -33,8 +33,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
static HINSTANCE instance;
WINE_DEFAULT_DEBUG_CHANNEL(dssenh);
#define MAGIC_KEY (('K' << 24) | ('E' << 16) | ('Y' << 8) | '0')
@ -1031,33 +1029,3 @@ BOOL WINAPI CPVerifySignature( HCRYPTPROV hprov, HCRYPTHASH hhash, const BYTE *s
return !BCryptVerifySignature( key->handle, NULL, hash->value, hash->len, (UCHAR *)sig, siglen, 0 );
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
break;
}
return TRUE;
}
/*****************************************************
* DllRegisterServer (DSSENH.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/*****************************************************
* DllUnregisterServer (DSSENH.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -1,8 +1,8 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stub DllInstall
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stub DsBrowseForContainerA
@ stub DsBrowseForContainerW
@ stub DsGetFriendlyClassName

View File

@ -39,7 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dswave);
static HINSTANCE instance;
LONG DSWAVE_refCount = 0;
typedef struct {
@ -118,21 +117,6 @@ static const IClassFactoryVtbl WaveCF_Vtbl = {
static IClassFactoryImpl Wave_CF = {{&WaveCF_Vtbl}};
/******************************************************************
* DllMain
*
*
*/
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
}
return TRUE;
}
/******************************************************************
* DllCanUnloadNow (DSWAVE.@)
*
@ -161,19 +145,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DSWAVE.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DSWAVE.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -36,23 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dx8vb);
static HINSTANCE instance_dx8vb;
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{
TRACE("(0x%p, %d, %p)\n", instance, reason, reserved);
switch (reason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(instance);
instance_dx8vb = instance;
break;
}
return TRUE;
}
typedef struct {
IClassFactory IClassFactory_iface;
@ -178,13 +161,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
*ppv = &factory->IClassFactory_iface;
return S_OK;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources(instance_dx8vb);
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources(instance_dx8vb);
}

View File

@ -151,19 +151,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME("(%s,%s,%p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DXDIAGN.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( dxdiagn_instance );
}
/***********************************************************************
* DllUnregisterServer (DXDIAGN.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( dxdiagn_instance );
}

View File

@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(evr);
static HINSTANCE instance_evr;
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{
switch (reason)
@ -181,16 +179,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
return S_OK;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources(instance_evr);
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources(instance_evr);
}
HRESULT WINAPI MFCreateVideoMixerAndPresenter(IUnknown *mixer_outer, IUnknown *presenter_outer,
REFIID riid_mixer, void **mixer, REFIID riid_presenter, void **presenter)
{

View File

@ -207,19 +207,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/*************************************************************************
* DllRegisterServer (ExplorerFrame.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( explorerframe_hinstance );
}
/*************************************************************************
* DllUnregisterServer (ExplorerFrame.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( explorerframe_hinstance );
}

View File

@ -1,3 +1,3 @@
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stdcall -private ServiceMain(long ptr)

View File

@ -6,8 +6,7 @@ EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
factory.c \
gameexplorer.c \
gamestatistics.c \
main.c
gamestatistics.c
IDL_SRCS = gameux_tlb.idl

View File

@ -25,7 +25,8 @@
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "shobjidl.h"
#include "initguid.h"
#include "gameux.h"
#include "gameux_private.h"

View File

@ -1,68 +0,0 @@
/*
* Gameux library main file
*
* Copyright (C) 2010 Mariusz Pluciński
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "shobjidl.h"
#include "initguid.h"
#include "gameux.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(gameux);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
TRACE("(%p, %d, %p)\n", hInstDLL, fdwReason, lpv);
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (GAMEUX.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (GAMEUX.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -1,6 +1,3 @@
MODULE = gpkcsp.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
main.c
EXTRADLLFLAGS = -Wb,--prefer-native

View File

@ -1,44 +0,0 @@
/*
* Copyright 2008 Maarten Lankhorst
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(gpkcsp);
/*****************************************************
* DllRegisterServer (GPKCSP.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED;
}
/*****************************************************
* DllUnregisterServer (GPKCSP.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED;
}

View File

@ -588,19 +588,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (HHCTRL.OCX.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( hhctrl_hinstance );
}
/***********************************************************************
* DllUnregisterServer (HHCTRL.OCX.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( hhctrl_hinstance );
}

View File

@ -28,8 +28,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(hlink);
static HINSTANCE instance;
typedef HRESULT (*LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
typedef struct
@ -43,20 +41,6 @@ static inline CFImpl *impl_from_IClassFactory(IClassFactory *iface)
return CONTAINING_RECORD(iface, CFImpl, IClassFactory_iface);
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("%p %d %p\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
break;
}
return TRUE;
}
/***********************************************************************
* HlinkCreateFromMoniker (HLINK.@)
*/
@ -579,19 +563,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return IClassFactory_QueryInterface(pcf, iid, ppv);
}
/***********************************************************************
* DllRegisterServer (HLINK.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (HLINK.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(hnetcfg);
static HINSTANCE instance;
typedef HRESULT (*fnCreateInstance)( IUnknown *pUnkOuter, LPVOID *ppObj );
typedef struct
@ -124,7 +122,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
case DLL_PROCESS_DETACH:
@ -165,19 +162,3 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
return IClassFactory_QueryInterface( cf, iid, ppv );
}
/***********************************************************************
* DllRegisterServer (HNETCFG.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (HNETCFG.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -259,24 +259,6 @@ HRESULT WINAPI DllCanUnloadNow(void)
return module_ref ? S_FALSE : S_OK;
}
/***********************************************************************
* DllRegisterServer (ieframe.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(ieframe_instance);
}
/***********************************************************************
* DllUnregisterServer (ieframe.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(ieframe_instance);
}
/***********************************************************************
* IEGetWriteableHKCU (ieframe.@)
*/

View File

@ -38,8 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(inetcomm);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
static IMimeInternational *international;
@ -50,7 +48,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
instance = hinstDLL;
if (!InternetTransport_RegisterClass(hinstDLL))
return FALSE;
MimeInternational_Construct(&international);
@ -208,19 +205,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return IClassFactory_QueryInterface( cf, iid, ppv );
}
/***********************************************************************
* DllRegisterServer (INETCOMM.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (INETCOMM.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -37,20 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(infosoft);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
DECLSPEC_HIDDEN extern HRESULT WINAPI wb_Constructor(IUnknown*, REFIID, LPVOID *);
typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
@ -145,20 +131,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return IClassFactory_QueryInterface(pcf, iid, ppv);
}
/***********************************************************************
* DllRegisterServer (INFOSOFT.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (INFOSOFT.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -1,6 +1,3 @@
MODULE = initpki.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
main.c
EXTRADLLFLAGS = -Wb,--prefer-native

View File

@ -1,44 +0,0 @@
/*
* Copyright 2008 Maarten Lankhorst
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(initpki);
/*****************************************************
* DllRegisterServer (INITPKI.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED;
}
/*****************************************************
* DllUnregisterServer (INITPKI.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED;
}

View File

@ -27,21 +27,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
return CLASS_E_CLASSNOTAVAILABLE;
}
/*****************************************************
* DllRegisterServer (INKOBJ.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED; /* unable to register */
}
/*****************************************************
* DllUnregisterServer (INKOBJ.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED; /* unable to register */
}

View File

@ -36,8 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(inseng);
static HINSTANCE instance;
struct InstallEngine {
IInstallEngine2 IInstallEngine2_iface;
LONG ref;
@ -358,18 +356,6 @@ static const IClassFactoryVtbl InstallEngineCFVtbl = {
static IClassFactory InstallEngineCF = { &InstallEngineCFVtbl };
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
/***********************************************************************
* DllGetClassObject (INSENG.@)
*/
@ -384,22 +370,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (INSENG.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (INSENG.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
BOOL WINAPI CheckTrustEx( LPVOID a, LPVOID b, LPVOID c, LPVOID d, LPVOID e )
{
FIXME("%p %p %p %p %p\n", a, b, c, d, e );

View File

@ -1,6 +1,3 @@
MODULE = itircl.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
itircl_main.c
EXTRADLLFLAGS = -Wb,--prefer-native

View File

@ -1,46 +0,0 @@
/*
* itircl main
*
* Copyright 2008 James Hawkins
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(itircl);
/***********************************************************************
* DllRegisterServer (ITIRCL.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("stub\n");
return S_FALSE;
}
/***********************************************************************
* DllUnregisterServer (ITIRCL.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("stub\n");
return S_FALSE;
}

View File

@ -47,18 +47,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(itss);
static HRESULT ITSS_create(IUnknown *pUnkOuter, LPVOID *ppObj);
LONG dll_count = 0;
static HINSTANCE hInst;
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDLL);
hInst = hInstDLL;
break;
}
return TRUE;
}
/******************************************************************************
* ITSS ClassFactory
@ -394,19 +382,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
TRACE("dll_count = %u\n", dll_count);
return dll_count ? S_FALSE : S_OK;
}
/***********************************************************************
* DllRegisterServer (ITSS.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( hInst );
}
/***********************************************************************
* DllUnregisterServer (ITSS.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( hInst );
}

View File

@ -204,21 +204,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
return module_ref ? S_FALSE : S_OK;
}
/***********************************************************************
* DllRegisterServer (jscript.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(jscript_hinstance);
}
/***********************************************************************
* DllUnregisterServer (jscript.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(jscript_hinstance);
}

View File

@ -33,8 +33,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
static HINSTANCE instance;
WINE_DEFAULT_DEBUG_CHANNEL(jsproxy);
static CRITICAL_SECTION cs_jsproxy;
@ -46,24 +44,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
};
static CRITICAL_SECTION cs_jsproxy = { &critsect_debug, -1, 0, 0, 0, 0 };
/******************************************************************
* DllMain (jsproxy.@)
*/
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hinst;
DisableThreadLibraryCalls( hinst );
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
static inline WCHAR *strdupAW( const char *src, int len )
{
WCHAR *dst = NULL;

View File

@ -1,7 +1,7 @@
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stub KsGetMediaType
@ stub KsGetMediaTypeCount
@ stub KsGetMultiplePinFactoryItems

View File

@ -34,7 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
static HINSTANCE mf_instance;
extern const GUID CLSID_FileSchemePlugin;
struct activate_object
@ -1048,35 +1047,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (mf.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( mf_instance );
}
/***********************************************************************
* DllUnregisterServer (mf.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( mf_instance );
}
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
mf_instance = instance;
DisableThreadLibraryCalls(instance);
break;
}
return TRUE;
}
static HRESULT prop_string_vector_append(PROPVARIANT *vector, unsigned int *capacity, BOOL unique, const WCHAR *str)
{
WCHAR *ptrW;

View File

@ -1,6 +1,6 @@
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stdcall MFPCreateMediaPlayer(wstr long long ptr long ptr)
@ stub MFPCreateMediaPlayerEx

View File

@ -44,31 +44,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
static HINSTANCE mfinstance;
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
mfinstance = instance;
DisableThreadLibraryCalls(instance);
break;
}
return TRUE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( mfinstance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( mfinstance );
}
struct stream_response
{
struct list entry;

View File

@ -33,8 +33,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mmc);
static HINSTANCE MMC_hInstance;
static HRESULT WINAPI mmcversion_QueryInterface(IMMCVersionInfo *iface, REFIID riid, void **ppv)
{
TRACE("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv);
@ -154,27 +152,4 @@ HRESULT WINAPI DllGetClassObject( REFCLSID riid, REFIID iid, LPVOID *ppv )
FIXME("Unsupported interface %s\n", debugstr_guid(riid));
return CLASS_E_CLASSNOTAVAILABLE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( MMC_hInstance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( MMC_hInstance );
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
MMC_hInstance = hinstDLL;
break;
}
return TRUE;
}

View File

@ -44,8 +44,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi);
static HINSTANCE instance;
DriverFuncs drvs;
const WCHAR drv_keyW[] = L"Software\\Wine\\Drivers";
@ -160,7 +158,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
break;
case DLL_PROCESS_DETACH:
@ -292,22 +289,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (MMDEVAPI.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (MMDEVAPI.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
struct activate_async_op {
IActivateAudioInterfaceAsyncOperation IActivateAudioInterfaceAsyncOperation_iface;
LONG ref;

View File

@ -32,20 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msado15);
static HINSTANCE hinstance;
BOOL WINAPI DllMain( HINSTANCE dll, DWORD reason, LPVOID reserved )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
hinstance = dll;
DisableThreadLibraryCalls( dll );
break;
}
return TRUE;
}
typedef HRESULT (*fnCreateInstance)( void **obj );
struct msadocf
@ -151,22 +137,6 @@ HRESULT WINAPI DllGetClassObject( REFCLSID clsid, REFIID iid, void **obj )
return IClassFactory_QueryInterface( cf, iid, obj );
}
/***********************************************************************
* DllRegisterServer
*/
HRESULT WINAPI DllRegisterServer( void )
{
return __wine_register_resources( hinstance );
}
/***********************************************************************
* DllUnregisterServer
*/
HRESULT WINAPI DllUnregisterServer( void )
{
return __wine_unregister_resources( hinstance );
}
static ITypeLib *typelib;
static ITypeInfo *typeinfos[LAST_tid];

View File

@ -39,8 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msctf);
static HINSTANCE MSCTF_hinstance;
typedef struct
{
DWORD id;
@ -557,7 +555,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
MSCTF_hinstance = hinst;
tlsIndex = TlsAlloc();
break;
case DLL_PROCESS_DETACH:
@ -587,22 +584,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *ppvOut)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (MSCTF.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( MSCTF_hinstance );
}
/***********************************************************************
* DllUnregisterServer (MSCTF.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( MSCTF_hinstance );
}
/***********************************************************************
* TF_CreateThreadMgr (MSCTF.@)
*/

View File

@ -84,6 +84,6 @@
@ stub DRMVerify
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stub __AddMachineCertToLicenseStore

View File

@ -216,19 +216,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
{
return dll_count == 0 ? S_OK : S_FALSE;
}
/***********************************************************************
* DllRegisterServer (MSI.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( msi_hInstance );
}
/***********************************************************************
* DllUnregisterServer (MSI.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( msi_hInstance );
}

View File

@ -28,8 +28,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msident);
static HINSTANCE msident_instance;
typedef struct {
IEnumUserIdentity IEnumUserIdentity_iface;
LONG ref;
@ -274,24 +272,6 @@ static const IClassFactoryVtbl UserIdentityManagerCFVtbl = {
static IClassFactory UserIdentityManagerCF = { &UserIdentityManagerCFVtbl };
/******************************************************************
* DllMain (msident.@)
*/
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
msident_instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
/***********************************************************************
* DllGetClassObject (msident.@)
*/
@ -305,21 +285,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (msident.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(msident_instance);
}
/***********************************************************************
* DllUnregisterServer (msident.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(msident_instance);
}

View File

@ -35,23 +35,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msimtf);
extern HRESULT ActiveIMMApp_Constructor(IUnknown *punkOuter, IUnknown **ppOut);
static HINSTANCE msimtf_instance;
/******************************************************************
* DllMain (msimtf.@)
*/
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
msimtf_instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
return TRUE;
}
typedef struct {
IClassFactory IClassFactory_iface;
@ -143,19 +126,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (msimtf.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( msimtf_instance );
}
/***********************************************************************
* DllUnregisterServer (msimtf.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( msimtf_instance );
}

View File

@ -4,5 +4,5 @@
8 stub MsiSIPRemoveSignedDataMsg
9 stub MsiSIPCreateIndirectData
10 stub MsiSIPVerifyIndirectData
11 stdcall DllRegisterServer()
12 stdcall DllUnregisterServer()
11 stdcall -private DllRegisterServer()
12 stdcall -private DllUnregisterServer()

View File

@ -41,23 +41,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (MSISYS.@)
*/
HRESULT WINAPI DllRegisterServer( void )
{
FIXME( "(): stub\n" );
return E_FAIL;
}
/***********************************************************************
* DllUnregisterServer (MSISYS.@)
*/
HRESULT WINAPI DllUnregisterServer( void )
{
FIXME( "(): stub\n" );
return E_FAIL;
}

View File

@ -189,8 +189,6 @@ struct ScriptControl {
ScriptError *error;
};
static HINSTANCE msscript_instance;
typedef enum tid_t {
IScriptControl_tid,
IScriptError_tid,
@ -4014,7 +4012,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
switch(reason) {
case DLL_PROCESS_ATTACH:
msscript_instance = instance;
DisableThreadLibraryCalls(instance);
break;
case DLL_PROCESS_DETACH:
@ -4088,21 +4085,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (msscript.ocx.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("()\n");
return __wine_register_resources(msscript_instance);
}
/***********************************************************************
* DllUnregisterServer (msscript.ocx.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("()\n");
return __wine_unregister_resources(msscript_instance);
}

View File

@ -1,5 +1,5 @@
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stub FreeCryptProvFromCert
@ stub GetCryptProvFromCert
@ stdcall PvkFreeCryptProv(ptr wstr long wstr)

View File

@ -1,6 +1,3 @@
MODULE = mssip32.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
main.c
EXTRADLLFLAGS = -Wb,--prefer-native

View File

@ -1,43 +0,0 @@
/*
* Copyright 2008 Maarten Lankhorst
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(mssip32);
/*****************************************************
* DllRegisterServer (MSSIP32.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED;
}
/*****************************************************
* DllUnregisterServer (MSSIP32.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("Not implemented.\n");
return E_UNEXPECTED;
}

View File

@ -32,24 +32,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(mstask);
static HINSTANCE hInst;
LONG dll_ref = 0;
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
hInst = hinstDLL;
break;
}
return TRUE;
}
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
{
TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
@ -67,16 +51,6 @@ HRESULT WINAPI DllCanUnloadNow(void)
return dll_ref != 0 ? S_FALSE : S_OK;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( hInst );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( hInst );
}
DWORD WINAPI NetrJobAdd_wrapper(ATSVC_HANDLE server_name, LPAT_INFO info, LPDWORD jobid)
{
return NetrJobAdd(server_name, info, jobid);

View File

@ -1,9 +1,5 @@
MODULE = msxml.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = main.c
IDL_SRCS = msxml_tlb.idl
RC_SRCS = rsrc.rc

View File

@ -1,55 +0,0 @@
/*
* MSXML implementation
*
* Copyright 2010 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "rpcproxy.h"
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hinstance;
DisableThreadLibraryCalls(hinstance);
break;
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (MSXML.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (MSXML.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -1,7 +1,3 @@
MODULE = msxml2.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = main.c
IDL_SRCS = msxml2_tlb.idl

View File

@ -1,55 +0,0 @@
/*
* MSXML2 implementation
*
* Copyright 2010 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "rpcproxy.h"
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hinstance;
DisableThreadLibraryCalls(hinstance);
break;
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (MSXML2.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (MSXML2.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -467,19 +467,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (MSXML3.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( MSXML_hInstance );
}
/***********************************************************************
* DllUnregisterServer (MSXML3.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( MSXML_hInstance );
}

View File

@ -1,11 +1,5 @@
MODULE = msxml4.dll
IMPORTS = ole32 advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c
IDL_SRCS = msxml4_tlb.idl
RC_SRCS = rsrc.rc

View File

@ -1,55 +0,0 @@
/*
* MSXML4 entry point
*
* Copyright 2010 Nikolay Sivov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "rpcproxy.h"
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hinstance;
DisableThreadLibraryCalls(hinstance);
break;
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (MSXML4.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (MSXML4.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -1,11 +1,5 @@
MODULE = msxml6.dll
IMPORTS = oleaut32 ole32 advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c
RC_SRCS = rsrc.rc
IDL_SRCS = msxml6_tlb.idl

View File

@ -1,55 +0,0 @@
/*
* MSXML6 entry point
*
* Copyright 2010 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "rpcproxy.h"
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hinstance;
DisableThreadLibraryCalls(hinstance);
break;
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (MSXML6.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (MSXML6.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(netcfgx);
static HINSTANCE NETCFGX_hInstance;
typedef HRESULT (*ClassFactoryCreateInstanceFunc)(IUnknown **);
typedef struct netcfgcf
@ -120,24 +118,6 @@ static const struct IClassFactoryVtbl netcfgcf_vtbl =
netcfgcf_LockServer
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
NETCFGX_hInstance = hinstDLL;
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
break;
default:
break;
}
return TRUE;
}
static netcfgcf netconfigcf = { {&netcfgcf_vtbl}, INetCfg_CreateInstance };
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
@ -156,13 +136,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
return IClassFactory_QueryInterface(cf, riid, ppv);
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( NETCFGX_hInstance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( NETCFGX_hInstance );
}

View File

@ -29,20 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(netprofm);
static HINSTANCE instance;
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = hinst;
DisableThreadLibraryCalls( hinst );
break;
}
return TRUE;
}
struct netprofm_cf
{
IClassFactory IClassFactory_iface;
@ -130,19 +116,3 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
return IClassFactory_QueryInterface( cf, iid, ppv );
}
/***********************************************************************
* DllRegisterServer (NETPROFM.@)
*/
HRESULT WINAPI DllRegisterServer( void )
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (NETPROFM.@)
*/
HRESULT WINAPI DllUnregisterServer( void )
{
return __wine_unregister_resources( instance );
}

View File

@ -26,23 +26,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(objsel);
LONG dll_refs = 0;
static HINSTANCE hInstance;
/***********************************************************************
* DllEntryPoint
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
{
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
hInstance = hinstDLL;
DisableThreadLibraryCalls(hInstance);
break;
}
return TRUE;
}
/***********************************************************************
* DllGetClassObject (OBJSEL.@)
@ -70,24 +53,6 @@ HRESULT WINAPI DllCanUnloadNow(void)
}
/***********************************************************************
* DllRegisterServer (OBJSEL.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( hInstance );
}
/***********************************************************************
* DllUnregisterServer (OBJSEL.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( hInstance );
}
/**********************************************************************
* OBJSEL_IDsObjectPicker_Destroy (also IUnknown)
*/

View File

@ -165,19 +165,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}

View File

@ -30,24 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(ole);
/***********************************************************************
* DllUnregisterServer (OLEPRO32.258)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME("stub\n");
return S_OK;
}
/***********************************************************************
* DllRegisterServer (OLEPRO32.257)
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME("stub\n");
return S_OK;
}
/***********************************************************************
* DllGetClassObject (OLEPRO32.@)
*/

Some files were not shown because too many files have changed in this diff Show More