diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-10-04 16:28:08 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-10-04 16:28:08 +0400 |
commit | ef35acca2251f985db91fc1c12274aae4e33da64 (patch) | |
tree | efb54ec8523e00fe7374523dd9700b1301dd2893 | |
parent | 960624f47e40363b507e45425a6e4f92d7e013bd (diff) |
* include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
_WIN32_WINNT >= 0x0500.
(DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN,
WRITE_RESTRICTED): Define.
(IsTokenRestricted): Declare for >= Win 2000.
-rw-r--r-- | winsup/w32api/ChangeLog | 8 | ||||
-rw-r--r-- | winsup/w32api/include/winbase.h | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index de57b1166..329e4b54c 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,11 @@ +2009-10-04 Corinna Vinschen <corinna@vinschen.de> + + * include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000. + _WIN32_WINNT >= 0x0500. + (DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN, + WRITE_RESTRICTED): Define. + (IsTokenRestricted): Declare for >= Win 2000. + 2009-08-30 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> * include/wtsapi32.h (WTSQuerySessionInformationA, diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h index 19e41d9a4..3e3eee19e 100644 --- a/winsup/w32api/include/winbase.h +++ b/winsup/w32api/include/winbase.h @@ -1260,6 +1260,13 @@ WINBASEAPI BOOL WINAPI CreateProcessWithLogonW (LPCWSTR,LPCWSTR,LPCWSTR,DWORD, #define LOGON_NETCREDENTIALS_ONLY 0x00000002 #endif WINBASEAPI HANDLE WINAPI CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); +#if (_WIN32_WINNT >= 0x0500) +WINBASEAPI BOOL WINAPI CreateRestrictedToken(HANDLE,DWORD,DWORD,PSID_AND_ATTRIBUTES,DWORD,PLUID_AND_ATTRIBUTES,DWORD,PSID_AND_ATTRIBUTES,PHANDLE); +#define DISABLE_MAX_PRIVILEGE 1 +#define SANDBOX_INERT 2 +#define LUA_TOKEN 4 +#define WRITE_RESTRICTED 8 +#endif WINBASEAPI HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR); WINBASEAPI HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR); WINBASEAPI DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD); @@ -1714,6 +1721,9 @@ WINBASEAPI BOOL IsProcessInJob(HANDLE,HANDLE,PBOOL); WINBASEAPI BOOL WINAPI IsProcessorFeaturePresent(DWORD); WINBASEAPI BOOL WINAPI IsSystemResumeAutomatic(void); WINBASEAPI BOOL WINAPI IsTextUnicode(PCVOID,int,LPINT); +#if (_WIN32_WINNT >= 0x0500) +WINBASEAPI BOOL WINAPI IsTokenRestricted(HANDLE); +#endif WINBASEAPI BOOL WINAPI IsValidAcl(PACL); WINBASEAPI BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR); WINBASEAPI BOOL WINAPI IsValidSid(PSID); |