mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
kernel32: Moved GetProcessImageFileName implementation from psapi to kernel32.
This commit is contained in:
parent
4429257358
commit
81aa05eab6
@ -767,6 +767,8 @@
|
|||||||
@ stdcall IsValidLocale(long long)
|
@ stdcall IsValidLocale(long long)
|
||||||
# @ stub IsValidUILanguage
|
# @ stub IsValidUILanguage
|
||||||
@ stdcall IsWow64Process(ptr ptr)
|
@ stdcall IsWow64Process(ptr ptr)
|
||||||
|
@ stdcall K32GetProcessImageFileNameA(long ptr long)
|
||||||
|
@ stdcall K32GetProcessImageFileNameW(long ptr long)
|
||||||
@ stdcall -i386 -private -register K32Thk1632Epilog() krnl386.exe16.K32Thk1632Epilog
|
@ stdcall -i386 -private -register K32Thk1632Epilog() krnl386.exe16.K32Thk1632Epilog
|
||||||
@ stdcall -i386 -private -register K32Thk1632Prolog() krnl386.exe16.K32Thk1632Prolog
|
@ stdcall -i386 -private -register K32Thk1632Prolog() krnl386.exe16.K32Thk1632Prolog
|
||||||
@ stdcall LCIDToLocaleName(long ptr long long)
|
@ stdcall LCIDToLocaleName(long ptr long long)
|
||||||
|
@ -3438,6 +3438,23 @@ cleanup:
|
|||||||
return !status;
|
return !status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* K32GetProcessImageFileNameA (KERNEL32.@)
|
||||||
|
*/
|
||||||
|
DWORD WINAPI K32GetProcessImageFileNameA( HANDLE process, LPSTR file, DWORD size )
|
||||||
|
{
|
||||||
|
FIXME("(%p, %p, %d) stub\n", process, file, size );
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* K32GetProcessImageFileNameW (KERNEL32.@)
|
||||||
|
*/
|
||||||
|
DWORD WINAPI K32GetProcessImageFileNameW( HANDLE process, LPWSTR file, DWORD size )
|
||||||
|
{
|
||||||
|
return QueryFullProcessImageNameW(process, PROCESS_NAME_NATIVE, file, &size) ? size : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* ProcessIdToSessionId (KERNEL32.@)
|
* ProcessIdToSessionId (KERNEL32.@)
|
||||||
* This function is available on Terminal Server 4SP4 and Windows 2000
|
* This function is available on Terminal Server 4SP4 and Windows 2000
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
@ stdcall GetModuleFileNameExW(long long ptr long)
|
@ stdcall GetModuleFileNameExW(long long ptr long)
|
||||||
@ stdcall GetModuleInformation(long long ptr long)
|
@ stdcall GetModuleInformation(long long ptr long)
|
||||||
@ stdcall GetPerformanceInfo(ptr long)
|
@ stdcall GetPerformanceInfo(ptr long)
|
||||||
@ stdcall GetProcessImageFileNameA(long ptr long)
|
@ stdcall GetProcessImageFileNameA(long ptr long) kernel32.K32GetProcessImageFileNameA
|
||||||
@ stdcall GetProcessImageFileNameW(long ptr long)
|
@ stdcall GetProcessImageFileNameW(long ptr long) kernel32.K32GetProcessImageFileNameW
|
||||||
@ stdcall GetProcessMemoryInfo(long ptr long)
|
@ stdcall GetProcessMemoryInfo(long ptr long)
|
||||||
@ stdcall GetWsChanges(long ptr long)
|
@ stdcall GetWsChanges(long ptr long)
|
||||||
@ stdcall InitializeProcessForWsWatch(long)
|
@ stdcall InitializeProcessForWsWatch(long)
|
||||||
|
@ -493,27 +493,6 @@ BOOL WINAPI GetPerformanceInfo( PPERFORMANCE_INFORMATION info, DWORD size )
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* GetProcessImageFileNameA (PSAPI.@)
|
|
||||||
*/
|
|
||||||
DWORD WINAPI GetProcessImageFileNameA( HANDLE process, LPSTR file, DWORD size )
|
|
||||||
{
|
|
||||||
FIXME("(%p, %p, %d) stub\n", process, file, size );
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* GetProcessImageFileNameW (PSAPI.@)
|
|
||||||
*/
|
|
||||||
DWORD WINAPI GetProcessImageFileNameW( HANDLE process, LPWSTR file, DWORD size )
|
|
||||||
{
|
|
||||||
BOOL success = QueryFullProcessImageNameW(process, PROCESS_NAME_NATIVE, file, &size);
|
|
||||||
if (success)
|
|
||||||
return size;
|
|
||||||
else
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* GetProcessMemoryInfo (PSAPI.@)
|
* GetProcessMemoryInfo (PSAPI.@)
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user