[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 13 Aug 2010 14:56:34 +0000 (14:56 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 13 Aug 2010 14:56:34 +0000 (14:56 +0000)
- Add an MSVC compatible definition file.
- Temporarily add the kernel32 import library (until RosBE ships with one).
- Group kernel32 wine stubs into kernel32_stubs.c
- Add kernel32 to build.

svn path=/branches/cmake-bringup/; revision=48531

dll/CMakeLists.txt
dll/win32/CMakeLists.txt [new file with mode: 0644]
dll/win32/kernel32/CMakeLists.txt [new file with mode: 0644]
dll/win32/kernel32/kernel32.def [new file with mode: 0644]
dll/win32/kernel32/kernel32_stubs.c [new file with mode: 0644]
dll/win32/kernel32/libkernel32.a [new file with mode: 0644]

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