msident: Added DLL registration implementation.

This commit is contained in:
Jacek Caban 2012-03-12 13:02:03 +01:00 committed by Alexandre Julliard
parent 5fd16ddedc
commit 064a5918df
4 changed files with 52 additions and 0 deletions

View file

@ -3,4 +3,6 @@ MODULE = msident.dll
C_SRCS = \
msident.c
IDL_R_SRCS = msident_classes.idl
@MAKE_DLL_RULES@

View file

@ -19,11 +19,15 @@
#define COBJMACROS
#include "windows.h"
#include "msident.h"
#include "rpcproxy.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(msident);
static HINSTANCE msident_instance;
/******************************************************************
* DllMain (msident.@)
*/
@ -36,6 +40,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
msident_instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
}
@ -59,3 +64,21 @@ HRESULT WINAPI DllCanUnloadNow(void)
{
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);
}

View file

@ -1,2 +1,4 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer() # not exported by native
@ stdcall -private DllUnregisterServer() # not exported by native

View 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 {}