Skip to content
Snippets Groups Projects
Commit 882e16e4 authored by Đorđe Mančić's avatar Đorđe Mančić Committed by Alexandre Julliard
Browse files

kernelbase: Implement GetTempPath2A() and GetTempPath2W().

parent 5ffe201c
No related branches found
No related tags found
No related merge requests found
......@@ -862,6 +862,8 @@
@ stdcall GetTapeStatus(ptr)
@ stdcall -import GetTempFileNameA(str str long ptr)
@ stdcall -import GetTempFileNameW(wstr wstr long ptr)
@ stdcall -import GetTempPath2A(long ptr)
@ stdcall -import GetTempPath2W(long ptr)
@ stdcall -import GetTempPathA(long ptr)
@ stdcall -import GetTempPathW(long ptr)
@ stdcall -import GetThreadContext(long ptr)
......
......@@ -2476,6 +2476,28 @@ DWORD WINAPI DECLSPEC_HOTPATCH GetTempPathW( DWORD count, LPWSTR path )
}
/***********************************************************************
* GetTempPath2A (kernelbase.@)
*/
DWORD WINAPI DECLSPEC_HOTPATCH GetTempPath2A(DWORD count, LPSTR path)
{
/* TODO: Set temp path to C:\Windows\SystemTemp\ when a SYSTEM process calls this function */
FIXME("(%lu, %s) semi-stub\n", count, path);
return GetTempPathA(count, path);
}
/***********************************************************************
* GetTempPath2W (kernelbase.@)
*/
DWORD WINAPI DECLSPEC_HOTPATCH GetTempPath2W(DWORD count, LPWSTR path)
{
/* TODO: Set temp path to C:\Windows\SystemTemp\ when a SYSTEM process calls this function */
FIXME("(%lu, %s) semi-stub\n", count, debugstr_w(path));
return GetTempPathW(count, path);
}
/***********************************************************************
* GetWindowsDirectoryA (kernelbase.@)
*/
......
......@@ -739,6 +739,8 @@
# @ stub GetTargetPlatformContext
@ stdcall GetTempFileNameA(str str long ptr)
@ stdcall GetTempFileNameW(wstr wstr long ptr)
@ stdcall GetTempPath2W(long ptr)
@ stdcall GetTempPath2A(long ptr)
@ stdcall GetTempPathA(long ptr)
@ stdcall GetTempPathW(long ptr)
@ stdcall GetThreadContext(long ptr)
......
......@@ -34,6 +34,9 @@ typedef struct _CREATEFILE2_EXTENDED_PARAMETERS {
WINBASEAPI HANDLE WINAPI CreateFile2(LPCWSTR,DWORD,DWORD,DWORD,LPCREATEFILE2_EXTENDED_PARAMETERS);
WINBASEAPI DWORD WINAPI GetTempPath2A(DWORD,LPSTR);
WINBASEAPI DWORD WINAPI GetTempPath2W(DWORD,LPWSTR);
#ifdef __cplusplus
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment