ntdll: Implemented LdrAddRefDll.
This commit is contained in:
parent
b64530eee4
commit
447fda5206
|
@ -1820,6 +1820,30 @@ NTSTATUS WINAPI LdrGetDllHandle( LPCWSTR load_path, ULONG flags, const UNICODE_S
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* LdrAddRefDll (NTDLL.@)
|
||||||
|
*/
|
||||||
|
NTSTATUS WINAPI LdrAddRefDll( ULONG flags, HMODULE module )
|
||||||
|
{
|
||||||
|
NTSTATUS ret = STATUS_SUCCESS;
|
||||||
|
WINE_MODREF *wm;
|
||||||
|
|
||||||
|
if (flags) FIXME( "%p flags %x not implemented\n", module, flags );
|
||||||
|
|
||||||
|
RtlEnterCriticalSection( &loader_section );
|
||||||
|
|
||||||
|
if ((wm = get_modref( module )))
|
||||||
|
{
|
||||||
|
if (wm->ldr.LoadCount != -1) wm->ldr.LoadCount++;
|
||||||
|
TRACE( "(%s) ldr.LoadCount: %d\n", debugstr_w(wm->ldr.BaseDllName.Buffer), wm->ldr.LoadCount );
|
||||||
|
}
|
||||||
|
else ret = STATUS_INVALID_PARAMETER;
|
||||||
|
|
||||||
|
RtlLeaveCriticalSection( &loader_section );
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* LdrQueryProcessModuleInformation
|
* LdrQueryProcessModuleInformation
|
||||||
*
|
*
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
@ stub KiUserExceptionDispatcher
|
@ stub KiUserExceptionDispatcher
|
||||||
# @ stub LdrAccessOutOfProcessResource
|
# @ stub LdrAccessOutOfProcessResource
|
||||||
@ stdcall LdrAccessResource(long ptr ptr ptr)
|
@ stdcall LdrAccessResource(long ptr ptr ptr)
|
||||||
# @ stub LdrAddRefDll
|
@ stdcall LdrAddRefDll(long ptr)
|
||||||
# @ stub LdrAlternateResourcesEnabled
|
# @ stub LdrAlternateResourcesEnabled
|
||||||
# @ stub LdrCreateOutOfProcessImage
|
# @ stub LdrCreateOutOfProcessImage
|
||||||
# @ stub LdrDestroyOutOfProcessImage
|
# @ stub LdrDestroyOutOfProcessImage
|
||||||
|
|
|
@ -1731,6 +1731,7 @@ NTSTATUS WINAPIV DbgPrint(LPCSTR fmt, ...);
|
||||||
NTSTATUS WINAPIV DbgPrintEx(ULONG iComponentId, ULONG Level, LPCSTR fmt, ...);
|
NTSTATUS WINAPIV DbgPrintEx(ULONG iComponentId, ULONG Level, LPCSTR fmt, ...);
|
||||||
|
|
||||||
NTSTATUS WINAPI LdrAccessResource(HMODULE,const IMAGE_RESOURCE_DATA_ENTRY*,void**,PULONG);
|
NTSTATUS WINAPI LdrAccessResource(HMODULE,const IMAGE_RESOURCE_DATA_ENTRY*,void**,PULONG);
|
||||||
|
NTSTATUS WINAPI LdrAddRefDll(ULONG,HMODULE);
|
||||||
NTSTATUS WINAPI LdrFindResourceDirectory_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DIRECTORY**);
|
NTSTATUS WINAPI LdrFindResourceDirectory_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DIRECTORY**);
|
||||||
NTSTATUS WINAPI LdrFindResource_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DATA_ENTRY**);
|
NTSTATUS WINAPI LdrFindResource_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DATA_ENTRY**);
|
||||||
NTSTATUS WINAPI LdrGetDllHandle(LPCWSTR, ULONG, const UNICODE_STRING*, HMODULE*);
|
NTSTATUS WINAPI LdrGetDllHandle(LPCWSTR, ULONG, const UNICODE_STRING*, HMODULE*);
|
||||||
|
|
Loading…
Reference in New Issue