From 28c098e3f469965f3d391494b0a2fb3ea1c2cac0 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Fri, 31 Jan 2003 08:28:44 +0000 Subject: [PATCH] 2003-01-31 Danny Smith * include/winbase.h (CreateFiber): Change first parameter to SIZE_T. (CreateJobObject[AW], CreateHardLink[AW]): Guard with (_WIN32_WINNT >= 0x0500). 2003-01-31 Bang Jun-Young * include/winbase.h (PWIN32_FIND_DATAA, PWIN32_FIND_DATAW): Add missing typedefs. (CreateFiberEx, CreateJobObjectA,CreateJobObjectW): Add missing prototypes. (CreateHardLinkA, CreateHardLinkW): Return BOOL, not HANDLE. --- winsup/w32api/ChangeLog | 15 +++++++++++++++ winsup/w32api/include/winbase.h | 23 ++++++++++++++++++----- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index dfdf167d7..6eddabb7c 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,18 @@ +2003-01-31 Danny Smith + + * include/winbase.h (CreateFiber): Change first parameter + to SIZE_T. + (CreateJobObject[AW], CreateHardLink[AW]):Guard with + if (_WIN32_WINNT >= 0x0500). + +2003-01-31 Bang Jun-Young + + * include/winbase.h (PWIN32_FIND_DATAA, PWIN32_FIND_DATAW): + Add missing typedefs. + (CreateFiberEx, CreateJobObjectA,CreateJobObjectW): Add missing + prototypes. + (CreateHardLinkA, CreateHardLinkW): Return BOOL, not HANDLE. + 2003-01-27 Krzysztof Nikiel * include/mmsystem.h (MIXERCONTROL_CONTROLF_MULTIPLE): Correct diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h index e53741999..c32909feb 100644 --- a/winsup/w32api/include/winbase.h +++ b/winsup/w32api/include/winbase.h @@ -766,7 +766,7 @@ typedef struct _WIN32_FIND_DATAA { DWORD dwReserved1; CHAR cFileName[MAX_PATH]; CHAR cAlternateFileName[14]; -} WIN32_FIND_DATAA,*LPWIN32_FIND_DATAA; +} WIN32_FIND_DATAA,*PWIN32_FIND_DATAA,*LPWIN32_FIND_DATAA; typedef struct _WIN32_FIND_DATAW { DWORD dwFileAttributes; FILETIME ftCreationTime; @@ -778,7 +778,7 @@ typedef struct _WIN32_FIND_DATAW { DWORD dwReserved1; WCHAR cFileName[MAX_PATH]; WCHAR cAlternateFileName[14]; -} WIN32_FIND_DATAW,*LPWIN32_FIND_DATAW; +} WIN32_FIND_DATAW,*PWIN32_FIND_DATAW,*LPWIN32_FIND_DATAW; typedef struct _WIN32_STREAM_ID { DWORD dwStreamId; DWORD dwStreamAttributes; @@ -1011,14 +1011,21 @@ BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR); HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR); -LPVOID WINAPI CreateFiber(DWORD,LPFIBER_START_ROUTINE,LPVOID); +LPVOID WINAPI CreateFiber(SIZE_T,LPFIBER_START_ROUTINE,LPVOID); +LPVOID WINAPI CreateFiberEx(SIZE_T,SIZE_T,DWORD,LPFIBER_START_ROUTINE,LPVOID); HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE); HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE); HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR); HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR); -HANDLE WINAPI CreateHardLinkA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); -HANDLE WINAPI CreateHardLinkW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); +#if (_WIN32_WINNT >= 0x0500) +BOOL WINAPI CreateHardLinkA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); +BOOL WINAPI CreateHardLinkW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); +#endif HANDLE WINAPI CreateIoCompletionPort(HANDLE,HANDLE,DWORD,DWORD); +#if (_WIN32_WINNT >= 0x0500) +HANDLE WINAPI CreateJobObjectA(LPSECURITY_ATTRIBUTES,LPCSTR); +HANDLE WINAPI CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR); +#endif HANDLE WINAPI CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); HANDLE WINAPI CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); @@ -1623,7 +1630,10 @@ typedef HW_PROFILE_INFOW HW_PROFILE_INFO,*LPHW_PROFILE_INFO; #define CreateEvent CreateEventW #define CreateFile CreateFileW #define CreateFileMapping CreateFileMappingW +#if (_WIN32_WINNT >= 0x0500) #define CreateHardLink CreateHardLinkW +#define CreateJobObject CreateJobObjectW +#endif #define CreateMailslot CreateMailslotW #define CreateMutex CreateMutexW #define CreateNamedPipe CreateNamedPipeW @@ -1761,7 +1771,10 @@ typedef HW_PROFILE_INFOA HW_PROFILE_INFO,*LPHW_PROFILE_INFO; #define CreateEvent CreateEventA #define CreateFile CreateFileA #define CreateFileMapping CreateFileMappingA +#if (_WIN32_WINNT >= 0x0500) #define CreateHardLink CreateHardLinkA +#define CreateJobObject CreateJobObjectA +#endif #define CreateMailslot CreateMailslotA #define CreateMutex CreateMutexA #define CreateNamedPipe CreateNamedPipeA