From 5e62bd0b0c2d884b81883362981d6668d607821e Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 13 Jun 2005 10:04:20 +0000 Subject: [PATCH] Declare some missing functions. --- include/aclapi.h | 4 ++++ include/ntsecapi.h | 2 ++ include/winbase.h | 7 +++++++ include/winsvc.h | 1 + include/winuser.h | 7 +++++++ 5 files changed, 21 insertions(+) diff --git a/include/aclapi.h b/include/aclapi.h index 02e97b57c7f..8a884784d07 100644 --- a/include/aclapi.h +++ b/include/aclapi.h @@ -88,6 +88,10 @@ VOID WINAPI BuildTrusteeWithSidA(PTRUSTEEA pTrustee, PSID pSid); VOID WINAPI BuildTrusteeWithSidW(PTRUSTEEW pTrustee, PSID pSid); #define BuildTrusteeWithSid WINELIB_NAME_AW(BuildTrusteeWithSid) +DWORD WINAPI GetEffectiveRightsFromAclA(PACL,PTRUSTEE_A,PACCESS_MASK); +DWORD WINAPI GetEffectiveRightsFromAclW(PACL,PTRUSTEE_W,PACCESS_MASK); +#define GetEffectiveRightsFromAcl WINELIB_NAME_AW(GetEffectiveRightsFromAcl) + #ifdef __cplusplus } #endif diff --git a/include/ntsecapi.h b/include/ntsecapi.h index 9a2079767b1..9a342971e27 100644 --- a/include/ntsecapi.h +++ b/include/ntsecapi.h @@ -205,7 +205,9 @@ NTSTATUS WINAPI LsaLookupSids(LSA_HANDLE,ULONG,PSID *,PLSA_REFERENCED_DOMAIN_LIS ULONG WINAPI LsaNtStatusToWinError(NTSTATUS); NTSTATUS WINAPI LsaOpenPolicy(PLSA_UNICODE_STRING,PLSA_OBJECT_ATTRIBUTES,ACCESS_MASK,PLSA_HANDLE); NTSTATUS WINAPI LsaQueryInformationPolicy(LSA_HANDLE,POLICY_INFORMATION_CLASS,PVOID*); +NTSTATUS WINAPI LsaRetrievePrivateData(LSA_HANDLE,PLSA_UNICODE_STRING,PLSA_UNICODE_STRING*); NTSTATUS WINAPI LsaSetInformationPolicy(LSA_HANDLE,POLICY_INFORMATION_CLASS,PVOID); +NTSTATUS WINAPI LsaStorePrivateData(LSA_HANDLE,PLSA_UNICODE_STRING,PLSA_UNICODE_STRING); #ifdef __cplusplus } /* extern "C" */ diff --git a/include/winbase.h b/include/winbase.h index 3e188e73f22..49ee53291e2 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1185,6 +1185,9 @@ typedef struct _WIN32_STREAM_ID { BOOL WINAPI ActivateActCtx(HANDLE,ULONG_PTR *); BOOL WINAPI AddAccessAllowedAce(PACL,DWORD,DWORD,PSID); BOOL WINAPI AddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID); +BOOL WINAPI AddAccessDeniedAce(PACL,DWORD,DWORD,PSID); +BOOL WINAPI AddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID); +BOOL WINAPI AddAce(PACL,DWORD,DWORD,LPVOID,DWORD); BOOL WINAPI AddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL); VOID WINAPI AddRefActCtx(HANDLE); PVOID WINAPI AddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER); @@ -1363,6 +1366,7 @@ BOOL WINAPI FindActCtxSectionGuid(DWORD,const GUID *,ULONG,const GUID *,P HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD); HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD); #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification) +BOOL WINAPI FindFirstFreeAce(PACL,LPVOID*); BOOL WINAPI FindNextChangeNotification(HANDLE); BOOL WINAPI FindCloseChangeNotification(HANDLE); HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD); @@ -1392,6 +1396,8 @@ BOOL WINAPI FreeEnvironmentStringsW(LPWSTR); #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings) VOID WINAPI FreeLibraryAndExitThread(HINSTANCE,DWORD); PVOID WINAPI FreeSid(PSID); +BOOL WINAPI GetAce(PACL,DWORD,LPVOID*); +BOOL WINAPI GetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS); BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType ); BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType ); #define GetBinaryType WINELIB_NAME_AW(GetBinaryType) @@ -1529,6 +1535,7 @@ BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE); BOOL WINAPI IsSystemResumeAutomatic(void); BOOL WINAPI IsTextUnicode(LPCVOID,INT,LPINT); BOOL WINAPI IsTokenRestricted(HANDLE); +BOOL WINAPI IsValidAcl(PACL); BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR); BOOL WINAPI IsValidSid(PSID); BOOL WINAPI ImpersonateLoggedOnUser(HANDLE); diff --git a/include/winsvc.h b/include/winsvc.h index 0b43aafa9e8..4540e03daec 100644 --- a/include/winsvc.h +++ b/include/winsvc.h @@ -308,6 +308,7 @@ BOOL WINAPI QueryServiceConfigW(SC_HANDLE,LPQUERY_SERVICE_CONFIGW,DWORD,L BOOL WINAPI QueryServiceLockStatusA(SC_HANDLE,LPQUERY_SERVICE_LOCK_STATUSA,DWORD,LPDWORD); BOOL WINAPI QueryServiceLockStatusW(SC_HANDLE,LPQUERY_SERVICE_LOCK_STATUSW,DWORD,LPDWORD); #define QueryServiceLockStatus WINELIB_NAME_AW(QueryServiceLockStatus) +BOOL WINAPI QueryServiceObjectSecurity(SC_HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerA(LPCSTR,LPHANDLER_FUNCTION); SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerW(LPCWSTR,LPHANDLER_FUNCTION); #define RegisterServiceCtrlHandler WINELIB_NAME_AW(RegisterServiceCtrlHandler) diff --git a/include/winuser.h b/include/winuser.h index d154f278e1e..27e400c0203 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -4009,6 +4009,7 @@ BOOL WINAPI SetKeyboardState(LPBYTE); BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL); BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD); +BOOL WINAPI AllowSetForegroundWindow(DWORD); BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD); #define AnsiLowerA CharLowerA #define AnsiLowerW CharLowerW @@ -4226,6 +4227,7 @@ BOOL WINAPI EndDialog(HWND,INT_PTR); BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*); BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM); UINT WINAPI EnumClipboardFormats(UINT); +BOOL WINAPI EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM); INT WINAPI EnumPropsA(HWND,PROPENUMPROCA); INT WINAPI EnumPropsW(HWND,PROPENUMPROCW); #define EnumProps WINELIB_NAME_AW(EnumProps) @@ -4280,6 +4282,7 @@ INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT); INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT); #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName) HWND WINAPI GetClipboardOwner(void); +DWORD WINAPI GetClipboardSequenceNumber(VOID); HWND WINAPI GetClipboardViewer(void); BOOL WINAPI GetClipCursor(LPRECT); HCURSOR WINAPI GetCursor(void); @@ -4354,6 +4357,7 @@ INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL); BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD); BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD); #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation) +BOOL WINAPI GetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); HWND WINAPI GetWindow(HWND,UINT); HDC WINAPI GetWindowDC(HWND); BOOL WINAPI GetWindowInfo(HWND, PWINDOWINFO); @@ -4420,6 +4424,7 @@ BOOL WINAPI IsDialogMessageA(HWND,LPMSG); BOOL WINAPI IsDialogMessageW(HWND,LPMSG); #define IsDialogMessage WINELIB_NAME_AW(IsDialogMessage) UINT WINAPI IsDlgButtonChecked(HWND,UINT); +BOOL WINAPI IsHungAppWindow(HWND); BOOL WINAPI IsIconic(HWND); BOOL WINAPI IsMenu(HMENU); BOOL WINAPI IsRectEmpty(const RECT*); @@ -4456,6 +4461,7 @@ HMENU WINAPI LoadMenuIndirectW(LPCVOID); INT WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,INT); INT WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,INT); #define LoadString WINELIB_NAME_AW(LoadString) +BOOL WINAPI LockSetForegroundWindow(UINT); BOOL WINAPI LockWindowUpdate(HWND); INT WINAPI LookupIconIdFromDirectory(LPBYTE,BOOL); INT WINAPI LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT); @@ -4637,6 +4643,7 @@ BOOL WINAPI ShowWindow(HWND,INT); BOOL WINAPI ShowWindowAsync(HWND,INT); BOOL WINAPI SubtractRect(LPRECT,const RECT*,const RECT*); BOOL WINAPI SwapMouseButton(BOOL); +BOOL WINAPI SwitchDesktop(HDESK); VOID WINAPI SwitchToThisWindow(HWND,BOOL); BOOL WINAPI SystemParametersInfoA(UINT,UINT,LPVOID,UINT); BOOL WINAPI SystemParametersInfoW(UINT,UINT,LPVOID,UINT);