[ros-diffs] [sserapion] 34770: Fix some compiler warnings. Implement InitializeCriticalSectionEx Stub TermsrvAppInstallMode and SetTermsrvAppInstallMode. Lazy port of BasepInitializeContext. Lazy ports of thread and fiber startup code, probably will not work.

sserapion at svn.reactos.org sserapion at svn.reactos.org
Fri Jul 25 13:09:08 CEST 2008


Author: sserapion
Date: Fri Jul 25 06:09:07 2008
New Revision: 34770

URL: http://svn.reactos.org/svn/reactos?rev=34770&view=rev
Log:
Fix some compiler warnings.
Implement InitializeCriticalSectionEx
Stub TermsrvAppInstallMode and SetTermsrvAppInstallMode.
Lazy port of BasepInitializeContext.
Lazy ports of thread and fiber startup code, probably will not work.

Added:
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.spec   (with props)
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/fiber.S   (with props)
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/thread.S   (with props)
Removed:
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.def
Modified:
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/debug/debugger.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/except/except.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/lfile.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/rw.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.rbuild
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/dllmain.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/handle.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/stubs.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/utils.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/process/session.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/synch/critical.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/fiber.c
    branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/thread.c

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/debug/debugger.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/debug/debugger.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/debug/debugger.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/debug/debugger.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -232,11 +232,11 @@
     CLIENT_ID ClientId;
 
     /* If we don't have a PID, look it up */
-    if (dwProcessId == -1) dwProcessId = (DWORD)CsrGetProcessId();
+    if (dwProcessId == -1) dwProcessId = (ULONG_PTR)CsrGetProcessId();
 
     /* Open a handle to the process */
     ClientId.UniqueThread = NULL;
-    ClientId.UniqueProcess = (HANDLE)dwProcessId;
+    ClientId.UniqueProcess = (HANDLE)(ULONG_PTR)dwProcessId;
     InitializeObjectAttributes(&ObjectAttributes, NULL, 0, NULL, NULL);
     Status = NtOpenProcess(&Handle,
                            PROCESS_ALL_ACCESS,

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/except/except.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/except/except.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/except/except.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/except/except.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -138,6 +138,18 @@
    DbgPrint("EDX: %.8x   EBP: %.8x   ESI: %.8x   ESP: %.8x\n", pc->Edx,
 	    pc->Ebp, pc->Esi, pc->Esp);
    DbgPrint("EDI: %.8x   EFLAGS: %.8x\n", pc->Edi, pc->EFlags);
+}
+#elif defined(_M_AMD64)
+_dump_context(PCONTEXT pc)
+{
+   DbgPrint("CS:EIP %x:%I64x\n", pc->SegCs&0xffff, pc->Rip );
+   DbgPrint("DS %x ES %x FS %x GS %x\n", pc->SegDs&0xffff, pc->SegEs&0xffff,
+	    pc->SegFs&0xffff, pc->SegGs&0xfff);
+   DbgPrint("RAX: %I64x   RBX: %I64x   RCX: %I64x RDI: %I64x\n", pc->Rax, pc->Rbx, pc->Rcx, pc->Rdi);
+   DbgPrint("RDX: %I64x   RBP: %I64x   RSI: %I64x   RSP: %I64x\n", pc->Rdx, pc->Rbp, pc->Rsi, pc->Rsp);
+   DbgPrint("R8: %I64x   R9: %I64x   R10: %I64x   R11: %I64x\n", pc->R8, pc->R9, pc->R10, pc->R11);
+   DbgPrint("R12: %I64x   R13: %I64x   R14: %I64x   R15: %I64x\n", pc->R12, pc->R13, pc->R14, pc->R15);
+   DbgPrint("EFLAGS: %.8x\n", pc->EFlags);
 }
 #else
 #warning Unknown architecture
@@ -260,7 +272,7 @@
 
    if ((GetErrorMode() & SEM_NOGPFAULTERRORBOX) == 0)
    {
-#ifdef _X86_
+#ifdef __i386__
       PULONG Frame;
 #endif
       PVOID StartAddr;
@@ -278,7 +290,7 @@
          ExceptionInfo->ExceptionRecord->ExceptionAddress,
          _module_name_from_addr(ExceptionInfo->ExceptionRecord->ExceptionAddress, &StartAddr, szMod, sizeof(szMod)));
       _dump_context ( ExceptionInfo->ContextRecord );
