diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 2816d5b2ac9..3f0784545c6 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -224,8 +224,8 @@ @ stdcall CreateFileMappingA(long ptr long long long str) @ stdcall CreateFileMappingW(long ptr long long long wstr) @ stdcall CreateFileW(wstr long long ptr long long long) -# @ stub CreateHardLinkA -# @ stub CreateHardLinkW +@ stdcall CreateHardLinkA(str str ptr) +@ stdcall CreateHardLinkW(wstr wstr ptr) @ stdcall CreateIoCompletionPort(long long long long) @ stdcall CreateJobObjectA(ptr str) @ stdcall CreateJobObjectW(ptr wstr) diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c index aad260f9c4b..fca12ccd60f 100644 --- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -1193,6 +1193,32 @@ BOOL WINAPI MoveFileA( LPCSTR source, LPCSTR dest ) } +/************************************************************************* + * CreateHardLinkW (KERNEL32.@) + */ +BOOL WINAPI CreateHardLinkW(LPCWSTR lpFileName, LPCWSTR lpExistingFileName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes) +{ + FIXME("(%s, %s, %p): stub\n", debugstr_w(lpFileName), + debugstr_w(lpExistingFileName), lpSecurityAttributes); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + + +/************************************************************************* + * CreateHardLinkA (KERNEL32.@) + */ +BOOL WINAPI CreateHardLinkA(LPCSTR lpFileName, LPCSTR lpExistingFileName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes) +{ + FIXME("(%s, %s, %p): stub\n", debugstr_a(lpFileName), + debugstr_a(lpExistingFileName), lpSecurityAttributes); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + + /*********************************************************************** * CreateDirectoryW (KERNEL32.@) * RETURNS: