From fee6b384e1f1ba401d1e3d82f4ebdde79560063a Mon Sep 17 00:00:00 2001 From: Cesar Eduardo Barros Date: Tue, 22 Jul 2008 08:19:22 -0300 Subject: [PATCH] kernel32: Add stub for CreateHardLink. --- dlls/kernel32/kernel32.spec | 4 ++-- dlls/kernel32/path.c | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) 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: