From afa13639b87650025962427a2ba24d96df34db3b Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Sat, 2 Apr 2005 05:37:20 +0000 Subject: [PATCH] bunch of w32api fixes. ascii.h is gonecd ..! coff.h was unused and quite a few others were redunant and could be moved. If you try to build a app in the ROS build system without using __USE_W32API or Unicode beware it won't build as it shouldn't. Also partinfo was really broken so someone needs to fix this. If not I will attempt to w32api'ise it in the morning. svn path=/trunk/; revision=14432 --- reactos/apps/testsets/loadlib/makefile | 2 +- reactos/apps/utils/Makefile | 2 +- reactos/apps/utils/net/ftp/makefile | 2 + reactos/apps/utils/net/ping/makefile | 2 +- reactos/apps/utils/partinfo/makefile | 2 +- reactos/apps/utils/partinfo/partinfo.c | 4 +- reactos/apps/utils/pnpdump/makefile | 2 +- reactos/apps/utils/pnpdump/pnpdump.c | 2 + reactos/apps/utils/ps/makefile | 2 +- reactos/apps/utils/sc/makefile | 2 +- reactos/include/ascii.h | 3630 ----------------- reactos/include/coff.h | 331 -- reactos/include/funcs.h | 6 +- reactos/include/wine/cpl.h | 8 - reactos/include/wine/heap.h | 46 - reactos/include/wine/ver.h | 27 - reactos/lib/samlib/dllmain.c | 5 +- reactos/regtests/regtests/Makefile | 2 +- reactos/services/rpcss/makefile | 2 +- reactos/subsys/system/format/makefile | 2 +- reactos/subsys/system/services/makefile | 2 +- reactos/subsys/system/services/services.c | 2 +- .../{include/wine => w32api/include}/fci.h | 0 .../{include/wine => w32api/include}/fdi.h | 0 reactos/{ => w32api}/include/icmpapi.h | 0 25 files changed, 26 insertions(+), 4059 deletions(-) delete mode 100644 reactos/include/ascii.h delete mode 100644 reactos/include/coff.h delete mode 100644 reactos/include/wine/cpl.h delete mode 100644 reactos/include/wine/heap.h delete mode 100644 reactos/include/wine/ver.h rename reactos/{include/wine => w32api/include}/fci.h (100%) rename reactos/{include/wine => w32api/include}/fdi.h (100%) rename reactos/{ => w32api}/include/icmpapi.h (100%) diff --git a/reactos/apps/testsets/loadlib/makefile b/reactos/apps/testsets/loadlib/makefile index f3e22888ad1..1a256b21113 100644 --- a/reactos/apps/testsets/loadlib/makefile +++ b/reactos/apps/testsets/loadlib/makefile @@ -11,7 +11,7 @@ TARGET_APPTYPE = console TARGET_NAME = loadlib -TARGET_CFLAGS = -Wall -Werror -D_USE_W32API -DUNICODE -D_UNICODE +TARGET_CFLAGS = -Wall -Werror -D__USE_W32API -DUNICODE -D_UNICODE TARGET_SDKLIBS = kernel32.a ntdll.a diff --git a/reactos/apps/utils/Makefile b/reactos/apps/utils/Makefile index 2b1733eb710..8ce2f875d2b 100644 --- a/reactos/apps/utils/Makefile +++ b/reactos/apps/utils/Makefile @@ -9,7 +9,7 @@ include $(PATH_TO_TOP)/rules.mak # Console system utilities # cabman cat net objdir partinfo pice ps sc stats -UTIL_APPS = cat objdir partinfo pnpdump sc shutdown stats tickcount ps +UTIL_APPS = cat objdir pnpdump sc shutdown stats tickcount ps UTIL_NET_APPS = arp finger ftp ipconfig netstat ping route telnet whois diff --git a/reactos/apps/utils/net/ftp/makefile b/reactos/apps/utils/net/ftp/makefile index a32c246c310..ab481c2212a 100644 --- a/reactos/apps/utils/net/ftp/makefile +++ b/reactos/apps/utils/net/ftp/makefile @@ -8,6 +8,8 @@ TARGET_NAME = ftp TARGET_INSTALLDIR = system32 +TARGET_CFLAGS = -D__USE_W32API + TARGET_SDKLIBS = ws2_32.a iphlpapi.a # ntdll.a diff --git a/reactos/apps/utils/net/ping/makefile b/reactos/apps/utils/net/ping/makefile index 4e7a078d071..3459fc53d65 100644 --- a/reactos/apps/utils/net/ping/makefile +++ b/reactos/apps/utils/net/ping/makefile @@ -8,7 +8,7 @@ TARGET_NAME = ping TARGET_INSTALLDIR = system32 -TARGET_CFLAGS = -D__USE_W32_SOCKETS +TARGET_CFLAGS = -D__USE_W32API -D__USE_W32_SOCKETS TARGET_SDKLIBS = ws2_32.a diff --git a/reactos/apps/utils/partinfo/makefile b/reactos/apps/utils/partinfo/makefile index 89789080564..483df1eeea4 100644 --- a/reactos/apps/utils/partinfo/makefile +++ b/reactos/apps/utils/partinfo/makefile @@ -10,7 +10,7 @@ TARGET_APPTYPE = console TARGET_NAME = partinfo -TARGET_CFLAGS = -Wall -Werror -Wno-format +TARGET_CFLAGS = -D__USE_W32API -Wall -Werror -Wno-format TARGET_SDKLIBS = ntdll.a kernel32.a diff --git a/reactos/apps/utils/partinfo/partinfo.c b/reactos/apps/utils/partinfo/partinfo.c index 844fe8f83d8..252e465974e 100644 --- a/reactos/apps/utils/partinfo/partinfo.c +++ b/reactos/apps/utils/partinfo/partinfo.c @@ -8,9 +8,11 @@ #include #include +#include + //#define DUMP_DATA #define DUMP_SIZE_INFO - +#define UNICODE #ifdef DUMP_DATA void HexDump(char *buffer, ULONG size) diff --git a/reactos/apps/utils/pnpdump/makefile b/reactos/apps/utils/pnpdump/makefile index 240453823ed..5cecb16c0de 100644 --- a/reactos/apps/utils/pnpdump/makefile +++ b/reactos/apps/utils/pnpdump/makefile @@ -10,7 +10,7 @@ TARGET_APPTYPE = console TARGET_NAME = pnpdump -TARGET_CFLAGS = -Wall -Werror +TARGET_CFLAGS = -D__USE_W32API -Wall -Werror TARGET_SDKLIBS = ntdll.a kernel32.a diff --git a/reactos/apps/utils/pnpdump/pnpdump.c b/reactos/apps/utils/pnpdump/pnpdump.c index b02bc2bb1d6..4557e69ffe8 100644 --- a/reactos/apps/utils/pnpdump/pnpdump.c +++ b/reactos/apps/utils/pnpdump/pnpdump.c @@ -8,6 +8,8 @@ #include #include +#include + #include typedef struct _CM_PNP_BIOS_DEVICE_NODE diff --git a/reactos/apps/utils/ps/makefile b/reactos/apps/utils/ps/makefile index b86b573654f..46c3601ee7c 100644 --- a/reactos/apps/utils/ps/makefile +++ b/reactos/apps/utils/ps/makefile @@ -10,7 +10,7 @@ TARGET_APPTYPE = console TARGET_NAME = ps -TARGET_CFLAGS = -DANONYMOUSUNIONS -Werror -Wall +TARGET_CFLAGS = -D__USE_W32API -DANONYMOUSUNIONS -Werror -Wall TARGET_SDKLIBS = ntdll.a kernel32.a user32.a diff --git a/reactos/apps/utils/sc/makefile b/reactos/apps/utils/sc/makefile index ba118f3b3fd..0c7f62900c8 100644 --- a/reactos/apps/utils/sc/makefile +++ b/reactos/apps/utils/sc/makefile @@ -13,7 +13,7 @@ TARGET_INSTALLDIR = system32 TARGET_NAME = sc -TARGET_CFLAGS = -DDBG -Werror -Wall +TARGET_CFLAGS = -D__USE_W32API -DDBG -Werror -Wall TARGET_SDKLIBS = kernel32.a ntdll.a advapi32.a diff --git a/reactos/include/ascii.h b/reactos/include/ascii.h deleted file mode 100644 index 49c32536b68..00000000000 --- a/reactos/include/ascii.h +++ /dev/null @@ -1,3630 +0,0 @@ -/* - ASCIIFunctions.h - - Declarations for all the Win32 ASCII Functions - - Copyright (C) 1996 Free Software Foundation, Inc. - - Author: Scott Christley - - 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 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. -*/ - -#ifndef _GNU_H_WINDOWS32_ASCIIFUNCTIONS -#define _GNU_H_WINDOWS32_ASCIIFUNCTIONS - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -WINBOOL -STDCALL -BackupEventLogA ( - HANDLE hEventLog, - LPCSTR lpBackupFileName - ); - -WINBOOL -STDCALL -ClearEventLogA ( - HANDLE hEventLog, - LPCSTR lpBackupFileName - ); - -WINBOOL -STDCALL -CreateProcessAsUserA ( - HANDLE hToken, - LPCSTR lpApplicationName, - LPSTR lpCommandLine, - LPSECURITY_ATTRIBUTES lpProcessAttributes, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - WINBOOL bInheritHandles, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCSTR lpCurrentDirectory, - LPSTARTUPINFOA lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); - -WINBOOL -STDCALL -DecryptFileA( - LPCSTR lpFileName, - DWORD dwReserved - ); - -WINBOOL -STDCALL -EncryptFileA( - LPCSTR lpFileName - ); - -WINBOOL -STDCALL -FileEncryptionStatusA( - LPCSTR lpFileName, - LPDWORD lpStatus - ); - -WINBOOL -STDCALL -GetCurrentHwProfileA ( - LPHW_PROFILE_INFOA lpHwProfileInfo - ); - -WINBOOL -STDCALL -LogonUserA ( - LPSTR lpszUsername, - LPSTR lpszDomain, - LPSTR lpszPassword, - DWORD dwLogonType, - DWORD dwLogonProvider, - PHANDLE phToken - ); - -WINBOOL -STDCALL -LogonUserExA ( - LPCSTR lpszUsername, - LPCSTR lpszDomain, - LPCSTR lpszPassword, - DWORD dwLogonType, - DWORD dwLogonProvider, - PHANDLE phToken , - PSID *ppLogonSid , - PVOID *ppProfileBuffer , - LPDWORD pdwProfileLength , - PQUOTA_LIMITS pQuotaLimits - ); - -HANDLE -STDCALL -OpenBackupEventLogA ( - LPCSTR lpUNCServerName, - LPCSTR lpFileName - ); - -DWORD -STDCALL -OpenEncryptedFileRawA( - LPCSTR lpFileName, - ULONG ulFlags, - PVOID * pvContext - ); - -HANDLE -STDCALL -OpenEventLogA ( - LPCSTR lpUNCServerName, - LPCSTR lpSourceName - ); - -WINBOOL -STDCALL -ReadEventLogA ( - HANDLE hEventLog, - DWORD dwReadFlags, - DWORD dwRecordOffset, - LPVOID lpBuffer, - DWORD nNumberOfBytesToRead, - DWORD *pnBytesRead, - DWORD *pnMinNumberOfBytesNeeded - ); - -WINBOOL -STDCALL -ChangeServiceConfig2A( - SC_HANDLE hService, - DWORD dwInfoLevel, - LPVOID lpInfo - ); - -WINBOOL -STDCALL -EnumServicesStatusExA( - SC_HANDLE hSCManager, - SC_ENUM_TYPE InfoLevel, - DWORD dwServiceType, - DWORD dwServiceState, - LPBYTE lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned, - LPDWORD lpResumeHandle, - LPCSTR pszGroupName - ); - -WINBOOL -STDCALL -QueryServiceConfig2A( - SC_HANDLE hService, - DWORD dwInfoLevel, - LPBYTE lpBuffer, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - -SERVICE_STATUS_HANDLE -STDCALL -RegisterServiceCtrlHandlerExA( - LPCSTR lpServiceName, - LPHANDLER_FUNCTION_EX lpHandlerProc, - LPVOID lpContext - ); - -LRESULT -STDCALL -SendIMEMessageExA(HWND hwnd, LPARAM lparam); - -WINBOOL -STDCALL -IMPSetIMEA( HWND hwnd, LPIMEPROA ime); - -WINBOOL -STDCALL -IMPQueryIMEA( LPIMEPROA ime); - -WINBOOL -STDCALL -IMPGetIMEA( HWND hwnd, LPIMEPROA ime); - -WINBOOL -STDCALL -SetCalendarInfoA( - LCID Locale, - CALID Calendar, - CALTYPE CalType, - LPCSTR lpCalData); - -WINBOOL -STDCALL -EnumUILanguagesA( - UILANGUAGE_ENUMPROCA lpUILanguageEnumProc, - DWORD dwFlags, - LONG_PTR lParam); - -WINBOOL -STDCALL -EnumLanguageGroupLocalesA( - LANGGROUPLOCALE_ENUMPROCA lpLangGroupLocaleEnumProc, - LGRPID LanguageGroup, - DWORD dwFlags, - LONG_PTR lParam); - -WINBOOL -STDCALL -EnumSystemLanguageGroupsA( - LANGUAGEGROUP_ENUMPROCA lpLanguageGroupEnumProc, - DWORD dwFlags, - LONG_PTR lParam); - -int -STDCALL -GetGeoInfoA( - GEOID Location, - GEOTYPE GeoType, - LPSTR lpGeoData, - int cchData, - LANGID LangId); - -WINBOOL -STDCALL -EnumDateFormatsExA( - DATEFMT_ENUMPROCEXA lpDateFmtEnumProcEx, - LCID Locale, - DWORD dwFlags); - -WINBOOL -STDCALL -EnumCalendarInfoExA( - CALINFO_ENUMPROCEXA lpCalInfoEnumProcEx, - LCID Locale, - CALID Calendar, - CALTYPE CalType); - -int -STDCALL -GetCalendarInfoA( - LCID Locale, - CALID Calendar, - CALTYPE CalType, - LPSTR lpCalData, - int cchData, - LPDWORD lpValue); - -WINBOOL -STDCALL -GetCPInfoExA( - UINT CodePage, - DWORD dwFlags, - LPCPINFOEXA lpCPInfoEx); - -WINBOOL -STDCALL -CheckNameLegalDOS8Dot3A( - LPCSTR lpName, - LPSTR lpOemName OPTIONAL, - DWORD OemNameSize OPTIONAL, - PWINBOOL pbNameContainsSpaces OPTIONAL, - PWINBOOL pbNameLegal - ); - -WINBOOL -STDCALL -CreateHardLinkA( - LPCSTR lpFileName, - LPCSTR lpExistingFileName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -HANDLE -STDCALL -CreateJobObjectA( - LPSECURITY_ATTRIBUTES lpJobAttributes, - LPCSTR lpName - ); - -WINBOOL -STDCALL -DeleteVolumeMountPointA( - LPCSTR lpszVolumeMountPoint - ); - -WINBOOL -STDCALL -DnsHostnameToComputerNameA ( - LPCSTR Hostname, - LPSTR ComputerName, - LPDWORD nSize - ); - -WINBOOL -STDCALL -FindActCtxSectionStringA( - DWORD dwFlags, - const GUID *lpExtensionGuid, - ULONG ulSectionId, - LPCSTR lpStringToFind, - PACTCTX_SECTION_KEYED_DATA ReturnedData - ); - -HANDLE -STDCALL -FindFirstFileExA( - LPCSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags - ); - -HANDLE -STDCALL -FindFirstVolumeA( - LPSTR lpszVolumeName, - DWORD cchBufferLength - ); - -HANDLE -STDCALL -FindFirstVolumeMountPointA( - LPCSTR lpszRootPathName, - LPSTR lpszVolumeMountPoint, - DWORD cchBufferLength - ); - -WINBOOL -STDCALL -FindNextVolumeA( - HANDLE hFindVolume, - LPSTR lpszVolumeName, - DWORD cchBufferLength - ); - -WINBOOL -STDCALL -FindNextVolumeMountPointA( - HANDLE hFindVolumeMountPoint, - LPSTR lpszVolumeMountPoint, - DWORD cchBufferLength - ); - -WINBOOL -STDCALL -GetComputerNameExA ( - COMPUTER_NAME_FORMAT NameType, - LPSTR lpBuffer, - LPDWORD nSize - ); - -DWORD -STDCALL -GetDllDirectoryA( - DWORD nBufferLength, - LPSTR lpBuffer - ); - -DWORD -STDCALL -GetFirmwareEnvironmentVariableA( - LPCSTR lpName, - LPCSTR lpGuid, - PVOID pBuffer, - DWORD nSize - ); - -DWORD -STDCALL -GetLongPathNameA( - LPCSTR lpszShortPath, - LPSTR lpszLongPath, - DWORD cchBuffer - ); - -WINBOOL -STDCALL -GetModuleHandleExA( - DWORD dwFlags, - LPCSTR lpModuleName, - HMODULE* phModule - ); - -UINT -STDCALL -GetSystemWow64DirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -WINBOOL -STDCALL -GetVolumeNameForVolumeMountPointA( - LPCSTR lpszVolumeMountPoint, - LPSTR lpszVolumeName, - DWORD cchBufferLength - ); - -WINBOOL -STDCALL -GetVolumePathNameA( - LPCSTR lpszFileName, - LPSTR lpszVolumePathName, - DWORD cchBufferLength - ); - -WINBOOL -STDCALL -GetVolumePathNamesForVolumeNameA( - LPCSTR lpszVolumeName, - LPSTR lpszVolumePathNames, - DWORD cchBufferLength, - PDWORD lpcchReturnLength - ); - -HANDLE -STDCALL -OpenJobObjectA( - DWORD dwDesiredAccess, - WINBOOL bInheritHandle, - LPCSTR lpName - ); - -WINBOOL -STDCALL -ReplaceFileA( - LPCSTR lpReplacedFileName, - LPCSTR lpReplacementFileName, - LPCSTR lpBackupFileName, - DWORD dwReplaceFlags, - LPVOID lpExclude, - LPVOID lpReserved - ); - -WINBOOL -STDCALL -SetComputerNameExA ( - COMPUTER_NAME_FORMAT NameType, - LPCSTR lpBuffer - ); - -WINBOOL -STDCALL -SetDllDirectoryA( - LPCSTR lpPathName - ); - -WINBOOL -STDCALL -SetFileShortNameA( - HANDLE hFile, - LPCSTR lpShortName - ); - -WINBOOL -STDCALL -SetFirmwareEnvironmentVariableA( - LPCSTR lpName, - LPCSTR lpGuid, - PVOID pValue, - DWORD nSize - ); - -WINBOOL -STDCALL -SetVolumeMountPointA( - LPCSTR lpszVolumeMountPoint, - LPCSTR lpszVolumeName - ); - -WINBOOL -STDCALL -VerifyVersionInfoA( - LPOSVERSIONINFOEXA lpVersionInformation, - DWORD dwTypeMask, - DWORDLONG dwlConditionMask - ); - -HDEVNOTIFY -STDCALL -RegisterDeviceNotificationA( - HANDLE hRecipient, - LPVOID NotificationFilter, - DWORD Flags - ); - -UINT -STDCALL -GetRawInputDeviceInfoA( - HANDLE hDevice, - UINT uiCommand, - LPVOID pData, - PUINT pcbSize); - -LONG -STDCALL -BroadcastSystemMessageExA( - DWORD dwflags, - LPDWORD lpdwRecipients, - UINT uiMessage, - WPARAM wParam, - LPARAM lParam, - PBSMINFO pBSMInfo); - -HFONT -STDCALL -CreateFontIndirectExA(const ENUMLOGFONTEXDVA *elfexd); - -DWORD -STDCALL -GetGlyphIndicesA( - HDC hdc, - LPCSTR lpstr, - int c, - LPWORD pgi, - DWORD fl -); - -WINBOOL -STDCALL -RemoveFontResourceExA( - LPCSTR lpFileName, - DWORD fl, - PVOID pdv -); - -UINT -STDCALL -GetStringBitmapA(HDC hdc,LPSTR psz,WINBOOL unknown,UINT cj,BYTE *lpSB); - -WINBOOL -STDCALL -GetAltTabInfoA( - HWND hwnd, - int iItem, - PALTTABINFO pati, - LPSTR pszItemText, - UINT cchItemText - ); - -UINT -STDCALL -PrivateExtractIconsA( - LPCSTR szFileName, - int nIconIndex, - int cxIcon, - int cyIcon, - HICON *phicon, - UINT *piconid, - UINT nIcons, - UINT flags - ); - -UINT -STDCALL -RealGetWindowClassA( - HWND hwnd, - LPSTR pszType, - UINT cchType - ); - -LRESULT -STDCALL -MenuWindowProcA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam - ); - -WINBOOL -STDCALL -DrawCaptionTempA( - HWND hwnd, - HDC hdc, - const RECT *rect, - HFONT hFont, - HICON hIcon, - LPCSTR str, - UINT uFlags - ); - -HHOOK -STDCALL -SetWindowsHookA( - int idHook, - HOOKPROC lpfn - ); - -HRESULT -STDCALL -PrivateExtractIconExA( - DWORD u, - DWORD v, - DWORD w, - DWORD x, - DWORD y - ); - -WINBOOL -STDCALL -GetBinaryTypeA( - LPCSTR lpApplicationName, - LPDWORD lpBinaryType - ); - -DWORD -STDCALL -GetShortPathNameA( - LPCSTR lpszLongPath, - LPSTR lpszShortPath, - DWORD cchBuffer - ); - -LPSTR -STDCALL -GetEnvironmentStringsA( - VOID - ); - -WINBOOL -STDCALL -FreeEnvironmentStringsA( - LPSTR - ); - -DWORD -STDCALL -FormatMessageA( - DWORD dwFlags, - LPCVOID lpSource, - DWORD dwMessageId, - DWORD dwLanguageId, - LPSTR lpBuffer, - DWORD nSize, - va_list *Arguments - ); - -HANDLE -STDCALL -CreateMailslotA( - LPCSTR lpName, - DWORD nMaxMessageSize, - DWORD lReadTimeout, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -int -STDCALL -lstrcmpA( - LPCSTR lpString1, - LPCSTR lpString2 - ); - -int -STDCALL -lstrcmpiA( - LPCSTR lpString1, - LPCSTR lpString2 - ); - -LPSTR -STDCALL -lstrcpynA( - LPSTR lpString1, - LPCSTR lpString2, - int iMaxLength - ); - -LPSTR -STDCALL -lstrcpyA( - LPSTR lpString1, - LPCSTR lpString2 - ); - -LPSTR -STDCALL -lstrcatA( - LPSTR lpString1, - LPCSTR lpString2 - ); - -int -STDCALL -lstrlenA( - LPCSTR lpString - ); - -HANDLE -STDCALL -CreateMutexA( - LPSECURITY_ATTRIBUTES lpMutexAttributes, - WINBOOL bInitialOwner, - LPCSTR lpName - ); - -HANDLE -STDCALL -OpenMutexA( - DWORD dwDesiredAccess, - WINBOOL bInheritHandle, - LPCSTR lpName - ); - -HANDLE -STDCALL -CreateEventA( - LPSECURITY_ATTRIBUTES lpEventAttributes, - WINBOOL bManualReset, - WINBOOL bInitialState, - LPCSTR lpName - ); - -HANDLE -STDCALL -OpenEventA( - DWORD dwDesiredAccess, - WINBOOL bInheritHandle, - LPCSTR lpName - ); - -HANDLE -STDCALL -CreateSemaphoreA( - LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, - LONG lInitialCount, - LONG lMaximumCount, - LPCSTR lpName - ); - -HANDLE -STDCALL -OpenSemaphoreA( - DWORD dwDesiredAccess, - WINBOOL bInheritHandle, - LPCSTR lpName - ); - -HANDLE -STDCALL -CreateFileMappingA( - HANDLE hFile, - LPSECURITY_ATTRIBUTES lpFileMappingAttributes, - DWORD flProtect, - DWORD dwMaximumSizeHigh, - DWORD dwMaximumSizeLow, - LPCSTR lpName - ); - -HANDLE -STDCALL -OpenFileMappingA( - DWORD dwDesiredAccess, - WINBOOL bInheritHandle, - LPCSTR lpName - ); - -DWORD -STDCALL -GetLogicalDriveStringsA( - DWORD nBufferLength, - LPSTR lpBuffer - ); - -HINSTANCE -STDCALL -LoadLibraryA( - LPCSTR lpLibFileName - ); - -HINSTANCE -STDCALL -LoadLibraryExA( - LPCSTR lpLibFileName, - HANDLE hFile, - DWORD dwFlags - ); - -DWORD -STDCALL -GetModuleFileNameA( - HINSTANCE hModule, - LPSTR lpFilename, - DWORD nSize - ); - -HMODULE -STDCALL -GetModuleHandleA( - LPCSTR lpModuleName - ); - -VOID -STDCALL -FatalAppExitA( - UINT uAction, - LPCSTR lpMessageText - ); - -LPSTR -STDCALL -GetCommandLineA( - VOID - ); - -DWORD -STDCALL -GetEnvironmentVariableA( - LPCSTR lpName, - LPSTR lpBuffer, - DWORD nSize - ); - -WINBOOL -STDCALL -SetEnvironmentVariableA( - LPCSTR lpName, - LPCSTR lpValue - ); - -DWORD -STDCALL -ExpandEnvironmentStringsA( - LPCSTR lpSrc, - LPSTR lpDst, - DWORD nSize - ); - -VOID -STDCALL -OutputDebugStringA( - LPCSTR lpOutputString - ); - -HRSRC -STDCALL -FindResourceA( - HINSTANCE hModule, - LPCSTR lpName, - LPCSTR lpType - ); - -HRSRC -STDCALL -FindResourceExA( - HINSTANCE hModule, - LPCSTR lpType, - LPCSTR lpName, - WORD wLanguage - ); - -WINBOOL -STDCALL -EnumResourceTypesA( - HINSTANCE hModule, - ENUMRESTYPEPROCA lpEnumFunc, - LONG lParam - ); - -WINBOOL -STDCALL -EnumResourceNamesA( - HINSTANCE hModule, - LPCSTR lpType, - ENUMRESNAMEPROCA lpEnumFunc, - LONG lParam - ); - -WINBOOL -STDCALL -EnumResourceLanguagesA( - HINSTANCE hModule, - LPCSTR lpType, - LPCSTR lpName, - ENUMRESLANGPROCA lpEnumFunc, - LONG lParam - ); - -HANDLE -STDCALL -BeginUpdateResourceA( - LPCSTR pFileName, - WINBOOL bDeleteExistingResources - ); - -WINBOOL -STDCALL -UpdateResourceA( - HANDLE hUpdate, - LPCSTR lpType, - LPCSTR lpName, - WORD wLanguage, - LPVOID lpData, - DWORD cbData - ); - -WINBOOL -STDCALL -EndUpdateResourceA( - HANDLE hUpdate, - WINBOOL fDiscard - ); - -ATOM -STDCALL -GlobalAddAtomA( - LPCSTR lpString - ); - -ATOM -STDCALL -GlobalFindAtomA( - LPCSTR lpString - ); - -UINT -STDCALL -GlobalGetAtomNameA( - ATOM nAtom, - LPSTR lpBuffer, - int nSize - ); - -ATOM -STDCALL -AddAtomA( - LPCSTR lpString - ); - -ATOM -STDCALL -FindAtomA( - LPCSTR lpString - ); - -UINT -STDCALL -GetAtomNameA( - ATOM nAtom, - LPSTR lpBuffer, - int nSize - ); - -UINT -STDCALL -GetProfileIntA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - INT nDefault - ); - -DWORD -STDCALL -GetProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpDefault, - LPSTR lpReturnedString, - DWORD nSize - ); - -WINBOOL -STDCALL -WriteProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpString - ); - -DWORD -STDCALL -GetProfileSectionA( - LPCSTR lpAppName, - LPSTR lpReturnedString, - DWORD nSize - ); - -WINBOOL -STDCALL -WriteProfileSectionA( - LPCSTR lpAppName, - LPCSTR lpString - ); - -UINT -STDCALL -GetPrivateProfileIntA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - INT nDefault, - LPCSTR lpFileName - ); - -DWORD -STDCALL -GetPrivateProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpDefault, - LPSTR lpReturnedString, - DWORD nSize, - LPCSTR lpFileName - ); - -WINBOOL -STDCALL -WritePrivateProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpString, - LPCSTR lpFileName - ); - -DWORD -STDCALL -GetPrivateProfileSectionA( - LPCSTR lpAppName, - LPSTR lpReturnedString, - DWORD nSize, - LPCSTR lpFileName - ); - -WINBOOL -STDCALL -WritePrivateProfileSectionA( - LPCSTR lpAppName, - LPCSTR lpString, - LPCSTR lpFileName - ); - -UINT -STDCALL -GetDriveTypeA( - LPCSTR lpRootPathName - ); - -UINT -STDCALL -GetSystemDirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -DWORD -STDCALL -GetTempPathA( - DWORD nBufferLength, - LPSTR lpBuffer - ); - -UINT -STDCALL -GetTempFileNameA( - LPCSTR lpPathName, - LPCSTR lpPrefixString, - UINT uUnique, - LPSTR lpTempFileName - ); - -UINT -STDCALL -GetWindowsDirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -WINBOOL -STDCALL -SetCurrentDirectoryA( - LPCSTR lpPathName - ); - -DWORD -STDCALL -GetCurrentDirectoryA( - DWORD nBufferLength, - LPSTR lpBuffer - ); - -BOOL -STDCALL -NeedCurrentDirectoryForExePathA( - LPCSTR ExeName - ); - -WINBOOL -STDCALL -GetDiskFreeSpaceA( - LPCSTR lpRootPathName, - LPDWORD lpSectorsPerCluster, - LPDWORD lpBytesPerSector, - LPDWORD lpNumberOfFreeClusters, - LPDWORD lpTotalNumberOfClusters - ); - -WINBOOL -STDCALL -GetDiskFreeSpaceExA( - LPCSTR lpDirectoryName, - PULARGE_INTEGER lpFreeBytesAvailableToCaller, - PULARGE_INTEGER lpTotalNumberOfBytes, - PULARGE_INTEGER lpTotalNumberOfFreeBytes - ); - -WINBOOL -STDCALL -CreateDirectoryA( - LPCSTR lpPathName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -WINBOOL -STDCALL -CreateDirectoryExA( - LPCSTR lpTemplateDirectory, - LPCSTR lpNewDirectory, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -WINBOOL -STDCALL -RemoveDirectoryA( - LPCSTR lpPathName - ); - -DWORD -STDCALL -GetFullPathNameA( - LPCSTR lpFileName, - DWORD nBufferLength, - LPSTR lpBuffer, - LPSTR *lpFilePart - ); - -WINBOOL -STDCALL -DefineDosDeviceA( - DWORD dwFlags, - LPCSTR lpDeviceName, - LPCSTR lpTargetPath - ); - -DWORD -STDCALL -QueryDosDeviceA( - LPCSTR lpDeviceName, - LPSTR lpTargetPath, - DWORD ucchMax - ); - -HANDLE -STDCALL -CreateFileA( - LPCSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwCreationDisposition, - DWORD dwFlagsAndAttributes, - HANDLE hTemplateFile - ); - -WINBOOL -STDCALL -SetFileAttributesA( - LPCSTR lpFileName, - DWORD dwFileAttributes - ); - -DWORD -STDCALL -GetFileAttributesA( - LPCSTR lpFileName - ); - -BOOL -STDCALL -GetFileAttributesExA( - LPCSTR lpFileName, - GET_FILEEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFileInformation - ); - -DWORD -STDCALL -GetCompressedFileSizeA( - LPCSTR lpFileName, - LPDWORD lpFileSizeHigh - ); - -WINBOOL -STDCALL -DeleteFileA( - LPCSTR lpFileName - ); - -DWORD -STDCALL -SearchPathA( - LPCSTR lpPath, - LPCSTR lpFileName, - LPCSTR lpExtension, - DWORD nBufferLength, - LPSTR lpBuffer, - LPSTR *lpFilePart - ); - -WINBOOL -STDCALL -CopyFileA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - WINBOOL bFailIfExists - ); - -WINBOOL -STDCALL -CopyFileExA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - LPBOOL pbCancel, - DWORD dwCopyFlags - ); - -WINBOOL -STDCALL -MoveFileA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName - ); - -WINBOOL -STDCALL -MoveFileExA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - DWORD dwFlags - ); - -WINBOOL -STDCALL -MoveFileWithProgressA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - DWORD dwFlags - ); - -HANDLE -STDCALL -CreateNamedPipeA( - LPCSTR lpName, - DWORD dwOpenMode, - DWORD dwPipeMode, - DWORD nMaxInstances, - DWORD nOutBufferSize, - DWORD nInBufferSize, - DWORD nDefaultTimeOut, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -WINBOOL -STDCALL -GetNamedPipeHandleStateA( - HANDLE hNamedPipe, - LPDWORD lpState, - LPDWORD lpCurInstances, - LPDWORD lpMaxCollectionCount, - LPDWORD lpCollectDataTimeout, - LPSTR lpUserName, - DWORD nMaxUserNameSize - ); - -WINBOOL -STDCALL -CallNamedPipeA( - LPCSTR lpNamedPipeName, - LPVOID lpInBuffer, - DWORD nInBufferSize, - LPVOID lpOutBuffer, - DWORD nOutBufferSize, - LPDWORD lpBytesRead, - DWORD nTimeOut - ); - -WINBOOL -STDCALL -WaitNamedPipeA( - LPCSTR lpNamedPipeName, - DWORD nTimeOut - ); - -WINBOOL -STDCALL -SetVolumeLabelA( - LPCSTR lpRootPathName, - LPCSTR lpVolumeName - ); - -WINBOOL -STDCALL -GetVolumeInformationA( - LPCSTR lpRootPathName, - LPSTR lpVolumeNameBuffer, - DWORD nVolumeNameSize, - LPDWORD lpVolumeSerialNumber, - LPDWORD lpMaximumComponentLength, - LPDWORD lpFileSystemFlags, - LPSTR lpFileSystemNameBuffer, - DWORD nFileSystemNameSize - ); - -WINBOOL -STDCALL -ClearEventLogA ( - HANDLE hEventLog, - LPCSTR lpBackupFileName - ); - -WINBOOL -STDCALL -BackupEventLogA ( - HANDLE hEventLog, - LPCSTR lpBackupFileName - ); - -HANDLE -STDCALL -OpenEventLogA ( - LPCSTR lpUNCServerName, - LPCSTR lpSourceName - ); - -HANDLE -STDCALL -RegisterEventSourceA ( - LPCSTR lpUNCServerName, - LPCSTR lpSourceName - ); - -HANDLE -STDCALL -OpenBackupEventLogA ( - LPCSTR lpUNCServerName, - LPCSTR lpFileName - ); - -WINBOOL -STDCALL -ReadEventLogA ( - HANDLE hEventLog, - DWORD dwReadFlags, - DWORD dwRecordOffset, - LPVOID lpBuffer, - DWORD nNumberOfBytesToRead, - DWORD *pnBytesRead, - DWORD *pnMinNumberOfBytesNeeded - ); - -WINBOOL -STDCALL -ReportEventA ( - HANDLE hEventLog, - WORD wType, - WORD wCategory, - DWORD dwEventID, - PSID lpUserSid, - WORD wNumStrings, - DWORD dwDataSize, - LPCSTR *lpStrings, - LPVOID lpRawData - ); - -WINBOOL -STDCALL -AccessCheckAndAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - LPSTR ObjectTypeName, - LPSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - DWORD DesiredAccess, - PGENERIC_MAPPING GenericMapping, - WINBOOL ObjectCreation, - LPDWORD GrantedAccess, - LPBOOL AccessStatus, - LPBOOL pfGenerateOnClose - ); - -WINBOOL -STDCALL -ObjectOpenAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - LPSTR ObjectTypeName, - LPSTR ObjectName, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - HANDLE ClientToken, - DWORD DesiredAccess, - DWORD GrantedAccess, - PPRIVILEGE_SET Privileges, - WINBOOL ObjectCreation, - WINBOOL AccessGranted, - LPBOOL GenerateOnClose - ); - -WINBOOL -STDCALL -ObjectPrivilegeAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - HANDLE ClientToken, - DWORD DesiredAccess, - PPRIVILEGE_SET Privileges, - WINBOOL AccessGranted - ); - -WINBOOL -STDCALL -ObjectCloseAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - WINBOOL GenerateOnClose - ); - -WINBOOL -STDCALL -PrivilegedServiceAuditAlarmA ( - LPCSTR SubsystemName, - LPCSTR ServiceName, - HANDLE ClientToken, - PPRIVILEGE_SET Privileges, - WINBOOL AccessGranted - ); - -WINBOOL -STDCALL -SetFileSecurityA ( - LPCSTR lpFileName, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor - ); - -WINBOOL -STDCALL -GetFileSecurityA ( - LPCSTR lpFileName, - SECURITY_INFORMATION RequestedInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - DWORD nLength, - LPDWORD lpnLengthNeeded - ); - -HANDLE -STDCALL -FindFirstChangeNotificationA( - LPCSTR lpPathName, - WINBOOL bWatchSubtree, - DWORD dwNotifyFilter - ); - -WINBOOL -STDCALL -IsBadStringPtrA( - LPCSTR lpsz, - UINT ucchMax - ); - -WINBOOL -STDCALL -LookupAccountSidA( - LPCSTR lpSystemName, - PSID Sid, - LPSTR Name, - LPDWORD cbName, - LPSTR ReferencedDomainName, - LPDWORD cbReferencedDomainName, - PSID_NAME_USE peUse - ); - -WINBOOL -STDCALL -LookupAccountNameA( - LPCSTR lpSystemName, - LPCSTR lpAccountName, - PSID Sid, - LPDWORD cbSid, - LPSTR ReferencedDomainName, - LPDWORD cbReferencedDomainName, - PSID_NAME_USE peUse - ); - -WINBOOL -STDCALL -LookupPrivilegeValueA( - LPCSTR lpSystemName, - LPCSTR lpName, - PLUID lpLuid - ); - -WINBOOL -STDCALL -LookupPrivilegeNameA( - LPCSTR lpSystemName, - PLUID lpLuid, - LPSTR lpName, - LPDWORD cbName - ); - -WINBOOL -STDCALL -LookupPrivilegeDisplayNameA( - LPCSTR lpSystemName, - LPCSTR lpName, - LPSTR lpDisplayName, - LPDWORD cbDisplayName, - LPDWORD lpLanguageId - ); - -WINBOOL -STDCALL -BuildCommDCBA( - LPCSTR lpDef, - LPDCB lpDCB - ); - -WINBOOL -STDCALL -BuildCommDCBAndTimeoutsA( - LPCSTR lpDef, - LPDCB lpDCB, - LPCOMMTIMEOUTS lpCommTimeouts - ); - -WINBOOL -STDCALL -CommConfigDialogA( - LPCSTR lpszName, - HWND hWnd, - LPCOMMCONFIG lpCC - ); - -WINBOOL -STDCALL -GetDefaultCommConfigA( - LPCSTR lpszName, - LPCOMMCONFIG lpCC, - LPDWORD lpdwSize - ); - -WINBOOL -STDCALL -SetDefaultCommConfigA( - LPCSTR lpszName, - LPCOMMCONFIG lpCC, - DWORD dwSize - ); - -WINBOOL -STDCALL -GetComputerNameA ( - LPSTR lpBuffer, - LPDWORD nSize - ); - -WINBOOL -STDCALL -SetComputerNameA ( - LPCSTR lpComputerName - ); - -WINBOOL -STDCALL -GetUserNameA ( - LPSTR lpBuffer, - LPDWORD nSize - ); - -int -STDCALL -wvsprintfA( - LPSTR, - LPCSTR, - va_list arglist); - -int -CDECL -wsprintfA(LPSTR, LPCSTR, ...); - -HKL -STDCALL -LoadKeyboardLayoutA( - LPCSTR pwszKLID, - UINT Flags); - -WINBOOL -STDCALL -GetKeyboardLayoutNameA( - LPSTR pwszKLID); - -HDESK -STDCALL -CreateDesktopA( - LPCSTR lpszDesktop, - LPCSTR lpszDevice, - LPDEVMODEA pDevmode, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa); - -HDESK -STDCALL -OpenDesktopA( - LPSTR lpszDesktop, - DWORD dwFlags, - WINBOOL fInherit, - DWORD dwDesiredAccess); - -WINBOOL -STDCALL -EnumDesktopsA( - HWINSTA hwinsta, - DESKTOPENUMPROCA lpEnumFunc, - LPARAM lParam); - -HWINSTA -STDCALL -CreateWindowStationA( - LPSTR lpwinsta, - DWORD dwReserved, - DWORD dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa); - -HANDLE STDCALL CreateWaitableTimerA( LPSECURITY_ATTRIBUTES Attributes, - BOOL ManualReset, - LPCSTR Name ); - -HWINSTA -STDCALL -OpenWindowStationA( - LPSTR lpszWinSta, - WINBOOL fInherit, - DWORD dwDesiredAccess); - -WINBOOL -STDCALL -EnumWindowStationsA( - ENUMWINDOWSTATIONPROCA lpEnumFunc, - LPARAM lParam); - -WINBOOL -STDCALL -GetUserObjectInformationA( - HANDLE hObj, - int nIndex, - PVOID pvInfo, - DWORD nLength, - LPDWORD lpnLengthNeeded); - -WINBOOL -STDCALL -SetUserObjectInformationA( - HANDLE hObj, - int nIndex, - PVOID pvInfo, - DWORD nLength); - -UINT -STDCALL -RegisterWindowMessageA( - LPCSTR lpString); - -WINBOOL -STDCALL -GetMessageA( - LPMSG lpMsg, - HWND hWnd , - UINT wMsgFilterMin, - UINT wMsgFilterMax); - -LRESULT -STDCALL -DispatchMessageA( - CONST MSG *lpMsg); - -WINBOOL -STDCALL -PeekMessageA( - LPMSG lpMsg, - HWND hWnd , - UINT wMsgFilterMin, - UINT wMsgFilterMax, - UINT wRemoveMsg); - -LRESULT -STDCALL -SendMessageA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -LRESULT -STDCALL -SendMessageTimeoutA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - UINT fuFlags, - UINT uTimeout, - PDWORD_PTR lpdwResult); - -WINBOOL -STDCALL -SendNotifyMessageA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -WINBOOL -STDCALL -SendMessageCallbackA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - SENDASYNCPROC lpResultCallBack, - ULONG_PTR dwData); - -WINBOOL -STDCALL -PostMessageA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -WINBOOL -STDCALL -PostThreadMessageA( - DWORD idThread, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -LRESULT -STDCALL -DefWindowProcA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -LRESULT -STDCALL -CallWindowProcA( - WNDPROC lpPrevWndFunc, - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -ATOM -STDCALL -RegisterClassA( - CONST WNDCLASSA *lpWndClass); - -WINBOOL -STDCALL -UnregisterClassA( - LPCSTR lpClassName, - HINSTANCE hInstance); - -WINBOOL -STDCALL -GetClassInfoA( - HINSTANCE hInstance , - LPCSTR lpClassName, - LPWNDCLASSA lpWndClass); - -ATOM -STDCALL -RegisterClassExA(CONST WNDCLASSEXA *); - -WINBOOL -STDCALL -GetClassInfoExA(HINSTANCE, LPCSTR, LPWNDCLASSEXA); - -HWND -STDCALL -CreateWindowExA( - DWORD dwExStyle, - LPCSTR lpClassName, - LPCSTR lpWindowName, - DWORD dwStyle, - int X, - int Y, - int nWidth, - int nHeight, - HWND hWndParent , - HMENU hMenu, - HINSTANCE hInstance, - LPVOID lpParam); - -HWND -STDCALL -CreateDialogParamA( - HINSTANCE hInstance, - LPCSTR lpTemplateName, - HWND hWndParent , - DLGPROC lpDialogFunc, - LPARAM dwInitParam); - -HWND -STDCALL -CreateDialogIndirectParamA( - HINSTANCE hInstance, - LPCDLGTEMPLATE lpTemplate, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); - -int -STDCALL -DialogBoxParamA( - HINSTANCE hInstance, - LPCSTR lpTemplateName, - HWND hWndParent , - DLGPROC lpDialogFunc, - LPARAM dwInitParam); - -int -STDCALL -DialogBoxIndirectParamA( - HINSTANCE hInstance, - LPCDLGTEMPLATE hDialogTemplate, - HWND hWndParent , - DLGPROC lpDialogFunc, - LPARAM dwInitParam); - -WINBOOL -STDCALL -SetDlgItemTextA( - HWND hDlg, - int nIDDlgItem, - LPCSTR lpString); - -UINT -STDCALL -GetDlgItemTextA( - HWND hDlg, - int nIDDlgItem, - LPSTR lpString, - int nMaxCount); - -WINBOOL -STDCALL -IsDialogMessageA( - HWND hDlg, - LPMSG lpMsg); - -LRESULT -STDCALL -SendDlgItemMessageA( - HWND hDlg, - int nIDDlgItem, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -LRESULT -STDCALL -DefDlgProcA( - HWND hDlg, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - -WINBOOL -STDCALL -CallMsgFilterA( - LPMSG lpMsg, - int nCode); - -UINT -STDCALL -RegisterClipboardFormatA( - LPCSTR lpszFormat); - -int -STDCALL -GetClipboardFormatNameA( - UINT format, - LPSTR lpszFormatName, - int cchMaxCount); - -WINBOOL -STDCALL -CharToOemA( - LPCSTR lpszSrc, - LPSTR lpszDst); - -WINBOOL -STDCALL -OemToCharA( - LPCSTR lpszSrc, - LPSTR lpszDst); - -WINBOOL -STDCALL -CharToOemBuffA( - LPCSTR lpszSrc, - LPSTR lpszDst, - DWORD cchDstLength); - -WINBOOL -STDCALL -OemToCharBuffA( - LPCSTR lpszSrc, - LPSTR lpszDst, - DWORD cchDstLength); - -LPSTR -STDCALL -CharUpperA( - LPSTR lpsz); - -DWORD -STDCALL -CharUpperBuffA( - LPSTR lpsz, - DWORD cchLength); - -LPSTR -STDCALL -CharLowerA( - LPSTR lpsz); - -DWORD -STDCALL -CharLowerBuffA( - LPSTR lpsz, - DWORD cchLength); - -LPSTR -STDCALL -CharNextA( - LPCSTR lpsz); - -LPSTR -STDCALL -CharPrevA( - LPCSTR lpszStart, - LPCSTR lpszCurrent); - -WINBOOL -STDCALL -IsCharAlphaA( - CHAR ch); - -WINBOOL -STDCALL -IsCharAlphaNumericA( - CHAR ch); - -WINBOOL -STDCALL -IsCharUpperA( - CHAR ch); - -WINBOOL -STDCALL -IsCharLowerA( - CHAR ch); - -int -STDCALL -GetKeyNameTextA( - LONG lParam, - LPSTR lpString, - int nSize - ); - -SHORT -STDCALL -VkKeyScanA( - CHAR ch); - -SHORT -STDCALL VkKeyScanExA( - CHAR ch, - HKL dwhkl); - -UINT -STDCALL -MapVirtualKeyA( - UINT uCode, - UINT uMapType); - -UINT -STDCALL -MapVirtualKeyExA( - UINT uCode, - UINT uMapType, - HKL dwhkl); - -HACCEL -STDCALL -LoadAcceleratorsA( - HINSTANCE hInstance, - LPCSTR lpTableName); - -HACCEL -STDCALL -CreateAcceleratorTableA( - LPACCEL, int); - -int -STDCALL -CopyAcceleratorTableA( - HACCEL hAccelSrc, - LPACCEL lpAccelDst, - int cAccelEntries); - -int -STDCALL -TranslateAcceleratorA( - HWND hWnd, - HACCEL hAccTable, - LPMSG lpMsg); - -HMENU -STDCALL -LoadMenuA( - HINSTANCE hInstance, - LPCSTR lpMenuName); - -HMENU -STDCALL -LoadMenuIndirectA( - CONST MENUTEMPLATE *lpMenuTemplate); - -WINBOOL -STDCALL -ChangeMenuA( - HMENU hMenu, - UINT cmd, - LPCSTR lpszNewItem, - UINT cmdInsert, - UINT flags); - -int -STDCALL -GetMenuStringA( - HMENU hMenu, - UINT uIDItem, - LPSTR lpString, - int nMaxCount, - UINT uFlag); - -WINBOOL -STDCALL -InsertMenuA( - HMENU hMenu, - UINT uPosition, - UINT uFlags, - UINT uIDNewItem, - LPCSTR lpNewItem - ); - -WINBOOL -STDCALL -AppendMenuA( - HMENU hMenu, - UINT uFlags, - UINT uIDNewItem, - LPCSTR lpNewItem - ); - -WINBOOL -STDCALL -ModifyMenuA( - HMENU hMnu, - UINT uPosition, - UINT uFlags, - UINT uIDNewItem, - LPCSTR lpNewItem - ); - -WINBOOL -STDCALL -InsertMenuItemA( - HMENU, - UINT, - WINBOOL, - LPCMENUITEMINFOA - ); - -WINBOOL -STDCALL -GetMenuItemInfoA( - HMENU, - UINT, - WINBOOL, - LPMENUITEMINFOA - ); - -WINBOOL -STDCALL -SetMenuItemInfoA( - HMENU hMenu, - UINT uItem, - WINBOOL fByPosition, - LPMENUITEMINFOA lpmii); - -int -STDCALL -DrawTextA( - HDC hDC, - LPCSTR lpString, - int nCount, - LPRECT lpRect, - UINT uFormat); - -int -STDCALL -DrawTextExA(HDC, LPSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); - -WINBOOL -STDCALL -GrayStringA( - HDC hDC, - HBRUSH hBrush, - GRAYSTRINGPROC lpOutputFunc, - LPARAM lpData, - int nCount, - int X, - int Y, - int nWidth, - int nHeight); - -WINBOOL -STDCALL -DrawStateA(HDC, HBRUSH, DRAWSTATEPROC, LPARAM, WPARAM, int, int, int, int, UINT); - -LONG -STDCALL -TabbedTextOutA( - HDC hDC, - int X, - int Y, - LPCSTR lpString, - int nCount, - int nTabPositions, - LPINT lpnTabStopPositions, - int nTabOrigin); - -DWORD -STDCALL -GetTabbedTextExtentA( - HDC hDC, - LPCSTR lpString, - int nCount, - int nTabPositions, - LPINT lpnTabStopPositions); - -WINBOOL -STDCALL -SetPropA( - HWND hWnd, - LPCSTR lpString, - HANDLE hData); - -HANDLE -STDCALL -GetPropA( - HWND hWnd, - LPCSTR lpString); - -HANDLE -STDCALL -RemovePropA( - HWND hWnd, - LPCSTR lpString); - -int -STDCALL -EnumPropsExA( - HWND hWnd, - PROPENUMPROCEXA lpEnumFunc, - LPARAM lParam); - -int -STDCALL -EnumPropsA( - HWND hWnd, - PROPENUMPROCA lpEnumFunc); - -WINBOOL -STDCALL -SetWindowTextA( - HWND hWnd, - LPCSTR lpString); - -int -STDCALL -GetWindowTextA( - HWND hWnd, - LPSTR lpString, - int nMaxCount); - -int -STDCALL -GetWindowTextLengthA( - HWND hWnd); - -int -STDCALL -MessageBoxA( - HWND hWnd , - LPCSTR lpText, - LPCSTR lpCaption, - UINT uType); - -int -STDCALL -MessageBoxExA( - HWND hWnd , - LPCSTR lpText, - LPCSTR lpCaption, - UINT uType, - WORD wLanguageId); - -int -STDCALL -MessageBoxIndirectA(LPMSGBOXPARAMS); - -LONG -STDCALL -GetWindowLongA( - HWND hWnd, - int nIndex); - -LONG -STDCALL -SetWindowLongA( - HWND hWnd, - int nIndex, - LONG dwNewLong); - -DWORD -STDCALL -GetClassLongA( - HWND hWnd, - int nIndex); - -DWORD -STDCALL -SetClassLongA( - HWND hWnd, - int nIndex, - LONG dwNewLong); - -HWND -STDCALL -FindWindowA( - LPCSTR lpClassName , - LPCSTR lpWindowName); - -HWND -STDCALL -FindWindowExA(HWND, HWND, LPCSTR, LPCSTR); - -int -STDCALL -GetClassNameA( - HWND hWnd, - LPSTR lpClassName, - int nMaxCount); - -HHOOK -STDCALL -SetWindowsHookExA( - int idHook, - HOOKPROC lpfn, - HINSTANCE hmod, - DWORD dwThreadId); - -HBITMAP -STDCALL -LoadBitmapA( - HINSTANCE hInstance, - LPCSTR lpBitmapName); - -HCURSOR -STDCALL -LoadCursorA( - HINSTANCE hInstance, - LPCSTR lpCursorName); - -HCURSOR -STDCALL -LoadCursorFromFileA( - LPCSTR lpFileName); - -HICON -STDCALL -LoadIconA( - HINSTANCE hInstance, - LPCSTR lpIconName); - -HANDLE -STDCALL -LoadImageA( - HINSTANCE, - LPCSTR, - UINT, - int, - int, - UINT); - -int -STDCALL -LoadStringA( - HINSTANCE hInstance, - UINT uID, - LPSTR lpBuffer, - int nBufferMax); - -int -STDCALL -DlgDirListA( - HWND hDlg, - LPSTR lpPathSpec, - int nIDListBox, - int nIDStaticPath, - UINT uFileType); - -WINBOOL -STDCALL -DlgDirSelectExA( - HWND hDlg, - LPSTR lpString, - int nCount, - int nIDListBox); - -int -STDCALL -DlgDirListComboBoxA( - HWND hDlg, - LPSTR lpPathSpec, - int nIDComboBox, - int nIDStaticPath, - UINT uFiletype); - -WINBOOL -STDCALL -DlgDirSelectComboBoxExA( - HWND hDlg, - LPSTR lpString, - int nCount, - int nIDComboBox); - -LRESULT -STDCALL -DefFrameProcA( - HWND hWnd, - HWND hWndMDIClient , - UINT uMsg, - WPARAM wParam, - LPARAM lParam); - -LRESULT -STDCALL -DefMDIChildProcA( - HWND hWnd, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); - -HWND -STDCALL -CreateMDIWindowA( - LPCSTR lpClassName, - LPCSTR lpWindowName, - DWORD dwStyle, - int X, - int Y, - int nWidth, - int nHeight, - HWND hWndParent, - HINSTANCE hInstance, - LPARAM lParam - ); - -WINBOOL -STDCALL -WinHelpA( - HWND hWndMain, - LPCSTR lpszHelp, - UINT uCommand, - DWORD dwData - ); - -LONG -STDCALL -ChangeDisplaySettingsA( - LPDEVMODEA lpDevMode, - DWORD dwFlags); - -WINBOOL -STDCALL -EnumDisplaySettingsA( - LPCSTR lpszDeviceName, - DWORD iModeNum, - LPDEVMODEA lpDevMode); - -WINBOOL -STDCALL -SystemParametersInfoA( - UINT uiAction, - UINT uiParam, - PVOID pvParam, - UINT fWinIni); - -int -STDCALL -AddFontResourceA(LPCSTR); - -HMETAFILE -STDCALL -CopyMetaFileA(HMETAFILE, LPCSTR); - -HFONT -STDCALL -CreateFontIndirectA(CONST LOGFONTA *); - -HDC -STDCALL -CreateICA(LPCSTR, LPCSTR , LPCSTR , CONST DEVMODEA *); - -HDC -STDCALL -CreateMetaFileA(LPCSTR); - -WINBOOL -STDCALL -CreateScalableFontResourceA(DWORD, LPCSTR, LPCSTR, LPCSTR); - -int -STDCALL -DeviceCapabilitiesA(LPCSTR, LPCSTR, WORD, - LPSTR, CONST DEVMODEA *); - -int -STDCALL -EnumFontFamiliesExA(HDC, LPLOGFONTA, FONTENUMEXPROCA, LPARAM,DWORD); - -int -STDCALL -EnumFontFamiliesA(HDC, LPCSTR, FONTENUMPROCA, LPARAM); - -int -STDCALL -EnumFontsA(HDC, LPCSTR, FONTENUMPROCA, LPARAM); - -WINBOOL -STDCALL -GetCharWidthA(HDC, UINT, UINT, LPINT); - -WINBOOL -STDCALL -GetCharWidth32A(HDC, UINT, UINT, LPINT); - -WINBOOL -STDCALL -GetCharWidthFloatA(HDC, UINT, UINT, PFLOAT); - -WINBOOL -STDCALL -GetCharABCWidthsA(HDC, UINT, UINT, LPABC); - -WINBOOL -STDCALL -GetCharABCWidthsFloatA(HDC, UINT, UINT, LPABCFLOAT); -DWORD -STDCALL -GetGlyphOutlineA(HDC, UINT, UINT, LPGLYPHMETRICS, DWORD, LPVOID, CONST MAT2 *); - -HMETAFILE -STDCALL -GetMetaFileA(LPCSTR); - -UINT -STDCALL -GetOutlineTextMetricsA(HDC, UINT, LPOUTLINETEXTMETRICA); - -WINBOOL -STDCALL -GetTextExtentPointA( - HDC, - LPCSTR, - int, - LPSIZE - ); - -WINBOOL -STDCALL -GetTextExtentPoint32A( - HDC, - LPCSTR, - int, - LPSIZE - ); - -WINBOOL -STDCALL -GetTextExtentExPointA( - HDC, - LPCSTR, - int, - int, - LPINT, - LPINT, - LPSIZE - ); - -DWORD -STDCALL -GetCharacterPlacementA(HDC, LPCSTR, int, int, LPGCP_RESULTSA, DWORD); - -HDC -STDCALL -ResetDCA(HDC, CONST DEVMODEA *); - -WINBOOL -STDCALL -RemoveFontResourceA(LPCSTR); - -HENHMETAFILE -STDCALL -CopyEnhMetaFileA(HENHMETAFILE, LPCSTR); - -HDC -STDCALL -CreateEnhMetaFileA(HDC, LPCSTR, CONST RECT *, LPCSTR); - -HENHMETAFILE -STDCALL -GetEnhMetaFileA(LPCSTR); - -UINT -STDCALL -GetEnhMetaFileDescriptionA(HENHMETAFILE, UINT, LPSTR ); - -WINBOOL -STDCALL -GetTextMetricsA(HDC, LPTEXTMETRICA); - -int -STDCALL -StartDocA(HDC, CONST DOCINFOA *); - -int -STDCALL -GetObjectA(HGDIOBJ, int, LPVOID); - -WINBOOL -STDCALL -TextOutA(HDC, int, int, LPCSTR, int); - -WINBOOL -STDCALL -ExtTextOutA(HDC, int, int, UINT, CONST RECT *,LPCSTR, UINT, CONST INT *); - -WINBOOL -STDCALL -PolyTextOutA(HDC, CONST POLYTEXTA *, int); - -int -STDCALL -GetTextFaceA(HDC, int, LPSTR); - -DWORD -STDCALL -GetKerningPairsA(HDC, DWORD, LPKERNINGPAIR); - -HCOLORSPACE -STDCALL -CreateColorSpaceA(LPLOGCOLORSPACEA); - -WINBOOL -STDCALL -GetLogColorSpaceA(HCOLORSPACE,LPLOGCOLORSPACEA,DWORD); - -WINBOOL -STDCALL -GetICMProfileA(HDC,DWORD,LPSTR); - -WINBOOL -STDCALL -SetICMProfileA(HDC,LPSTR); - -WINBOOL -STDCALL -UpdateICMRegKeyA(DWORD, DWORD, LPSTR, UINT); - -int -STDCALL -EnumICMProfilesA(HDC,ICMENUMPROCA,LPARAM); - -int -STDCALL -PropertySheetA(LPCPROPSHEETHEADERA lppsph); - -HIMAGELIST -STDCALL -ImageList_LoadImageA(HINSTANCE hi, LPCSTR lpbmp, int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags); - -HWND -STDCALL -CreateStatusWindowA(LONG style, LPCSTR lpszText, HWND hwndParent, UINT wID); - -void -STDCALL -DrawStatusTextA(HDC hDC, LPRECT lprc, LPCSTR pszText, UINT uFlags); - -WINBOOL -STDCALL -GetOpenFileNameA(LPOPENFILENAMEA); - -WINBOOL -STDCALL -GetSaveFileNameA(LPOPENFILENAMEA); - -short -STDCALL -GetFileTitleA(LPCSTR, LPSTR, WORD); - -WINBOOL -STDCALL -ChooseColorA(LPCHOOSECOLORA); - -HWND -STDCALL -FindTextA(LPFINDREPLACEA); - -HWND -STDCALL -ReplaceTextA(LPFINDREPLACEA); - -WINBOOL -STDCALL -ChooseFontA(LPCHOOSEFONTA); - -WINBOOL -STDCALL -PrintDlgA(LPPRINTDLGA); - -WINBOOL -STDCALL -PageSetupDlgA( LPPAGESETUPDLGA ); - -WINBOOL -STDCALL -CreateProcessA( - LPCSTR lpApplicationName, - LPSTR lpCommandLine, - LPSECURITY_ATTRIBUTES lpProcessAttributes, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - WINBOOL bInheritHandles, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCSTR lpCurrentDirectory, - LPSTARTUPINFOA lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); - -VOID -STDCALL -GetStartupInfoA( - LPSTARTUPINFOA lpStartupInfo - ); - -WINBASEAPI -HANDLE -WINAPI -FindFirstFileExA ( - LPCSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags - ); - -HANDLE -STDCALL -FindFirstFileA( - LPCSTR lpFileName, - LPWIN32_FIND_DATAA lpFindFileData - ); - -WINBOOL -STDCALL -FindNextFileA( - HANDLE hFindFile, - LPWIN32_FIND_DATAA lpFindFileData - ); - -WINBOOL -STDCALL -GetVersionExA( - LPOSVERSIONINFOA lpVersionInformation - ); - -#define CreateWindowA(lpClassName, lpWindowName, dwStyle, x, y,\ -nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)\ -CreateWindowExA(0L, lpClassName, lpWindowName, dwStyle, x, y,\ -nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam) - -#define CreateDialogA(hInstance, lpName, hWndParent, lpDialogFunc) \ -CreateDialogParamA(hInstance, lpName, hWndParent, lpDialogFunc, 0L) - -#define CreateDialogIndirectA(hInstance, lpTemplate, hWndParent, lpDialogFunc) \ -CreateDialogIndirectParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L) - -#define DialogBoxA(hInstance, lpTemplate, hWndParent, lpDialogFunc) \ -DialogBoxParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L) - -#define DialogBoxIndirectA(hInstance, lpTemplate, hWndParent, lpDialogFunc) \ -DialogBoxIndirectParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L) - -HDC -STDCALL -CreateDCA(LPCSTR, LPCSTR , LPCSTR , CONST DEVMODEA *); - -DWORD -STDCALL -VerInstallFileA( - DWORD uFlags, - LPSTR szSrcFileName, - LPSTR szDestFileName, - LPSTR szSrcDir, - LPSTR szDestDir, - LPSTR szCurDir, - LPSTR szTmpFile, - PUINT lpuTmpFileLen - ); - -DWORD -STDCALL -GetFileVersionInfoSizeA( - LPSTR lptstrFilename, - LPDWORD lpdwHandle - ); - -WINBOOL -STDCALL -GetFileVersionInfoA( - LPSTR lptstrFilename, - DWORD dwHandle, - DWORD dwLen, - LPVOID lpData - ); - -DWORD -STDCALL -VerLanguageNameA( - DWORD wLang, - LPSTR szLang, - DWORD nSize - ); - -WINBOOL -STDCALL -VerQueryValueA( - const LPVOID pBlock, - LPSTR lpSubBlock, - LPVOID * lplpBuffer, - PUINT puLen - ); - -DWORD -STDCALL -VerFindFileA( - DWORD uFlags, - LPSTR szFileName, - LPSTR szWinDir, - LPSTR szAppDir, - LPSTR szCurDir, - PUINT lpuCurDirLen, - LPSTR szDestDir, - PUINT lpuDestDirLen - ); - -LONG -STDCALL -RegConnectRegistryA ( - LPCSTR lpMachineName, - HKEY hKey, - PHKEY phkResult - ); - -LONG -STDCALL -RegCreateKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - PHKEY phkResult - ); - -LONG -STDCALL -RegCreateKeyExA ( - HKEY hKey, - LPCSTR lpSubKey, - DWORD Reserved, - LPSTR lpClass, - DWORD dwOptions, - REGSAM samDesired, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - PHKEY phkResult, - LPDWORD lpdwDisposition - ); - -LONG -STDCALL -RegDeleteKeyA ( - HKEY hKey, - LPCSTR lpSubKey - ); - -LONG -STDCALL -RegDeleteValueA ( - HKEY hKey, - LPCSTR lpValueName - ); - -LONG -STDCALL -RegEnumKeyA ( - HKEY hKey, - DWORD dwIndex, - LPSTR lpName, - DWORD cbName - ); - -LONG -STDCALL -RegEnumKeyExA ( - HKEY hKey, - DWORD dwIndex, - LPSTR lpName, - LPDWORD lpcbName, - LPDWORD lpReserved, - LPSTR lpClass, - LPDWORD lpcbClass, - PFILETIME lpftLastWriteTime - ); - -LONG -STDCALL -RegEnumValueA ( - HKEY hKey, - DWORD dwIndex, - LPSTR lpValueName, - LPDWORD lpcbValueName, - LPDWORD lpReserved, - LPDWORD lpType, - LPBYTE lpData, - LPDWORD lpcbData - ); - -LONG -STDCALL -RegLoadKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - LPCSTR lpFile - ); - -LONG -STDCALL -RegOpenKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - PHKEY phkResult - ); - -LONG -STDCALL -RegOpenKeyExA ( - HKEY hKey, - LPCSTR lpSubKey, - DWORD ulOptions, - REGSAM samDesired, - PHKEY phkResult - ); - -LONG -STDCALL -RegQueryInfoKeyA ( - HKEY hKey, - LPSTR lpClass, - LPDWORD lpcbClass, - LPDWORD lpReserved, - LPDWORD lpcSubKeys, - LPDWORD lpcbMaxSubKeyLen, - LPDWORD lpcbMaxClassLen, - LPDWORD lpcValues, - LPDWORD lpcbMaxValueNameLen, - LPDWORD lpcbMaxValueLen, - LPDWORD lpcbSecurityDescriptor, - PFILETIME lpftLastWriteTime - ); - -LONG -STDCALL -RegQueryValueA ( - HKEY hKey, - LPCSTR lpSubKey, - LPSTR lpValue, - PLONG lpcbValue - ); - -LONG -STDCALL -RegQueryMultipleValuesA ( - HKEY hKey, - PVALENTA val_list, - DWORD num_vals, - LPSTR lpValueBuf, - LPDWORD ldwTotsize - ); - -LONG -STDCALL -RegQueryValueExA ( - HKEY hKey, - LPCSTR lpValueName, - LPDWORD lpReserved, - LPDWORD lpType, - LPBYTE lpData, - LPDWORD lpcbData - ); - -LONG -STDCALL -RegReplaceKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - LPCSTR lpNewFile, - LPCSTR lpOldFile - ); - -LONG -STDCALL -RegRestoreKeyA ( - HKEY hKey, - LPCSTR lpFile, - DWORD dwFlags - ); - -LONG -STDCALL -RegSaveKeyA ( - HKEY hKey, - LPCSTR lpFile, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -LONG -STDCALL -RegSetValueA ( - HKEY hKey, - LPCSTR lpSubKey, - DWORD dwType, - LPCSTR lpData, - DWORD cbData - ); - -LONG -STDCALL -RegSetValueExA ( - HKEY hKey, - LPCSTR lpValueName, - DWORD Reserved, - DWORD dwType, - CONST BYTE* lpData, - DWORD cbData - ); - -LONG -STDCALL -RegUnLoadKeyA ( - HKEY hKey, - LPCSTR lpSubKey - ); - -WINBOOL -STDCALL -InitiateSystemShutdownA( - LPSTR lpMachineName, - LPSTR lpMessage, - DWORD dwTimeout, - WINBOOL bForceAppsClosed, - WINBOOL bRebootAfterShutdown - ); - -WINBOOL -STDCALL -AbortSystemShutdownA( - LPCSTR lpMachineName - ); - -int -STDCALL -CompareStringA( - LCID Locale, - DWORD dwCmpFlags, - LPCSTR lpString1, - int cchCount1, - LPCSTR lpString2, - int cchCount2); - -int -STDCALL -LCMapStringA( - LCID Locale, - DWORD dwMapFlags, - LPCSTR lpSrcStr, - int cchSrc, - LPSTR lpDestStr, - int cchDest); - -int -STDCALL -GetLocaleInfoA( - LCID Locale, - LCTYPE LCType, - LPSTR lpLCData, - int cchData); - -WINBOOL -STDCALL -SetLocaleInfoA( - LCID Locale, - LCTYPE LCType, - LPCSTR lpLCData); - -int -STDCALL -GetTimeFormatA( - LCID Locale, - DWORD dwFlags, - CONST SYSTEMTIME *lpTime, - LPCSTR lpFormat, - LPSTR lpTimeStr, - int cchTime); - -int -STDCALL -GetDateFormatA( - LCID Locale, - DWORD dwFlags, - CONST SYSTEMTIME *lpDate, - LPCSTR lpFormat, - LPSTR lpDateStr, - int cchDate); - -int -STDCALL -GetNumberFormatA( - LCID Locale, - DWORD dwFlags, - LPCSTR lpValue, - CONST NUMBERFMTA *lpFormat, - LPSTR lpNumberStr, - int cchNumber); - -int -STDCALL -GetCurrencyFormatA( - LCID Locale, - DWORD dwFlags, - LPCSTR lpValue, - CONST CURRENCYFMTA *lpFormat, - LPSTR lpCurrencyStr, - int cchCurrency); - -WINBOOL -STDCALL -EnumCalendarInfoA( - CALINFO_ENUMPROCA lpCalInfoEnumProc, - LCID Locale, - CALID Calendar, - CALTYPE CalType); - -WINBOOL -STDCALL -EnumTimeFormatsA( - TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, - LCID Locale, - DWORD dwFlags); - -WINBOOL -STDCALL -EnumDateFormatsA( - DATEFMT_ENUMPROCA lpDateFmtEnumProc, - LCID Locale, - DWORD dwFlags); - -WINBOOL -STDCALL -GetStringTypeExA( - LCID Locale, - DWORD dwInfoType, - LPCSTR lpSrcStr, - int cchSrc, - LPWORD lpCharType); - -WINBOOL -STDCALL -GetStringTypeA( - LCID Locale, - DWORD dwInfoType, - LPCSTR lpSrcStr, - int cchSrc, - LPWORD lpCharType); - - -int -STDCALL -FoldStringA( - DWORD dwMapFlags, - LPCSTR lpSrcStr, - int cchSrc, - LPSTR lpDestStr, - int cchDest); - -WINBOOL -STDCALL -EnumSystemLocalesA( - LOCALE_ENUMPROCA lpLocaleEnumProc, - DWORD dwFlags); - -WINBOOL -STDCALL -EnumSystemCodePagesA( - CODEPAGE_ENUMPROCA lpCodePageEnumProc, - DWORD dwFlags); - -WINBOOL -STDCALL -PeekConsoleInputA( - HANDLE hConsoleInput, - PINPUT_RECORD lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsRead - ); - -WINBOOL -STDCALL -ReadConsoleInputA( - HANDLE hConsoleInput, - PINPUT_RECORD lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsRead - ); - -WINBOOL -STDCALL -WriteConsoleInputA( - HANDLE hConsoleInput, - CONST INPUT_RECORD *lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsWritten - ); - -WINBOOL -STDCALL -ReadConsoleOutputA( - HANDLE hConsoleOutput, - PCHAR_INFO lpBuffer, - COORD dwBufferSize, - COORD dwBufferCoord, - PSMALL_RECT lpReadRegion - ); - -WINBOOL -STDCALL -WriteConsoleOutputA( - HANDLE hConsoleOutput, - CONST CHAR_INFO *lpBuffer, - COORD dwBufferSize, - COORD dwBufferCoord, - PSMALL_RECT lpWriteRegion - ); - -WINBOOL -STDCALL -ReadConsoleOutputCharacterA( - HANDLE hConsoleOutput, - LPSTR lpCharacter, - DWORD nLength, - COORD dwReadCoord, - LPDWORD lpNumberOfCharsRead - ); - -WINBOOL -STDCALL -WriteConsoleOutputCharacterA( - HANDLE hConsoleOutput, - LPCSTR lpCharacter, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfCharsWritten - ); - -WINBOOL -STDCALL -FillConsoleOutputCharacterA( - HANDLE hConsoleOutput, - CHAR cCharacter, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfCharsWritten - ); - -WINBOOL -STDCALL -ScrollConsoleScreenBufferA( - HANDLE hConsoleOutput, - CONST SMALL_RECT *lpScrollRectangle, - CONST SMALL_RECT *lpClipRectangle, - COORD dwDestinationOrigin, - CONST CHAR_INFO *lpFill - ); - -DWORD -STDCALL -GetConsoleTitleA( - LPSTR lpConsoleTitle, - DWORD nSize - ); - -WINBOOL -STDCALL -SetConsoleTitleA( - LPCSTR lpConsoleTitle - ); - -WINBOOL -STDCALL -ReadConsoleA( - HANDLE hConsoleInput, - LPVOID lpBuffer, - DWORD nNumberOfCharsToRead, - LPDWORD lpNumberOfCharsRead, - LPVOID lpReserved - ); - -WINBOOL -STDCALL -WriteConsoleA( - HANDLE hConsoleOutput, - CONST VOID *lpBuffer, - DWORD nNumberOfCharsToWrite, - LPDWORD lpNumberOfCharsWritten, - LPVOID lpReserved - ); - -DWORD STDCALL -WNetAddConnectionA( - LPCSTR lpRemoteName, - LPCSTR lpPassword, - LPCSTR lpLocalName - ); - -DWORD STDCALL -WNetAddConnection2A( - LPNETRESOURCEA lpNetResource, - LPCSTR lpPassword, - LPCSTR lpUserName, - DWORD dwFlags - ); - -DWORD STDCALL -WNetAddConnection3A( - HWND hwndOwner, - LPNETRESOURCEA lpNetResource, - LPCSTR lpPassword, - LPCSTR lpUserName, - DWORD dwFlags - ); - -DWORD STDCALL -WNetCancelConnectionA( - LPCSTR lpName, - WINBOOL fForce - ); - -DWORD STDCALL -WNetCancelConnection2A( - LPCSTR lpName, - DWORD dwFlags, - WINBOOL fForce - ); - -DWORD STDCALL -WNetGetConnectionA( - LPCSTR lpLocalName, - LPSTR lpRemoteName, - LPDWORD lpnLength - ); - -DWORD STDCALL -WNetUseConnectionA( - HWND hwndOwner, - LPNETRESOURCEA lpNetResource, - LPCSTR lpUserID, - LPCSTR lpPassword, - DWORD dwFlags, - LPSTR lpAccessName, - LPDWORD lpBufferSize, - LPDWORD lpResult - ); - -DWORD STDCALL -WNetSetConnectionA( - LPCSTR lpName, - DWORD dwProperties, - LPVOID pvValues - ); - -DWORD STDCALL -WNetConnectionDialog1A( - LPCONNECTDLGSTRUCTA lpConnDlgStruct - ); - -DWORD STDCALL -WNetDisconnectDialog1A( - LPDISCDLGSTRUCTA lpConnDlgStruct - ); - -DWORD STDCALL -WNetOpenEnumA( - DWORD dwScope, - DWORD dwType, - DWORD dwUsage, - LPNETRESOURCEA lpNetResource, - LPHANDLE lphEnum - ); - -DWORD STDCALL -WNetEnumResourceA( - HANDLE hEnum, - LPDWORD lpcCount, - LPVOID lpBuffer, - LPDWORD lpBufferSize - ); - -DWORD STDCALL -WNetGetUniversalNameA( - LPCSTR lpLocalPath, - DWORD dwInfoLevel, - LPVOID lpBuffer, - LPDWORD lpBufferSize - ); - -DWORD STDCALL -WNetGetUserA( - LPCSTR lpName, - LPSTR lpUserName, - LPDWORD lpnLength - ); - -DWORD STDCALL -WNetGetProviderNameA( - DWORD dwNetType, - LPSTR lpProviderName, - LPDWORD lpBufferSize - ); - -DWORD STDCALL -WNetGetNetworkInformationA( - LPCSTR lpProvider, - LPNETINFOSTRUCT lpNetInfoStruct - ); - -DWORD STDCALL -WNetGetLastErrorA( - LPDWORD lpError, - LPSTR lpErrorBuf, - DWORD nErrorBufSize, - LPSTR lpNameBuf, - DWORD nNameBufSize - ); - -DWORD STDCALL -MultinetGetConnectionPerformanceA( - LPNETRESOURCEA lpNetResource, - LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct - ); - -WINBOOL -STDCALL -ChangeServiceConfigA( - SC_HANDLE hService, - DWORD dwServiceType, - DWORD dwStartType, - DWORD dwErrorControl, - LPCSTR lpBinaryPathName, - LPCSTR lpLoadOrderGroup, - LPDWORD lpdwTagId, - LPCSTR lpDependencies, - LPCSTR lpServiceStartName, - LPCSTR lpPassword, - LPCSTR lpDisplayName - ); - -SC_HANDLE -STDCALL -CreateServiceA( - SC_HANDLE hSCManager, - LPCSTR lpServiceName, - LPCSTR lpDisplayName, - DWORD dwDesiredAccess, - DWORD dwServiceType, - DWORD dwStartType, - DWORD dwErrorControl, - LPCSTR lpBinaryPathName, - LPCSTR lpLoadOrderGroup, - LPDWORD lpdwTagId, - LPCSTR lpDependencies, - LPCSTR lpServiceStartName, - LPCSTR lpPassword - ); - -WINBOOL -STDCALL -EnumDependentServicesA( - SC_HANDLE hService, - DWORD dwServiceState, - LPENUM_SERVICE_STATUSA lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned - ); - -WINBOOL -STDCALL -EnumServicesStatusA( - SC_HANDLE hSCManager, - DWORD dwServiceType, - DWORD dwServiceState, - LPENUM_SERVICE_STATUSA lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned, - LPDWORD lpResumeHandle - ); - -WINBOOL -STDCALL -GetServiceKeyNameA( - SC_HANDLE hSCManager, - LPCSTR lpDisplayName, - LPSTR lpServiceName, - LPDWORD lpcchBuffer - ); - -WINBOOL -STDCALL -GetServiceDisplayNameA( - SC_HANDLE hSCManager, - LPCSTR lpServiceName, - LPSTR lpDisplayName, - LPDWORD lpcchBuffer - ); - -SC_HANDLE -STDCALL -OpenSCManagerA( - LPCSTR lpMachineName, - LPCSTR lpDatabaseName, - DWORD dwDesiredAccess - ); - -SC_HANDLE -STDCALL -OpenServiceA( - SC_HANDLE hSCManager, - LPCSTR lpServiceName, - DWORD dwDesiredAccess - ); - -WINBOOL -STDCALL -QueryServiceConfigA( - SC_HANDLE hService, - LPQUERY_SERVICE_CONFIGA lpServiceConfig, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - -WINBOOL -STDCALL -QueryServiceLockStatusA( - SC_HANDLE hSCManager, - LPQUERY_SERVICE_LOCK_STATUSA lpLockStatus, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - -SERVICE_STATUS_HANDLE -STDCALL -RegisterServiceCtrlHandlerA( - LPCSTR lpServiceName, - LPHANDLER_FUNCTION lpHandlerProc - ); - -WINBOOL -STDCALL -StartServiceCtrlDispatcherA( - LPSERVICE_TABLE_ENTRYA lpServiceStartTable - ); - -WINBOOL -STDCALL -StartServiceA( - SC_HANDLE hService, - DWORD dwNumServiceArgs, - LPCSTR *lpServiceArgVectors - ); - -/* Extensions to OpenGL */ - -WINBOOL STDCALL -wglUseFontBitmapsA(HDC, DWORD, DWORD, DWORD); - -WINBOOL STDCALL -wglUseFontOutlinesA(HDC, DWORD, DWORD, DWORD, FLOAT, - FLOAT, int, LPGLYPHMETRICSFLOAT); - -/* ------------------------------------- */ -/* From shellapi.h in old Cygnus headers */ - -unsigned int WINAPI -DragQueryFileA(HDROP, unsigned int, char *, unsigned int); - -HICON WINAPI -ExtractAssociatedIconA (HINSTANCE, char *, WORD *); - -HICON WINAPI -ExtractIconA (HINSTANCE, const char *, unsigned int); - -HINSTANCE WINAPI -FindExecutableA (const char *, const char *, char *); - -int WINAPI -ShellAboutA (HWND, const char *, const char *, HICON); - -HINSTANCE WINAPI -ShellExecuteA (HWND, const char *, const char *, char *, const char *, int); - -/* end of stuff from shellapi.h in old Cygnus headers */ -/* -------------------------------------------------- */ -/* From ddeml.h in old Cygnus headers */ - -HSZ WINAPI -DdeCreateStringHandleA (DWORD, char *, int); - -UINT WINAPI -DdeInitializeA (DWORD *, CALLB, DWORD, DWORD); - -DWORD WINAPI -DdeQueryStringA (DWORD, HSZ, char *, DWORD, int); - -/* end of stuff from ddeml.h in old Cygnus headers */ -/* ----------------------------------------------- */ - -DWORD WINAPI -SHGetFileInfoA (LPCSTR, DWORD, SHFILEINFO FAR *, UINT, UINT); - -WINBOOL WINAPI -SHGetPathFromIDListA (LPCITEMIDLIST, LPSTR); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* _GNU_H_WINDOWS32_ASCIIFUNCTIONS */ diff --git a/reactos/include/coff.h b/reactos/include/coff.h deleted file mode 100644 index 4ec6a8f3de6..00000000000 --- a/reactos/include/coff.h +++ /dev/null @@ -1,331 +0,0 @@ -/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ -#ifndef __dj_include_coff_h_ -#define __dj_include_coff_h_ - -#ifdef __cplusplus -extern "C" { -#endif - -/*** coff information for Intel 386/486. */ - -/********************** FILE HEADER **********************/ - -struct external_filehdr { - unsigned short f_magic; /* magic number */ - unsigned short f_nscns; /* number of sections */ - unsigned long f_timdat; /* time & date stamp */ - unsigned long f_symptr; /* file pointer to symtab */ - unsigned long f_nsyms; /* number of symtab entries */ - unsigned short f_opthdr; /* sizeof(optional hdr) */ - unsigned short f_flags; /* flags */ -}; - - -/* Bits for f_flags: - * F_RELFLG relocation info stripped from file - * F_EXEC file is executable (no unresolved external references) - * F_LNNO line numbers stripped from file - * F_LSYMS local symbols stripped from file - * F_AR32WR file has byte ordering of an AR32WR machine (e.g. vax) - */ - -#define F_RELFLG (0x0001) -#define F_EXEC (0x0002) -#define F_LNNO (0x0004) -#define F_LSYMS (0x0008) - - - -#define I386MAGIC 0x14c -#define I386AIXMAGIC 0x175 -#define I386BADMAG(x) (((x).f_magic!=I386MAGIC) && (x).f_magic!=I386AIXMAGIC) - - -#define FILHDR struct external_filehdr -#define FILHSZ sizeof(FILHDR) - - -/********************** AOUT "OPTIONAL HEADER" **********************/ - - -typedef struct -{ - unsigned short magic; /* type of file */ - unsigned short vstamp; /* version stamp */ - unsigned long tsize; /* text size in bytes, padded to FW bdry*/ - unsigned long dsize; /* initialized data " " */ - unsigned long bsize; /* uninitialized data " " */ - unsigned long entry; /* entry pt. */ - unsigned long text_start; /* base of text used for this file */ - unsigned long data_start; /* base of data used for this file */ -} -AOUTHDR; - - -typedef struct gnu_aout { - unsigned long info; - unsigned long tsize; - unsigned long dsize; - unsigned long bsize; - unsigned long symsize; - unsigned long entry; - unsigned long txrel; - unsigned long dtrel; - } GNU_AOUT; - -#define AOUTSZ (sizeof(AOUTHDR)) - -#define OMAGIC 0404 /* object files, eg as output */ -#define ZMAGIC 0413 /* demand load format, eg normal ld output */ -#define STMAGIC 0401 /* target shlib */ -#define SHMAGIC 0443 /* host shlib */ - - -/********************** SECTION HEADER **********************/ - - -struct external_scnhdr { - char s_name[8]; /* section name */ - unsigned long s_paddr; /* physical address, aliased s_nlib */ - unsigned long s_vaddr; /* virtual address */ - unsigned long s_size; /* section size */ - unsigned long s_scnptr; /* file ptr to raw data for section */ - unsigned long s_relptr; /* file ptr to relocation */ - unsigned long s_lnnoptr; /* file ptr to line numbers */ - unsigned short s_nreloc; /* number of relocation entries */ - unsigned short s_nlnno; /* number of line number entries*/ - unsigned long s_flags; /* flags */ -}; - -#define SCNHDR struct external_scnhdr -#define SCNHSZ sizeof(SCNHDR) - -/* - * names of "special" sections - */ -#define _TEXT ".text" -#define _DATA ".data" -#define _BSS ".bss" -#define _COMMENT ".comment" -#define _LIB ".lib" - -/* - * s_flags "type" - */ -#define STYP_TEXT (0x0020) /* section contains text only */ -#define STYP_DATA (0x0040) /* section contains data only */ -#define STYP_BSS (0x0080) /* section contains bss only */ - -#include - -/********************** LINE NUMBERS **********************/ - -/* 1 line number entry for every "breakpointable" source line in a section. - * Line numbers are grouped on a per function basis; first entry in a function - * grouping will have l_lnno = 0 and in place of physical address will be the - * symbol table index of the function name. - */ -struct external_lineno { - union { - unsigned long l_symndx; /* function name symbol index, iff l_lnno == 0 */ - unsigned long l_paddr; /* (physical) address of line number */ - } l_addr; - unsigned short l_lnno; /* line number */ -}; - - -#define LINENO struct external_lineno -#define LINESZ sizeof(LINENO) - - -/********************** SYMBOLS **********************/ - -#define E_SYMNMLEN 8 /* # characters in a symbol name */ -#define E_FILNMLEN 14 /* # characters in a file name */ -#define E_DIMNUM 4 /* # array dimensions in auxiliary entry */ - -struct external_syment -{ - union { - char e_name[E_SYMNMLEN]; - struct { - unsigned long e_zeroes; - unsigned long e_offset; - } e; - } e; - unsigned long e_value; - short e_scnum; - unsigned short e_type; - unsigned char e_sclass; - unsigned char e_numaux; -}; - -#define N_BTMASK (0xf) -#define N_TMASK (0x30) -#define N_BTSHFT (4) -#define N_TSHIFT (2) - -union external_auxent { - struct { - unsigned long x_tagndx; /* str, un, or enum tag indx */ - union { - struct { - unsigned short x_lnno; /* declaration line number */ - unsigned short x_size; /* str/union/array size */ - } x_lnsz; - unsigned long x_fsize; /* size of function */ - } x_misc; - union { - struct { /* if ISFCN, tag, or .bb */ - unsigned long x_lnnoptr; /* ptr to fcn line # */ - unsigned long x_endndx; /* entry ndx past block end */ - } x_fcn; - struct { /* if ISARY, up to 4 dimen. */ - unsigned short x_dimen[E_DIMNUM]; - } x_ary; - } x_fcnary; - unsigned short x_tvndx; /* tv index */ - } x_sym; - - union { - char x_fname[E_FILNMLEN]; - struct { - unsigned long x_zeroes; - unsigned long x_offset; - } x_n; - } x_file; - - struct { - unsigned long x_scnlen; /* section length */ - unsigned short x_nreloc; /* # relocation entries */ - unsigned short x_nlinno; /* # line numbers */ - } x_scn; - - struct { - unsigned long x_tvfill; /* tv fill value */ - unsigned short x_tvlen; /* length of .tv */ - unsigned short x_tvran[2]; /* tv range */ - } x_tv; /* info about .tv section (in auxent of symbol .tv)) */ - - -}; - -#define SYMENT struct external_syment -#define SYMESZ sizeof(SYMENT) -#define AUXENT union external_auxent -#define AUXESZ sizeof(AUXENT) - - -# define _ETEXT "etext" - - -/* Relocatable symbols have number of the section in which they are defined, - or one of the following: */ - -#define N_UNDEF ((short)0) /* undefined symbol */ -#define N_ABS ((short)-1) /* value of symbol is absolute */ -#define N_DEBUG ((short)-2) /* debugging symbol -- value is meaningless */ -#define N_TV ((short)-3) /* indicates symbol needs preload transfer vector */ -#define P_TV ((short)-4) /* indicates symbol needs postload transfer vector*/ - -/* - * Type of a symbol, in low N bits of the word - */ -#define T_NULL 0 -#define T_VOID 1 /* function argument (only used by compiler) */ -#define T_CHAR 2 /* character */ -#define T_SHORT 3 /* short integer */ -#define T_INT 4 /* integer */ -#define T_LONG 5 /* long integer */ -#define T_FLOAT 6 /* floating point */ -#define T_DOUBLE 7 /* double word */ -#define T_STRUCT 8 /* structure */ -#define T_UNION 9 /* union */ -#define T_ENUM 10 /* enumeration */ -#define T_MOE 11 /* member of enumeration*/ -#define T_UCHAR 12 /* unsigned character */ -#define T_USHORT 13 /* unsigned short */ -#define T_UINT 14 /* unsigned integer */ -#define T_ULONG 15 /* unsigned long */ -#define T_LNGDBL 16 /* long double */ - -/* - * derived types, in n_type -*/ -#define DT_NON (0) /* no derived type */ -#define DT_PTR (1) /* pointer */ -#define DT_FCN (2) /* function */ -#define DT_ARY (3) /* array */ - -#define BTYPE(x) ((x) & N_BTMASK) - -#define ISPTR(x) (((x) & N_TMASK) == (DT_PTR << N_BTSHFT)) -#define ISFCN(x) (((x) & N_TMASK) == (DT_FCN << N_BTSHFT)) -#define ISARY(x) (((x) & N_TMASK) == (DT_ARY << N_BTSHFT)) -#define ISTAG(x) ((x)==C_STRTAG||(x)==C_UNTAG||(x)==C_ENTAG) -#define DECREF(x) ((((x)>>N_TSHIFT)&~N_BTMASK)|((x)&N_BTMASK)) - -/********************** STORAGE CLASSES **********************/ - -/* This used to be defined as -1, but now n_sclass is unsigned. */ -#define C_EFCN 0xff /* physical end of function */ -#define C_NULL 0 -#define C_AUTO 1 /* automatic variable */ -#define C_EXT 2 /* external symbol */ -#define C_STAT 3 /* static */ -#define C_REG 4 /* register variable */ -#define C_EXTDEF 5 /* external definition */ -#define C_LABEL 6 /* label */ -#define C_ULABEL 7 /* undefined label */ -#define C_MOS 8 /* member of structure */ -#define C_ARG 9 /* function argument */ -#define C_STRTAG 10 /* structure tag */ -#define C_MOU 11 /* member of union */ -#define C_UNTAG 12 /* union tag */ -#define C_TPDEF 13 /* type definition */ -#define C_USTATIC 14 /* undefined static */ -#define C_ENTAG 15 /* enumeration tag */ -#define C_MOE 16 /* member of enumeration */ -#define C_REGPARM 17 /* register parameter */ -#define C_FIELD 18 /* bit field */ -#define C_AUTOARG 19 /* auto argument */ -#define C_LASTENT 20 /* dummy entry (end of block) */ -#define C_BLOCK 100 /* ".bb" or ".eb" */ -#define C_FCN 101 /* ".bf" or ".ef" */ -#define C_EOS 102 /* end of structure */ -#define C_FILE 103 /* file name */ -#define C_LINE 104 /* line # reformatted as symbol table entry */ -#define C_ALIAS 105 /* duplicate tag */ -#define C_HIDDEN 106 /* ext symbol in dmert public lib */ - -/********************** RELOCATION DIRECTIVES **********************/ - - - -struct external_reloc { - unsigned long r_vaddr; - unsigned long r_symndx; - unsigned short r_type; -}; - -#include - - -#define RELOC struct external_reloc -#define RELSZ sizeof(RELOC) - -#define RELOC_REL32 20 /* 32-bit PC-relative address */ -#define RELOC_ADDR32 6 /* 32-bit absolute address */ - -#define DEFAULT_DATA_SECTION_ALIGNMENT 4 -#define DEFAULT_BSS_SECTION_ALIGNMENT 4 -#define DEFAULT_TEXT_SECTION_ALIGNMENT 4 -/* For new sections we havn't heard of before */ -#define DEFAULT_SECTION_ALIGNMENT 4 - - -#ifdef __cplusplus -} -#endif - -#endif /* !__dj_include_coff_h_ */ diff --git a/reactos/include/funcs.h b/reactos/include/funcs.h index 2a2fc546aa6..80137f32201 100644 --- a/reactos/include/funcs.h +++ b/reactos/include/funcs.h @@ -57,9 +57,9 @@ typedef PPROGRESS_ROUTINE LPPROGRESS_ROUTINE; #include #endif /* !UNICODE_ONLY */ -#ifndef ANSI_ONLY -#include -#endif /* !ANSI_ONLY */ +//#ifndef ANSI_ONLY +//#include +//#endif /* !ANSI_ONLY */ /* Define the approprate declaration based upon UNICODE or ASCII */ diff --git a/reactos/include/wine/cpl.h b/reactos/include/wine/cpl.h deleted file mode 100644 index 845bc41f02a..00000000000 --- a/reactos/include/wine/cpl.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef __WINE_CPL_H -#define __WINE_CPL_H - -#include_next - -#define CPL_STARTWPARMSA 9 - -#endif /* __WINE_CPL_H */ diff --git a/reactos/include/wine/heap.h b/reactos/include/wine/heap.h deleted file mode 100644 index e3bf4fb9bb6..00000000000 --- a/reactos/include/wine/heap.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Win32 heap definitions - * - * Copyright 1996 Alexandre Julliard - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __WINE_HEAP_H -#define __WINE_HEAP_H - -#include -#include - -#include -#include -#include - -/* strdup macros */ -/* DO NOT USE IT!! it will go away soon */ - -inline static LPSTR HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str ) -{ - LPSTR ret; - INT len; - - if (!str) return NULL; - len = WideCharToMultiByte( CP_ACP, 0, str, -1, NULL, 0, NULL, NULL ); - ret = HeapAlloc( heap, flags, len ); - if(ret) WideCharToMultiByte( CP_ACP, 0, str, -1, ret, len, NULL, NULL ); - return ret; -} - -#endif /* __WINE_HEAP_H */ diff --git a/reactos/include/wine/ver.h b/reactos/include/wine/ver.h deleted file mode 100644 index 277f95deebf..00000000000 --- a/reactos/include/wine/ver.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Definitions for the VERsion infolibrary (VER.DLL) - * - * Copyright 1996 Marcus Meissner - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Marked as obsolete: Albert den Haan (Corel Corp) 1999-04-28 - * VER.H obsolete, include winver.h instead - */ -#ifndef __WINE_VER_H -#define __WINE_VER_H - -#include - -#endif /* __WINE_VER_H */ diff --git a/reactos/lib/samlib/dllmain.c b/reactos/lib/samlib/dllmain.c index de1b31f30f7..22b194a784c 100644 --- a/reactos/lib/samlib/dllmain.c +++ b/reactos/lib/samlib/dllmain.c @@ -27,8 +27,11 @@ /* INCLUDES *****************************************************************/ -#include #include +#include + +#include +#include #include "debug.h" diff --git a/reactos/regtests/regtests/Makefile b/reactos/regtests/regtests/Makefile index 8ea5ef9ee68..49f51ccf958 100755 --- a/reactos/regtests/regtests/Makefile +++ b/reactos/regtests/regtests/Makefile @@ -6,7 +6,7 @@ TARGET_TYPE = dynlink TARGET_NAME = regtests -TARGET_CFLAGS = -Wall -Werror +TARGET_CFLAGS = -D__USE_W32API -Wall -Werror TARGET_OBJECTS = \ regtests.o diff --git a/reactos/services/rpcss/makefile b/reactos/services/rpcss/makefile index ec3b8778d09..93147ebe1e1 100644 --- a/reactos/services/rpcss/makefile +++ b/reactos/services/rpcss/makefile @@ -14,7 +14,7 @@ TARGET_SDKLIBS = kernel32.a advapi32.a TARGET_OBJECTS = $(TARGET_NAME).o endpoint.o -TARGET_CFLAGS = -Wall -Werror +TARGET_CFLAGS = -D__USE_W32API -Wall -Werror include $(PATH_TO_TOP)/rules.mak diff --git a/reactos/subsys/system/format/makefile b/reactos/subsys/system/format/makefile index fdca1aad718..29c17d266d8 100755 --- a/reactos/subsys/system/format/makefile +++ b/reactos/subsys/system/format/makefile @@ -14,7 +14,7 @@ TARGET_NAME = format TARGET_INSTALLDIR = system32 -TARGET_CFLAGS = -Werror -Wall -Wno-format +TARGET_CFLAGS = -D__USE_W32API -Werror -Wall -Wno-format TARGET_OBJECTS = \ $(TARGET_NAME).o diff --git a/reactos/subsys/system/services/makefile b/reactos/subsys/system/services/makefile index 006eec4d7bb..37442872d85 100644 --- a/reactos/subsys/system/services/makefile +++ b/reactos/subsys/system/services/makefile @@ -14,7 +14,7 @@ TARGET_SDKLIBS = ntdll.a kernel32.a user32.a TARGET_OBJECTS = $(TARGET_NAME).o database.o -TARGET_CFLAGS = -Wall -Werror +TARGET_CFLAGS = -D__USE_W32API -Wall -Werror include $(PATH_TO_TOP)/rules.mak diff --git a/reactos/subsys/system/services/services.c b/reactos/subsys/system/services/services.c index 4db7c444ecb..1a70ef11f3f 100644 --- a/reactos/subsys/system/services/services.c +++ b/reactos/subsys/system/services/services.c @@ -40,7 +40,7 @@ #define NDEBUG #include - +int WINAPI RegisterServicesProcess(DWORD ServicesProcessId); /* GLOBALS ******************************************************************/ diff --git a/reactos/include/wine/fci.h b/reactos/w32api/include/fci.h similarity index 100% rename from reactos/include/wine/fci.h rename to reactos/w32api/include/fci.h diff --git a/reactos/include/wine/fdi.h b/reactos/w32api/include/fdi.h similarity index 100% rename from reactos/include/wine/fdi.h rename to reactos/w32api/include/fdi.h diff --git a/reactos/include/icmpapi.h b/reactos/w32api/include/icmpapi.h similarity index 100% rename from reactos/include/icmpapi.h rename to reactos/w32api/include/icmpapi.h