Commit 5d82baf9 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent bd6b5374
...@@ -24,5 +24,5 @@ ...@@ -24,5 +24,5 @@
28 stub ConvertSecurityDescriptorToSecDes 28 stub ConvertSecurityDescriptorToSecDes
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr) @ stdcall -private DllGetClassObject(ptr ptr ptr)
#@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
#@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
...@@ -53,8 +53,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(adsldp); ...@@ -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_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); 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); static HRESULT LDAPNamespace_create(REFIID riid, void **obj);
typedef struct typedef struct
...@@ -2114,28 +2112,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *obj) ...@@ -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)); FIXME("class %s/%s is not implemented\n", debugstr_guid(clsid), debugstr_guid(iid));
return CLASS_E_CLASSNOTAVAILABLE; 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;
}
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
@ stdcall AmsiUninitialize(ptr) @ stdcall AmsiUninitialize(ptr)
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject @ stub DllGetClassObject
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
...@@ -37,20 +37,6 @@ ...@@ -37,20 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(amstream); 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 * Multimedia Streams ClassFactory
*/ */
...@@ -198,19 +184,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -198,19 +184,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*ppv = &factory->IClassFactory_iface; *ppv = &factory->IClassFactory_iface;
return S_OK; 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 );
}
...@@ -29,8 +29,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(atl); ...@@ -29,8 +29,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(atl);
#define ATLVer1Size FIELD_OFFSET(_ATL_MODULEW, dwAtlBuildVer) #define ATLVer1Size FIELD_OFFSET(_ATL_MODULEW, dwAtlBuildVer)
HINSTANCE atl_instance;
typedef unsigned char cpp_bool; typedef unsigned char cpp_bool;
static ICatRegister *catreg; static ICatRegister *catreg;
...@@ -970,7 +968,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -970,7 +968,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch(fdwReason) { switch(fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
atl_instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(atl); WINE_DEFAULT_DEBUG_CHANNEL(atl);
extern HINSTANCE atl_instance;
#define ATLVer1Size FIELD_OFFSET(_ATL_MODULEW, dwAtlBuildVer) #define ATLVer1Size FIELD_OFFSET(_ATL_MODULEW, dwAtlBuildVer)
HRESULT WINAPI AtlModuleInit(_ATL_MODULEW* pM, _ATL_OBJMAP_ENTRYW* p, HINSTANCE h) 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) ...@@ -528,19 +526,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppvObject)
FIXME("Not supported class %s\n", debugstr_guid(clsid)); FIXME("Not supported class %s\n", debugstr_guid(clsid));
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -207,19 +207,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved) ...@@ -207,19 +207,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
return TRUE; 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 );
}
...@@ -237,19 +237,3 @@ HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline) ...@@ -237,19 +237,3 @@ HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline)
FIXME("(%s, %s): stub\n", bInstall ? "TRUE" : "FALSE", debugstr_w(cmdline)); FIXME("(%s, %s): stub\n", bInstall ? "TRUE" : "FALSE", debugstr_w(cmdline));
return S_OK; 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 );
}
...@@ -33,35 +33,9 @@ ...@@ -33,35 +33,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(cdosys); 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) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
{ {
FIXME("(%s, %s, %p) stub!\n", debugstr_guid(rclsid), debugstr_guid(riid), obj); FIXME("(%s, %s, %p) stub!\n", debugstr_guid(rclsid), debugstr_guid(riid), obj);
return CLASS_E_CLASSNOTAVAILABLE; return CLASS_E_CLASSNOTAVAILABLE;
} }
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
MODULE = comcat.dll MODULE = comcat.dll
IMPORTS = ole32 IMPORTS = ole32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
comcat_main.c
RC_SRCS = \ RC_SRCS = \
version.rc version.rc
...@@ -247,19 +247,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) ...@@ -247,19 +247,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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);
}
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(comsvcs); WINE_DEFAULT_DEBUG_CHANNEL(comsvcs);
static HINSTANCE COMSVCS_hInstance;
typedef struct dispensermanager typedef struct dispensermanager
{ {
IDispenserManager IDispenserManager_iface; IDispenserManager IDispenserManager_iface;
...@@ -356,18 +354,6 @@ static HRESULT WINAPI dispenser_manager_cf_CreateInstance(IClassFactory *iface, ...@@ -356,18 +354,6 @@ static HRESULT WINAPI dispenser_manager_cf_CreateInstance(IClassFactory *iface,
return ret; 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 ) static HRESULT WINAPI comsvcscf_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv )
{ {
*ppv = NULL; *ppv = NULL;
...@@ -1031,19 +1017,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) ...@@ -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); FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
@ stdcall CredUnPackAuthenticationBufferW(long ptr long ptr ptr ptr ptr ptr ptr) @ stdcall CredUnPackAuthenticationBufferW(long ptr long ptr ptr ptr ptr ptr ptr)
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject @ stub DllGetClassObject
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stdcall SspiPromptForCredentialsW(wstr ptr long wstr ptr ptr ptr long) @ stdcall SspiPromptForCredentialsW(wstr ptr long wstr ptr ptr ptr long)
...@@ -26,5 +26,5 @@ ...@@ -26,5 +26,5 @@
@ stub CryptExtOpenSTRW @ stub CryptExtOpenSTRW
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject @ stub DllGetClassObject
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
37 stdcall CryptUIWizImport(long ptr wstr ptr ptr) 37 stdcall CryptUIWizImport(long ptr wstr ptr ptr)
38 stub CryptUIWizQueryCertRequestNoDS 38 stub CryptUIWizQueryCertRequestNoDS
39 stub CryptUIWizSubmitCertRequestNoDS 39 stub CryptUIWizSubmitCertRequestNoDS
40 stub DllRegisterServer 40 stdcall -private DllRegisterServer()
41 stub DllUnregisterServer 41 stdcall -private DllUnregisterServer()
42 stub EnrollmentCOMObjectFactory_getInstance 42 stub EnrollmentCOMObjectFactory_getInstance
43 stub I_CryptUIProtect 43 stub I_CryptUIProtect
44 stub I_CryptUIProtectFailure 44 stub I_CryptUIProtectFailure
......
...@@ -40,20 +40,6 @@ ...@@ -40,20 +40,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(d3dxof); 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 * DirectX File ClassFactory
*/ */
...@@ -218,19 +204,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -218,19 +204,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*ppv = &(factory->IClassFactory_iface); *ppv = &(factory->IClassFactory_iface);
return S_OK; 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 );
}
...@@ -778,16 +778,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out) ...@@ -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) * DllMain (DDRAW.0)
* *
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddrawex); WINE_DEFAULT_DEBUG_CHANNEL(ddrawex);
static HINSTANCE instance;
struct ddrawex_class_factory struct ddrawex_class_factory
{ {
IClassFactory IClassFactory_iface; IClassFactory IClassFactory_iface;
...@@ -237,35 +235,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out) ...@@ -237,35 +235,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
return S_OK; 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 );
}
...@@ -96,8 +96,6 @@ static const IClassFactoryVtbl ClassFactoryVtbl = { ...@@ -96,8 +96,6 @@ static const IClassFactoryVtbl ClassFactoryVtbl = {
ClassFactory_LockServer ClassFactory_LockServer
}; };
static HINSTANCE dhtmled_instance;
/****************************************************************** /******************************************************************
* DllMain (dhtmled.ocx.@) * DllMain (dhtmled.ocx.@)
*/ */
...@@ -109,7 +107,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, VOID *reserved) ...@@ -109,7 +107,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, VOID *reserved)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(instance); DisableThreadLibraryCalls(instance);
dhtmled_instance = instance;
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (reserved) break; if (reserved) break;
...@@ -135,21 +132,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *out) ...@@ -135,21 +132,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *out)
FIXME("no class for %s\n", debugstr_guid(clsid)); FIXME("no class for %s\n", debugstr_guid(clsid));
return CLASS_E_CLASSNOTAVAILABLE; 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);
}
...@@ -1680,22 +1680,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -1680,22 +1680,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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 * DInput hook thread
*/ */
......
...@@ -30,34 +30,6 @@ ...@@ -30,34 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(manipulation); 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 struct directmanipulation
{ {
IDirectManipulationManager2 IDirectManipulationManager2_iface; IDirectManipulationManager2 IDirectManipulationManager2_iface;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmband); WINE_DEFAULT_DEBUG_CHANNEL(dmband);
static HINSTANCE instance;
LONG DMBAND_refCount = 0; LONG DMBAND_refCount = 0;
typedef struct { typedef struct {
...@@ -112,21 +111,6 @@ static IClassFactoryImpl Band_CF = {{&classfactory_vtbl}, create_dmband}; ...@@ -112,21 +111,6 @@ static IClassFactoryImpl Band_CF = {{&classfactory_vtbl}, create_dmband};
static IClassFactoryImpl BandTrack_CF = {{&classfactory_vtbl}, create_dmbandtrack}; 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.@) * DllCanUnloadNow (DMBAND.@)
* *
* *
...@@ -154,19 +138,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmcompos); WINE_DEFAULT_DEBUG_CHANNEL(dmcompos);
static HINSTANCE instance;
LONG DMCOMPOS_refCount = 0; LONG DMCOMPOS_refCount = 0;
typedef struct { typedef struct {
...@@ -137,20 +136,6 @@ static IClassFactoryImpl Template_CF = {{&classfactory_vtbl}, create_direct_musi ...@@ -137,20 +136,6 @@ static IClassFactoryImpl Template_CF = {{&classfactory_vtbl}, create_direct_musi
static IClassFactoryImpl SignPostTrack_CF = {{&classfactory_vtbl}, create_dmsignposttrack}; 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.@) * DllCanUnloadNow (DMCOMPOS.@)
* *
* *
...@@ -192,25 +177,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { ...@@ -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); WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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
*
*
*/
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmime); WINE_DEFAULT_DEBUG_CHANNEL(dmime);
static HINSTANCE instance;
LONG DMIME_refCount = 0; LONG DMIME_refCount = 0;
typedef struct { typedef struct {
...@@ -138,21 +137,6 @@ static IClassFactoryImpl AudioPath_CF = {{&classfactory_vtbl}, create_dmaudiopat ...@@ -138,21 +137,6 @@ static IClassFactoryImpl AudioPath_CF = {{&classfactory_vtbl}, create_dmaudiopat
static IClassFactoryImpl WaveTrack_CF = {{&classfactory_vtbl}, create_dmwavetrack}; 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) * DllCanUnloadNow (DMIME.1)
* *
* *
...@@ -233,19 +217,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmloader); WINE_DEFAULT_DEBUG_CHANNEL(dmloader);
static HINSTANCE instance;
LONG module_ref = 0; LONG module_ref = 0;
typedef struct { typedef struct {
...@@ -125,18 +124,6 @@ static IClassFactoryImpl dm_loader_CF = {{&classfactory_vtbl}, create_dmloader}; ...@@ -125,18 +124,6 @@ static IClassFactoryImpl dm_loader_CF = {{&classfactory_vtbl}, create_dmloader};
static IClassFactoryImpl dm_container_CF = {{&classfactory_vtbl}, create_dmcontainer}; 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.@) * DllCanUnloadNow (DMLOADER.@)
*/ */
HRESULT WINAPI DllCanUnloadNow (void) HRESULT WINAPI DllCanUnloadNow (void)
...@@ -165,19 +152,3 @@ HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -165,19 +152,3 @@ HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN(": no class found\n"); WARN(": no class found\n");
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmscript); WINE_DEFAULT_DEBUG_CHANNEL(dmscript);
static HINSTANCE instance;
LONG DMSCRIPT_refCount = 0; LONG DMSCRIPT_refCount = 0;
typedef struct { typedef struct {
...@@ -142,21 +141,6 @@ static IClassFactoryImpl ScriptAutoImplAudioPath_CF = {{&classfactory_vtbl}, ...@@ -142,21 +141,6 @@ static IClassFactoryImpl ScriptAutoImplAudioPath_CF = {{&classfactory_vtbl},
static IClassFactoryImpl ScriptAutoImplSong_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.@) * DllCanUnloadNow (DMSCRIPT.@)
* *
* *
...@@ -220,20 +204,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmstyle); WINE_DEFAULT_DEBUG_CHANNEL(dmstyle);
static HINSTANCE instance;
LONG DMSTYLE_refCount = 0; LONG DMSTYLE_refCount = 0;
typedef struct { typedef struct {
...@@ -139,21 +138,6 @@ static IClassFactoryImpl AuditionTrack_CF = {{&classfactory_vtbl}, create_dmaudi ...@@ -139,21 +138,6 @@ static IClassFactoryImpl AuditionTrack_CF = {{&classfactory_vtbl}, create_dmaudi
static IClassFactoryImpl MuteTrack_CF = {{&classfactory_vtbl}, create_dmmutetrack}; 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) * DllCanUnloadNow (DMSTYLE.1)
* *
* *
...@@ -208,19 +192,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { ...@@ -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); WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmsynth); WINE_DEFAULT_DEBUG_CHANNEL(dmsynth);
static HINSTANCE instance;
LONG DMSYNTH_refCount = 0; LONG DMSYNTH_refCount = 0;
typedef struct { typedef struct {
...@@ -113,21 +112,6 @@ static IClassFactoryImpl SynthSink_CF = {{&classfactory_vtbl}, ...@@ -113,21 +112,6 @@ static IClassFactoryImpl SynthSink_CF = {{&classfactory_vtbl},
DMUSIC_CreateDirectMusicSynthSinkImpl}; 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.@) * DllCanUnloadNow (DMSYNTH.@)
* *
* *
...@@ -161,22 +145,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -161,22 +145,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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 * Helper functions
* *
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dmusic); WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
static HINSTANCE instance;
LONG DMUSIC_refCount = 0; LONG DMUSIC_refCount = 0;
typedef struct { typedef struct {
...@@ -124,21 +123,6 @@ static IClassFactoryImpl Collection_CF = {{&classfactory_vtbl}, ...@@ -124,21 +123,6 @@ static IClassFactoryImpl Collection_CF = {{&classfactory_vtbl},
DMUSIC_CreateDirectMusicCollectionImpl}; 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.@) * DllCanUnloadNow (DMUSIC.@)
* *
* *
...@@ -171,22 +155,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -171,22 +155,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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 * Helper functions
* *
......
...@@ -68,10 +68,8 @@ ...@@ -68,10 +68,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(dplay); WINE_DEFAULT_DEBUG_CHANNEL(dplay);
static HINSTANCE instance;
/* This is a globally exported variable at ordinal 6 of DPLAYX.DLL */ /* 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 ) BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
...@@ -82,7 +80,6 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) ...@@ -82,7 +80,6 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
switch ( fdwReason ) switch ( fdwReason )
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
/* First instance perform construction of global processor data */ /* First instance perform construction of global processor data */
return DPLAYX_ConstructData(); return DPLAYX_ConstructData();
...@@ -114,19 +111,3 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -114,19 +111,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
return hr; return hr;
} }
/***********************************************************************
* DllRegisterServer (DPLAYX.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DPLAYX.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dpnet); WINE_DEFAULT_DEBUG_CHANNEL(dpnet);
static HINSTANCE instance;
static BOOL winsock_loaded = FALSE; static BOOL winsock_loaded = FALSE;
static BOOL WINAPI winsock_startup(INIT_ONCE *once, void *param, void **context) 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) ...@@ -68,7 +66,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch(fdwReason) switch(fdwReason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL); DisableThreadLibraryCalls(hInstDLL);
break; break;
...@@ -184,19 +181,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); FIXME("(%s,%s,%p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -39,18 +39,6 @@ HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface) ...@@ -39,18 +39,6 @@ HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface)
/****************************************************************** /******************************************************************
* DllRegisterServer (DPNHPAST.@)
*
*
*/
HRESULT WINAPI DllRegisterServer(void)
{
FIXME(":stub\n");
return S_OK;
}
/******************************************************************
* DllGetClassObject (DPNHPAST.@) * DllGetClassObject (DPNHPAST.@)
* *
* *
...@@ -60,15 +48,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -60,15 +48,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
FIXME(":stub\n"); FIXME(":stub\n");
return E_FAIL; return E_FAIL;
} }
/******************************************************************
* DllUnregisterServer (DPNHPAST.@)
*
*
*/
HRESULT WINAPI DllUnregisterServer(void)
{
FIXME(":stub\n");
return S_OK;
}
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dpvoice); WINE_DEFAULT_DEBUG_CHANNEL(dpvoice);
static HINSTANCE DPVOICE_hInstance;
typedef struct typedef struct
{ {
IClassFactory IClassFactory_iface; IClassFactory IClassFactory_iface;
...@@ -105,23 +103,6 @@ HRESULT WINAPI DirectPlayVoiceCreate(LPCGUID pIID, void **ppvInterface) ...@@ -105,23 +103,6 @@ HRESULT WINAPI DirectPlayVoiceCreate(LPCGUID pIID, void **ppvInterface)
return E_NOTIMPL; 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) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
{ {
int i = 0; int i = 0;
...@@ -142,13 +123,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) ...@@ -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); FIXME("(%s,%s,%p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; return CLASS_E_CLASSNOTAVAILABLE;
} }
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( DPVOICE_hInstance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( DPVOICE_hInstance );
}
MODULE = drmclien.dll MODULE = drmclien.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
main.c
@ stub DllMain @ stdcall -private DllMain(long long ptr)
@ stub CanDecrypt @ stub CanDecrypt
@ stub Decrypt @ stub Decrypt
@ stub RequestLicense @ stub RequestLicense
...@@ -27,5 +27,5 @@ ...@@ -27,5 +27,5 @@
@ stub ?GetPublicKey@CDRMLiteCrypto@@QAEJPAUPKCERT@@@Z @ stub ?GetPublicKey@CDRMLiteCrypto@@QAEJPAUPKCERT@@@Z
@ stub ?QueryXferToPMEx@CDRMLiteCrypto@@QAEJPBDKPAKPAEK2K12@Z @ stub ?QueryXferToPMEx@CDRMLiteCrypto@@QAEJPBDKPAKPAEK2K12@Z
@ stub ?RestoreLicenses@CDRMLiteCrypto@@QAEJKPAEPAGPAUIUnknown@@PAHPAX@Z @ stub ?RestoreLicenses@CDRMLiteCrypto@@QAEJKPAEPAGPAUIUnknown@@PAHPAX@Z
@ stdcall DllRegisterServer() @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
/*
*
* 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;
}
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dsdmo); WINE_DEFAULT_DEBUG_CHANNEL(dsdmo);
static HINSTANCE dsdmo_instance;
struct effect struct effect
{ {
IMediaObject IMediaObject_iface; IMediaObject IMediaObject_iface;
...@@ -799,19 +797,6 @@ static HRESULT waves_reverb_create(IUnknown *outer, IUnknown **out) ...@@ -799,19 +797,6 @@ static HRESULT waves_reverb_create(IUnknown *outer, IUnknown **out)
return S_OK; 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 struct class_factory
{ {
IClassFactory IClassFactory_iface; IClassFactory IClassFactory_iface;
...@@ -913,15 +898,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, void **out) ...@@ -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)); FIXME("%s not available, returning CLASS_E_CLASSNOTAVAILABLE.\n", debugstr_guid(clsid));
return CLASS_E_CLASSNOTAVAILABLE; 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);
}
...@@ -92,7 +92,6 @@ const WCHAR wine_vxd_drv[] = L"winemm.vxd"; ...@@ -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 */ /* All default settings, you most likely don't want to touch these, see wiki on UsefulRegistryKeys */
int ds_hel_buflen = 32768 * 2; int ds_hel_buflen = 32768 * 2;
static HINSTANCE instance;
/* /*
* Get a config key from either the app-specific or the default config * 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) ...@@ -775,7 +774,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason) { switch (fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL); DisableThreadLibraryCalls(hInstDLL);
/* Increase refcount on dsound by 1 */ /* Increase refcount on dsound by 1 */
GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)hInstDLL, &hInstDLL); GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)hInstDLL, &hInstDLL);
...@@ -788,19 +786,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -788,19 +786,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
} }
return TRUE; return TRUE;
} }
/***********************************************************************
* DllRegisterServer (DSOUND.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer (DSOUND.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dsquery); WINE_DEFAULT_DEBUG_CHANNEL(dsquery);
static HINSTANCE instance;
/****************************************************************** /******************************************************************
* IClassFactory implementation * IClassFactory implementation
*/ */
...@@ -197,24 +195,6 @@ static HRESULT CommonQuery_create(IUnknown *outer, REFIID riid, void **out) ...@@ -197,24 +195,6 @@ static HRESULT CommonQuery_create(IUnknown *outer, REFIID riid, void **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.@) * DllGetClassObject (DSQUERY.@)
*/ */
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
...@@ -245,19 +225,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out) ...@@ -245,19 +225,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **out)
*out = NULL; *out = NULL;
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h" #include "wine/heap.h"
static HINSTANCE instance;
WINE_DEFAULT_DEBUG_CHANNEL(dssenh); WINE_DEFAULT_DEBUG_CHANNEL(dssenh);
#define MAGIC_KEY (('K' << 24) | ('E' << 16) | ('Y' << 8) | '0') #define MAGIC_KEY (('K' << 24) | ('E' << 16) | ('Y' << 8) | '0')
...@@ -1031,33 +1029,3 @@ BOOL WINAPI CPVerifySignature( HCRYPTPROV hprov, HCRYPTHASH hhash, const BYTE *s ...@@ -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 ); 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 );
}
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr) @ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stub DllInstall @ stub DllInstall
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stub DsBrowseForContainerA @ stub DsBrowseForContainerA
@ stub DsBrowseForContainerW @ stub DsBrowseForContainerW
@ stub DsGetFriendlyClassName @ stub DsGetFriendlyClassName
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dswave); WINE_DEFAULT_DEBUG_CHANNEL(dswave);
static HINSTANCE instance;
LONG DSWAVE_refCount = 0; LONG DSWAVE_refCount = 0;
typedef struct { typedef struct {
...@@ -119,21 +118,6 @@ static const IClassFactoryVtbl WaveCF_Vtbl = { ...@@ -119,21 +118,6 @@ static const IClassFactoryVtbl WaveCF_Vtbl = {
static IClassFactoryImpl Wave_CF = {{&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.@) * DllCanUnloadNow (DSWAVE.@)
* *
* *
...@@ -161,19 +145,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -36,23 +36,6 @@ ...@@ -36,23 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dx8vb); 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 { typedef struct {
IClassFactory IClassFactory_iface; IClassFactory IClassFactory_iface;
...@@ -178,13 +161,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) ...@@ -178,13 +161,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
*ppv = &factory->IClassFactory_iface; *ppv = &factory->IClassFactory_iface;
return S_OK; return S_OK;
} }
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources(instance_dx8vb);
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources(instance_dx8vb);
}
...@@ -151,19 +151,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); FIXME("(%s,%s,%p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(evr); WINE_DEFAULT_DEBUG_CHANNEL(evr);
static HINSTANCE instance_evr;
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{ {
switch (reason) switch (reason)
...@@ -181,16 +179,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) ...@@ -181,16 +179,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
return S_OK; 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, HRESULT WINAPI MFCreateVideoMixerAndPresenter(IUnknown *mixer_outer, IUnknown *presenter_outer,
REFIID riid_mixer, void **mixer, REFIID riid_presenter, void **presenter) REFIID riid_mixer, void **mixer, REFIID riid_presenter, void **presenter)
{ {
......
...@@ -207,19 +207,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) ...@@ -207,19 +207,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stdcall -private ServiceMain(long ptr) @ stdcall -private ServiceMain(long ptr)
...@@ -6,8 +6,7 @@ EXTRADLLFLAGS = -mno-cygwin ...@@ -6,8 +6,7 @@ EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
factory.c \ factory.c \
gameexplorer.c \ gameexplorer.c \
gamestatistics.c \ gamestatistics.c
main.c
IDL_SRCS = gameux_tlb.idl IDL_SRCS = gameux_tlb.idl
......
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "ole2.h" #include "ole2.h"
#include "shobjidl.h"
#include "initguid.h"
#include "gameux.h" #include "gameux.h"
#include "gameux_private.h" #include "gameux_private.h"
......
/*
* 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 );
}
MODULE = gpkcsp.dll MODULE = gpkcsp.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
main.c
/*
* 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;
}
...@@ -588,19 +588,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); FIXME("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(hlink); WINE_DEFAULT_DEBUG_CHANNEL(hlink);
static HINSTANCE instance;
typedef HRESULT (*LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*); typedef HRESULT (*LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
typedef struct typedef struct
...@@ -43,20 +41,6 @@ static inline CFImpl *impl_from_IClassFactory(IClassFactory *iface) ...@@ -43,20 +41,6 @@ static inline CFImpl *impl_from_IClassFactory(IClassFactory *iface)
return CONTAINING_RECORD(iface, CFImpl, 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.@) * HlinkCreateFromMoniker (HLINK.@)
*/ */
...@@ -579,19 +563,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv) ...@@ -579,19 +563,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return IClassFactory_QueryInterface(pcf, iid, 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 );
}
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(hnetcfg); WINE_DEFAULT_DEBUG_CHANNEL(hnetcfg);
static HINSTANCE instance;
typedef HRESULT (*fnCreateInstance)( IUnknown *pUnkOuter, LPVOID *ppObj ); typedef HRESULT (*fnCreateInstance)( IUnknown *pUnkOuter, LPVOID *ppObj );
typedef struct typedef struct
...@@ -124,7 +122,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved) ...@@ -124,7 +122,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
switch(fdwReason) { switch(fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL); DisableThreadLibraryCalls(hInstDLL);
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
...@@ -165,19 +162,3 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv ) ...@@ -165,19 +162,3 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if (!cf) return CLASS_E_CLASSNOTAVAILABLE; if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
return IClassFactory_QueryInterface( cf, iid, ppv ); 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 );
}
...@@ -260,24 +260,6 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -260,24 +260,6 @@ HRESULT WINAPI DllCanUnloadNow(void)
} }
/*********************************************************************** /***********************************************************************
* 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.@) * IEGetWriteableHKCU (ieframe.@)
*/ */
HRESULT WINAPI IEGetWriteableHKCU(HKEY *pkey) HRESULT WINAPI IEGetWriteableHKCU(HKEY *pkey)
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(inetcomm); WINE_DEFAULT_DEBUG_CHANNEL(inetcomm);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
static IMimeInternational *international; static IMimeInternational *international;
...@@ -50,7 +48,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -50,7 +48,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
instance = hinstDLL;
if (!InternetTransport_RegisterClass(hinstDLL)) if (!InternetTransport_RegisterClass(hinstDLL))
return FALSE; return FALSE;
MimeInternational_Construct(&international); MimeInternational_Construct(&international);
...@@ -208,19 +205,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv) ...@@ -208,19 +205,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return IClassFactory_QueryInterface( cf, iid, 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 );
}
...@@ -37,20 +37,6 @@ ...@@ -37,20 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(infosoft); 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 *); DECLSPEC_HIDDEN extern HRESULT WINAPI wb_Constructor(IUnknown*, REFIID, LPVOID *);
typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*); typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
...@@ -145,20 +131,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv) ...@@ -145,20 +131,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return IClassFactory_QueryInterface(pcf, iid, 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 );
}
MODULE = initpki.dll MODULE = initpki.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
main.c
/*
* 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;
}
...@@ -27,21 +27,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) ...@@ -27,21 +27,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid)); FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
return CLASS_E_CLASSNOTAVAILABLE; 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 */
}
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(inseng); WINE_DEFAULT_DEBUG_CHANNEL(inseng);
static HINSTANCE instance;
struct InstallEngine { struct InstallEngine {
IInstallEngine2 IInstallEngine2_iface; IInstallEngine2 IInstallEngine2_iface;
LONG ref; LONG ref;
...@@ -358,18 +356,6 @@ static const IClassFactoryVtbl InstallEngineCFVtbl = { ...@@ -358,18 +356,6 @@ static const IClassFactoryVtbl InstallEngineCFVtbl = {
static IClassFactory InstallEngineCF = { &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.@) * DllGetClassObject (INSENG.@)
*/ */
...@@ -384,22 +370,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv) ...@@ -384,22 +370,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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 ) 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 ); FIXME("%p %p %p %p %p\n", a, b, c, d, e );
......
MODULE = itircl.dll MODULE = itircl.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
itircl_main.c
/*
* 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;
}
...@@ -47,18 +47,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(itss); ...@@ -47,18 +47,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(itss);
static HRESULT ITSS_create(IUnknown *pUnkOuter, LPVOID *ppObj); static HRESULT ITSS_create(IUnknown *pUnkOuter, LPVOID *ppObj);
LONG dll_count = 0; 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 * ITSS ClassFactory
...@@ -394,19 +382,3 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -394,19 +382,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
TRACE("dll_count = %u\n", dll_count); TRACE("dll_count = %u\n", dll_count);
return dll_count ? S_FALSE : S_OK; 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 );
}
...@@ -204,21 +204,3 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -204,21 +204,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
return module_ref ? S_FALSE : S_OK; 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);
}
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h" #include "wine/heap.h"
static HINSTANCE instance;
WINE_DEFAULT_DEBUG_CHANNEL(jsproxy); WINE_DEFAULT_DEBUG_CHANNEL(jsproxy);
static CRITICAL_SECTION cs_jsproxy; static CRITICAL_SECTION cs_jsproxy;
...@@ -46,24 +44,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug = ...@@ -46,24 +44,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
}; };
static CRITICAL_SECTION cs_jsproxy = { &critsect_debug, -1, 0, 0, 0, 0 }; 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 ) static inline WCHAR *strdupAW( const char *src, int len )
{ {
WCHAR *dst = NULL; WCHAR *dst = NULL;
......
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject @ stub DllGetClassObject
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stub KsGetMediaType @ stub KsGetMediaType
@ stub KsGetMediaTypeCount @ stub KsGetMediaTypeCount
@ stub KsGetMultiplePinFactoryItems @ stub KsGetMultiplePinFactoryItems
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mfplat); WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
static HINSTANCE mf_instance;
extern const GUID CLSID_FileSchemePlugin; extern const GUID CLSID_FileSchemePlugin;
struct activate_object struct activate_object
...@@ -1048,35 +1047,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj) ...@@ -1048,35 +1047,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
return CLASS_E_CLASSNOTAVAILABLE; 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) static HRESULT prop_string_vector_append(PROPVARIANT *vector, unsigned int *capacity, BOOL unique, const WCHAR *str)
{ {
WCHAR *ptrW; WCHAR *ptrW;
......
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject @ stub DllGetClassObject
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stdcall MFPCreateMediaPlayer(wstr long long ptr long ptr) @ stdcall MFPCreateMediaPlayer(wstr long long ptr long ptr)
@ stub MFPCreateMediaPlayerEx @ stub MFPCreateMediaPlayerEx
...@@ -44,31 +44,6 @@ ...@@ -44,31 +44,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mfplat); 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 stream_response
{ {
struct list entry; struct list entry;
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mmc); WINE_DEFAULT_DEBUG_CHANNEL(mmc);
static HINSTANCE MMC_hInstance;
static HRESULT WINAPI mmcversion_QueryInterface(IMMCVersionInfo *iface, REFIID riid, void **ppv) static HRESULT WINAPI mmcversion_QueryInterface(IMMCVersionInfo *iface, REFIID riid, void **ppv)
{ {
TRACE("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv); TRACE("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv);
...@@ -154,27 +152,4 @@ HRESULT WINAPI DllGetClassObject( REFCLSID riid, REFIID iid, LPVOID *ppv ) ...@@ -154,27 +152,4 @@ HRESULT WINAPI DllGetClassObject( REFCLSID riid, REFIID iid, LPVOID *ppv )
FIXME("Unsupported interface %s\n", debugstr_guid(riid)); FIXME("Unsupported interface %s\n", debugstr_guid(riid));
return CLASS_E_CLASSNOTAVAILABLE; 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;
} }
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi); WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi);
static HINSTANCE instance;
DriverFuncs drvs; DriverFuncs drvs;
const WCHAR drv_keyW[] = L"Software\\Wine\\Drivers"; const WCHAR drv_keyW[] = L"Software\\Wine\\Drivers";
...@@ -160,7 +158,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -160,7 +158,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason) switch (fdwReason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
...@@ -292,22 +289,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -292,22 +289,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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 { struct activate_async_op {
IActivateAudioInterfaceAsyncOperation IActivateAudioInterfaceAsyncOperation_iface; IActivateAudioInterfaceAsyncOperation IActivateAudioInterfaceAsyncOperation_iface;
LONG ref; LONG ref;
......
...@@ -32,20 +32,6 @@ ...@@ -32,20 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msado15); 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 ); typedef HRESULT (*fnCreateInstance)( void **obj );
struct msadocf struct msadocf
...@@ -151,22 +137,6 @@ HRESULT WINAPI DllGetClassObject( REFCLSID clsid, REFIID iid, void **obj ) ...@@ -151,22 +137,6 @@ HRESULT WINAPI DllGetClassObject( REFCLSID clsid, REFIID iid, void **obj )
return IClassFactory_QueryInterface( cf, iid, 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 ITypeLib *typelib;
static ITypeInfo *typeinfos[LAST_tid]; static ITypeInfo *typeinfos[LAST_tid];
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msctf); WINE_DEFAULT_DEBUG_CHANNEL(msctf);
static HINSTANCE MSCTF_hinstance;
typedef struct typedef struct
{ {
DWORD id; DWORD id;
...@@ -557,7 +555,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad) ...@@ -557,7 +555,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
switch (fdwReason) switch (fdwReason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
MSCTF_hinstance = hinst;
tlsIndex = TlsAlloc(); tlsIndex = TlsAlloc();
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
...@@ -588,22 +585,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *ppvOut) ...@@ -588,22 +585,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, LPVOID *ppvOut)
} }
/*********************************************************************** /***********************************************************************
* 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.@) * TF_CreateThreadMgr (MSCTF.@)
*/ */
HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim) HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim)
......
...@@ -84,6 +84,6 @@ ...@@ -84,6 +84,6 @@
@ stub DRMVerify @ stub DRMVerify
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject @ stub DllGetClassObject
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stub __AddMachineCertToLicenseStore @ stub __AddMachineCertToLicenseStore
...@@ -216,19 +216,3 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -216,19 +216,3 @@ HRESULT WINAPI DllCanUnloadNow(void)
{ {
return dll_count == 0 ? S_OK : S_FALSE; 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 );
}
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msident); WINE_DEFAULT_DEBUG_CHANNEL(msident);
static HINSTANCE msident_instance;
typedef struct { typedef struct {
IEnumUserIdentity IEnumUserIdentity_iface; IEnumUserIdentity IEnumUserIdentity_iface;
LONG ref; LONG ref;
...@@ -274,24 +272,6 @@ static const IClassFactoryVtbl UserIdentityManagerCFVtbl = { ...@@ -274,24 +272,6 @@ static const IClassFactoryVtbl UserIdentityManagerCFVtbl = {
static IClassFactory UserIdentityManagerCF = { &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.@) * DllGetClassObject (msident.@)
*/ */
...@@ -305,21 +285,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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);
}
...@@ -35,23 +35,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msimtf); ...@@ -35,23 +35,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msimtf);
extern HRESULT ActiveIMMApp_Constructor(IUnknown *punkOuter, IUnknown **ppOut); 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 { typedef struct {
IClassFactory IClassFactory_iface; IClassFactory IClassFactory_iface;
...@@ -143,19 +126,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); FIXME("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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 );
}
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
8 stub MsiSIPRemoveSignedDataMsg 8 stub MsiSIPRemoveSignedDataMsg
9 stub MsiSIPCreateIndirectData 9 stub MsiSIPCreateIndirectData
10 stub MsiSIPVerifyIndirectData 10 stub MsiSIPVerifyIndirectData
11 stdcall DllRegisterServer() 11 stdcall -private DllRegisterServer()
12 stdcall DllUnregisterServer() 12 stdcall -private DllUnregisterServer()
...@@ -41,23 +41,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv) ...@@ -41,23 +41,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE; 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;
}
...@@ -189,8 +189,6 @@ struct ScriptControl { ...@@ -189,8 +189,6 @@ struct ScriptControl {
ScriptError *error; ScriptError *error;
}; };
static HINSTANCE msscript_instance;
typedef enum tid_t { typedef enum tid_t {
IScriptControl_tid, IScriptControl_tid,
IScriptError_tid, IScriptError_tid,
...@@ -4014,7 +4012,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) ...@@ -4014,7 +4012,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
switch(reason) { switch(reason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
msscript_instance = instance;
DisableThreadLibraryCalls(instance); DisableThreadLibraryCalls(instance);
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
...@@ -4088,21 +4085,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -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); FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE; 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);
}
@ stub DllRegisterServer @ stdcall -private DllRegisterServer()
@ stub DllUnregisterServer @ stdcall -private DllUnregisterServer()
@ stub FreeCryptProvFromCert @ stub FreeCryptProvFromCert
@ stub GetCryptProvFromCert @ stub GetCryptProvFromCert
@ stdcall PvkFreeCryptProv(ptr wstr long wstr) @ stdcall PvkFreeCryptProv(ptr wstr long wstr)
......
MODULE = mssip32.dll MODULE = mssip32.dll
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
main.c
/*
* 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;
}
...@@ -32,24 +32,8 @@ ...@@ -32,24 +32,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(mstask); WINE_DEFAULT_DEBUG_CHANNEL(mstask);
static HINSTANCE hInst;
LONG dll_ref = 0; 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) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
{ {
TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv); TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
...@@ -67,16 +51,6 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -67,16 +51,6 @@ HRESULT WINAPI DllCanUnloadNow(void)
return dll_ref != 0 ? S_FALSE : S_OK; 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) DWORD WINAPI NetrJobAdd_wrapper(ATSVC_HANDLE server_name, LPAT_INFO info, LPDWORD jobid)
{ {
return NetrJobAdd(server_name, info, jobid); return NetrJobAdd(server_name, info, jobid);
......
MODULE = msxml.dll MODULE = msxml.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = main.c
IDL_SRCS = msxml_tlb.idl IDL_SRCS = msxml_tlb.idl
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
/*
* 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 );
}
MODULE = msxml2.dll MODULE = msxml2.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = main.c
IDL_SRCS = msxml2_tlb.idl IDL_SRCS = msxml2_tlb.idl
/*
* 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 );
}
...@@ -467,19 +467,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved) ...@@ -467,19 +467,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
} }
return TRUE; 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 );
}
MODULE = msxml4.dll MODULE = msxml4.dll
IMPORTS = ole32 advapi32 IMPORTS = ole32 advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c
IDL_SRCS = msxml4_tlb.idl IDL_SRCS = msxml4_tlb.idl
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
/*
* 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 );
}
MODULE = msxml6.dll MODULE = msxml6.dll
IMPORTS = oleaut32 ole32 advapi32 IMPORTS = oleaut32 ole32 advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
IDL_SRCS = msxml6_tlb.idl IDL_SRCS = msxml6_tlb.idl
/*
* 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 );
}
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(netcfgx); WINE_DEFAULT_DEBUG_CHANNEL(netcfgx);
static HINSTANCE NETCFGX_hInstance;
typedef HRESULT (*ClassFactoryCreateInstanceFunc)(IUnknown **); typedef HRESULT (*ClassFactoryCreateInstanceFunc)(IUnknown **);
typedef struct netcfgcf typedef struct netcfgcf
...@@ -120,24 +118,6 @@ static const struct IClassFactoryVtbl netcfgcf_vtbl = ...@@ -120,24 +118,6 @@ static const struct IClassFactoryVtbl netcfgcf_vtbl =
netcfgcf_LockServer 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 }; static netcfgcf netconfigcf = { {&netcfgcf_vtbl}, INetCfg_CreateInstance };
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
...@@ -156,13 +136,3 @@ 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); 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 );
}
...@@ -29,20 +29,6 @@ ...@@ -29,20 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(netprofm); 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 struct netprofm_cf
{ {
IClassFactory IClassFactory_iface; IClassFactory IClassFactory_iface;
...@@ -130,19 +116,3 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv ) ...@@ -130,19 +116,3 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if (!cf) return CLASS_E_CLASSNOTAVAILABLE; if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
return IClassFactory_QueryInterface( cf, iid, ppv ); 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 );
}
...@@ -26,23 +26,6 @@ ...@@ -26,23 +26,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(objsel); WINE_DEFAULT_DEBUG_CHANNEL(objsel);
LONG dll_refs = 0; 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.@) * DllGetClassObject (OBJSEL.@)
...@@ -70,24 +53,6 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -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) * OBJSEL_IDsObjectPicker_Destroy (also IUnknown)
*/ */
......
...@@ -165,19 +165,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj) ...@@ -165,19 +165,3 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
return CLASS_E_CLASSNOTAVAILABLE; return CLASS_E_CLASSNOTAVAILABLE;
} }
/***********************************************************************
* DllRegisterServer
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance );
}
/***********************************************************************
* DllUnregisterServer
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance );
}
...@@ -31,24 +31,6 @@ ...@@ -31,24 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(ole); 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.@) * DllGetClassObject (OLEPRO32.@)
*/ */
HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv ) HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment