- Return ERROR_NOT_SUPPORTED error code instead ERROR_CALL_NOT_IMPLEMENTED (in Backup...
authorDmitry Chapyshev <dmitry@reactos.org>
Sat, 11 Jul 2009 11:50:42 +0000 (11:50 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sat, 11 Jul 2009 11:50:42 +0000 (11:50 +0000)
- Direct call for Set(Get)LastError
- Add RemoveVectoredContinueHandler, InterlockedCompareExchange64, GetCurrentProcessorNumber, BaseCheckRunApp, AddVectoredContinueHandler to export list

svn path=/trunk/; revision=41865

reactos/dll/win32/kernel32/file/backup.c
reactos/dll/win32/kernel32/kernel32.pspec
reactos/dll/win32/kernel32/misc/error.c

index d7b1a5b..0928e74 100644 (file)
@@ -33,7 +33,7 @@ BackupRead (
        )
 {
     UNIMPLEMENTED;
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+       SetLastError(ERROR_NOT_SUPPORTED);
        return FALSE;
 }
 
@@ -53,7 +53,7 @@ BackupSeek (
        )
 {
     UNIMPLEMENTED;
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+       SetLastError(ERROR_NOT_SUPPORTED);
        return FALSE;
 }
 
@@ -74,7 +74,7 @@ BackupWrite (
        )
 {
     UNIMPLEMENTED;
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+       SetLastError(ERROR_NOT_SUPPORTED);
        return FALSE;
 }
 
index 3a6779f..7918234 100644 (file)
@@ -8,9 +8,10 @@
 @ stdcall AddLocalAlternateComputerNameA(str ptr)
 @ stdcall AddLocalAlternateComputerNameW(wstr ptr)
 ;@ stdcall AddRefActCtx(ptr)
+@ stdcall AddVectoredContinueHandler(long ptr) ntdll.RtlAddVectoredContinueHandler
 @ stdcall AddVectoredExceptionHandler(long ptr) ntdll.RtlAddVectoredExceptionHandler
 @ stdcall AllocConsole()
-@ stub AllocLSCallback ; missing in XP SP3
+@ stub AllocLSCallback ; missing in XP SP3 and 2003 R2
 @ stdcall AllocateUserPhysicalPages(long ptr ptr)
 @ stdcall AreFileApisANSI()
 @ stdcall AssignProcessToJobObject(ptr ptr)
@@ -19,6 +20,7 @@
 @ stdcall BackupSeek(ptr long long ptr ptr ptr)
 @ stdcall BackupWrite(ptr ptr long ptr long long ptr)
 @ stdcall BaseCheckAppcompatCache(long long long ptr) ;check
+@ stub BaseCheckRunApp
 @ stdcall BaseCleanupAppcompatCache()
 @ stdcall BaseCleanupAppcompatCacheSupport(ptr)
 @ stdcall BaseDumpAppcompatCache()
 @ stdcall GetCurrentDirectoryW(long ptr)
 @ stdcall GetCurrentProcess()
 @ stdcall GetCurrentProcessId()
+@ stdcall GetCurrentProcessorNumber() ntdll.RtlGetCurrentProcessorNumber
 @ stdcall GetCurrentThread()
 @ stdcall GetCurrentThreadId()
 @ stdcall GetDateFormatA(long long ptr str ptr long)
 @ stub GetSCallbackTemplate ; missing in XP SP3
 @ stdcall GetLargePageMinimum()
 @ stdcall GetLargestConsoleWindowSize(long)
-@ stdcall GetLastError()
+@ stdcall GetLastError() ntdll.RtlGetLastWin32Error
 @ stdcall GetLinguistLangSize(ptr)
 @ stdcall GetLocalTime(ptr)
 @ stdcall GetLocaleInfoA(long long ptr long)
 ;@ stdcall InitializeCriticalSectionEx(ptr long long) ; missing in XP SP3
 @ stdcall InitializeSListHead(ptr) ntdll.RtlInitializeSListHead
 @ stdcall InitializeSRWLock(ptr) ntdll.RtlInitializeSRWLock
-@ stdcall InterlockedCompareExchange (ptr long long)
+@ stdcall InterlockedCompareExchange(ptr long long)
+@ stdcall InterlockedCompareExchange64(ptr double double) ntdll.RtlInterlockedCompareExchange64
 @ stdcall InterlockedDecrement(ptr)
 @ stdcall InterlockedExchange(ptr long)
 @ stdcall InterlockedExchangeAdd (ptr long )
 @ stdcall RemoveDirectoryW(wstr)
 @ stdcall RemoveLocalAlternateComputerNameA(str long)
 @ stdcall RemoveLocalAlternateComputerNameW(wstr long)
+@ stdcall RemoveVectoredContinueHandler(ptr) ntdll.RtlRemoveVectoredContinueHandler
 @ stdcall RemoveVectoredExceptionHandler(ptr) ntdll.RtlRemoveVectoredExceptionHandler
 @ stdcall ReplaceFile(wstr wstr wstr long ptr ptr) ReplaceFileW
 @ stdcall ReplaceFileA(str str str long ptr ptr)
 @ stdcall SetHandleInformation(long long long)
 @ stdcall SetInformationJobObject(long long ptr long)
 @ stub SetLastConsoleEventActive ; missing in XP SP3
-@ stdcall SetLastError(long)
+@ stdcall SetLastError(long) ntdll.RtlSetLastWin32Error
 @ stub SetLocalPrimaryComputerNameA ; missing in XP SP3
 @ stub SetLocalPrimaryComputerNameW ; missing in XP SP3
 @ stdcall SetLocalTime(ptr)
index 813a628..ce8eca6 100644 (file)
 #include <debug.h>
 
 
-/*
- * @implemented
- */
-VOID
-WINAPI
-SetLastError (DWORD dwErrorCode)
-{
-    NtCurrentTeb ()->LastErrorValue = (ULONG) dwErrorCode;
-}
-
-
-/*
- * @implemented
- */
-DWORD
-WINAPI
-GetLastError (VOID)
-{
-    return (DWORD) (NtCurrentTeb ()->LastErrorValue);
-}
-
-
 /*
  * @implemented
  */