Commit 064a5918 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

msident: Added DLL registration implementation.

parent 5fd16dde
...@@ -3,4 +3,6 @@ MODULE = msident.dll ...@@ -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 @@ ...@@ -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) ...@@ -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) ...@@ -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);
}
@ 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
/*
* 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 {}
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