mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
add stubs for CreateSymbolicLinkA/W
svn path=/trunk/; revision=17542
This commit is contained in:
parent
06c225119d
commit
362610233e
2 changed files with 49 additions and 0 deletions
|
@ -357,4 +357,51 @@ HANDLE STDCALL CreateFileW (LPCWSTR lpFileName,
|
|||
return FileHandle;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
BOOL STDCALL
|
||||
CreateSymbolicLinkW(IN LPCWSTR lpSymlinkFileName,
|
||||
IN LPCWSTR lpTargetFileName,
|
||||
IN DWORD dwFlags)
|
||||
{
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL STDCALL
|
||||
CreateSymbolicLinkA(IN LPCSTR lpSymlinkFileName,
|
||||
IN LPCSTR lpTargetFileName,
|
||||
IN DWORD dwFlags)
|
||||
{
|
||||
PWCHAR SymlinkW, TargetW;
|
||||
BOOL Ret;
|
||||
|
||||
if(!lpSymlinkFileName || !lpTargetFileName)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!(SymlinkW = FilenameA2W(lpSymlinkFileName, FALSE)))
|
||||
return FALSE;
|
||||
|
||||
if (!(TargetW = FilenameA2W(lpTargetFileName, TRUE)))
|
||||
return FALSE;
|
||||
|
||||
Ret = CreateSymbolicLinkW(SymlinkW,
|
||||
TargetW,
|
||||
dwFlags);
|
||||
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, TargetW);
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -135,6 +135,8 @@ CreateRemoteThread@28
|
|||
CreateSemaphoreA@16
|
||||
CreateSemaphoreW@16
|
||||
CreateSocketHandle@0
|
||||
CreateSymbolicLinkA@12
|
||||
CreateSymbolicLinkW@12
|
||||
CreateTapePartition@16
|
||||
CreateThread@24
|
||||
CreateTimerQueue@0
|
||||
|
|
Loading…
Reference in a new issue