-#ifdef _X86_
+#ifdef __i386__
       DbgPrint("Frames:\n");
       _SEH_TRY
       {

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/lfile.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/lfile.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/lfile.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/lfile.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -28,7 +28,7 @@
 	DWORD	NumberOfBytesRead;
 
 	if ( !ReadFile(
-		(HANDLE) hFile,
+		(HANDLE)(ULONG_PTR) hFile,
 		(LPVOID) lpBuffer,
 		(DWORD) lBytes,
 		& NumberOfBytesRead,

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/rw.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/rw.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/rw.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/file/rw.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -37,7 +37,7 @@
         *lpNumberOfBytesWritten = 0;
      }
 
-   if (IsConsoleHandle(hFile))
+   if (IsConsoleHandle((ULONG_PTR)hFile))
      {
 	return WriteConsoleA(hFile,
                              lpBuffer,

Removed: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.def
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.def?rev=34769&view=auto
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.def [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.def (removed)
@@ -1,1033 +1,0 @@
-;
-;   kernel32.def
-;
-;   Exports for KERNEL32 DLL
-;
-;   Copyright (C) 1996 Free Software Foundation, Inc.
-;
-;   Author:  Scott Christley <scottc at net-community.com>
-;   Date: 1996
-;
-;   This file is part of the Windows32 API Library.
-;
-;   This library is free software; you can redistribute it and/or
-;   modify it under the terms of the GNU Library General Public
-;   License as published by the Free Software Foundation; either
-;   version 2 of the License, or (at your option) any later version.
-;
-;   This library is distributed in the hope that it will be useful,
-;   but WITHOUT ANY WARRANTY; without even the implied warranty of
-;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-;   Library General Public License for more details.
-;
-;   If you are interested in a warranty or support for this source code,
-;   contact Scott Christley <scottc at net-community.com> for more information.
-;
-;   You should have received a copy of the GNU Library General Public
-;   License along with this library; see the file COPYING.LIB.
-;   If not, write to the Free Software Foundation,
-;   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-;
-LIBRARY KERNEL32.DLL
-EXPORTS
-AcquireSRWLockExclusive at 4=NTDLL.RtlAcquireSRWLockExclusive
-AcquireSRWLockShared at 4=NTDLL.RtlAcquireSRWLockShared
-ActivateActCtx at 8
-AddAtomA at 4
-AddAtomW at 4
-AddConsoleAliasA at 12
-AddConsoleAliasW at 12
-;AddLocalAlternateComputerNameA
-;AddLocalAlternateComputerNameW
-AddRefActCtx at 4
-AddVectoredExceptionHandler at 8=NTDLL.RtlAddVectoredExceptionHandler
-AllocateUserPhysicalPages at 12
-AllocConsole at 0
-AreFileApisANSI at 0
-AssignProcessToJobObject at 8
-AttachConsole at 4
-BackupRead at 28
-BackupSeek at 24
-BackupWrite at 28
-BaseAttachCompleteThunk at 0
-BaseCheckAppcompatCache at 16
-;BaseCleanupAppcompatCache
-;BaseCleanupAppcompatCacheSupport
-BaseDumpAppcompatCache at 0
-BaseFlushAppcompatCache at 0
-;BaseInitAppcompatCache
-;BaseInitAppcompatCacheSupport
-BaseProcessInitPostImport at 0
-BaseQueryModuleData at 20
-BaseUpdateAppcompatCache at 12
-Beep at 8
-BeginUpdateResourceA at 8
-BeginUpdateResourceW at 8
-BindIoCompletionCallback at 12
-BuildCommDCBA at 8
-BuildCommDCBAndTimeoutsA at 12
-BuildCommDCBAndTimeoutsW at 12
-BuildCommDCBW at 8
-CallNamedPipeA at 28
-CallNamedPipeW at 28
-CancelDeviceWakeupRequest at 4
-CancelIo at 4
-CancelIoEx at 8
-CancelSynchronousIo at 4
-CancelTimerQueueTimer at 8
-CancelWaitableTimer at 4
-ChangeTimerQueueTimer at 16
-CheckNameLegalDOS8Dot3A at 20
-CheckNameLegalDOS8Dot3W at 20
-CheckRemoteDebuggerPresent at 8
-ClearCommBreak at 4
-ClearCommError at 12
-CloseConsoleHandle at 4
-CloseHandle at 4
-CloseProfileUserMapping at 0
-CmdBatNotification at 4
-CommConfigDialogA at 12
-CommConfigDialogW at 12
-CompareFileTime at 8
-CompareStringA at 24
-CompareStringW at 24
-ConnectNamedPipe at 8
-ConsoleMenuControl at 12
-ContinueDebugEvent at 12
-ConvertDefaultLocale at 4
-ConvertFiberToThread at 0
-ConvertThreadToFiber at 4
-CopyFileA at 12
-CopyFileExA at 24
-CopyFileExW at 24
-CopyFileW at 12
-CopyLZFile at 8
-CreateActCtxA at 4
-CreateActCtxW at 4
-CreateConsoleScreenBuffer at 20
-CreateDirectoryA at 8
-CreateDirectoryExA at 12
-CreateDirectoryExW at 12
-CreateDirectoryW at 8
-CreateEventA at 16
-CreateEventW at 16
-CreateEventExA at 16
-CreateEventExW at 16
-CreateFiber at 12
-CreateFiberEx at 20
-CreateFileA at 28
-CreateFileMappingA at 24
-CreateFileMappingW at 24
-CreateFileW at 28
-CreateHardLinkA at 12
-CreateHardLinkW at 12
-CreateIoCompletionPort at 16
-CreateJobObjectA at 8
-CreateJobObjectW at 8
-CreateJobSet at 12
-CreateMailslotA at 16
-CreateMailslotW at 16
-CreateMemoryResourceNotification at 4
-CreateMutexA at 12
-CreateMutexW at 12
-CreateMutexExA at 16
-CreateMutexExW at 16
-CreateNamedPipeA at 32
-CreateNamedPipeW at 32
-CreateNlsSecurityDescriptor at 12
-CreatePipe at 16
-CreateProcessA at 40
-CreateProcessInternalA at 48
-CreateProcessInternalW at 48
-CreateProcessW at 40
-CreateRemoteThread at 28
-CreateSemaphoreA at 16
-CreateSemaphoreW at 16
-CreateSemaphoreExA at 24
-CreateSemaphoreExW at 24
-CreateSocketHandle at 0
-CreateSymbolicLinkA at 12
-CreateSymbolicLinkW at 12
-CreateTapePartition at 16
-CreateThread at 24
-CreateTimerQueue at 0
-CreateTimerQueueTimer at 28
-CreateToolhelp32Snapshot at 8
-CreateVirtualBuffer at 12
-CreateWaitableTimerA at 12
-CreateWaitableTimerW at 12
-CreateWaitableTimerExA at 16
-CreateWaitableTimerExW at 16
-DeactivateActCtx at 8
-DebugActiveProcess at 4
-DebugActiveProcessStop at 4
-DebugBreak at 0=NTDLL.DbgBreakPoint
-DebugBreakProcess at 4
-DebugSetProcessKillOnExit at 4
-DecodePointer at 4=NTDLL.RtlDecodePointer
-DefineDosDeviceA at 12
-DefineDosDeviceW at 12
-DelayLoadFailureHook at 8
-DeleteAtom at 4
-DeleteCriticalSection at 4=NTDLL.RtlDeleteCriticalSection
-DeleteFiber at 4
-DeleteFileA at 4
-DeleteFileW at 4
-DeleteTimerQueue at 4
-DeleteTimerQueueEx at 8
-DeleteTimerQueueTimer at 12
-DeleteVolumeMountPointA at 4
-DeleteVolumeMountPointW at 4
-DeviceIoControl at 32
-DisableThreadLibraryCalls at 4
-DisconnectNamedPipe at 4
-DnsHostnameToComputerNameA at 12
-DnsHostnameToComputerNameW at 12
-DosDateTimeToFileTime at 12
-DosPathToSessionPathA at 12
-DosPathToSessionPathW at 12
-DuplicateConsoleHandle at 16
-DuplicateHandle at 28
-EncodePointer at 4=NTDLL.RtlEncodePointer
-EndUpdateResourceA at 8
-EndUpdateResourceW at 8
-EnterCriticalSection at 4=NTDLL.RtlEnterCriticalSection
-EnumCalendarInfoA at 16
-EnumCalendarInfoExA at 16
-EnumCalendarInfoExW at 16
-EnumCalendarInfoW at 16
-EnumDateFormatsA at 12
-EnumDateFormatsExA at 12
-EnumDateFormatsExW at 12
-EnumDateFormatsW at 12
-EnumLanguageGroupLocalesA at 16
-EnumLanguageGroupLocalesW at 16
-EnumResourceLanguagesA at 20
-EnumResourceLanguagesW at 20
-EnumResourceNamesA at 16
-EnumResourceNamesW at 16
-EnumResourceTypesA at 12
-EnumResourceTypesW at 12
-EnumSystemCodePagesA at 8
-EnumSystemCodePagesW at 8
-EnumSystemGeoID at 12
-EnumSystemLanguageGroupsA at 12
-EnumSystemLanguageGroupsW at 12
-EnumSystemLocalesA at 8
-EnumSystemLocalesW at 8
-EnumTimeFormatsA at 12
-EnumTimeFormatsW at 12
-EnumUILanguagesA at 12
-EnumUILanguagesW at 12
-;EnumerateLocalComputerNamesA
-;EnumerateLocalComputerNamesW
-EraseTape at 12
-EscapeCommFunction at 8
-ExitProcess at 4
-ExitThread at 4
-ExitVDM at 8
-ExpandEnvironmentStringsA at 12
-ExpandEnvironmentStringsW at 12
-ExpungeConsoleCommandHistoryA at 4
-ExpungeConsoleCommandHistoryW at 4
-ExtendVirtualBuffer at 8
-FatalAppExitA at 8
-FatalAppExitW at 8
-FatalExit at 4
-FileTimeToDosDateTime at 12
-FileTimeToLocalFileTime at 8
-FileTimeToSystemTime at 8
-FillConsoleOutputAttribute at 20
-FillConsoleOutputCharacterA at 20
-FillConsoleOutputCharacterW at 20
-FindActCtxSectionGuid at 20
-FindActCtxSectionStringA at 20
-FindActCtxSectionStringW at 20
-FindAtomA at 4
-FindAtomW at 4
-FindClose at 4
-FindCloseChangeNotification at 4
-FindFirstChangeNotificationA at 12
-FindFirstChangeNotificationW at 12
-FindFirstFileA at 8
-FindFirstFileExA at 24
-FindFirstFileExW at 24
-FindFirstFileW at 8
-FindFirstStreamW at 16
-FindNextChangeNotification at 4
-FindNextFileA at 8
-FindNextFileW at 8
-FindNextStreamW at 8
-FindFirstVolumeA at 8
-FindFirstVolumeMountPointA at 12
-FindFirstVolumeMountPointW at 12
-FindFirstVolumeW at 8
-FindNextVolumeA at 12
-FindNextVolumeMountPointA at 12
-FindNextVolumeMountPointW at 12
-FindNextVolumeW at 12
-FindResourceA at 12
-FindResourceExA at 16
-FindResourceExW at 16
-FindResourceW at 12
-FindVolumeClose at 4
-FindVolumeMountPointClose at 4
-;FlsAlloc at 4 ;new for 2003
-;FlsFree at 4 ;new for 2003
-;FlsGetValue at 4 ;new for 2003
-;FlsSetValue at 8 ;new for 2003
-FlushConsoleInputBuffer at 4
-FlushFileBuffers at 4
-FlushInstructionCache at 12
-FlushViewOfFile at 8
-FoldStringA at 20
-FoldStringW at 20
-FormatMessageA at 28
-FormatMessageW at 28
-FreeConsole at 0
-FreeEnvironmentStringsA at 4
-FreeEnvironmentStringsW at 4
-FreeLibrary at 4
-FreeLibraryAndExitThread at 8
-FreeResource at 4
-FreeUserPhysicalPages at 12
-FreeVirtualBuffer at 4
-GenerateConsoleCtrlEvent at 8
-GetACP at 0
-GetApplicationRecoveryCallback at 20
-GetApplicationRestart at 16
-GetAtomNameA at 12
-GetAtomNameW at 12
-GetBinaryType at 8=GetBinaryTypeA at 8
-GetBinaryTypeA at 8
-GetBinaryTypeW at 8
-GetCPFileNameFromRegistry at 12
-GetCPInfo at 8
-GetCPInfoExA at 12
-GetCPInfoExW at 12
-GetCalendarInfoA at 24
-GetCalendarInfoW at 24
-GetCommConfig at 12
-GetCommMask at 8
-GetCommModemStatus at 8
-GetCommProperties at 8
-GetCommState at 8
-GetCommTimeouts at 8
-GetCommandLineA at 0
-GetCommandLineW at 0
-;GetComPlusPackageInstallStatus
-GetCompressedFileSizeA at 8
-GetCompressedFileSizeW at 8
-GetComputerNameA at 8
-GetComputerNameExA at 12
-GetComputerNameExW at 12
-GetComputerNameW at 8
-GetConsoleAliasA at 16
-GetConsoleAliasExesA at 8
-GetConsoleAliasExesLengthA at 0
-GetConsoleAliasExesLengthW at 0
-GetConsoleAliasExesW at 8
-GetConsoleAliasW at 16
-GetConsoleAliasesA at 12
-GetConsoleAliasesLengthA at 4
-GetConsoleAliasesLengthW at 4
-GetConsoleAliasesW at 12
-;GetConsoleCharType
-GetConsoleCP at 0
-GetConsoleCommandHistoryA at 12
-GetConsoleCommandHistoryLengthA at 4
-GetConsoleCommandHistoryLengthW at 4
-GetConsoleCommandHistoryW at 12
-GetConsoleCursorInfo at 8
-;GetConsoleCursorMode
-GetConsoleDisplayMode at 4
-GetConsoleFontInfo at 16
-GetConsoleFontSize at 8
-GetConsoleHardwareState at 12
-GetConsoleInputExeNameA at 8
-GetConsoleInputExeNameW at 8
-GetConsoleInputWaitHandle at 0
-GetConsoleKeyboardLayoutNameA at 4
-GetConsoleKeyboardLayoutNameW at 4
-GetConsoleMode at 8
-;GetConsoleNlsMode
-GetConsoleOutputCP at 0
-GetConsoleProcessList at 8
-GetConsoleScreenBufferInfo at 8
-GetConsoleSelectionInfo at 4
-GetConsoleTitleA at 8
-GetConsoleTitleW at 8
-GetConsoleWindow at 0
-GetCurrencyFormatA at 24
-GetCurrencyFormatW at 24
-GetCurrentActCtx at 4
-GetCurrentConsoleFont at 12
-GetCurrentDirectoryA at 8
-GetCurrentDirectoryW at 8
-GetCurrentProcess at 0
-GetCurrentProcessId at 0
-GetCurrentThread at 0
-GetCurrentThreadId at 0
-GetDateFormatA at 24
-GetDateFormatW at 24
-GetDefaultCommConfigA at 12
-GetDefaultCommConfigW at 12
-;GetDefaultSortkeySize
-GetDevicePowerState at 8
-GetDiskFreeSpaceA at 20
-GetDiskFreeSpaceW at 20
-GetDiskFreeSpaceExA at 16
-GetDiskFreeSpaceExW at 16
-GetDllDirectoryA at 8
-GetDllDirectoryW at 8
-GetDriveTypeA at 4
-GetDriveTypeW at 4
-GetEnvironmentStrings at 0
-GetEnvironmentStringsA=GetEnvironmentStrings at 0
-GetEnvironmentStringsW at 0
-GetEnvironmentVariableA at 12
-GetEnvironmentVariableW at 12
-GetExitCodeProcess at 8
-GetExitCodeThread at 8
-GetExpandedNameA at 8
-GetExpandedNameW at 8
-GetFileAttributesA at 4
-GetFileAttributesW at 4
-GetFileAttributesByHandle at 12
-GetFileAttributesExA at 12
-GetFileAttributesExW at 12
-GetFileBandwidthReservation at 24
-GetFileInformationByHandle at 8
-GetFileSize at 8
-GetFileSizeEx at 8
-GetFileTime at 16
-GetFileType at 4
-GetFinalPathNameByHandleA at 16
-GetFinalPathNameByHandleW at 16
-GetFirmwareEnvironmentVariableA at 16
-GetFirmwareEnvironmentVariableW at 16
-GetFullPathNameA at 16
-GetFullPathNameW at 16
-GetGeoInfoA at 20
-GetGeoInfoW at 20
-GetHandleContext at 4
-GetHandleInformation at 8
-GetLargePageMinimum at 0
-GetLargestConsoleWindowSize at 4
-GetLastError at 0
-;GetLinguistLangSize
-GetLocalTime at 4
-GetLocaleInfoA at 16
-GetLocaleInfoW at 16
-GetLocaleInfoEx at 16
-GetLogicalDriveStringsA at 8
-GetLogicalDriveStringsW at 8
-GetLogicalDrives at 0
-GetLongPathNameA at 12
-GetLongPathNameW at 12
-GetMailslotInfo at 20
-GetModuleFileNameA at 12
-GetModuleFileNameW at 12
-GetModuleHandleA at 4
-GetModuleHandleExA at 12
-GetModuleHandleExW at 12
-GetModuleHandleW at 4
-GetNamedPipeHandleStateA at 28
-GetNamedPipeHandleStateW at 28
-GetNamedPipeInfo at 20
-GetNativeSystemInfo at 4
-GetNextVDMCommand at 4
-GetNlsSectionName at 24
-GetNumaHighestNodeNumber at 4
-GetNumaNodeProcessorMask at 8
-;GetNumaProcessorMap
-GetNumaProcessorNode at 8
-GetNumberFormatA at 24
-GetNumberFormatW at 24
-GetNumberOfConsoleFonts at 0
-GetNumberOfConsoleInputEvents at 8
-GetNumberOfConsoleMouseButtons at 4
-GetOEMCP at 0
-GetOverlappedResult at 16
-GetPriorityClass at 4
-GetPrivateProfileIntA at 16
-GetPrivateProfileIntW at 16
-GetPrivateProfileSectionA at 16
-GetPrivateProfileSectionNamesA at 12
-GetPrivateProfileSectionNamesW at 12
-GetPrivateProfileSectionW at 16
-GetPrivateProfileStringA at 24
-GetPrivateProfileStringW at 24
-GetPrivateProfileStructA at 20
-GetPrivateProfileStructW at 20
-GetProcAddress at 8
-GetProcessAffinityMask at 12
-GetProcessHandleCount at 8
-GetProcessHeap at 0
-GetProcessHeaps at 8
-GetProcessId at 4
-GetProcessIdOfThread at 4
-GetProcessIoCounters at 8
-GetProcessPriorityBoost at 8
-GetProcessShutdownParameters at 8
-GetProcessTimes at 20
-GetProcessVersion at 4
-GetProcessWorkingSetSize at 12
-GetProfileIntA at 12
-GetProfileIntW at 12
-GetProfileSectionA at 12
-GetProfileSectionW at 12
-GetProfileStringA at 20
-GetProfileStringW at 20
-GetQueuedCompletionStatus at 20
-GetShortPathNameA at 12
-GetShortPathNameW at 12
-GetStartupInfoA at 4
-GetStartupInfoW at 4
-GetStdHandle at 4
-GetStringTypeA at 20
-GetStringTypeExA at 20
-GetStringTypeExW at 20
-GetStringTypeW at 16
-GetSystemDefaultLCID at 0
-GetSystemDefaultLangID at 0
-GetSystemDefaultUILanguage at 0
-GetSystemDirectoryA at 8
-GetSystemDirectoryW at 8
-GetSystemInfo at 4
-GetSystemPowerStatus at 4
-GetSystemRegistryQuota at 8
-GetSystemTime at 4
-GetSystemTimeAdjustment at 12
-GetSystemTimeAsFileTime at 4
-GetSystemTimes at 12
-GetSystemWow64DirectoryA at 8
-GetSystemWow64DirectoryW at 8
-GetSystemWindowsDirectoryA at 8
-GetSystemWindowsDirectoryW at 8
-GetTapeParameters at 16
-GetTapePosition at 20
-GetTapeStatus at 4
-GetTempFileNameA at 16
-GetTempFileNameW at 16
-GetTempPathA at 8
-GetTempPathW at 8
-GetThreadContext at 8
-GetThreadId at 4
-GetThreadIOPendingFlag at 8
-GetThreadLocale at 0
-GetThreadPriority at 4
-GetThreadPriorityBoost at 8
-GetThreadSelectorEntry at 12
-GetThreadTimes at 20
-GetTickCount at 0
-GetTickCount64 at 0
-GetTimeFormatA at 24
-GetTimeFormatW at 24
-GetTimeZoneInformation at 4
-GetUserDefaultLCID at 0
-GetUserDefaultLangID at 0
-GetUserDefaultUILanguage at 0
-GetUserGeoID at 4
-GetVDMCurrentDirectories at 8
-GetVersion at 0
-GetVersionExA at 4
-GetVersionExW at 4
-GetVolumeInformationA at 32
-GetVolumeInformationW at 32
-GetVolumeNameForVolumeMountPointA at 12
-GetVolumeNameForVolumeMountPointW at 12
-GetVolumePathNameA at 12
-GetVolumePathNameW at 12
-GetVolumePathNamesForVolumeNameA at 16
-GetVolumePathNamesForVolumeNameW at 16
-GetWindowsDirectoryA at 8
-GetWindowsDirectoryW at 8
-GetWriteWatch at 24
-GlobalAddAtomA at 4
-GlobalAddAtomW at 4
-GlobalAlloc at 8
-GlobalCompact at 4
-GlobalDeleteAtom at 4
-GlobalFindAtomA at 4
-GlobalFindAtomW at 4
-GlobalFix at 4
-GlobalFlags at 4
-GlobalFree at 4
-GlobalGetAtomNameA at 12
-GlobalGetAtomNameW at 12
-GlobalHandle at 4
-GlobalLock at 4
-GlobalMemoryStatus at 4
-GlobalMemoryStatusEx at 4
-GlobalReAlloc at 12
-GlobalSize at 4
-GlobalUnWire at 4
-GlobalUnfix at 4
-GlobalUnlock at 4
-GlobalWire at 4
-Heap32First at 12
-Heap32ListFirst at 8
-Heap32ListNext at 8
-Heap32Next at 4
-HeapAlloc at 12=NTDLL.RtlAllocateHeap
-HeapCompact at 8
-HeapCreate at 12
-HeapCreateTagsW at 16
-HeapDestroy at 4
-HeapExtend at 16
-HeapFree at 12=NTDLL.RtlFreeHeap
-HeapLock at 4
-HeapQueryInformation at 20
-HeapQueryTagW at 20
-HeapReAlloc at 16=NTDLL.RtlReAllocateHeap
-HeapSetInformation at 16
-HeapSize at 12=NTDLL.RtlSizeHeap
-HeapSummary at 12
-HeapUnlock at 4
-HeapUsage at 20
-HeapValidate at 12
-HeapWalk at 8
-InitAtomTable at 4
-InitializeConditionVariable at 4=NTDLL.RtlInitializeConditionVariable
-InitializeCriticalSection at 4
-InitializeCriticalSectionAndSpinCount at 8
-InitializeSListHead at 4=NTDLL.RtlInitializeSListHead
-InitializeSRWLock at 4=NTDLL.RtlInitializeSRWLock
-InterlockedCompareExchange at 12
-InterlockedDecrement at 4
-InterlockedExchange at 8
-InterlockedExchangeAdd at 8
-InterlockedFlushSList at 4=NTDLL.RtlInterlockedFlushSList
-InterlockedIncrement at 4
-InterlockedPopEntrySList at 4=NTDLL.RtlInterlockedPopEntrySList
-InterlockedPushEntrySList at 8=NTDLL.RtlInterlockedPushEntrySList
-InvalidateConsoleDIBits at 8
-IsBadCodePtr at 4
-IsBadHugeReadPtr at 8
-IsBadHugeWritePtr at 8
-IsBadReadPtr at 8
-IsBadStringPtrA at 8
-IsBadStringPtrW at 8
-IsBadWritePtr at 8
-IsDBCSLeadByte at 4
-IsDBCSLeadByteEx at 8
-IsDebuggerPresent at 0
-IsProcessInJob at 12
-IsProcessorFeaturePresent at 4
-IsSystemResumeAutomatic at 0
-IsThreadAFiber at 0
-IsValidCodePage at 4
-IsValidLanguageGroup at 8
-IsValidLocale at 8
-IsValidUILanguage at 4
-IsWow64Process at 8
-LCMapStringA at 24
-LCMapStringW at 24
-LeaveCriticalSection at 4=NTDLL.RtlLeaveCriticalSection
-LoadLibraryA at 4
-LoadLibraryExA at 12
-LoadLibraryExW at 12
-LoadLibraryW at 4
-LoadModule at 8
-LoadResource at 8
-LocalAlloc at 8
-LocalCompact at 4
-LocalFileTimeToFileTime at 8
-LocalFlags at 4
-LocalFree at 4
-LocalHandle at 4
-LocalLock at 4
-LocalReAlloc at 12
-LocalShrink at 8
-LocalSize at 4
-LocalUnlock at 4
-LockFile at 20
-LockFileEx at 24
-LockResource at 4
-LZClose at 4
-;LZCloseFile
-LZCopy at 8
-;LZCreateFileW
-LZDone at 0
-LZInit at 4
-LZOpenFileA at 12
-LZOpenFileW at 12
-LZRead at 12
-LZSeek at 12
-LZStart at 0
-MapUserPhysicalPages at 12
-MapUserPhysicalPagesScatter at 12
-MapViewOfFile at 20
-MapViewOfFileEx at 24
-Module32First at 8
-Module32FirstW at 8
-Module32Next at 8
-Module32NextW at 8
-MoveFileA at 8
-MoveFileExA at 12
-MoveFileWithProgressA at 20
-MoveFileExW at 12
-MoveFileW at 8
-MoveFileWithProgressW at 20
-MulDiv at 12
-MultiByteToWideChar at 24
-NeedCurrentDirectoryForExePathA at 4
-NeedCurrentDirectoryForExePathW at 4
-NlsConvertIntegerToString at 20
-NlsGetCacheUpdateCount at 0
-;NlsResetProcessLocale
-;NumaVirtualQueryNode
-OpenConsoleW at 16
-;OpenDataFile
-OpenEventA at 12
-OpenEventW at 12
-OpenFile at 12
-OpenFileById at 24
-OpenFileMappingA at 12
-OpenFileMappingW at 12
-OpenJobObjectA at 12
-OpenJobObjectW at 12
-OpenMutexA at 12
-OpenMutexW at 12
-OpenProcess at 12
-;OpenProfileUserMapping at 0
-OpenSemaphoreA at 12
-OpenSemaphoreW at 12
-OpenThread at 12
-OpenWaitableTimerA at 12
-OpenWaitableTimerW at 12
-OutputDebugStringA at 4
-OutputDebugStringW at 4
-PeekConsoleInputA at 16
-PeekConsoleInputW at 16
-PeekNamedPipe at 24
-PrivCopyFileExW at 24
-;PrivMoveFileIdentityW
-PostQueuedCompletionStatus at 16
-PrepareTape at 12
-ProcessIdToSessionId at 8
-Process32First at 8
-Process32FirstW at 8
-Process32Next at 8
-Process32NextW at 8
-PulseEvent at 4
-PurgeComm at 8
-QueryActCtxW at 28
-QueryDepthSList at 4=NTDLL.RtlQueryDepthSList
-QueryDosDeviceA at 12
-QueryDosDeviceW at 12
-QueryInformationJobObject at 20
-QueryMemoryResourceNotification at 8
-QueryPerformanceCounter at 4
-QueryPerformanceFrequency at 4
-QueueUserAPC at 12
-QueueUserWorkItem at 12
-QueryWin31IniFilesMappedToRegistry at 16
-RaiseException at 16
-ReadConsoleA at 20
-ReadConsoleInputA at 16
-;ReadConsoleInputExA
-;ReadConsoleInputExW
-ReadConsoleInputW at 16
-ReadConsoleOutputA at 20
-ReadConsoleOutputAttribute at 20
-ReadConsoleOutputCharacterA at 20
-ReadConsoleOutputCharacterW at 20
-ReadConsoleOutputW at 20
-ReadConsoleW at 20
-ReadDirectoryChangesW at 32
-ReadFile at 20
-ReadFileEx at 20
-ReadFileScatter at 20
-ReadProcessMemory at 20
-RecoveryFinished at 4
-RecoveryInProgress at 4
-RegisterApplicationRecoveryCallback at 16
-RegisterApplicationRestart at 8
-;RegisterConsoleIME
-;RegisterConsoleOS2
-RegisterConsoleVDM at 44
-RegisterWaitForInputIdle at 4
-RegisterWaitForSingleObject at 24
-RegisterWaitForSingleObjectEx at 20
-RegisterWowBaseHandlers at 4
-RegisterWowExec at 4
-ReleaseActCtx at 4
-ReleaseMutex at 4
-ReleaseSemaphore at 12
-ReleaseSRWLockExclusive at 4=NTDLL.RtlReleaseSRWLockExclusive
-ReleaseSRWLockShared at 4=NTDLL.RtlReleaseSRWLockShared
-RemoveDirectoryA at 4
-RemoveDirectoryW at 4
-;RemoveLocalAlternateComputerNameA
-;RemoveLocalAlternateComputerNameW
-RemoveVectoredExceptionHandler at 4=NTDLL.RtlRemoveVectoredExceptionHandler
-ReplaceFile=ReplaceFileW at 24
-ReplaceFileA at 24
-ReplaceFileW at 24
-RequestDeviceWakeup at 4
-RequestWakeupLatency at 4
-ResetEvent at 4
-ResetWriteWatch at 8
-RestoreLastError at 4
-ResumeThread at 4
-RtlCaptureContext at 4=NTDLL.RtlCaptureContext
-;RtlCaptureStackBackTrace
-RtlFillMemory at 12=NTDLL.RtlFillMemory
-RtlMoveMemory at 12=NTDLL.RtlMoveMemory
-RtlUnwind at 16=NTDLL.RtlUnwind
-RtlZeroMemory at 8=NTDLL.RtlZeroMemory
-ScrollConsoleScreenBufferA at 20
-ScrollConsoleScreenBufferW at 20
-SearchPathA at 24
-SearchPathW at 24
-SetCPGlobal at 4
-SetCalendarInfoA at 16
-SetCalendarInfoW at 16
-SetClientTimeZoneInformation at 4
-;SetComPlusPackageInstallStatus
-SetCommBreak at 4
-SetCommConfig at 12
-SetCommMask at 8
-SetCommState at 8
-SetCommTimeouts at 8
-SetComputerNameA at 4
-SetComputerNameExA at 8
-SetComputerNameExW at 8
-SetComputerNameW at 4
-SetConsoleActiveScreenBuffer at 4
-SetConsoleCP at 4
-SetConsoleCommandHistoryMode at 4
-SetConsoleCtrlHandler at 8
-SetConsoleCursor at 8
-SetConsoleCursorInfo at 8
-;SetConsoleCursorMode
-SetConsoleCursorPosition at 8
-SetConsoleDisplayMode at 12
-SetConsoleFont at 8
-SetConsoleHardwareState at 12
-SetConsoleHistoryInfo at 4
-SetConsoleIcon at 4
-SetConsoleInputExeNameA at 4
-SetConsoleInputExeNameW at 4
-SetConsoleKeyShortcuts at 16
-;SetConsoleLocalEUDC
-SetConsoleMaximumWindowSize at 8
-SetConsoleMenuClose at 4
-SetConsoleMode at 8
-;SetConsoleNlsMode
-SetConsoleNumberOfCommandsA at 8
-SetConsoleNumberOfCommandsW at 8
-;SetConsoleOS2OemFormat
-SetConsoleOutputCP at 4
-SetConsolePalette at 12
-SetConsoleScreenBufferInfoEx at 8
-SetConsoleScreenBufferSize at 8
-SetConsoleTextAttribute at 8
-SetConsoleTitleA at 4
-SetConsoleTitleW at 4
-SetConsoleWindowInfo at 12
-SetCriticalSectionSpinCount at 8=NTDLL.RtlSetCriticalSectionSpinCount
-SetCurrentDirectoryA at 4
-SetCurrentDirectoryW at 4
-SetDefaultCommConfigA at 12
-SetDefaultCommConfigW at 12
-SetDllDirectoryA at 4
-SetDllDirectoryW at 4
-SetEndOfFile at 4
-SetEnvironmentVariableA at 8
-SetEnvironmentVariableW at 8
-SetErrorMode at 4
-SetEvent at 4
-SetFileApisToANSI at 0
-SetFileApisToOEM at 0
-SetFileAttributesA at 8
-SetFileAttributesW at 8
-SetFileAttributesByHandle at 12
-SetFileBandwidthReservation at 24
-SetFileCompletionNotificationModes at 8
-SetFilePointer at 16
-SetFilePointerEx at 20
-SetFileShortNameA at 8
-SetFileShortNameW at 8
-SetFileTime at 16
-SetFileValidData at 12
-SetFirmwareEnvironmentVariableA at 16
-SetFirmwareEnvironmentVariableW at 16
-SetHandleContext at 8
-SetHandleCount at 4
-SetHandleInformation at 12
-SetInformationJobObject at 16
-SetLastConsoleEventActive at 0
-SetLastError at 4
-;SetLocalPrimaryComputerNameA
-;SetLocalPrimaryComputerNameW
-SetLocalTime at 4
-SetLocaleInfoA at 12
-SetLocaleInfoW at 12
-SetMailslotInfo at 8
-SetMessageWaitingIndicator at 8
-SetNamedPipeHandleState at 16
-SetPriorityClass at 8
-SetProcessAffinityMask at 8
-SetProcessPriorityBoost at 8
-SetProcessShutdownParameters at 8
-SetProcessWorkingSetSize at 12
-SetStdHandle at 8
-SetSystemPowerState at 8
-SetSystemTime at 4
-SetSystemTimeAdjustment at 8
-SetTapeParameters at 12
-SetTapePosition at 24
-;SetTermsrvAppInstallMode
-SetThreadAffinityMask at 8
-SetThreadContext at 8
-SetThreadExecutionState at 4
-SetThreadIdealProcessor at 8
-SetThreadLocale at 4
-SetThreadPriority at 8
-SetThreadPriorityBoost at 8
-SetThreadUILanguage at 4
-SetTimerQueueTimer at 24
-SetTimeZoneInformation at 4
-SetUnhandledExceptionFilter at 4
-SetUserDefaultLCID at 4
-SetUserDefaultUILanguage at 4
-SetUserGeoID at 4
-SetVDMCurrentDirectories at 8
-SetVolumeLabelA at 8
-SetVolumeLabelW at 8
-SetVolumeMountPointA at 8
-SetVolumeMountPointW at 8
-SetWaitableTimer at 24
-SetupComm at 12
-ShowConsoleCursor at 8
-SignalObjectAndWait at 16
-SizeofResource at 8
-Sleep at 4
-SleepConditionVariableCS at 12
-SleepConditionVariableSRW at 16
-SleepEx at 8
-SuspendThread at 4
-SwitchToFiber at 4
-SwitchToThread at 0
-SystemTimeToFileTime at 8
-SystemTimeToTzSpecificLocalTime at 12
-TerminateJobObject at 8
-TerminateProcess at 8
-TerminateThread at 8
-;TermsrvAppInstallMode
-Thread32First at 8
-Thread32Next at 8
-TlsAlloc at 0
-TlsFree at 4
-TlsGetValue at 4
-TlsSetValue at 8
-Toolhelp32ReadProcessMemory at 20
-TransactNamedPipe at 28
-TransmitCommChar at 8
-TrimVirtualBuffer at 4
-TryEnterCriticalSection at 4=NTDLL.RtlTryEnterCriticalSection
-TzSpecificLocalTimeToSystemTime at 12
-UnhandledExceptionFilter at 4
-UnlockFile at 20
-UnlockFileEx at 20
-UnmapViewOfFile at 4
-UpdateResourceA at 24
-UpdateResourceW at 24
-UTRegister at 28
-UTUnRegister at 4
-;UnregisterConsoleIME
-UnregisterWait at 4
-UnregisterWaitEx at 8
-;ValidateLCType
-;ValidateLocale
-VDMConsoleOperation at 8
-VDMOperationStarted at 4
-VerLanguageNameA at 12
-VerLanguageNameW at 12
-VerSetConditionMask at 16=NTDLL.VerSetConditionMask
-VerifyConsoleIoHandle at 4
-VerifyVersionInfoA at 16
-VerifyVersionInfoW at 16
-VirtualAlloc at 16
-VirtualAllocEx at 20
-VirtualBufferExceptionHandler at 12
-VirtualFree at 12
-VirtualFreeEx at 16
-VirtualLock at 8
-VirtualProtect at 16
-VirtualProtectEx at 20
-VirtualQuery at 12
-VirtualQueryEx at 16
-VirtualUnlock at 8
-WakeAllConditionVariable at 4=NTDLL.RtlWakeAllConditionVariable
-WakeConditionVariable at 4=NTDLL.RtlWakeConditionVariable
-WaitCommEvent at 12
-WaitForDebugEvent at 8
-WaitForMultipleObjects at 16
-WaitForMultipleObjectsEx at 20
-WaitForSingleObject at 8
-WaitForSingleObjectEx at 12
-WaitNamedPipeA at 8
-WaitNamedPipeW at 8
-WideCharToMultiByte at 32
-WinExec at 8
-Wow64EnableWow64FsRedirection at 4
-Wow64DisableWow64FsRedirection at 4
-Wow64RevertWow64FsRedirection at 4
-WriteConsoleA at 20
-WriteConsoleInputA at 16
-WriteConsoleInputVDMA at 16
-WriteConsoleInputVDMW at 16
-WriteConsoleInputW at 16
-WriteConsoleOutputA at 20
-WriteConsoleOutputAttribute at 20
-WriteConsoleOutputCharacterA at 20
-WriteConsoleOutputCharacterW at 20
-WriteConsoleOutputW at 20
-WriteConsoleW at 20
-WriteFile at 20
-WriteFileEx at 20
-WriteFileGather at 20
-WritePrivateProfileSectionA at 12
-WritePrivateProfileSectionW at 12
-WritePrivateProfileStringA at 16
-WritePrivateProfileStringW at 16
-WritePrivateProfileStructA at 20
-WritePrivateProfileStructW at 20
-WriteProcessMemory at 20
-WriteProfileSectionA at 8
-WriteProfileSectionW at 8
-WriteProfileStringA at 12
-WriteProfileStringW at 12
-WriteTapemark at 16
-WTSGetActiveConsoleSessionId at 0
-ZombifyActCtx at 4
-_hread at 12
-_hwrite at 12
-_lclose at 4
-_lcreat at 8
-_llseek at 12
-_lopen at 8
-_lread at 12=_hread at 12
-_lwrite at 12=_hwrite at 12
-lstrcat at 8=lstrcatA at 8
-lstrcatA at 8
-lstrcatW at 8
-lstrcmp at 8=lstrcmpA at 8
-lstrcmpA at 8
-lstrcmpW at 8
-lstrcmpi at 8=lstrcmpiA at 8
-lstrcmpiA at 8
-lstrcmpiW at 8
-lstrcpy at 8=lstrcpyA at 8
-lstrcpyA at 8
-lstrcpyW at 8
-lstrcpyn at 12=lstrcpynA at 12
-lstrcpynA at 12
-lstrcpynW at 12
-lstrlen at 4=lstrlenA at 4
-lstrlenA at 4
-lstrlenW at 4

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.rbuild
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.rbuild?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.rbuild [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.rbuild [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE group SYSTEM "../../../tools/rbuild/project.dtd">
 <group>
-	<module name="kernel32_base" type="objectlibrary">
+	<module name="kernel32_base" type="objectlibrary" allowwarnings="true">
 		<include base="kernel32_base">.</include>
 		<include base="kernel32_base">include</include>
 		<include base="ReactOS">include/reactos/subsys</include>
@@ -118,10 +118,16 @@
 					<file>thread.S</file>
 				</directory>
 			</if>
+			<if property="ARCH" value="amd64">
+				<directory name="amd64">
+					<file>fiber.S</file>
+					<file>thread.S</file>
+				</directory>
+			</if>
 		</directory>
 	</module>
 	<module name="kernel32" type="win32dll" baseaddress="${BASEADDRESS_KERNEL32}" installbase="system32" installname="kernel32.dll">
-		<importlibrary definition="kernel32.def" />
+		<importlibrary definition="kernel32.spec.def" />
 		<include base="kernel32">.</include>
 		<include base="kernel32" root="intermediate">.</include>
 		<include base="kernel32">include</include>
@@ -132,5 +138,6 @@
 		<library>pseh</library>
 		<library>ntdll</library>
 		<file>kernel32.rc</file>
+		<file>kernel32.spec</file>
 	</module>
 </group>

Added: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.spec
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.spec?rev=34770&view=auto
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.spec (added)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.spec [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -1,0 +1,1017 @@
+#
+#   kernel32.spec
+#
+#   Exports for KERNEL32 DLL
+
+
+@ stdcall AcquireSRWLockExclusive(ptr) ntdll.RtlAcquireSRWLockExclusive
+@ stdcall AcquireSRWLockShare(ptr) ntdll.RtlAcquireSRWLockShared
+@ stdcall ActivateActCtx(ptr ptr)
+@ stdcall AddAtomA(str)
+@ stdcall AddAtomW(wstr)
+@ stdcall AddConsoleAliasA(str str str) #check
+@ stdcall AddConsoleAliasW(wstr wstr wstr) #check
+@ stub AddLocalAlternateComputerNameA
+@ stub AddLocalAlternateComputerNameW
+@ stdcall AddRefActCtx(ptr)
+@ stdcall AddVectoredExceptionHandler(long ptr) ntdll.RtlAddVectoredExceptionHandler
+@ stdcall AllocConsole()
+@ stub AllocLSCallback
+@ stub AllocateUserPhysicalPages
+@ stdcall AreFileApisANSI()
+@ stdcall AssignProcessToJobObject(ptr ptr)
+@ stdcall AttachConsole(long)
+@ stdcall BackupRead(ptr ptr long ptr long long ptr)
+@ 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 BaseCleanupAppcompatCache
+@ stub BaseCleanupAppcompatCacheSupport
+@ stdcall BaseDumpAppcompatCache()
+@ stdcall BaseFlushAppcompatCache()
+@ stub BaseInitAppcompatCache
+@ stub BaseInitAppcompatCacheSupport
+@ stdcall BaseProcessInitPostImport()
+@ stdcall BaseQueryModuleData(str str ptr ptr ptr) #check
+@ stdcall BaseUpdateAppcompatCache(long long long)
+@ stub BasepCheckWinSaferRestrictions
+@ stub BasepDebugDump
+@ stdcall Beep(long long)
+@ stdcall BeginUpdateResourceA(str long)
+@ stdcall BeginUpdateResourceW(wstr long)
+@ stdcall BindIoCompletionCallback(long ptr long)
+@ stdcall BuildCommDCBA(str ptr)
+@ stdcall BuildCommDCBAndTimeoutsA(str ptr ptr)
+@ stdcall BuildCommDCBAndTimeoutsW(wstr ptr ptr)
+@ stdcall BuildCommDCBW(wstr ptr)
+@ stdcall CallNamedPipeA(str ptr long ptr long ptr long)
+@ stdcall CallNamedPipeW(wstr ptr long ptr long ptr long)
+@ stdcall CancelDeviceWakeupRequest(long)
+@ stdcall CancelIo(long)
+@ stdcall CancelIoEx(long ptr)
+@ stdcall CancelSynchronousIo(long)
+@ stdcall CancelTimerQueueTimer(long long)
+@ stdcall CancelWaitableTimer(long)
+@ stdcall ChangeTimerQueueTimer(long long long long)
+@ stdcall CheckNameLegalDOS8Dot3A(str str long long long)
+@ stdcall CheckNameLegalDOS8Dot3W(wstr str long long long)
+@ stdcall CheckRemoteDebuggerPresent(long ptr)
+@ stdcall ClearCommBreak(long)
+@ stdcall ClearCommError(long ptr ptr)
+@ stdcall CloseConsoleHandle(long)
+@ stdcall CloseHandle(long)
+@ stdcall CloseProfileUserMapping()
+@ stub CloseSystemHandle
+@ stdcall CmdBatNotification(long)
+@ stdcall CommConfigDialogA(str long ptr)
+@ stdcall CommConfigDialogW(wstr long ptr)
+@ stdcall CompareFileTime(ptr ptr)
+@ stdcall CompareStringA(long long str long str long)
+@ stdcall CompareStringW(long long wstr long wstr long)
+@ stdcall ConnectNamedPipe(long ptr)
+@ stdcall ConsoleMenuControl(long long long)
+@ stub ConsoleSubst
+@ stdcall ContinueDebugEvent(long long long)
+@ stdcall ConvertDefaultLocale (long)
+@ stdcall ConvertFiberToThread()
+@ stdcall ConvertThreadToFiber(ptr)
+@ stdcall ConvertThreadToFiberEx(ptr long)
+@ stdcall CopyFileA(str str long)
+@ stdcall CopyFileExA (str str ptr ptr ptr long)
+@ stdcall CopyFileExW (wstr wstr ptr ptr ptr long)
+@ stdcall CopyFileW(wstr wstr long)
+@ stdcall CopyLZFile(long long) LZCopy
+@ stdcall CreateActCtxA(ptr)
+@ stdcall CreateActCtxW(ptr)
+@ stdcall CreateConsoleScreenBuffer(long long ptr long ptr)
+@ stdcall CreateDirectoryA(str ptr)
+@ stdcall CreateDirectoryExA(str str ptr)
+@ stdcall CreateDirectoryExW(wstr wstr ptr)
+@ stdcall CreateDirectoryW(wstr ptr)
+@ stdcall CreateEventA(ptr long long str)
+@ stdcall CreateEventW(ptr long long wstr)
+@ stdcall CreateFiber(long ptr ptr)
+@ stdcall CreateFiberEx(long long long ptr ptr)
+@ stdcall CreateFileA(str long long ptr long long long)
+@ 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)
+@ stdcall CreateHardLinkA(str str ptr)
+@ stdcall CreateHardLinkW(wstr wstr ptr)
+@ stdcall CreateIoCompletionPort(long long long long)
+@ stdcall CreateJobObjectA(ptr str)
+@ stdcall CreateJobObjectW(ptr wstr)
+@ stdcall CreateJobSet(long ptr long)
+@ stub CreateKernelThread
+@ stdcall CreateMailslotA(ptr long long ptr)
+@ stdcall CreateMailslotW(ptr long long ptr)
+@ stdcall CreateMemoryResourceNotification(ptr)
+@ stdcall CreateMutexA(ptr long str)
+@ stdcall CreateMutexW(ptr long wstr)
+@ stdcall CreateNamedPipeA(str long long long long long long ptr)
+@ stdcall CreateNamedPipeW(wstr long long long long long long ptr)
+@ stdcall CreateNlsSecurityDescriptor(ptr long long)
+@ stdcall CreatePipe(ptr ptr ptr long)
+@ stdcall CreateProcessA(str str ptr ptr long long ptr str ptr ptr)
+@ stdcall CreateProcessInternalA(ptr str str ptr ptr long long ptr str ptr ptr long)
+@ stdcall CreateProcessInternalW(ptr wstr wstr ptr ptr long long ptr wstr ptr ptr long)
+@ stub CreateProcessInternalWSecure
+@ stdcall CreateProcessW(wstr wstr ptr ptr long long ptr wstr ptr ptr)
+@ stdcall CreateRemoteThread(long ptr long ptr long long ptr)
+@ stdcall CreateSemaphoreA(ptr long long str)
+@ stdcall CreateSemaphoreW(ptr long long wstr)
+@ stdcall CreateSemaphoreExA(ptr long long long str long long)
+@ stdcall CreateSemaphoreExW(ptr long long long wstr long long)
+@ stdcall CreateSocketHandle()
+@ stdcall CreateSymbolicLinkA(str str long)
+@ stdcall CreateSymbolicLinkW(wstr wstr long)
+@ stdcall CreateTapePartition(long long long long)
+@ stdcall CreateThread(ptr long ptr long long ptr)
+@ stdcall CreateTimerQueue ()
+@ stdcall CreateTimerQueueTimer(ptr long ptr ptr long long long)
+@ stdcall CreateToolhelp32Snapshot(long long)
+@ stdcall CreateVirtualBuffer(long long long)
+@ stdcall CreateWaitableTimerA(ptr long str)
+@ stdcall CreateWaitableTimerW(ptr long wstr)
+@ stdcall CreateWaitableTimerExA (ptr str long long)
+@ stdcall CreateWaitableTimerExW (ptr wstr long long)
+@ stdcall DeactivateActCtx(long ptr)
+@ stdcall DebugActiveProcess(long)
+@ stdcall DebugActiveProcessStop(long)
+@ stdcall DebugBreak() ntdll.DbgBreakPoint
+@ stdcall DebugBreakProcess(long)
+@ stdcall DebugSetProcessKillOnExit(long)
+@ stdcall DecodePointer(ptr) ntdll.RtlDecodePointer
+@ stub DecodeSystemPointer
+@ stdcall DefineDosDeviceA(long str str)
+@ stdcall DefineDosDeviceW(long wstr wstr)
+@ stdcall DelayLoadFailureHook(str str)
+@ stdcall DeleteAtom(long)
+@ stdcall DeleteCriticalSection(ptr) ntdll.RtlDeleteCriticalSection
+@ stdcall DeleteFiber(ptr)
+@ stdcall DeleteFileA(str)
+@ stdcall DeleteFileW(wstr)
+@ stdcall DeleteTimerQueue(long)
+@ stdcall DeleteTimerQueueEx (long long)
+@ stdcall DeleteTimerQueueTimer(long long long)
+@ stdcall DeleteVolumeMountPointA(str) #check
+@ stdcall DeleteVolumeMountPointW(wstr) #check
+@ stdcall DeviceIoControl(long long ptr long ptr long ptr ptr)
+@ stdcall DisableThreadLibraryCalls(long)
+@ stdcall DisconnectNamedPipe(long)
+@ stdcall DnsHostnameToComputerNameA (str ptr ptr)
+@ stdcall DnsHostnameToComputerNameW (wstr ptr ptr)
+@ stdcall DosDateTimeToFileTime(long long ptr)
+@ stdcall DosPathToSessionPathA(long str str)
+@ stdcall DosPathToSessionPathW(long wstr wstr)
+@ stdcall DuplicateConsoleHandle(long long long long)
+@ stdcall DuplicateHandle(long long long ptr long long long)
+@ stdcall EncodePointer(ptr) ntdll.RtlEncodePointer
+@ stub EncodeSystemPointer
+@ stdcall EndUpdateResourceA(long long)
+@ stdcall EndUpdateResourceW(long long)
+@ stdcall EnterCriticalSection(ptr) ntdll.RtlEnterCriticalSection
+@ stdcall EnumCalendarInfoA(ptr long long long)
+@ stdcall EnumCalendarInfoExA(ptr long long long)
+@ stdcall EnumCalendarInfoExW(ptr long long long)
+@ stdcall EnumCalendarInfoW(ptr long long long)
+@ stdcall EnumDateFormatsA(ptr long long)
+@ stdcall EnumDateFormatsExA(ptr long long)
+@ stdcall EnumDateFormatsExW(ptr long long)
+@ stdcall EnumDateFormatsW(ptr long long)
+@ stdcall EnumLanguageGroupLocalesA(ptr long long ptr)
+@ stdcall EnumLanguageGroupLocalesW(ptr long long ptr)
+@ stdcall EnumResourceLanguagesA(long str str ptr long)
+@ stdcall EnumResourceLanguagesW(long wstr wstr ptr long)
+@ stdcall EnumResourceNamesA(long str ptr long)
+@ stdcall EnumResourceNamesW(long wstr ptr long)
+@ stdcall EnumResourceTypesA(long ptr long)
+@ stdcall EnumResourceTypesW(long ptr long)
+@ stdcall EnumSystemCodePagesA(ptr long)
+@ stdcall EnumSystemCodePagesW(ptr long)
+@ stdcall EnumSystemGeoID(long long ptr)
+@ stdcall EnumSystemLanguageGroupsA(ptr long ptr)
+@ stdcall EnumSystemLanguageGroupsW(ptr long ptr)
+@ stdcall EnumSystemLocalesA(ptr long)
+@ stdcall EnumSystemLocalesW(ptr long)
+@ stdcall EnumTimeFormatsA(ptr long long)
+@ stdcall EnumTimeFormatsW(ptr long long)
+@ stdcall EnumUILanguagesA(ptr long long)
+@ stdcall EnumUILanguagesW(ptr long long)
+@ stub EnumerateLocalComputerNamesA
+@ stub EnumerateLocalComputerNamesW
+@ stdcall EraseTape(ptr long long)
+@ stdcall EscapeCommFunction(long long)
+@ stdcall ExitProcess(long)
+@ stdcall ExitThread(long)
+@ stub ExitVDM
+@ stdcall ExpandEnvironmentStringsA(str ptr long)
+@ stdcall ExpandEnvironmentStringsW(wstr ptr long)
+@ stdcall ExpungeConsoleCommandHistoryA(long)
+@ stdcall ExpungeConsoleCommandHistoryW(long)
+@ stdcall ExtendVirtualBuffer(long long)
+@ stdcall FatalAppExitA(long str)
+@ stdcall FatalAppExitW(long wstr)
+@ stdcall FatalExit(long)
+@ stdcall FileTimeToDosDateTime(ptr ptr ptr)
+@ stdcall FileTimeToLocalFileTime(ptr ptr)
+@ stdcall FileTimeToSystemTime(ptr ptr)
+@ stdcall FillConsoleOutputAttribute(long long long long ptr)
+@ stdcall FillConsoleOutputCharacterA(long long long long ptr)
+@ stdcall FillConsoleOutputCharacterW(long long long long ptr)
+@ stdcall FindActCtxSectionGuid(long ptr long ptr ptr)
+@ stdcall FindActCtxSectionStringA(long ptr long str ptr)
+@ stdcall FindActCtxSectionStringW(long ptr long wstr ptr)
+@ stdcall FindAtomA(str)
+@ stdcall FindAtomW(wstr)
+@ stdcall FindClose(long)
+@ stdcall FindCloseChangeNotification(long)
+@ stdcall FindFirstChangeNotificationA(str long long)
+@ stdcall FindFirstChangeNotificationW(wstr long long)
+@ stdcall FindFirstFileA(str ptr)
+@ stdcall FindFirstFileExA(str long ptr long ptr long)
+@ stdcall FindFirstFileExW(wstr long ptr long ptr long)
+@ stdcall FindFirstFileW(wstr ptr)
+@ stdcall FindFirstStreamW(wstr ptr ptr long)
+@ stdcall FindFirstVolumeA(ptr long)
+@ stdcall FindFirstVolumeMountPointA(str ptr long)
+@ stdcall FindFirstVolumeMountPointW(wstr ptr long)
+@ stdcall FindFirstVolumeW(ptr long)
+@ stdcall FindNextChangeNotification(long)
+@ stdcall FindNextFileA(long ptr)
+@ stdcall FindNextFileW(long ptr)
+@ stdcall FindNextVolumeA(long ptr long)
+@ stdcall FindNextVolumeMountPointA(long str long)
+@ stdcall FindNextVolumeMountPointW(long wstr long)
+@ stdcall FindNextVolumeW(long ptr long)
+@ stdcall FindResourceA(long str str)
+@ stdcall FindResourceExA(long str str long)
+@ stdcall FindResourceExW(long wstr wstr long)
+@ stdcall FindResourceW(long wstr wstr)
+@ stdcall FindVolumeClose(ptr)
+@ stdcall FindVolumeMountPointClose(ptr)
+@ stdcall FlsAlloc(ptr)
+@ stdcall FlsFree(long)
+@ stdcall FlsGetValue(long)
+@ stdcall FlsSetValue(long ptr)
+@ stdcall FlushConsoleInputBuffer(long)
+@ stdcall FlushFileBuffers(long)
+@ stdcall FlushInstructionCache(long long long)
+@ stdcall FlushViewOfFile(ptr long)
+@ stdcall FoldStringA(long str long ptr long)
+@ stdcall FoldStringW(long wstr long ptr long)
+@ stdcall FormatMessageA(long ptr long long ptr long ptr)
+@ stdcall FormatMessageW(long ptr long long ptr long ptr)
+@ stdcall FreeConsole()
+@ stdcall FreeEnvironmentStringsA(ptr)
+@ stdcall FreeEnvironmentStringsW(ptr)
+@ stdcall FreeLibrary(long)
+@ stdcall FreeLibraryAndExitThread(long long)
+@ stdcall FreeResource(long)
+@ stdcall FreeUserPhysicalPages(long long long)
+@ stdcall FreeVirtualBuffer(ptr)
+@ stdcall GenerateConsoleCtrlEvent(long long)
+@ stdcall GetACP()
+@ stdcall GetAtomNameA(long ptr long)
+@ stdcall GetAtomNameW(long ptr long)
+@ stdcall GetBinaryType(str ptr) GetBinaryTypeA
+@ stdcall GetBinaryTypeA(str ptr)
+@ stdcall GetBinaryTypeW(wstr ptr)
+@ stdcall GetCPFileNameFromRegistry(long wstr long) #check
+@ stdcall GetCPInfo(long ptr)
+@ stdcall GetCPInfoExA(long long ptr)
+@ stdcall GetCPInfoExW(long long ptr)
+@ stdcall GetCalendarInfoA(long long long ptr long ptr)
+@ stdcall GetCalendarInfoW(long long long ptr long ptr)
+@ stub GetComPlusPackageInstallStatus
+@ stdcall GetCommConfig(long ptr long)
+@ stdcall GetCommMask(long ptr)
+@ stdcall GetCommModemStatus(long ptr)
+@ stdcall GetCommProperties(long ptr)
+@ stdcall GetCommState(long ptr)
+@ stdcall GetCommTimeouts(long ptr)
+@ stdcall GetCommandLineA()
+@ stdcall GetCommandLineW()
+@ stdcall GetCompressedFileSizeA(long ptr)
+@ stdcall GetCompressedFileSizeW(long ptr)
+@ stdcall GetComputerNameA(ptr ptr)
+@ stdcall GetComputerNameExA(long ptr ptr)
+@ stdcall GetComputerNameExW(long ptr ptr)
+@ stdcall GetComputerNameW(ptr ptr)
+@ stdcall GetConsoleAliasA(str str long str)
+@ stdcall GetConsoleAliasExesA(str long)
+@ stdcall GetConsoleAliasExesLengthA()
+@ stdcall GetConsoleAliasExesLengthW()
+@ stdcall GetConsoleAliasExesW(wstr long)
+@ stdcall GetConsoleAliasW(wstr wstr long wstr)
+@ stdcall GetConsoleAliasesA(str long str)
+@ stdcall GetConsoleAliasesLengthA(str)
+@ stdcall GetConsoleAliasesLengthW(wstr)
+@ stdcall GetConsoleAliasesW(wstr long wstr)
+@ stdcall GetConsoleCP()
+@ stub GetConsoleCharType
+@ stdcall GetConsoleCommandHistoryA(long long long) #check
+@ stdcall GetConsoleCommandHistoryLengthA(long long long)#check
+@ stdcall GetConsoleCommandHistoryLengthW(long)#check
+@ stdcall GetConsoleCommandHistoryW(long long long)#check
+@ stdcall GetConsoleCursorInfo(long ptr)
+@ stub GetConsoleCursorMode
+@ stdcall GetConsoleDisplayMode(ptr)
+@ stub GetConsoleFontInfo
+@ stub GetConsoleFontSize
+@ stub GetConsoleHardwareState
+@ stdcall GetConsoleInputExeNameA(long ptr)
+@ stdcall GetConsoleInputExeNameW(long ptr)
+@ stdcall GetConsoleInputWaitHandle()
+@ stdcall GetConsoleKeyboardLayoutNameA(ptr)
+@ stdcall GetConsoleKeyboardLayoutNameW(ptr)
+@ stdcall GetConsoleMode(long ptr)
+@ stub GetConsoleNlsMode
+@ stdcall GetConsoleOutputCP()
+@ stub GetConsoleProcessist
+@ stdcall GetConsoleScreenBufferInfo(long ptr)
+@ stub GetConsoleSelectionInfo
+@ stdcall GetConsoleTitleA(ptr long)
+@ stdcall GetConsoleTitleW(ptr long)
+@ stdcall GetConsoleWindow()
+@ stdcall GetCurrencyFormatA(long long str ptr str long)
+@ stdcall GetCurrencyFormatW(long long str ptr str long)
+@ stdcall GetCurrentActCtx(ptr)
+@ stub GetCurrentConsoleFont
+@ stdcall GetCurrentDirectoryA(long ptr)
+@ stdcall GetCurrentDirectoryW(long ptr)
+@ stdcall GetCurrentProcess()
+@ stdcall GetCurrentProcessId()
+@ stdcall GetCurrentThread()
+@ stdcall GetCurrentThreadId()
+@ stdcall GetDateFormatA(long long ptr str ptr long)
+@ stdcall GetDateFormatW(long long ptr wstr ptr long)
+@ stub GetDaylightFlag
+@ stdcall GetDefaultCommConfigA(str ptr long)
+@ stdcall GetDefaultCommConfigW(wstr ptr long)
+@ stub GetDefaultSortkeySize
+@ stdcall GetDevicePowerState(long ptr)
+@ stdcall GetDiskFreeSpaceA(str ptr ptr ptr ptr)
+@ stdcall GetDiskFreeSpaceExA (str ptr ptr ptr)
+@ stdcall GetDiskFreeSpaceExW (wstr ptr ptr ptr)
+@ stdcall GetDiskFreeSpaceW(wstr ptr ptr ptr ptr)
+@ stdcall GetDllDirectoryA(long ptr)
+@ stdcall GetDllDirectoryW(long ptr)
+@ stdcall GetDriveTypeA(str)
+@ stdcall GetDriveTypeW(wstr)
+@ stdcall GetEnvironmentStrings()
+@ stdcall GetEnvironmentStringsA() GetEnvironmentStrings
+@ stdcall GetEnvironmentStringsW()
+@ stdcall GetEnvironmentVariableA(str ptr long)
+@ stdcall GetEnvironmentVariableW(wstr ptr long)
+@ stub GetErrorMode
+@ stdcall GetExitCodeProcess(long ptr)
+@ stdcall GetExitCodeThread(long ptr)
+@ stdcall GetExpandedNameA(str ptr)
+@ stdcall GetExpandedNameW(wstr ptr)
+@ stdcall GetFileAttributesA(str)
+@ stdcall GetFileAttributesByHandle(long ptr long)
+@ stdcall GetFileAttributesExA(str long ptr)
+@ stdcall GetFileAttributesExW(wstr long ptr)
+@ stdcall GetFileAttributesW(wstr)
+@ stdcall GetFileBandwidthReservation(long ptr ptr ptr ptr ptr)
+@ stdcall GetFileInformationByHandle(long ptr)
+@ stdcall GetFileSize(long ptr)
+@ stdcall GetFileSizeEx(long ptr)
+@ stdcall GetFileTime(long ptr ptr ptr)
+@ stdcall GetFileType(long)
+@ stdcall GetFinalPathNameByHandleA(long str long long)
+@ stdcall GetFinalPathNameByHandleW(long wstr long long)
+@ stub GetFirmwareEnvironmentVariableA
+@ stub GetFirmwareEnvironmentVariableW
+@ stdcall GetFullPathNameA(str long ptr ptr)
+@ stdcall GetFullPathNameW(wstr long ptr ptr)
+@ stdcall GetGeoInfoA(long long ptr long long)
+@ stdcall GetGeoInfoW(long long ptr long long)
+@ stdcall GetHandleContext(long)
+@ stdcall GetHandleInformation(long ptr)
+@ stub GetSCallbackTarget
+@ stub GetSCallbackTemplate
+@ stdcall GetLargePageMinimum()
+@ stdcall GetLargestConsoleWindowSize(long)
+@ stdcall GetLastError()
+@ stub GetLinguistLangSize
+@ stdcall GetLocalTime(ptr)
+@ stdcall GetLocaleInfoA(long long ptr long)
+@ stdcall GetLocaleInfoW(long long ptr long)
+@ stdcall GetLogicalDriveStringsA(long ptr)
+@ stdcall GetLogicalDriveStringsW(long ptr)
+@ stdcall GetLogicalDrives()
+@ stdcall GetLongPathNameA (str long long)
+@ stdcall GetLongPathNameW (wstr long long)
+@ stdcall GetMailslotInfo(long ptr ptr ptr ptr)
+@ stdcall GetModuleFileNameA(long ptr long)
+@ stdcall GetModuleFileNameW(long ptr long)
+@ stdcall GetModuleHandleA(str)
+@ stdcall GetModuleHandleExA(long ptr ptr)
+@ stdcall GetModuleHandleExW(long ptr ptr)
+@ stdcall GetModuleHandleW(wstr)
+@ stdcall GetNamedPipeHandleStateA(long ptr ptr ptr ptr str long)
+@ stdcall GetNamedPipeHandleStateW(long ptr ptr ptr ptr wstr long)
+@ stdcall GetNamedPipeInfo(long ptr ptr ptr ptr)
+@ stdcall GetNativeSystemInfo(ptr)
+@ stub GetNextVDMCommand
+@ stub GetNlsSectionName
+@ stub GetNumaAvailableMemory
+@ stub GetNumaAvailableMemoryNode
+@ stub GetNumaHighestNodeNumber
+@ stub GetNumaNodeProcessorMask
+@ stub GetNumaProcessorMap
+@ stub GetNumaProcessorNode
+@ stdcall GetNumberFormatA(long long str ptr ptr long)
+@ stdcall GetNumberFormatW(long long wstr ptr ptr long)
+@ stdcall GetNumberOfConsoleFonts()
+@ stdcall GetNumberOfConsoleInputEvents(long ptr)
+@ stdcall GetNumberOfConsoleMouseButtons(ptr)
+@ stdcall GetOEMCP()
+@ stdcall GetOverlappedResult(long ptr ptr long)
+@ stdcall GetPriorityClass(long)
+@ stdcall GetPrivateProfileIntA(str str long str)
+@ stdcall GetPrivateProfileIntW(wstr wstr long wstr)
+@ stdcall GetPrivateProfileSectionA(str ptr long str)
+@ stdcall GetPrivateProfileSectionNamesA(ptr long str)
+@ stdcall GetPrivateProfileSectionNamesW(ptr long wstr)
+@ stdcall GetPrivateProfileSectionW(wstr ptr long wstr)
+@ stdcall GetPrivateProfileStringA(str str str ptr long str)
+@ stdcall GetPrivateProfileStringW(wstr wstr wstr ptr long wstr)
+@ stdcall GetPrivateProfileStructA (str str ptr long str)
+@ stdcall GetPrivateProfileStructW(wstr wstr ptr long wstr)
+@ stdcall GetProcAddress(long str)
+@ stdcall GetProcessAffinityMask(long ptr ptr)
+@ stdcall GetProcessHandleCount(long ptr)
+@ stdcall GetProcessHeap()
+@ stdcall GetProcessHeaps(long ptr)
+@ stdcall GetProcessId(long)
+@ stdcall GetProcessIoCounters(long ptr)
+@ stdcall GetProcessPriorityBoost(long ptr)
+@ stdcall GetProcessShutdownParameters(ptr ptr)
+@ stdcall GetProcessTimes(long ptr ptr ptr ptr)
+@ stdcall GetProcessVersion(long)
+@ stdcall GetProcessWorkingSetSize(long ptr ptr)
+@ stub GetProductName
+@ stdcall GetProfileIntA(str str long)
+@ stdcall GetProfileIntW(wstr wstr long)
+@ stdcall GetProfileSectionA(str ptr long)
+@ stdcall GetProfileSectionW(wstr ptr long)
+@ stdcall GetProfileStringA(str str str ptr long)
+@ stdcall GetProfileStringW(wstr wstr wstr ptr long)
+@ stdcall GetQueuedCompletionStatus(long ptr ptr ptr long)
+@ stub GetLSCallbackTarget
+@ stub GetLSCallbackTemplate
+@ stdcall GetShortPathNameA(str ptr long)
+@ stdcall GetShortPathNameW(wstr ptr long)
+@ stdcall GetStartupInfoA(ptr)
+@ stdcall GetStartupInfoW(ptr)
+@ stdcall GetStdHandle(long)
+@ stdcall GetStringTypeA(long long str long ptr)
+@ stdcall GetStringTypeExA(long long str long ptr)
+@ stdcall GetStringTypeExW(long long wstr long ptr)
+@ stdcall GetStringTypeW(long wstr long ptr)
+@ stdcall GetSystemDefaultLCID()
+@ stdcall GetSystemDefaultLangID()
+@ stdcall GetSystemDefaultUILanguage()
+@ stdcall GetSystemDirectoryA(ptr long)
+@ stdcall GetSystemDirectoryW(ptr long)
+@ stdcall GetSystemInfo(ptr)
+@ stdcall GetSystemPowerStatus(ptr)
+@ stub GetSystemRegistryQuota
+@ stdcall GetSystemTime(ptr)
+@ stdcall GetSystemTimeAdjustment(ptr ptr ptr)
+@ stdcall GetSystemTimeAsFileTime(ptr)
+@ stub GetSystemTimes
+@ stdcall GetSystemWindowsDirectoryA(ptr long)
+@ stdcall GetSystemWindowsDirectoryW(ptr long)
+@ stdcall GetSystemWow64DirectoryA(ptr long)
+@ stdcall GetSystemWow64DirectoryW(ptr long)
+@ stdcall GetTapeParameters(ptr long ptr ptr)
+@ stdcall GetTapePosition(ptr long ptr ptr ptr)
+@ stdcall GetTapeStatus(ptr)
+@ stdcall GetTempFileNameA(str str long ptr)
+@ stdcall GetTempFileNameW(wstr wstr long ptr)
+@ stdcall GetTempPathA(long ptr)
+@ stdcall GetTempPathW(long ptr)
+@ stdcall GetThreadContext(long ptr)
+@ stdcall GetThreadId(ptr)
+@ stub GetThreadIOPendingFlag
+@ stdcall GetThreadLocale()
+@ stdcall GetThreadPriority(long)
+@ stdcall GetThreadPriorityBoost(long ptr)
+@ stdcall GetThreadSelectorEntry(long long ptr)
+@ stdcall GetThreadTimes(long ptr ptr ptr ptr)
+@ stdcall GetTickCount()
+@ stdcall -ret64 GetTickCount64()
+@ stdcall GetTimeFormatA(long long ptr str ptr long)
+@ stdcall GetTimeFormatW(long long ptr wstr ptr long)
+@ stdcall GetTimeZoneInformation(ptr)
+@ stdcall GetUserDefaultLCID()
+@ stdcall GetUserDefaultLangID()
+@ stdcall GetUserDefaultUILanguage()
+@ stdcall GetUserGeoID(long)
+@ stub GetVDMCurrentDirectories
+@ stdcall GetVersion()
+@ stdcall GetVersionExA(ptr)
+@ stdcall GetVersionExW(ptr)
+@ stdcall GetVolumeInformationA(str ptr long ptr ptr ptr ptr long)
+@ stdcall GetVolumeInformationW(wstr ptr long ptr ptr ptr ptr long)
+@ stdcall GetVolumeNameForVolumeMountPointA(str ptr long)
+@ stdcall GetVolumeNameForVolumeMountPointW(wstr ptr long)
+@ stdcall GetVolumePathNameA(str ptr long)
+@ stdcall GetVolumePathNameW(wstr ptr long)
+@ stub GetVolumePathNamesForVolumeNameA
+@ stub GetVolumePathNamesForVolumeNameW
+@ stdcall GetWindowsDirectoryA(ptr long)
+@ stdcall GetWindowsDirectoryW(ptr long)
+@ stub GetWriteWatch
+@ stdcall GlobalAddAtomA(str)
+@ stdcall GlobalAddAtomW(wstr)
+@ stdcall GlobalAlloc(long long)
+@ stdcall GlobalCompact(long)
+@ stdcall GlobalDeleteAtom(long)
+@ stdcall GlobalFindAtomA(str)
+@ stdcall GlobalFindAtomW(wstr)
+@ stdcall GlobalFix(long)
+@ stdcall GlobalFlags(long)
+@ stdcall GlobalFree(long)
+@ stdcall GlobalGetAtomNameA(long ptr long)
+@ stdcall GlobalGetAtomNameW(long ptr long)
+@ stdcall GlobalHandle(ptr)
+@ stdcall GlobalLock(long)
+@ stdcall GlobalMemoryStatus(ptr)
+@ stdcall GlobalMemoryStatusEx(ptr)
+@ stdcall GlobalReAlloc(long long long)
+@ stdcall GlobalSize(long)
+@ stdcall GlobalUnWire(long)
+@ stdcall GlobalUnfix(long)
+@ stdcall GlobalUnlock(long)
+@ stdcall GlobalWire(long)
+@ stub Heap32First
+@ stdcall Heap32ListFirst(long ptr)
+@ stub Heap32ListNext
+@ stub Heap32Next
+@ stdcall HeapAlloc(long long long) ntdll.RtlAllocateHeap
+@ stdcall HeapCompact(long long)
+@ stdcall HeapCreate(long long long)
+@ stub HeapCreateTagsW
+@ stdcall HeapDestroy(long)
+@ stub HeapExtend
+@ stdcall HeapFree(long long long) ntdll.RtlFreeHeap
+@ stdcall HeapLock(long)
+@ stub HeapQueryInformation
+@ stub HeapQueryTagW
+@ stdcall HeapReAlloc(long long ptr long) ntdll.RtlReAllocateHeap
+@ stub HeapSetFlags
+@ stdcall HeapSetInformation(ptr long ptr long)
+@ stdcall HeapSize(long long ptr) ntdll.RtlSizeHeap
+@ stub HeapSummary
+@ stdcall HeapUnlock(long)
+@ stub HeapUsage
+@ stdcall HeapValidate(long long ptr)
+@ stdcall HeapWalk(long ptr)
+@ stdcall InitAtomTable(long)
+@ stdcall InitializeCriticalSection(ptr)
+@ stdcall InitializeCriticalSectionAndSpinCount(ptr long)
+@ stdcall InitializeCriticalSectionEx(ptr long long)
+@ stdcall InitializeSListHead(ptr) ntdll.RtlInitializeSListHead
+@ stdcall InitializeSRWLock(ptr) ntdll.RtlInitializeSRWLock
+@ stdcall InterlockedCompareExchange (ptr long long)
+@ stdcall InterlockedDecrement(ptr)
+@ stdcall InterlockedExchange(ptr long)
+@ stdcall InterlockedExchangeAdd (ptr long )
+@ stdcall InterlockedFlushSList(ptr) ntdll.RtlInterlockedFlushSList
+@ stdcall InterlockedIncrement(ptr)
+@ stdcall InterlockedPopEntrySList(ptr) ntdll.RtlInterlockedPopEntrySList
+@ stdcall InterlockedPushEntrySList(ptr ptr) ntdll.RtlInterlockedPushEntrySList
+@ stub InvalidateConsoleDIBits
+@ stub InvalidateNSCache
+@ stdcall IsBadCodePtr(ptr)
+@ stdcall IsBadHugeReadPtr(ptr long)
+@ stdcall IsBadHugeWritePtr(ptr long)
+@ stdcall IsBadReadPtr(ptr long)
+@ stdcall IsBadStringPtrA(ptr long)
+@ stdcall IsBadStringPtrW(ptr long)
+@ stdcall IsBadWritePtr(ptr long)
+@ stdcall IsDBCSLeadByte(long)
+@ stdcall IsDBCSLeadByteEx(long long)
+@ stdcall IsDebuggerPresent()
+@ stub IsProcessInJob
+@ stdcall IsProcessorFeaturePresent(long)
+@ stdcall IsSystemResumeAutomatic()
+@ stdcall IsValidCodePage(long)
+@ stdcall IsValidLanguageGroup(long long)
+@ stdcall IsValidLocale(long long)
+@ stub IsValidUILanguage
+@ stdcall IsWow64Process(ptr ptr)
+@ stub LCIDToLocaleName
+@ stdcall LCMapStringA(long long str long ptr long)
+@ stdcall LCMapStringW(long long wstr long ptr long)
+@ stdcall LeaveCriticalSection(ptr) ntdll.RtlLeaveCriticalSection
+@ stdcall LoadLibraryA(str)
+@ stdcall LoadLibraryExA( str long long)
+@ stdcall LoadLibraryExW(wstr long long)
+@ stdcall LoadLibraryW(wstr)
+@ stdcall LoadModule(str ptr)
+@ stdcall LoadResource(long long)
+@ stdcall LocalAlloc(long long)
+@ stdcall LocalCompact(long)
+@ stdcall LocalFileTimeToFileTime(ptr ptr)
+@ stdcall LocalFlags(long)
+@ stdcall LocalFree(long)
+@ stdcall LocalHandle(ptr)
+@ stdcall LocalLock(long)
+@ stdcall LocalReAlloc(long long long)
+@ stdcall LocalShrink(long long)
+@ stdcall LocalSize(long)
+@ stdcall LocalUnlock(long)
+@ stub LocaleNameToLCID
+@ stdcall LockFile(long long long long long)
+@ stdcall LockFileEx(long long long long long ptr)
+@ stdcall LockResource(long)
+@ stdcall LZClose(long)
+@ stdcall LZCopy(long long)
+@ stdcall LZDone()
+@ stdcall LZInit(long)
+@ stdcall LZOpenFileA(str ptr long)
+@ stdcall LZOpenFileW(wstr ptr long)
+@ stdcall LZRead(long str long) #check
+@ stdcall LZSeek(long long long) #check
+@ stdcall LZStart()
+@ stdcall MapUserPhysicalPages(ptr long ptr)
+@ stdcall MapUserPhysicalPagesScatter(ptr long ptr)
+@ stdcall MapViewOfFile(long long long long long)
+@ stdcall MapViewOfFileEx(long long long long long ptr)
+@ stdcall Module32First(long ptr)
+@ stdcall Module32FirstW(long ptr)
+@ stdcall Module32Next(long ptr)
+@ stdcall Module32NextW(long ptr)
+@ stdcall MoveFileA(str str)
+@ stdcall MoveFileExA(str str long)
+@ stdcall MoveFileExW(wstr wstr long)
+@ stdcall MoveFileW(wstr wstr)
+@ stdcall MoveFileWithProgressA(str str ptr ptr long)
+@ stdcall MoveFileWithProgressW(wstr wstr ptr ptr long)
+@ stdcall MulDiv(long long long)
+@ stdcall MultiByteToWideChar(long long str long ptr long)
+@ stdcall NeedCurrentDirectoryForExePathA(str)
+@ stdcall NeedCurrentDirectoryForExePathW(wstr)
+@ stub NlsConvertIntegerToString
+@ stub NlsGetCacheUpdateCount
+@ stub NlsResetProcessocale
+@ stub NotifyNLSUserCache
+@ stub NumaVirtualQueryNode
+@ stdcall OpenConsoleW(wstr long long long)
+@ stub OpenDataFile
+@ stdcall OpenEventA(long long str)
+@ stdcall OpenEventW(long long wstr)
+@ stdcall OpenFile(str ptr long)
+@ stdcall OpenFileMappingA(long long str)
+@ stdcall OpenFileMappingW(long long wstr)
+@ stub OpenJobObjectA
+@ stub OpenJobObjectW
+@ stdcall OpenMutexA(long long str)
+@ stdcall OpenMutexW(long long wstr)
+@ stdcall OpenProcess(long long long)
+@ stub OpenProfileUserMapping
+@ stdcall OpenSemaphoreA(long long str)
+@ stdcall OpenSemaphoreW(long long wstr)
+@ stdcall OpenThread(long long long)
+@ stdcall OpenWaitableTimerA(long long str)
+@ stdcall OpenWaitableTimerW(long long wstr)
+@ stdcall OutputDebugStringA(str)
+@ stdcall OutputDebugStringW(wstr)
+@ stdcall PeekConsoleInputA(ptr ptr long ptr)
+@ stdcall PeekConsoleInputW(ptr ptr long ptr)
+@ stdcall PeekNamedPipe(long ptr long ptr ptr ptr)
+@ stdcall PostQueuedCompletionStatus(long long ptr ptr)
+@ stdcall PrepareTape(ptr long long)
+@ stub PrivCopyFileExW
+@ stub PrivMoveFileIdentityW
+@ stdcall Process32First (ptr ptr)
+@ stdcall Process32FirstW (ptr ptr)
+@ stdcall Process32Next (ptr ptr)
+@ stdcall Process32NextW (ptr ptr)
+@ stdcall ProcessIdToSessionId(long ptr)
+@ stdcall PulseEvent(long)
+@ stdcall PurgeComm(long long)
+@ stdcall QueryActCtxW(long ptr ptr long ptr long ptr)
+@ stdcall QueryDepthSList(ptr) ntdll.RtlQueryDepthSList
+@ stdcall QueryDosDeviceA(str ptr long)
+@ stdcall QueryDosDeviceW(wstr ptr long)
+@ stub QueryInformationJobObject
+@ stub QueryMemoryResourceNotification
+@ stub QueryNumberOfEventogRecords
+@ stub QueryOldestEventogRecord
+@ stdcall QueryPerformanceCounter(ptr)
+@ stdcall QueryPerformanceFrequency(ptr)
+@ stub QueryWin31IniFilesMappedToRegistry
+@ stdcall QueueUserAPC(ptr long long)
+@ stdcall QueueUserWorkItem(ptr ptr long)
+@ stdcall RaiseException(long long long ptr)
+@ stdcall ReadConsoleA(long ptr long ptr ptr)
+@ stdcall ReadConsoleInputA(long ptr long ptr)
+@ stub ReadConsoleInputExA
+@ stub ReadConsoleInputExW
+@ stdcall ReadConsoleInputW(long ptr long ptr)
+@ stdcall ReadConsoleOutputA(long ptr long long ptr)
+@ stdcall ReadConsoleOutputAttribute(long ptr long long ptr)
+@ stdcall ReadConsoleOutputCharacterA(long ptr long long ptr)
+@ stdcall ReadConsoleOutputCharacterW(long ptr long long ptr)
+@ stdcall ReadConsoleOutputW(long ptr long long ptr)
+@ stdcall ReadConsoleW(long ptr long ptr ptr)
+@ stdcall ReadDirectoryChangesW(long ptr long long long ptr ptr ptr)
+@ stdcall ReadFile(long ptr long ptr ptr)
+@ stdcall ReadFileEx(long ptr long ptr ptr)
+@ stdcall ReadFileScatter(long ptr long ptr ptr)
+@ stdcall ReadProcessMemory(long ptr ptr long ptr)
+@ stdcall RegisterApplicationRestart(wstr long)
+@ stub RegisterConsoleIME
+@ stub RegisterConsoleOS2
+@ stub RegisterConsoleVDM
+@ stub RegisterServiceProcess
+@ stub RegisterSysMsgHandler
+@ stub RegisterWaitForInputIdle
+@ stdcall RegisterWaitForSingleObject(ptr long ptr ptr long long)
+@ stdcall RegisterWaitForSingleObjectEx(long ptr ptr long long)
+@ stub RegisterWowBaseHandlers
+@ stub RegisterWowExec
+@ stdcall ReleaseActCtx(ptr)
+@ stdcall ReleaseMutex(long)
+@ stdcall ReleaseSemaphore(long long ptr)
+@ stdcall ReleaseSRWLockExclusive(ptr) ntdll.RtlReleaseSRWLockExclusive
+@ stdcall ReleaseSRWLockShared(ptr) ntdll.RtlReleaseSRWLockShared
+@ stdcall RemoveDirectoryA(str)
+@ stdcall RemoveDirectoryW(wstr)
+@ stub RemoveLocalAlternateComputerNameA
+@ stub RemoveLocalAlternateComputerNameW
+@ stdcall RemoveVectoredExceptionHandler(ptr) ntdll.RtlRemoveVectoredExceptionHandler
+@ stdcall ReplaceFile(wstr wstr wstr long ptr ptr) ReplaceFileW
+@ stdcall ReplaceFileA(str str str long ptr ptr)
+@ stdcall ReplaceFileW(wstr wstr wstr long ptr ptr)
+@ stub RequestDeviceWakeup
+@ stdcall RequestWakeupLatency(long)
+@ stdcall ResetEvent(long)
+@ stub ResetWriteWatch
+@ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error
+@ stdcall ResumeThread(long)
+@ stdcall RtlCaptureContext(ptr) ntdll.RtlCaptureContext
+@ stdcall RtlCaptureStackBackTrace(long long ptr ptr)  ntdll.RtlCaptureStackBackTrace
+@ stdcall RtlFillMemory(ptr long long) ntdll.RtlFillMemory
+@ stdcall RtlMoveMemory(ptr ptr long) ntdll.RtlMoveMemory
+@ stdcall RtlUnwind(ptr ptr ptr long) ntdll.RtlUnwind
+@ stdcall RtlZeroMemory(ptr long) ntdll.RtlZeroMemory
+@ stdcall ScrollConsoleScreenBufferA(long ptr ptr ptr ptr)
+@ stdcall ScrollConsoleScreenBufferW(long ptr ptr ptr ptr)
+@ stdcall SearchPathA(str str str long ptr ptr)
+@ stdcall SearchPathW(wstr wstr wstr long ptr ptr)
+@ stdcall SetCPGlobal(long)
+@ stdcall SetCalendarInfoA(long long long str)
+@ stdcall SetCalendarInfoW(long long long wstr)
+@ stub SetClientTimeZoneInformation
+@ stub SetComPlusPackageInstallStatus
+@ stdcall SetCommBreak(long)
+@ stdcall SetCommConfig(long ptr long)
+@ stdcall SetCommMask(long ptr)
+@ stdcall SetCommState(long ptr)
+@ stdcall SetCommTimeouts(long ptr)
+@ stdcall SetComputerNameA(str)
+@ stdcall SetComputerNameExA(long str)
+@ stdcall SetComputerNameExW(long wstr)
+@ stdcall SetComputerNameW(wstr)
+@ stdcall SetConsoleActiveScreenBuffer(long)
+@ stdcall SetConsoleCP(long)
+@ stub SetConsoleCommandHistoryMode
+@ stdcall SetConsoleCtrlHandler(ptr long)
+@ stub SetConsoleCursor
+@ stdcall SetConsoleCursorInfo(long ptr)
+@ stub SetConsoleCursorMode
+@ stdcall SetConsoleCursorPosition(long long)
+@ stdcall SetConsoleDisplayMode(long long ptr)
+@ stub SetConsoleFont
+@ stub SetConsoleHardwareState
+@ stub SetConsoleIcon
+@ stdcall SetConsoleInputExeNameA(ptr)
+@ stdcall SetConsoleInputExeNameW(ptr)
+@ stub SetConsoleKeyShortcuts
+@ stub SetConsoleLocalEUDC
+@ stub SetConsoleMaximumWindowSize
+@ stub SetConsoleMenuClose
+@ stdcall SetConsoleMode(long long)
+@ stub SetConsoleNlsMode
+@ stub SetConsoleNumberOfCommandsA
+@ stub SetConsoleNumberOfCommandsW
+@ stub SetConsoleOS2OemFormat
+@ stdcall SetConsoleOutputCP(long)
+@ stub SetConsolePalette
+@ stdcall SetConsoleScreenBufferSize(long long)
+@ stdcall SetConsoleTextAttribute(long long)
+@ stdcall SetConsoleTitleA(str)
+@ stdcall SetConsoleTitleW(wstr)
+@ stdcall SetConsoleWindowInfo(long long ptr)
+@ stdcall SetCriticalSectionSpinCount(ptr long) ntdll.RtlSetCriticalSectionSpinCount
+@ stdcall SetCurrentDirectoryA(str)
+@ stdcall SetCurrentDirectoryW(wstr)
+@ stub SetDaylightFlag
+@ stdcall SetDefaultCommConfigA(str ptr long)
+@ stdcall SetDefaultCommConfigW(wstr ptr long)
+@ stdcall SetDllDirectoryA(str)
+@ stdcall SetDllDirectoryW(wstr)
+@ stdcall SetEndOfFile(long)
+@ stdcall SetEnvironmentVariableA(str str)
+@ stdcall SetEnvironmentVariableW(wstr wstr)
+@ stdcall SetErrorMode(long)
+@ stdcall SetEvent(long)
+@ stdcall SetFileApisToANSI()
+@ stdcall SetFileApisToOEM()
+@ stdcall SetFileAttributesA(str long)
+@ stdcall SetFileAttributesW(wstr long)
+@ stdcall SetFilePointer(long long ptr long)
+@ stdcall SetFilePointerEx(long double ptr long)
+@ stub SetFileShortNameA
+@ stub SetFileShortNameW
+@ stdcall SetFileTime(long ptr ptr ptr)
+@ stub SetFileValidData
+@ stub SetFirmwareEnvironmentVariableA
+@ stub SetFirmwareEnvironmentVariableW
+@ stdcall SetHandleContext(long long)
+@ stdcall SetHandleCount(long)
+@ stdcall SetHandleInformation(long long long)
+@ stub SetInformationJobObject
+@ stub SetastConsoleEventActive
+@ stdcall SetLastError(long)
+@ stub SetocalPrimaryComputerNameA
+@ stub SetocalPrimaryComputerNameW
+@ stdcall SetLocalTime(ptr)
+@ stdcall SetLocaleInfoA(long long str)
+@ stdcall SetLocaleInfoW(long long wstr)
+@ stdcall SetMailslotInfo(long long)
+@ stub SetMessageWaitingIndicator
+@ stdcall SetNamedPipeHandleState(long ptr ptr ptr)
+@ stdcall SetPriorityClass(long long)
+@ stdcall SetProcessAffinityMask(long long)
+@ stdcall SetProcessPriorityBoost(long long)
+@ stdcall SetProcessShutdownParameters(long long)
+@ stdcall SetProcessWorkingSetSize(long long long)
+@ stdcall SetStdHandle(long long)
+@ stdcall SetSystemPowerState(long long)
+@ stdcall SetSystemTime(ptr)
+@ stdcall SetSystemTimeAdjustment(long long)
+@ stdcall SetTapeParameters(ptr long ptr)
+@ stdcall SetTapePosition(ptr long long long long long)
+@ stdcall SetTermsrvAppInstallMode(long)
+@ stdcall SetThreadAffinityMask(long long)
+@ stdcall SetThreadContext(long ptr)
+@ stdcall SetThreadExecutionState(long)
+@ stdcall SetThreadIdealProcessor(long long)
+@ stdcall SetThreadLocale(long)
+@ stdcall SetThreadPriority(long long)
+@ stdcall SetThreadPriorityBoost(long long)
+@ stdcall SetThreadUILanguage(long)
+@ stdcall SetTimeZoneInformation(ptr)
+@ stub SetTimerQueueTimer
+@ stdcall SetUnhandledExceptionFilter(ptr)
+@ stdcall SetUserGeoID(long)
+@ stub SetVDMCurrentDirectories
+@ stdcall SetVolumeLabelA(str str)
+@ stdcall SetVolumeLabelW(wstr wstr)
+@ stub SetVolumeMountPointA
+@ stub SetVolumeMountPointW
+@ stdcall SetWaitableTimer(long ptr long ptr ptr long)
+@ stdcall SetupComm(long long long)
+@ stub ShowConsoleCursor
+@ stdcall SignalObjectAndWait(long long long long)
+@ stdcall SizeofResource(long long)
+@ stdcall Sleep(long)
+@ stdcall SleepEx(long long)
+@ stdcall SuspendThread(long)
+@ stdcall SwitchToFiber(ptr)
+@ stdcall SwitchToThread()
+@ stdcall SystemTimeToFileTime(ptr ptr)
+@ stdcall SystemTimeToTzSpecificLocalTime (ptr ptr ptr)
+@ stub TerminateJobObject
+@ stdcall TerminateProcess(long long)
+@ stdcall TerminateThread(long long)
+@ stdcall TermsrvAppInstallMode()
+@ stdcall Thread32First(long ptr)
+@ stdcall Thread32Next(long ptr)
+@ stdcall TlsAlloc()
+@ stub TlsAllocInternal
+@ stdcall TlsFree(long)
+@ stub TlsFreeInternal
+@ stdcall TlsGetValue(long)
+@ stdcall TlsSetValue(long ptr)
+@ stdcall Toolhelp32ReadProcessMemory(long ptr ptr long ptr)
+@ stdcall TransactNamedPipe(long ptr long ptr long ptr ptr)
+@ stdcall TransmitCommChar(long long)
+@ stdcall TrimVirtualBuffer(ptr)
+@ stdcall TryEnterCriticalSection(ptr) ntdll.RtlTryEnterCriticalSection
+@ stdcall TzSpecificLocalTimeToSystemTime(ptr ptr ptr)
+@ stdcall UTRegister(long str str str ptr ptr ptr)
+@ stdcall UTUnRegister(long)
+@ stdcall UnhandledExceptionFilter(ptr)
+@ stdcall UnlockFile(long long long long long)
+@ stdcall UnlockFileEx(long long long long ptr)
+@ stdcall UnmapViewOfFile(ptr)
+@ stub UnregisterConsoleIME
+@ stdcall UnregisterWait(long)
+@ stdcall UnregisterWaitEx(long long)
+@ stdcall UpdateResourceA(long str str long ptr long)
+@ stdcall UpdateResourceW(long wstr wstr long ptr long)
+@ stub VDMConsoleOperation
+@ stub VDMOperationStarted
+@ stub ValidateCType
+@ stub ValidatLeocale
+@ stdcall VerLanguageNameA(long str long)
+@ stdcall VerLanguageNameW(long wstr long)
+@ stdcall -ret64 VerSetConditionMask(long long long long) ntdll.VerSetConditionMask
+@ stdcall VerifyConsoleIoHandle(long)
+@ stdcall VerifyVersionInfoA(long long double)
+@ stdcall VerifyVersionInfoW(long long double)
+@ stdcall VirtualAlloc(ptr long long long)
+@ stdcall VirtualAllocEx(long ptr long long long)
+@ stub VirtualBufferExceptionHandler
+@ stdcall VirtualFree(ptr long long)
+@ stdcall VirtualFreeEx(long ptr long long)
+@ stdcall VirtualLock(ptr long)
+@ stdcall VirtualProtect(ptr long long ptr)
+@ stdcall VirtualProtectEx(long ptr long long ptr)
+@ stdcall VirtualQuery(ptr ptr long)
+@ stdcall VirtualQueryEx(long ptr ptr long)
+@ stdcall VirtualUnlock(ptr long)
+@ stdcall WakeAllConditionVariable(ptr) ntdll.RtlWakeAllConditionVariable
+@ stdcall WakeConditionVariable(ptr) ntdll.RtlWakeConditionVariable
+@ stdcall WaitCommEvent(long ptr ptr)
+@ stdcall WaitForDebugEvent(ptr long)
+@ stdcall WaitForMultipleObjects(long ptr long long)
+@ stdcall WaitForMultipleObjectsEx(long ptr long long long)
+@ stdcall WaitForSingleObject(long long)
+@ stdcall WaitForSingleObjectEx(long long long)
+@ stdcall WaitNamedPipeA (str long)
+@ stdcall WaitNamedPipeW (wstr long)
+@ stdcall WideCharToMultiByte(long long wstr long ptr long ptr ptr)
+@ stdcall WinExec(str long)
+@ stdcall Wow64EnableWow64FsRedirection(long)
+@ stdcall Wow64DisableWow64FsRedirection(long)
+@ stdcall Wow64RevertWow64FsRedirection(long)
+@ stdcall WriteConsoleA(long ptr long ptr ptr)
+@ stdcall WriteConsoleInputA(long ptr long ptr)
+@ stub WriteConsoleInputVDMA
+@ stub WriteConsoleInputVDMW
+@ stdcall WriteConsoleInputW(long ptr long ptr)
+@ stdcall WriteConsoleOutputA(long ptr long long ptr)
+@ stdcall WriteConsoleOutputAttribute(long ptr long long ptr)
+@ stdcall WriteConsoleOutputCharacterA(long ptr long long ptr)
+@ stdcall WriteConsoleOutputCharacterW(long ptr long long ptr)
+@ stdcall WriteConsoleOutputW(long ptr long long ptr)
+@ stdcall WriteConsoleW(long ptr long ptr ptr)
+@ stdcall WriteFile(long ptr long ptr ptr)
+@ stdcall WriteFileEx(long ptr long ptr ptr)
+@ stdcall WriteFileGather(long ptr long ptr ptr)
+@ stdcall WritePrivateProfileSectionA(str str str)
+@ stdcall WritePrivateProfileSectionW(wstr wstr wstr)
+@ stdcall WritePrivateProfileStringA(str str str str)
+@ stdcall WritePrivateProfileStringW(wstr wstr wstr wstr)
+@ stdcall WritePrivateProfileStructA (str str ptr long str)
+@ stdcall WritePrivateProfileStructW(wstr wstr ptr long wstr)
+@ stdcall WriteProcessMemory(long ptr ptr long ptr)
+@ stdcall WriteProfileSectionA(str str)
+@ stdcall WriteProfileSectionW(str str)
+@ stdcall WriteProfileStringA(str str str)
+@ stdcall WriteProfileStringW(wstr wstr wstr)
+@ stdcall WriteTapemark(ptr long long long)
+@ stdcall WTSGetActiveConsoleSessionId()
+@ stdcall ZombifyActCtx(ptr)
+@ stub _DebugOut
+@ stub _DebugPrintf
+@ stdcall _hread(long ptr long)
+@ stdcall _hwrite(long ptr long)
+@ stdcall _lclose(long)
+@ stdcall _lcreat(str long)
+@ stdcall _llseek(long long long)
+@ stdcall _lopen(str long)
+@ stdcall _lread(long ptr long) _hread
+@ stdcall _lwrite(long ptr long) _hwrite
+@ stub dprintf
+@ stdcall lstrcat(str str) lstrcatA
+@ stdcall lstrcatA(str str)
+@ stdcall lstrcatW(wstr wstr)
+@ stdcall lstrcmp(str str) lstrcmpA
+@ stdcall lstrcmpA(str str)
+@ stdcall lstrcmpW(wstr wstr)
+@ stdcall lstrcmpi(str str) lstrcmpiA
+@ stdcall lstrcmpiA(str str)
+@ stdcall lstrcmpiW(wstr wstr)
+@ stdcall lstrcpy(ptr str) lstrcpyA
+@ stdcall lstrcpyA(ptr str)
+@ stdcall lstrcpyW(ptr wstr)
+@ stdcall lstrcpyn(ptr str long) lstrcpynA
+@ stdcall lstrcpynA(ptr str long)
+@ stdcall lstrcpynW(ptr wstr long)
+@ stdcall lstrlen(str) lstrlenA
+@ stdcall lstrlenA(str)
+@ stdcall lstrlenW(wstr)
+
+#EOF

Propchange: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/kernel32.spec
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/dllmain.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/dllmain.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/dllmain.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/dllmain.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -407,6 +407,7 @@
     return _InterlockedDecrement(lpAddend);
 }
 
+#undef InterlockedExchange
 LONG
 WINAPI
 InterlockedExchange(IN OUT LONG volatile *Target,

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/handle.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/handle.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/handle.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/handle.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -40,7 +40,7 @@
   DWORD Flags;
 
   Ppb = NtCurrentPeb()->ProcessParameters;
-  switch ((ULONG)hObject)
+  switch ((ULONG_PTR)hObject)
   {
     case STD_INPUT_HANDLE:
       hObject = Ppb->StandardInput;

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/stubs.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/stubs.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/stubs.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -1401,3 +1401,15 @@
     STUB;
     return FALSE;
 }
+
+BOOL WINAPI TermsrvAppInstallMode(void)
+{
+     STUB;
+     return FALSE;
+}
+
+DWORD WINAPI SetTermsrvAppInstallMode(BOOL bInstallMode)
+{
+    STUB;
+    return 0;
+}

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/utils.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/utils.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/utils.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/misc/utils.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -11,6 +11,8 @@
 #include <k32.h>
 #ifdef _M_IX86
 #include "i386/ketypes.h"
+#elif defined _M_AMD64
+#include "amd64/ketypes.h"
 #endif
 
 #define NDEBUG
@@ -336,7 +338,7 @@
                        IN PVOID StackAddress,
                        IN ULONG ContextType)
 {
-#ifdef _M_IX86
+#ifdef __i386__
     DPRINT("BasepInitializeContext: %p\n", Context);
     
     /* Setup the Initial Win32 Thread Context */
@@ -362,7 +364,7 @@
     }
     else if (ContextType == 2) /* For Fibers */
     {
-        //Context->Eip = (ULONG)BaseFiberStartup;
+        Context->Eip = (ULONG)BaseFiberStartup;
     }
     else                       /* For first thread in a Process */
     {
@@ -374,6 +376,44 @@
     
     /* Give it some room for the Parameter */
     Context->Esp -= sizeof(PVOID);
+#elif defined(__x86_64__)
+    DPRINT("BasepInitializeContext: %p\n", Context);
+    
+    /* Setup the Initial Win32 Thread Context */
+    Context->Rax = (ULONG_PTR)StartAddress;
+    Context->Rbx = (ULONG_PTR)Parameter;
+    Context->Rsp = (ULONG_PTR)StackAddress;
+    /* The other registers are undefined */
+
+    /* Setup the Segments */
+    Context->SegFs = KGDT_R3_TEB | RPL_MASK;
+    Context->SegEs = KGDT_R3_DATA | RPL_MASK;
+    Context->SegDs = KGDT_R3_DATA | RPL_MASK;
+    Context->SegCs = KGDT_R3_CODE | RPL_MASK;
+    Context->SegSs = KGDT_R3_DATA | RPL_MASK;
+    Context->SegGs = 0;
+
+    /* Set the EFLAGS */
+    Context->EFlags = 0x3000; /* IOPL 3 */
+
+    if (ContextType == 1)      /* For Threads */
+    {
+        Context->Rip = (ULONG_PTR)BaseThreadStartupThunk;
+    }
+    else if (ContextType == 2) /* For Fibers */
+    {
+        Context->Rip = (ULONG_PTR)BaseFiberStartup;
+    }
+    else                       /* For first thread in a Process */
+    {
+        Context->Rip = (ULONG_PTR)BaseProcessStartThunk;
+    }
+    
+    /* Set the Context Flags */
+    Context->ContextFlags = CONTEXT_FULL;
+    
+    /* Give it some room for the Parameter */
+    Context->Rsp -= sizeof(PVOID);
 #else
 #warning Unknown architecture
     UNIMPLEMENTED;

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/process/session.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/process/session.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/process/session.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/process/session.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -60,7 +60,7 @@
     return FALSE;
   }
 
-  ClientId.UniqueProcess = (HANDLE)dwProcessId;
+  ClientId.UniqueProcess = (HANDLE)(ULONG_PTR)dwProcessId;
   ClientId.UniqueThread = 0;
 
   InitializeObjectAttributes(&ObjectAttributes, NULL, 0, NULL, NULL);

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/synch/critical.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/synch/critical.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/synch/critical.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/synch/critical.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -55,4 +55,14 @@
     return TRUE;
 }
 
+/*
+ * @implemented
+ */
+BOOL WINAPI InitializeCriticalSectionEx( CRITICAL_SECTION *crit, DWORD spincount, DWORD flags )
+{
+    NTSTATUS ret = RtlInitializeCriticalSectionEx( crit, spincount, flags );
+    if (ret) RtlRaiseStatus( ret );
+    return !ret;
+}
+
 /* EOF */

Added: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/fiber.S
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/fiber.S?rev=34770&view=auto
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/fiber.S (added)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/fiber.S [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -1,0 +1,124 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS system libraries
+ * FILE:        lib/kernel32/thread/i386/fiber.S
+ * PURPOSE:     Fiber context switch code for the x86 architecture
+ * PROGRAMMERS: Alex Ionescu (alex at relsoft.net)
+ *              KJK::Hyperion <noog at libero.it>
+ */
+
+#include <ndk/asm.h>
+
+#define CONTEXT_FULL                    0x10007
+#define CONTEXT_FLOATING_POINT          0xF
+
+.globl _SwitchToFiber at 4
+.intel_syntax noprefix
+
+_SwitchToFiber at 4:
+    /* Get the TEB */
+    mov edx, fs:[KGDT_R3_TEB]
+    
+    /* Get the Fiber */
+    mov eax, [edx+TEB_FIBER_DATA]
+    
+    /* Save the non-volatile registers */
+    mov [eax+FIBER_CONTEXT_EBX], ebx
+    mov [eax+FIBER_CONTEXT_ESI], esi
+    mov [eax+FIBER_CONTEXT_EDI], edi
+    mov [eax+FIBER_CONTEXT_EBP], ebp
+    
+    /* Check if we're to save FPU State */
+    cmp dword ptr [eax+FIBER_CONTEXT_FLAGS], CONTEXT_FULL + CONTEXT_FLOATING_POINT
+    jnz NoFpuStateSave
+    
+    /* Save the FPU State (Status and Control)*/
+    fstsw [eax+FIBER_CONTEXT_FLOAT_SAVE_STATUS_WORD]
+    fstcw [eax+FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD]
+    
+    /* Check if the CPU supports SIMD MXCSR State Save */
+    cmp byte ptr ds:[PROCESSOR_FEATURE_FXSR], 0
+    jnz NoFpuStateSave
+    stmxcsr [eax+FIBER_CONTEXT_DR6]
+    
+NoFpuStateSave:
+
+    /* Save stack since we're not touching it anymore */
+    mov [eax+FIBER_CONTEXT_ESP], esp
+    
+    /* Transfer some data from the TEB */
+    mov ecx, [edx+TEB_FLS_DATA]
+    mov [eax+FIBER_FLS_DATA], ecx
+    mov ecx, [edx+TEB_ACTIVATION_CONTEXT_STACK_POINTER]
+    mov [eax+FIBER_ACTIVATION_CONTEXT_STACK], ecx
+    
+    /* Transfer some data related to the Stack */
+    mov ecx, [edx+TEB_EXCEPTION_LIST]
+    mov [eax+FIBER_EXCEPTION_LIST], ecx
+    mov ecx, [edx+TEB_STACK_LIMIT]
+    mov [eax+FIBER_STACK_LIMIT], ecx
+    mov ecx, [edx+TEB_GUARANTEED_STACK_BYTES]
+    mov [eax+FIBER_GUARANTEED_STACK_BYTES], ecx
+    
+    /* Switch to the new fiber */
+    mov ecx, [esp+4]
+    mov [edx+TEB_FIBER_DATA], ecx
+    
+    /* Switch Fiber Data */
+    mov esi, [ecx+FIBER_EXCEPTION_LIST]
+    mov [edx+TEB_EXCEPTION_LIST], esi
+    mov esi, [ecx+FIBER_STACK_BASE]
+    mov [edx+TEB_STACK_BASE], esi
+    mov esi, [ecx+FIBER_STACK_LIMIT]
+    mov [edx+TEB_STACK_LIMIT], esi
+    mov esi, [ecx+FIBER_DEALLOCATION_STACK]
+    mov [edx+TEB_DEALLOCATION_STACK], esi
+    mov esi, [ecx+FIBER_GUARANTEED_STACK_BYTES]
+    mov [edx+TEB_GUARANTEED_STACK_BYTES], esi
+    mov esi, [ecx+FIBER_ACTIVATION_CONTEXT_STACK]
+    mov [edx+TEB_ACTIVATION_CONTEXT_STACK_POINTER], esi
+    
+    /* Restore FPU State */
+    cmp dword ptr [eax+FIBER_CONTEXT_FLAGS], CONTEXT_FULL + CONTEXT_FLOATING_POINT
+    jnz NoFpuStateRestore
+    
+    /* Check if the Status Word Changed */
+    mov esi, [eax+FIBER_CONTEXT_FLOAT_SAVE_STATUS_WORD]
+    cmp si, word ptr [ecx+FIBER_CONTEXT_FLOAT_SAVE_STATUS_WORD]
+    jnz StatusWordChanged
+    
+    /* Check if the Control Word Changed */
+    mov esi, [eax+FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD]
+    cmp si, word ptr [ecx+FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD]
+    jz ControlWordEqual
+    
+StatusWordChanged:
+
+    /* Load the new one */
+    mov word ptr [ecx+FIBER_CONTEXT_FLOAT_SAVE_TAG_WORD], 0xFFFF
+    fldenv [ecx+FIBER_CONTEXT_FLOAT_SAVE_CONTROL_WORD]
+    
+ControlWordEqual:
+
+    /* Load the new one */
+    cmp byte ptr ds:[PROCESSOR_FEATURE_FXSR], 0
+    jnz NoFpuStateRestore
+    ldmxcsr [ecx+FIBER_CONTEXT_DR6]
+    
+NoFpuStateRestore:
+
+    /* Restore non-volatile registers */
+    mov esi, [ecx+FIBER_CONTEXT_ESI]
+    mov edi, [ecx+FIBER_CONTEXT_EDI]
+    mov ebx, [ecx+FIBER_CONTEXT_EBX]
+    mov ebp, [ecx+FIBER_CONTEXT_EBP]
+    mov esp, [ecx+FIBER_CONTEXT_ESP]
+    
+    /* Restore FLS Data */
+    mov eax, [ecx+FIBER_FLS_DATA]
+    mov [edx+TEB_FLS_DATA], eax
+
+    /* Return */
+    ret 4
+    
+/* EOF */

Propchange: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/fiber.S
------------------------------------------------------------------------------
    svn:eol-style = native

Added: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/thread.S
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/thread.S?rev=34770&view=auto
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/thread.S (added)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/thread.S [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -1,0 +1,32 @@
+/*
+ * COPYRIGHT:  See COPYING in the top level directory
+ * PROJECT:    ReactOS system libraries
+ * FILE:       lib/kernel32/thread/i386/thread.S
+ * PURPOSE:    Thread Start Thunks
+ * PROGRAMMER: Alex Ionescu (alex at relsoft.net)
+ */
+
+.globl _BaseThreadStartupThunk at 0
+.globl _BaseProcessStartThunk at 0
+.intel_syntax noprefix
+
+_BaseThreadStartupThunk at 0:
+    
+    /* Start out fresh */
+    xor rbp, rbp
+    
+    push rbx                  /* lpParameter */
+    push rax                  /* lpStartAddress */
+    push 0                    /* Return RIP */
+    jmp _BaseThreadStartup
+
+_BaseProcessStartThunk at 0:
+
+    /* Start out fresh */
+    xor rbp, rbp
+    
+    push rax                  /* lpStartAddress */
+    push 0                    /* Return RIP */
+    jmp _BaseProcessStartup
+
+/* EOF */

Propchange: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/amd64/thread.S
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/fiber.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/fiber.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/fiber.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/fiber.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -258,6 +258,13 @@
     DPRINT1("Starting Fiber\n");
     BaseThreadStartup((LPTHREAD_START_ROUTINE)Fiber->Context.Eax,
                       (LPVOID)Fiber->Context.Ebx);
+#elif defined(__x86_64__)
+    PFIBER Fiber = GetFiberData();
+
+    /* Call the Thread Startup Routine */
+    DPRINT1("Starting Fiber\n");
+    BaseThreadStartup((LPTHREAD_START_ROUTINE)Fiber->Context.Rax,
+                      (LPVOID)Fiber->Context.Rbx);
 #else
 #warning Unknown architecture
     UNIMPLEMENTED;

Modified: branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/thread.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/thread.c?rev=34770&r1=34769&r2=34770&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/thread.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/kernel32/thread/thread.c [iso-8859-1] Fri Jul 25 06:09:07 2008
@@ -658,6 +658,7 @@
 		       IN DWORD dwSelector,
 		       OUT LPLDT_ENTRY lpSelectorEntry)
 {
+#ifdef _M_IX86
   DESCRIPTOR_TABLE_ENTRY DescriptionTableEntry;
   NTSTATUS Status;
 
@@ -675,6 +676,10 @@
 
   *lpSelectorEntry = DescriptionTableEntry.Descriptor;
   return TRUE;
+#else
+    DPRINT1("Calling GetThreadSelectorEntry!\n");
+    return FALSE;
+#endif
 }
 
 /*



More information about the Ros-diffs mailing list