msident: Added DLL registration implementation.
This commit is contained in:
parent
5fd16ddedc
commit
064a5918df
@ -3,4 +3,6 @@ MODULE = msident.dll
|
|||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
msident.c
|
msident.c
|
||||||
|
|
||||||
|
IDL_R_SRCS = msident_classes.idl
|
||||||
|
|
||||||
@MAKE_DLL_RULES@
|
@MAKE_DLL_RULES@
|
||||||
|
@ -19,11 +19,15 @@
|
|||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
#include "msident.h"
|
||||||
|
#include "rpcproxy.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msident);
|
WINE_DEFAULT_DEBUG_CHANNEL(msident);
|
||||||
|
|
||||||
|
static HINSTANCE msident_instance;
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* DllMain (msident.@)
|
* DllMain (msident.@)
|
||||||
*/
|
*/
|
||||||
@ -36,6 +40,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
|
|||||||
case DLL_WINE_PREATTACH:
|
case DLL_WINE_PREATTACH:
|
||||||
return FALSE; /* prefer native version */
|
return FALSE; /* prefer native version */
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
|
msident_instance = hInstDLL;
|
||||||
DisableThreadLibraryCalls(hInstDLL);
|
DisableThreadLibraryCalls(hInstDLL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -59,3 +64,21 @@ HRESULT WINAPI DllCanUnloadNow(void)
|
|||||||
{
|
{
|
||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
@ stdcall -private DllCanUnloadNow()
|
@ stdcall -private DllCanUnloadNow()
|
||||||
@ stdcall -private DllGetClassObject(ptr ptr ptr)
|
@ stdcall -private DllGetClassObject(ptr ptr ptr)
|
||||||
|
@ stdcall -private DllRegisterServer() # not exported by native
|
||||||
|
@ stdcall -private DllUnregisterServer() # not exported by native
|
||||||
|
25
dlls/msident/msident_classes.idl
Normal file
25
dlls/msident/msident_classes.idl
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2012 Jacek Caban 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
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
helpstring("LW Identities"),
|
||||||
|
threading(both),
|
||||||
|
uuid(a9ae6c91-1d1b-11d2-b21a-00c04fa357fa)
|
||||||
|
]
|
||||||
|
coclass UserIdentityManager {}
|
Loading…
x
Reference in New Issue
Block a user