1999-01-28 13:46:25 +00:00
|
|
|
/*
|
2002-03-09 23:29:33 +00:00
|
|
|
* Copyright 1999, 2000 Juergen Schmied <juergen.schmied@debitel.net>
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
1999-02-19 16:29:05 +00:00
|
|
|
* FIXME: for all functions thunking down to Rtl* functions: implement SetLastError()
|
1999-01-28 13:46:25 +00:00
|
|
|
*/
|
2002-03-09 23:29:33 +00:00
|
|
|
|
1999-02-19 15:42:11 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
1999-03-14 16:35:05 +00:00
|
|
|
#include "windef.h"
|
1997-11-30 17:45:40 +00:00
|
|
|
#include "winerror.h"
|
2002-09-06 19:36:37 +00:00
|
|
|
#include "rpcnterr.h"
|
1999-01-03 12:48:29 +00:00
|
|
|
#include "heap.h"
|
2002-09-12 22:07:02 +00:00
|
|
|
#include "winternl.h"
|
1999-07-04 11:01:21 +00:00
|
|
|
#include "ntsecapi.h"
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
1997-02-15 14:29:56 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
|
1999-04-19 14:56:29 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
#define CallWin32ToNt(func) \
|
|
|
|
{ NTSTATUS ret; \
|
|
|
|
ret = (func); \
|
|
|
|
if (ret !=STATUS_SUCCESS) \
|
|
|
|
{ SetLastError (RtlNtStatusToDosError(ret)); return FALSE; } \
|
|
|
|
return TRUE; \
|
|
|
|
}
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
static void dumpLsaAttributes( PLSA_OBJECT_ATTRIBUTES oa )
|
|
|
|
{
|
|
|
|
if (oa)
|
|
|
|
{
|
|
|
|
TRACE("\n\tlength=%lu, rootdir=0x%08x, objectname=%s\n\tattr=0x%08lx, sid=%p qos=%p\n",
|
|
|
|
oa->Length, oa->RootDirectory,
|
|
|
|
oa->ObjectName?debugstr_w(oa->ObjectName->Buffer):"null",
|
|
|
|
oa->Attributes, oa->SecurityDescriptor, oa->SecurityQualityOfService);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/* ##############################
|
|
|
|
###### TOKEN FUNCTIONS ######
|
|
|
|
##############################
|
|
|
|
*/
|
1999-01-28 13:46:25 +00:00
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* OpenProcessToken [ADVAPI32.@]
|
1999-01-03 12:48:29 +00:00
|
|
|
* Opens the access token associated with a process
|
|
|
|
*
|
|
|
|
* PARAMS
|
1999-01-28 13:46:25 +00:00
|
|
|
* ProcessHandle [I] Handle to process
|
|
|
|
* DesiredAccess [I] Desired access to process
|
|
|
|
* TokenHandle [O] Pointer to handle of open access token
|
1999-01-03 12:48:29 +00:00
|
|
|
*
|
|
|
|
* RETURNS STD
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
2002-05-31 23:06:46 +00:00
|
|
|
OpenProcessToken( HANDLE ProcessHandle, DWORD DesiredAccess,
|
1999-02-26 11:11:13 +00:00
|
|
|
HANDLE *TokenHandle )
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
1999-03-09 17:43:44 +00:00
|
|
|
CallWin32ToNt(NtOpenProcessToken( ProcessHandle, DesiredAccess, TokenHandle ));
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* OpenThreadToken [ADVAPI32.@]
|
1999-03-09 17:43:44 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* thread []
|
|
|
|
* desiredaccess []
|
|
|
|
* openasself []
|
|
|
|
* thandle []
|
|
|
|
*/
|
|
|
|
BOOL WINAPI
|
2002-05-31 23:06:46 +00:00
|
|
|
OpenThreadToken( HANDLE ThreadHandle, DWORD DesiredAccess,
|
1999-03-09 17:43:44 +00:00
|
|
|
BOOL OpenAsSelf, HANDLE *TokenHandle)
|
|
|
|
{
|
|
|
|
CallWin32ToNt (NtOpenThreadToken(ThreadHandle, DesiredAccess, OpenAsSelf, TokenHandle));
|
1999-02-19 16:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* AdjustTokenPrivileges [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* TokenHandle []
|
|
|
|
* DisableAllPrivileges []
|
|
|
|
* NewState []
|
|
|
|
* BufferLength []
|
|
|
|
* PreviousState []
|
|
|
|
* ReturnLength []
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
|
|
|
AdjustTokenPrivileges( HANDLE TokenHandle, BOOL DisableAllPrivileges,
|
2002-04-03 19:53:31 +00:00
|
|
|
LPVOID NewState, DWORD BufferLength,
|
1999-02-19 16:29:05 +00:00
|
|
|
LPVOID PreviousState, LPDWORD ReturnLength )
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
1999-03-09 17:43:44 +00:00
|
|
|
CallWin32ToNt(NtAdjustPrivilegesToken(TokenHandle, DisableAllPrivileges, NewState, BufferLength, PreviousState, ReturnLength));
|
1999-01-03 12:48:29 +00:00
|
|
|
}
|
|
|
|
|
2002-01-31 20:44:02 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* CheckTokenMembership [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* PARAMS
|
2002-08-26 21:39:17 +00:00
|
|
|
* TokenHandle [I]
|
|
|
|
* SidToCheck [I]
|
|
|
|
* IsMember [O]
|
2002-01-31 20:44:02 +00:00
|
|
|
*/
|
|
|
|
BOOL WINAPI
|
|
|
|
CheckTokenMembership( HANDLE TokenHandle, PSID SidToCheck,
|
|
|
|
PBOOL IsMember )
|
|
|
|
{
|
|
|
|
FIXME("(0x%08x %p %p) stub!\n", TokenHandle, SidToCheck, IsMember);
|
|
|
|
|
|
|
|
*IsMember = TRUE;
|
|
|
|
return(TRUE);
|
|
|
|
}
|
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetTokenInformation [ADVAPI32.@]
|
1999-01-03 12:48:29 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
2002-08-26 21:39:17 +00:00
|
|
|
* token [I]
|
|
|
|
* tokeninfoclass [I]
|
|
|
|
* tokeninfo [O]
|
|
|
|
* tokeninfolength [I]
|
|
|
|
* retlen [O]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
1999-01-03 12:48:29 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
2002-04-03 19:53:31 +00:00
|
|
|
GetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
|
1999-03-09 17:43:44 +00:00
|
|
|
LPVOID tokeninfo, DWORD tokeninfolength, LPDWORD retlen )
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
2002-08-26 21:39:17 +00:00
|
|
|
TRACE("(%x, %s, %p, %ld, %p): \n",
|
|
|
|
token,
|
|
|
|
(tokeninfoclass == TokenUser) ? "TokenUser" :
|
|
|
|
(tokeninfoclass == TokenGroups) ? "TokenGroups" :
|
|
|
|
(tokeninfoclass == TokenPrivileges) ? "TokenPrivileges" :
|
|
|
|
(tokeninfoclass == TokenOwner) ? "TokenOwner" :
|
|
|
|
(tokeninfoclass == TokenPrimaryGroup) ? "TokenPrimaryGroup" :
|
|
|
|
(tokeninfoclass == TokenDefaultDacl) ? "TokenDefaultDacl" :
|
|
|
|
(tokeninfoclass == TokenSource) ? "TokenSource" :
|
|
|
|
(tokeninfoclass == TokenType) ? "TokenType" :
|
|
|
|
(tokeninfoclass == TokenImpersonationLevel) ? "TokenImpersonationLevel" :
|
|
|
|
(tokeninfoclass == TokenStatistics) ? "TokenStatistics" :
|
|
|
|
(tokeninfoclass == TokenRestrictedSids) ? "TokenRestrictedSids" :
|
|
|
|
(tokeninfoclass == TokenSessionId) ? "TokenSessionId" :
|
|
|
|
(tokeninfoclass == TokenGroupsAndPrivileges) ? "TokenGroupsAndPrivileges" :
|
|
|
|
(tokeninfoclass == TokenSessionReference) ? "TokenSessionReference" :
|
|
|
|
(tokeninfoclass == TokenSandBoxInert) ? "TokenSandBoxInert" :
|
|
|
|
"Unknown",
|
|
|
|
tokeninfo, tokeninfolength, retlen);
|
|
|
|
CallWin32ToNt (NtQueryInformationToken( token, tokeninfoclass, tokeninfo, tokeninfolength, retlen));
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* SetTokenInformation [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* token [I]
|
|
|
|
* tokeninfoclass [I]
|
|
|
|
* tokeninfo [I]
|
|
|
|
* tokeninfolength [I]
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI
|
|
|
|
SetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
|
|
|
|
LPVOID tokeninfo, DWORD tokeninfolength )
|
|
|
|
{
|
|
|
|
FIXME("(%x, %s, %p, %ld): stub\n",
|
|
|
|
token,
|
|
|
|
(tokeninfoclass == TokenUser) ? "TokenUser" :
|
|
|
|
(tokeninfoclass == TokenGroups) ? "TokenGroups" :
|
|
|
|
(tokeninfoclass == TokenPrivileges) ? "TokenPrivileges" :
|
|
|
|
(tokeninfoclass == TokenOwner) ? "TokenOwner" :
|
|
|
|
(tokeninfoclass == TokenPrimaryGroup) ? "TokenPrimaryGroup" :
|
|
|
|
(tokeninfoclass == TokenDefaultDacl) ? "TokenDefaultDacl" :
|
|
|
|
(tokeninfoclass == TokenSource) ? "TokenSource" :
|
|
|
|
(tokeninfoclass == TokenType) ? "TokenType" :
|
|
|
|
(tokeninfoclass == TokenImpersonationLevel) ? "TokenImpersonationLevel" :
|
|
|
|
(tokeninfoclass == TokenStatistics) ? "TokenStatistics" :
|
|
|
|
(tokeninfoclass == TokenRestrictedSids) ? "TokenRestrictedSids" :
|
|
|
|
(tokeninfoclass == TokenSessionId) ? "TokenSessionId" :
|
|
|
|
(tokeninfoclass == TokenGroupsAndPrivileges) ? "TokenGroupsAndPrivileges" :
|
|
|
|
(tokeninfoclass == TokenSessionReference) ? "TokenSessionReference" :
|
|
|
|
(tokeninfoclass == TokenSandBoxInert) ? "TokenSandBoxInert" :
|
|
|
|
"Unknown",
|
|
|
|
tokeninfo, tokeninfolength);
|
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
|
|
|
|
return FALSE;
|
1999-01-03 12:48:29 +00:00
|
|
|
}
|
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
/*************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetThreadToken [ADVAPI32.@]
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
*
|
|
|
|
* Assigns an "impersonation token" to a thread so it can assume the
|
|
|
|
* security privledges of another thread or process. Can also remove
|
2002-04-03 19:53:31 +00:00
|
|
|
* a previously assigned token. Only supported on NT - it's a stub
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
* exactly like this one on Win9X.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
BOOL WINAPI SetThreadToken(PHANDLE thread, HANDLE token)
|
|
|
|
{
|
2001-08-09 21:16:55 +00:00
|
|
|
FIXME("(%p, %x): stub (NT impl. only)\n", thread, token);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/* ##############################
|
|
|
|
###### SID FUNCTIONS ######
|
|
|
|
##############################
|
|
|
|
*/
|
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* AllocateAndInitializeSid [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* pIdentifierAuthority []
|
|
|
|
* nSubAuthorityCount []
|
|
|
|
* nSubAuthority0 []
|
|
|
|
* nSubAuthority1 []
|
|
|
|
* nSubAuthority2 []
|
|
|
|
* nSubAuthority3 []
|
|
|
|
* nSubAuthority4 []
|
|
|
|
* nSubAuthority5 []
|
|
|
|
* nSubAuthority6 []
|
|
|
|
* nSubAuthority7 []
|
|
|
|
* pSid []
|
1999-01-28 13:46:25 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-19 16:29:05 +00:00
|
|
|
AllocateAndInitializeSid( PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
|
|
|
|
BYTE nSubAuthorityCount,
|
|
|
|
DWORD nSubAuthority0, DWORD nSubAuthority1,
|
|
|
|
DWORD nSubAuthority2, DWORD nSubAuthority3,
|
|
|
|
DWORD nSubAuthority4, DWORD nSubAuthority5,
|
|
|
|
DWORD nSubAuthority6, DWORD nSubAuthority7,
|
|
|
|
PSID *pSid )
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
CallWin32ToNt (RtlAllocateAndInitializeSid(
|
2002-05-31 23:06:46 +00:00
|
|
|
pIdentifierAuthority, nSubAuthorityCount,
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
nSubAuthority0, nSubAuthority1, nSubAuthority2, nSubAuthority3,
|
|
|
|
nSubAuthority4, nSubAuthority5, nSubAuthority6, nSubAuthority7,
|
|
|
|
pSid ));
|
1999-02-19 16:29:05 +00:00
|
|
|
}
|
1999-01-03 12:48:29 +00:00
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* FreeSid [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* pSid []
|
1999-01-28 13:46:25 +00:00
|
|
|
*/
|
1999-07-04 11:01:21 +00:00
|
|
|
PVOID WINAPI
|
1999-02-19 16:29:05 +00:00
|
|
|
FreeSid( PSID pSid )
|
|
|
|
{
|
2002-05-31 23:06:46 +00:00
|
|
|
RtlFreeSid(pSid);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return NULL; /* is documented like this */
|
1999-01-03 12:48:29 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CopySid [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* nDestinationSidLength []
|
|
|
|
* pDestinationSid []
|
|
|
|
* pSourceSid []
|
1999-01-03 12:48:29 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-12 17:47:07 +00:00
|
|
|
CopySid( DWORD nDestinationSidLength, PSID pDestinationSid, PSID pSourceSid )
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlCopySid(nDestinationSidLength, pDestinationSid, pSourceSid);
|
1999-01-03 12:48:29 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* IsValidSid [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pSid []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-12 17:47:07 +00:00
|
|
|
IsValidSid( PSID pSid )
|
1999-01-28 13:46:25 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlValidSid( pSid );
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* EqualSid [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pSid1 []
|
|
|
|
* pSid2 []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-12 17:47:07 +00:00
|
|
|
EqualSid( PSID pSid1, PSID pSid2 )
|
1999-01-28 13:46:25 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlEqualSid( pSid1, pSid2 );
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* EqualPrefixSid [ADVAPI32.@]
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
2002-05-31 23:06:46 +00:00
|
|
|
BOOL WINAPI EqualPrefixSid (PSID pSid1, PSID pSid2)
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
{
|
|
|
|
return RtlEqualPrefixSid(pSid1, pSid2);
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSidLengthRequired [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* nSubAuthorityCount []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-01-28 13:46:25 +00:00
|
|
|
DWORD WINAPI
|
|
|
|
GetSidLengthRequired( BYTE nSubAuthorityCount )
|
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlLengthRequiredSid(nSubAuthorityCount);
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* InitializeSid [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* pIdentifierAuthority []
|
1999-01-03 12:48:29 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
InitializeSid (
|
|
|
|
PSID pSid,
|
|
|
|
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
|
|
|
|
BYTE nSubAuthorityCount)
|
1999-01-28 13:46:25 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlInitializeSid(pSid, pIdentifierAuthority, nSubAuthorityCount);
|
1999-01-03 12:48:29 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSidIdentifierAuthority [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* pSid []
|
1999-01-28 13:46:25 +00:00
|
|
|
*/
|
1999-02-19 16:29:05 +00:00
|
|
|
PSID_IDENTIFIER_AUTHORITY WINAPI
|
|
|
|
GetSidIdentifierAuthority( PSID pSid )
|
1999-01-28 13:46:25 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlIdentifierAuthoritySid(pSid);
|
1999-02-19 16:29:05 +00:00
|
|
|
}
|
1997-02-15 14:29:56 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSidSubAuthority [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pSid []
|
|
|
|
* nSubAuthority []
|
|
|
|
*/
|
1999-07-04 11:01:21 +00:00
|
|
|
PDWORD WINAPI
|
1999-02-19 16:29:05 +00:00
|
|
|
GetSidSubAuthority( PSID pSid, DWORD nSubAuthority )
|
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlSubAuthoritySid(pSid, nSubAuthority);
|
1999-02-19 16:29:05 +00:00
|
|
|
}
|
1997-02-15 14:29:56 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSidSubAuthorityCount [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pSid []
|
|
|
|
*/
|
1999-07-04 11:01:21 +00:00
|
|
|
PUCHAR WINAPI
|
1999-02-19 16:29:05 +00:00
|
|
|
GetSidSubAuthorityCount (PSID pSid)
|
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlSubAuthorityCountSid(pSid);
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-30 12:54:32 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetLengthSid [ADVAPI32.@]
|
1999-01-30 12:54:32 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pSid []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-19 16:29:05 +00:00
|
|
|
DWORD WINAPI
|
|
|
|
GetLengthSid (PSID pSid)
|
Release 971101
Thu Oct 30 21:52:23 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [windows/nonclient.c]
Changed NC_TrackSysMenu to give the same behaviour as MS-Windows,
i.e. system menu already appears when mouse button is depressed.
Changed NC_HandleNCLButtonDblClk so that double clicks on scroll
bar arrows are handled the same way as single clicks.
* [windows/winpos.c]
Fixed SetWindowPos32 to clear WIN_NO_REDRAW when SWP_SHOWWINDOW is
set; this is the way MS-Windows behaves.
Thu Oct 30 21:08:57 1997 Morten Welinder <terra@diku.dk>
* [controls/status.c]
In SW_SetText, fix condition, I hope.
* [controls/menu.c]
(GetMenuState32): Don't mask return value. Print more debug info.
(MENU_MenuBarCalcSize): Be more careful when printing debug
information.
(MENU_SetItemData): Empty strings are separators.
* [graphics/x11drv/text.c]
Don't prototype CLIPPING_IntersectClipRect.
* [include/dc.h]
Prototype CLIPPING_IntersectClipRect.
* [objects/font.c]
Remove non-portable (and faulty) smartness in FONT_TextMetric*to*.
In CreateFont32W and CreateFont16, handle null font name.
* [objects/text.c]
(TEXT_NextLine): Fix end-of-line bug.
* [if1632/shell32.spec]
Activate existing implementation of ExtractIconA.
* [misc/shell.c]
For Control_RunDLL, add types for parameters.
Thu Oct 30 14:54:11 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [controls/static.c] [include/windows.h] [misc/spy.c]
Added some win32 defines to static controls, basic SS_BITMAP style
handling implemented. [please add more, I am lacking knowledge and
time]
* [controls/status.c]
part_num 255 seems to indicate whole statusline (win95 cdplayer.exe)
* [if1632/thunk.c] [tools/build.c]
Support lret and 0x66 lret calls for CallTo16_regs
(needed for KERNEL32_45)
Fixed KERNEL32_45, QT_Thunk (should work now).
* [if1632/relay.c][if1632/builtin.c][tools/build.c][if1632/*32.spec]
Added string dumping to relay debugging for win32 apifuncs.
* [misc/ver.c]
Fixed and cleaned up VerQueryValue*.
* [multimedia/*.c][include/mmsystem.h][if1632/mmsystem.spec]
[if1632/winmm.spec]
Win32 support for lowlevel multimedia functions.
Added some mixer* lowlevel functions.
Some small fixes in the audio lowlevel queue handling, code
reformatting/cleanups.
* [debugger/hash.c]
Don't show difference between 16bit symbols if they are in
different segments.
* [objects/cursoricon.c]
Added GetIconInfo (partial) and CreateIconIndirect.
* [windows/mdi.c]
Fixed some "bad class" problems and crashes in MDICreateChild,
which happen in Win32 (jwp32.exe).
Wed Oct 29 00:57:27 1997 Bruce Milner <Bruce.Milner@genetics.utah.edu>
* [if1632/winaspi.spec] [misc/aspi.c] [include/aspi.c]
[documentation/aspi] [include/callback.h]
Added support for 16 bit ASPI calls to linux generic SCSI.
The support is not complete, but appears to run my Mustek
scanner from within ipplus.exe.
Mon Oct 27 00:59:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [windows/dce.c]
DC reuse framework.
Sun Oct 26 18:41:21 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/x11drv/xfont.c]
Substituted fonts are removed from the alias table. References to
the old name are also updated.
* [controls/combo.c]
LB_SELECTSTRING32 not CB_SELECTSTRING32 should be sent to
ComboLBox.
Sun Oct 26 14:25:00 1997 Nikita V. Youshchenko <yoush@cs.msu.su>
* [include/drive.h] [files/drive.c] [msdos/int21.c]
Partially implemented DOS drive mapping (int21 AX=440F).
Sat Oct 25 13:03:29 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/debug.l]
Support '.' in identifiers. Use "x . y" to access structure
fields.
* [debugger/hash.c] [loader/pe_image.c]
Load entry points of Win32 modules only when entering the
debugger.
* [debugger/break.c]
New function DEBUG_AddModuleBreakpoint() to set a breakpoint at
the start of every module.
* [files/file.c]
FILE_mmap() can now fake mmap() for unaligned offsets or broken
filesystems.
* [include/callback.h] [misc/callback.c] [if1632/thunk.c]
Use a table of callbacks instead of macros to differentiate
between emulator and Winelib.
* [loader/task.c]
Initialize current directory from cwd, not from module path.
* [tools/build.c]
Read CallTo16 prototypes directly from thunk.c source file.
* [windows/winproc.c] [windows/mdi.c]
Added translation for WM_MDIACTIVATE and WM_MDIGETACTIVE.
Fri Oct 24 21:41:25 1997 Uwe Bonnes <bon@elektron.ikp.tu-darmstadt.de>
* [files/drive.c]
Allow arguments like "a" for the drive related apis.
* [memory/global.c]
Keep the calculation for dwMemoryLoad in range.
* [misc/crtdll.c]
Make CRTDLL_getcwd use GetCurrentDirectory32A and alloc
its memory if requested.
Implemented CRTDLL_rename and CRTDLL_stat needed for
lcc-win32:wedit.exe.
Implemented CRTDLL__fullpath.
* [misc/comm.c]
High speed modes for the 16-bit mode Comm functions.
* [misc/cpu.c]
As applications may treat lpMaximumApplicationAddress as long,
use a valid long number.
* [misc/main.c]
In SystemParametersInfo16 ignore SPI_GETHIGHCONTRAST too.
* [misc/ole2nls.c]
Implement LCMAP_UPPERCASE for LCMapString32.
* [misc/wsprintf]
Made WPRINTF_ParseFormatA understand %ws.
* [win32/file.c]
Ignore FILE_ATTRIBUTE_NORMAL.
Stub for ReadFileEx.
Fri Oct 24 15:36:02 1997 Doug Ridgway <ridgway@routh.ucsd.edu>
* [memory/local.c]
Local heap exhaustion message now prints which builtin heap filled.
Fri Oct 24 00:46:34 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/dialog.c]
Reversed CreateFont16/32W typo.
Thu Oct 23 23:44:20 1997 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [if1632/user.spec]
Fixed argument list for ChangeClipboardChain.
* [windows/mdi.c]
Pass correct hInstance to CreateWindow16() in MDICreateChild().
Mon Oct 20 11:51:24 1997 Carsten Fallesen <cf@it.dtu.dk>
* [objects/metafile.c]
Added support for META_SETTEXTCHAREXTRA.
* [objects/region.c]
Fixed crash in XPolygonRegion if there is only one point in
in the region.
* [if1632/gdi32.spec][include/gdi.h][include/windows.h]
[objects/gdiobj.c]
Completed OBJ_XXX defines in gdi.h, removed OBJ_XXX in gdiobj.c
and included gdi.h instead. Implemented GetObjectType32().
Thu Oct 16 17:21:32 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* [documentation/wine.texinfo]
Fixed WIN32 and Makefiles entries of Reference manual node, that
made makeinfo dump core.
Mon Oct 13 17:15:57 1997 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [if1632/crtdll.spec]
Added missing math functions y0(), y1(), y2(), floor(), frexp(),
ldexp(), modf().
1997-11-01 19:08:16 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlLengthSid(pSid);
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/* ##############################################
|
|
|
|
###### SECURITY DESCRIPTOR FUNCTIONS ######
|
|
|
|
##############################################
|
|
|
|
*/
|
2002-05-31 23:06:46 +00:00
|
|
|
|
1999-01-30 12:54:32 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* InitializeSecurityDescriptor [ADVAPI32.@]
|
1999-01-30 12:54:32 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pDescr []
|
|
|
|
* revision []
|
1997-10-12 16:30:17 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-19 16:29:05 +00:00
|
|
|
InitializeSecurityDescriptor( SECURITY_DESCRIPTOR *pDescr, DWORD revision )
|
1997-10-12 16:30:17 +00:00
|
|
|
{
|
1999-02-19 16:29:05 +00:00
|
|
|
CallWin32ToNt (RtlCreateSecurityDescriptor(pDescr, revision ));
|
1997-10-12 16:30:17 +00:00
|
|
|
}
|
|
|
|
|
1999-01-30 12:54:32 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSecurityDescriptorLength [ADVAPI32.@]
|
1999-01-17 16:55:11 +00:00
|
|
|
*/
|
|
|
|
DWORD WINAPI GetSecurityDescriptorLength( SECURITY_DESCRIPTOR *pDescr)
|
|
|
|
{
|
1999-02-19 16:29:05 +00:00
|
|
|
return (RtlLengthSecurityDescriptor(pDescr));
|
1999-01-17 16:55:11 +00:00
|
|
|
}
|
|
|
|
|
1999-01-30 12:54:32 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSecurityDescriptorOwner [ADVAPI32.@]
|
1999-01-30 12:54:32 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pOwner []
|
|
|
|
* lpbOwnerDefaulted []
|
1999-01-26 10:11:22 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-12 17:47:07 +00:00
|
|
|
GetSecurityDescriptorOwner( SECURITY_DESCRIPTOR *pDescr, PSID *pOwner,
|
1999-02-26 11:11:13 +00:00
|
|
|
LPBOOL lpbOwnerDefaulted )
|
1999-01-26 10:11:22 +00:00
|
|
|
{
|
1999-02-19 16:29:05 +00:00
|
|
|
CallWin32ToNt (RtlGetOwnerSecurityDescriptor( pDescr, pOwner, (PBOOLEAN)lpbOwnerDefaulted ));
|
1999-01-26 10:11:22 +00:00
|
|
|
}
|
1999-01-17 16:55:11 +00:00
|
|
|
|
1999-01-30 12:54:32 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetSecurityDescriptorOwner [ADVAPI32.@]
|
1999-01-30 12:54:32 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-01-26 10:11:22 +00:00
|
|
|
*/
|
2002-05-31 23:06:46 +00:00
|
|
|
BOOL WINAPI SetSecurityDescriptorOwner( PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
1999-02-26 11:11:13 +00:00
|
|
|
PSID pOwner, BOOL bOwnerDefaulted)
|
1999-02-19 16:29:05 +00:00
|
|
|
{
|
|
|
|
CallWin32ToNt (RtlSetOwnerSecurityDescriptor(pSecurityDescriptor, pOwner, bOwnerDefaulted));
|
|
|
|
}
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSecurityDescriptorGroup [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI GetSecurityDescriptorGroup(
|
1999-02-19 16:29:05 +00:00
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
PSID *Group,
|
1999-02-26 11:11:13 +00:00
|
|
|
LPBOOL GroupDefaulted)
|
1999-02-19 16:29:05 +00:00
|
|
|
{
|
|
|
|
CallWin32ToNt (RtlGetGroupSecurityDescriptor(SecurityDescriptor, Group, (PBOOLEAN)GroupDefaulted));
|
2002-05-31 23:06:46 +00:00
|
|
|
}
|
1999-02-19 16:29:05 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetSecurityDescriptorGroup [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI SetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
PSID Group, BOOL GroupDefaulted)
|
1999-01-26 10:11:22 +00:00
|
|
|
{
|
1999-02-19 16:29:05 +00:00
|
|
|
CallWin32ToNt (RtlSetGroupSecurityDescriptor( SecurityDescriptor, Group, GroupDefaulted));
|
1999-01-26 10:11:22 +00:00
|
|
|
}
|
1997-10-12 16:30:17 +00:00
|
|
|
|
1999-01-30 12:54:32 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* IsValidSecurityDescriptor [ADVAPI32.@]
|
1999-01-30 12:54:32 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* lpsecdesc []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-02-19 16:29:05 +00:00
|
|
|
IsValidSecurityDescriptor( PSECURITY_DESCRIPTOR SecurityDescriptor )
|
1997-08-24 16:00:30 +00:00
|
|
|
{
|
1999-02-19 16:29:05 +00:00
|
|
|
CallWin32ToNt (RtlValidSecurityDescriptor(SecurityDescriptor));
|
|
|
|
}
|
1997-02-15 14:29:56 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSecurityDescriptorDacl [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI GetSecurityDescriptorDacl(
|
1999-02-19 16:29:05 +00:00
|
|
|
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
1999-02-26 11:11:13 +00:00
|
|
|
OUT LPBOOL lpbDaclPresent,
|
1999-02-19 16:29:05 +00:00
|
|
|
OUT PACL *pDacl,
|
1999-02-26 11:11:13 +00:00
|
|
|
OUT LPBOOL lpbDaclDefaulted)
|
1999-02-19 16:29:05 +00:00
|
|
|
{
|
|
|
|
CallWin32ToNt (RtlGetDaclSecurityDescriptor(pSecurityDescriptor, (PBOOLEAN)lpbDaclPresent,
|
|
|
|
pDacl, (PBOOLEAN)lpbDaclDefaulted));
|
2002-05-31 23:06:46 +00:00
|
|
|
}
|
1997-02-15 14:29:56 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetSecurityDescriptorDacl [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
2002-05-31 23:06:46 +00:00
|
|
|
BOOL WINAPI
|
1999-03-09 17:43:44 +00:00
|
|
|
SetSecurityDescriptorDacl (
|
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
BOOL daclpresent,
|
|
|
|
PACL dacl,
|
|
|
|
BOOL dacldefaulted )
|
1999-02-19 16:29:05 +00:00
|
|
|
{
|
|
|
|
CallWin32ToNt (RtlSetDaclSecurityDescriptor (lpsd, daclpresent, dacl, dacldefaulted ));
|
1999-03-09 17:43:44 +00:00
|
|
|
}
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSecurityDescriptorSacl [ADVAPI32.@]
|
1999-03-09 17:43:44 +00:00
|
|
|
*/
|
|
|
|
BOOL WINAPI GetSecurityDescriptorSacl(
|
|
|
|
IN PSECURITY_DESCRIPTOR lpsd,
|
|
|
|
OUT LPBOOL lpbSaclPresent,
|
|
|
|
OUT PACL *pSacl,
|
|
|
|
OUT LPBOOL lpbSaclDefaulted)
|
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
CallWin32ToNt (RtlGetSaclSecurityDescriptor(lpsd,
|
|
|
|
(PBOOLEAN)lpbSaclPresent, pSacl, (PBOOLEAN)lpbSaclDefaulted));
|
2002-05-31 23:06:46 +00:00
|
|
|
}
|
1999-03-09 17:43:44 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/**************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetSecurityDescriptorSacl [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
BOOL WINAPI SetSecurityDescriptorSacl (
|
1999-02-19 16:29:05 +00:00
|
|
|
PSECURITY_DESCRIPTOR lpsd,
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL saclpresent,
|
1999-03-09 17:43:44 +00:00
|
|
|
PACL lpsacl,
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL sacldefaulted)
|
1999-02-19 16:29:05 +00:00
|
|
|
{
|
1999-03-09 17:43:44 +00:00
|
|
|
CallWin32ToNt (RtlSetSaclSecurityDescriptor(lpsd, saclpresent, lpsacl, sacldefaulted));
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* MakeSelfRelativeSD [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* lpabssecdesc []
|
|
|
|
* lpselfsecdesc []
|
|
|
|
* lpbuflen []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
MakeSelfRelativeSD(
|
|
|
|
IN PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
|
|
|
|
IN PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
|
|
|
|
IN OUT LPDWORD lpdwBufferLength)
|
1997-08-24 16:00:30 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
CallWin32ToNt (RtlMakeSelfRelativeSD(pAbsoluteSecurityDescriptor,pSelfRelativeSecurityDescriptor, lpdwBufferLength));
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetSecurityDescriptorControl [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
|
|
|
|
1999-07-04 11:01:21 +00:00
|
|
|
BOOL WINAPI GetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
|
|
PSECURITY_DESCRIPTOR_CONTROL pControl, LPDWORD lpdwRevision)
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
{
|
|
|
|
CallWin32ToNt (RtlGetControlSecurityDescriptor(pSecurityDescriptor,pControl,lpdwRevision));
|
2002-05-31 23:06:46 +00:00
|
|
|
}
|
1999-02-19 16:29:05 +00:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
/* ##############################
|
|
|
|
###### ACL FUNCTIONS ######
|
|
|
|
##############################
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* InitializeAcl [ADVAPI32.@]
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
*/
|
|
|
|
DWORD WINAPI InitializeAcl(PACL acl, DWORD size, DWORD rev)
|
|
|
|
{
|
|
|
|
CallWin32ToNt (RtlCreateAcl(acl, size, rev));
|
|
|
|
}
|
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/* ##############################
|
|
|
|
###### MISC FUNCTIONS ######
|
|
|
|
##############################
|
|
|
|
*/
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LookupPrivilegeValueW [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
* Retrieves LUID used on a system to represent the privilege name.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* lpLuid should be PLUID
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* lpSystemName [I] Address of string specifying the system
|
|
|
|
* lpName [I] Address of string specifying the privilege
|
|
|
|
* lpLuid [I] Address of locally unique identifier
|
|
|
|
*
|
|
|
|
* RETURNS STD
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
|
|
|
LookupPrivilegeValueW( LPCWSTR lpSystemName, LPCWSTR lpName, LPVOID lpLuid )
|
1997-08-24 16:00:30 +00:00
|
|
|
{
|
2002-05-31 23:06:46 +00:00
|
|
|
FIXME("(%s,%s,%p): stub\n",debugstr_w(lpSystemName),
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
debugstr_w(lpName), lpLuid);
|
1999-02-19 16:29:05 +00:00
|
|
|
return TRUE;
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LookupPrivilegeValueA [ADVAPI32.@]
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
|
|
|
LookupPrivilegeValueA( LPCSTR lpSystemName, LPCSTR lpName, LPVOID lpLuid )
|
1997-08-24 16:00:30 +00:00
|
|
|
{
|
1999-02-19 16:29:05 +00:00
|
|
|
LPWSTR lpSystemNameW = HEAP_strdupAtoW(GetProcessHeap(), 0, lpSystemName);
|
|
|
|
LPWSTR lpNameW = HEAP_strdupAtoW(GetProcessHeap(), 0, lpName);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
BOOL ret;
|
|
|
|
|
|
|
|
ret = LookupPrivilegeValueW( lpSystemNameW, lpNameW, lpLuid);
|
1999-02-19 16:29:05 +00:00
|
|
|
HeapFree(GetProcessHeap(), 0, lpNameW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, lpSystemNameW);
|
|
|
|
return ret;
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetFileSecurityA [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
1999-02-19 16:29:05 +00:00
|
|
|
* Obtains Specified information about the security of a file or directory
|
|
|
|
* The information obtained is constrained by the callers access rights and
|
|
|
|
* privileges
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
2002-05-31 23:06:46 +00:00
|
|
|
GetFileSecurityA( LPCSTR lpFileName,
|
1999-02-19 16:29:05 +00:00
|
|
|
SECURITY_INFORMATION RequestedInformation,
|
|
|
|
PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
|
|
DWORD nLength, LPDWORD lpnLengthNeeded )
|
1997-08-24 16:00:30 +00:00
|
|
|
{
|
1999-12-08 03:56:23 +00:00
|
|
|
FIXME("(%s) : stub\n", debugstr_a(lpFileName));
|
1999-02-19 16:29:05 +00:00
|
|
|
return TRUE;
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* GetFileSecurityW [ADVAPI32.@]
|
1999-02-19 16:29:05 +00:00
|
|
|
*
|
|
|
|
* Obtains Specified information about the security of a file or directory
|
|
|
|
* The information obtained is constrained by the callers access rights and
|
|
|
|
* privileges
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
1999-02-19 16:29:05 +00:00
|
|
|
* lpFileName []
|
|
|
|
* RequestedInformation []
|
|
|
|
* pSecurityDescriptor []
|
|
|
|
* nLength []
|
|
|
|
* lpnLengthNeeded []
|
1997-02-15 14:29:56 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
2002-05-31 23:06:46 +00:00
|
|
|
GetFileSecurityW( LPCWSTR lpFileName,
|
1999-02-19 16:29:05 +00:00
|
|
|
SECURITY_INFORMATION RequestedInformation,
|
|
|
|
PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
|
|
DWORD nLength, LPDWORD lpnLengthNeeded )
|
1999-01-28 13:46:25 +00:00
|
|
|
{
|
2002-05-31 23:06:46 +00:00
|
|
|
FIXME("(%s) : stub\n", debugstr_w(lpFileName) );
|
1999-02-19 16:29:05 +00:00
|
|
|
return TRUE;
|
1997-02-15 14:29:56 +00:00
|
|
|
}
|
1997-11-30 17:45:40 +00:00
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LookupAccountSidA [ADVAPI32.@]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
LookupAccountSidA(
|
|
|
|
IN LPCSTR system,
|
|
|
|
IN PSID sid,
|
|
|
|
OUT LPSTR account,
|
|
|
|
IN OUT LPDWORD accountSize,
|
|
|
|
OUT LPSTR domain,
|
|
|
|
IN OUT LPDWORD domainSize,
|
|
|
|
OUT PSID_NAME_USE name_use )
|
|
|
|
{
|
2000-11-28 22:40:56 +00:00
|
|
|
static const char ac[] = "Administrator";
|
|
|
|
static const char dm[] = "DOMAIN";
|
2000-03-12 20:16:51 +00:00
|
|
|
FIXME("(%s,sid=%p,%p,%p(%lu),%p,%p(%lu),%p): semi-stub\n",
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
debugstr_a(system),sid,
|
|
|
|
account,accountSize,accountSize?*accountSize:0,
|
|
|
|
domain,domainSize,domainSize?*domainSize:0,
|
|
|
|
name_use);
|
|
|
|
|
|
|
|
if (accountSize) *accountSize = strlen(ac)+1;
|
|
|
|
if (account && (*accountSize > strlen(ac)))
|
|
|
|
strcpy(account, ac);
|
|
|
|
|
|
|
|
if (domainSize) *domainSize = strlen(dm)+1;
|
|
|
|
if (domain && (*domainSize > strlen(dm)))
|
|
|
|
strcpy(domain,dm);
|
|
|
|
|
|
|
|
if (name_use) *name_use = SidTypeUser;
|
|
|
|
return TRUE;
|
1997-11-30 17:45:40 +00:00
|
|
|
}
|
|
|
|
|
1999-01-28 13:46:25 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LookupAccountSidW [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* system []
|
|
|
|
* sid []
|
|
|
|
* account []
|
|
|
|
* accountSize []
|
|
|
|
* domain []
|
|
|
|
* domainSize []
|
|
|
|
* name_use []
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
LookupAccountSidW(
|
|
|
|
IN LPCWSTR system,
|
|
|
|
IN PSID sid,
|
|
|
|
OUT LPWSTR account,
|
|
|
|
IN OUT LPDWORD accountSize,
|
|
|
|
OUT LPWSTR domain,
|
|
|
|
IN OUT LPDWORD domainSize,
|
|
|
|
OUT PSID_NAME_USE name_use )
|
|
|
|
{
|
2000-11-28 22:40:56 +00:00
|
|
|
static const WCHAR ac[] = {'A','d','m','i','n','i','s','t','r','a','t','o','r',0};
|
|
|
|
static const WCHAR dm[] = {'D','O','M','A','I','N',0};
|
2000-03-12 20:16:51 +00:00
|
|
|
FIXME("(%s,sid=%p,%p,%p(%lu),%p,%p(%lu),%p): semi-stub\n",
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
debugstr_w(system),sid,
|
|
|
|
account,accountSize,accountSize?*accountSize:0,
|
|
|
|
domain,domainSize,domainSize?*domainSize:0,
|
|
|
|
name_use);
|
|
|
|
|
2000-11-28 22:40:56 +00:00
|
|
|
if (accountSize) *accountSize = strlenW(ac)+1;
|
|
|
|
if (account && (*accountSize > strlenW(ac)))
|
|
|
|
strcpyW(account, ac);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
|
2000-11-28 22:40:56 +00:00
|
|
|
if (domainSize) *domainSize = strlenW(dm)+1;
|
|
|
|
if (domain && (*domainSize > strlenW(dm)))
|
|
|
|
strcpyW(domain,dm);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
|
|
|
|
if (name_use) *name_use = SidTypeUser;
|
|
|
|
return TRUE;
|
1997-11-30 17:45:40 +00:00
|
|
|
}
|
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetFileSecurityA [ADVAPI32.@]
|
1999-01-03 12:48:29 +00:00
|
|
|
* Sets the security of a file or directory
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI SetFileSecurityA( LPCSTR lpFileName,
|
1999-01-03 12:48:29 +00:00
|
|
|
SECURITY_INFORMATION RequestedInformation,
|
1999-02-12 17:47:07 +00:00
|
|
|
PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
1999-12-08 03:56:23 +00:00
|
|
|
FIXME("(%s) : stub\n", debugstr_a(lpFileName));
|
1999-01-03 12:48:29 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetFileSecurityW [ADVAPI32.@]
|
1999-01-03 12:48:29 +00:00
|
|
|
* Sets the security of a file or directory
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpFileName []
|
|
|
|
* RequestedInformation []
|
|
|
|
* pSecurityDescriptor []
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
2002-05-31 23:06:46 +00:00
|
|
|
SetFileSecurityW( LPCWSTR lpFileName,
|
1999-01-28 13:46:25 +00:00
|
|
|
SECURITY_INFORMATION RequestedInformation,
|
1999-02-12 17:47:07 +00:00
|
|
|
PSECURITY_DESCRIPTOR pSecurityDescriptor )
|
1999-01-03 12:48:29 +00:00
|
|
|
{
|
2002-05-31 23:06:46 +00:00
|
|
|
FIXME("(%s) : stub\n", debugstr_w(lpFileName) );
|
1999-01-03 12:48:29 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
1999-01-28 13:46:25 +00:00
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* QueryWindows31FilesMigration [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* x1 []
|
1999-01-03 12:48:29 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-01-28 13:46:25 +00:00
|
|
|
QueryWindows31FilesMigration( DWORD x1 )
|
|
|
|
{
|
1999-12-08 03:56:23 +00:00
|
|
|
FIXME("(%ld):stub\n",x1);
|
1999-01-03 12:48:29 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SynchronizeWindows31FilesAndWindowsNTRegistry [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* x1 []
|
|
|
|
* x2 []
|
|
|
|
* x3 []
|
|
|
|
* x4 []
|
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-01-28 13:46:25 +00:00
|
|
|
SynchronizeWindows31FilesAndWindowsNTRegistry( DWORD x1, DWORD x2, DWORD x3,
|
|
|
|
DWORD x4 )
|
|
|
|
{
|
1999-12-08 03:56:23 +00:00
|
|
|
FIXME("(0x%08lx,0x%08lx,0x%08lx,0x%08lx):stub\n",x1,x2,x3,x4);
|
1999-01-03 12:48:29 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LsaOpenPolicy [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* x1 []
|
|
|
|
* x2 []
|
|
|
|
* x3 []
|
|
|
|
* x4 []
|
1999-01-03 12:48:29 +00:00
|
|
|
*/
|
1999-07-04 11:01:21 +00:00
|
|
|
NTSTATUS WINAPI
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
LsaOpenPolicy(
|
|
|
|
IN PLSA_UNICODE_STRING SystemName,
|
|
|
|
IN PLSA_OBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
IN ACCESS_MASK DesiredAccess,
|
|
|
|
IN OUT PLSA_HANDLE PolicyHandle)
|
|
|
|
{
|
|
|
|
FIXME("(%s,%p,0x%08lx,%p):stub\n",
|
|
|
|
SystemName?debugstr_w(SystemName->Buffer):"null",
|
|
|
|
ObjectAttributes, DesiredAccess, PolicyHandle);
|
|
|
|
dumpLsaAttributes(ObjectAttributes);
|
|
|
|
if(PolicyHandle) *PolicyHandle = (LSA_HANDLE)0xcafe;
|
|
|
|
return TRUE;
|
1999-01-03 12:48:29 +00:00
|
|
|
}
|
|
|
|
|
1999-12-11 23:19:54 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LsaQueryInformationPolicy [ADVAPI32.@]
|
1999-12-11 23:19:54 +00:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI
|
2002-05-31 23:06:46 +00:00
|
|
|
LsaQueryInformationPolicy(
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
IN LSA_HANDLE PolicyHandle,
|
|
|
|
IN POLICY_INFORMATION_CLASS InformationClass,
|
|
|
|
OUT PVOID *Buffer)
|
1999-12-11 23:19:54 +00:00
|
|
|
{
|
|
|
|
FIXME("(%p,0x%08x,%p):stub\n",
|
|
|
|
PolicyHandle, InformationClass, Buffer);
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
|
|
|
|
if(!Buffer) return FALSE;
|
|
|
|
switch (InformationClass)
|
|
|
|
{
|
|
|
|
case PolicyAuditEventsInformation: /* 2 */
|
|
|
|
{
|
2000-02-16 22:47:24 +00:00
|
|
|
PPOLICY_AUDIT_EVENTS_INFO p = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(POLICY_AUDIT_EVENTS_INFO));
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
p->AuditingMode = FALSE; /* no auditing */
|
|
|
|
*Buffer = p;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case PolicyPrimaryDomainInformation: /* 3 */
|
|
|
|
case PolicyAccountDomainInformation: /* 5 */
|
|
|
|
{
|
|
|
|
struct di
|
|
|
|
{ POLICY_PRIMARY_DOMAIN_INFO ppdi;
|
|
|
|
SID sid;
|
|
|
|
};
|
|
|
|
SID_IDENTIFIER_AUTHORITY localSidAuthority = {SECURITY_NT_AUTHORITY};
|
2002-05-31 23:06:46 +00:00
|
|
|
|
2000-02-16 22:47:24 +00:00
|
|
|
struct di * xdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(xdi));
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
RtlInitUnicodeString(&(xdi->ppdi.Name), HEAP_strdupAtoW(GetProcessHeap(),0,"DOMAIN"));
|
|
|
|
xdi->ppdi.Sid = &(xdi->sid);
|
|
|
|
xdi->sid.Revision = SID_REVISION;
|
|
|
|
xdi->sid.SubAuthorityCount = 1;
|
|
|
|
xdi->sid.IdentifierAuthority = localSidAuthority;
|
|
|
|
xdi->sid.SubAuthority[0] = SECURITY_LOCAL_SYSTEM_RID;
|
|
|
|
*Buffer = xdi;
|
|
|
|
}
|
|
|
|
break;
|
2002-05-31 23:06:46 +00:00
|
|
|
case PolicyAuditLogInformation:
|
|
|
|
case PolicyPdAccountInformation:
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
case PolicyLsaServerRoleInformation:
|
|
|
|
case PolicyReplicaSourceInformation:
|
|
|
|
case PolicyDefaultQuotaInformation:
|
|
|
|
case PolicyModificationInformation:
|
|
|
|
case PolicyAuditFullSetInformation:
|
|
|
|
case PolicyAuditFullQueryInformation:
|
|
|
|
case PolicyDnsDomainInformation:
|
|
|
|
{
|
|
|
|
FIXME("category not implemented\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
2002-05-31 23:06:46 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
1999-12-11 23:19:54 +00:00
|
|
|
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LsaLookupSids [ADVAPI32.@]
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
SID_NAME_USE Use;
|
|
|
|
LSA_UNICODE_STRING Name;
|
|
|
|
LONG DomainIndex;
|
|
|
|
} LSA_TRANSLATED_NAME, *PLSA_TRANSLATED_NAME;
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
{
|
|
|
|
LSA_UNICODE_STRING Name;
|
|
|
|
PSID Sid;
|
|
|
|
} LSA_TRUST_INFORMATION, *PLSA_TRUST_INFORMATION;
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
{
|
|
|
|
ULONG Entries;
|
|
|
|
PLSA_TRUST_INFORMATION Domains;
|
|
|
|
} LSA_REFERENCED_DOMAIN_LIST, *PLSA_REFERENCED_DOMAIN_LIST;
|
|
|
|
|
|
|
|
NTSTATUS WINAPI
|
|
|
|
LsaLookupSids(
|
|
|
|
IN LSA_HANDLE PolicyHandle,
|
|
|
|
IN ULONG Count,
|
|
|
|
IN PSID *Sids,
|
|
|
|
OUT PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains,
|
|
|
|
OUT PLSA_TRANSLATED_NAME *Names )
|
|
|
|
{
|
|
|
|
FIXME("%p %lu %p %p %p\n",
|
|
|
|
PolicyHandle, Count, Sids, ReferencedDomains, Names);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
1999-12-11 23:19:54 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LsaFreeMemory [ADVAPI32.@]
|
1999-12-11 23:19:54 +00:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI
|
|
|
|
LsaFreeMemory(IN PVOID Buffer)
|
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
TRACE("(%p)\n",Buffer);
|
2000-02-16 22:47:24 +00:00
|
|
|
return HeapFree(GetProcessHeap(), 0, Buffer);
|
1999-12-11 23:19:54 +00:00
|
|
|
}
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* LsaClose [ADVAPI32.@]
|
1999-12-11 23:19:54 +00:00
|
|
|
*/
|
|
|
|
NTSTATUS WINAPI
|
|
|
|
LsaClose(IN LSA_HANDLE ObjectHandle)
|
|
|
|
{
|
|
|
|
FIXME("(%p):stub\n",ObjectHandle);
|
|
|
|
return 0xc0000000;
|
|
|
|
}
|
2002-09-06 19:36:37 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* LsaNtStatusToWinError [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* Status [I]
|
|
|
|
*/
|
|
|
|
ULONG WINAPI
|
|
|
|
LsaNtStatusToWinError(NTSTATUS Status)
|
|
|
|
{
|
|
|
|
return RtlNtStatusToDosError(Status);
|
|
|
|
}
|
|
|
|
|
1999-01-03 12:48:29 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* NotifyBootConfigStatus [ADVAPI32.@]
|
1999-01-28 13:46:25 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* x1 []
|
1999-01-03 12:48:29 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-01-28 13:46:25 +00:00
|
|
|
NotifyBootConfigStatus( DWORD x1 )
|
|
|
|
{
|
1999-12-08 03:56:23 +00:00
|
|
|
FIXME("(0x%08lx):stub\n",x1);
|
1999-01-03 12:48:29 +00:00
|
|
|
return 1;
|
|
|
|
}
|
1999-01-26 10:11:22 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* RevertToSelf [ADVAPI32.@]
|
1999-01-30 12:54:32 +00:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* void []
|
1999-01-26 10:11:22 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-01-30 12:54:32 +00:00
|
|
|
RevertToSelf( void )
|
|
|
|
{
|
1999-12-08 03:56:23 +00:00
|
|
|
FIXME("(), stub\n");
|
1999-01-26 10:11:22 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
1999-02-10 06:39:51 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* ImpersonateSelf [ADVAPI32.@]
|
1999-02-10 06:39:51 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
1999-07-04 11:01:21 +00:00
|
|
|
ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
|
1999-02-10 06:39:51 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
return RtlImpersonateSelf(ImpersonationLevel);
|
1999-02-10 06:39:51 +00:00
|
|
|
}
|
|
|
|
|
2002-04-03 19:53:31 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* ImpersonateLoggedOnUser [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken)
|
|
|
|
{
|
|
|
|
FIXME("(%08x):stub returning FALSE\n", hToken);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
1999-02-19 16:29:05 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* AccessCheck [ADVAPI32.@]
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
*
|
|
|
|
* FIXME check cast LPBOOL to PBOOLEAN
|
1999-02-19 16:29:05 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
AccessCheck(
|
|
|
|
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
|
|
HANDLE ClientToken,
|
|
|
|
DWORD DesiredAccess,
|
|
|
|
PGENERIC_MAPPING GenericMapping,
|
|
|
|
PPRIVILEGE_SET PrivilegeSet,
|
|
|
|
LPDWORD PrivilegeSetLength,
|
|
|
|
LPDWORD GrantedAccess,
|
|
|
|
LPBOOL AccessStatus)
|
|
|
|
{
|
|
|
|
CallWin32ToNt (NtAccessCheck(SecurityDescriptor, ClientToken, DesiredAccess,
|
|
|
|
GenericMapping, PrivilegeSet, PrivilegeSetLength, GrantedAccess, (PBOOLEAN)AccessStatus));
|
1999-02-10 06:39:51 +00:00
|
|
|
}
|
1999-07-10 10:17:27 +00:00
|
|
|
|
|
|
|
/*************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetKernelObjectSecurity [ADVAPI32.@]
|
1999-07-10 10:17:27 +00:00
|
|
|
*/
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
BOOL WINAPI SetKernelObjectSecurity (
|
|
|
|
IN HANDLE Handle,
|
|
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
|
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor )
|
1999-07-10 10:17:27 +00:00
|
|
|
{
|
- implementation of RtlReg* (read access), RtlEvent*, RtlSemaphore*,
NtAllocateLocallyUniqueId
- implementation or stubs for NtAccessCheck, NtSetSecurityObject,
RtlClearBits, RtlEqualPrefixSid, RtlFindClearBits,
RtlFormatCurrentUserKeyPath, RtlGetControlSecurityDescriptor,
RtlIdentifierAuthoritySid, RtlImpersonateSelf, RtlInitializeBitMap,
RtlInitializeGenericTable, RtlMakeSelfRelativeSD,
RtlPrefixUnicodeString, RtlSetBits, RtlUnicodeToMultiByteN,
RtlUpcaseUnicodeStringToOemString, RtlUpcaseUnicodeToOemN,
RtlValidSid, RtlxUnicodeStringToOemSize
- corrected most RtlString* functions, added documentation
- more fixes and partial implementations
2000-01-23 22:35:33 +00:00
|
|
|
CallWin32ToNt (NtSetSecurityObject (Handle, SecurityInformation, SecurityDescriptor));
|
1999-07-10 10:17:27 +00:00
|
|
|
}
|
|
|
|
|
2000-02-25 20:52:38 +00:00
|
|
|
/******************************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* AddAccessAllowedAce [ADVAPI32.@]
|
2000-02-25 20:52:38 +00:00
|
|
|
*/
|
|
|
|
BOOL WINAPI AddAccessAllowedAce(
|
|
|
|
IN OUT PACL pAcl,
|
|
|
|
IN DWORD dwAceRevision,
|
|
|
|
IN DWORD AccessMask,
|
|
|
|
IN PSID pSid)
|
|
|
|
{
|
|
|
|
return RtlAddAccessAllowedAce(pAcl, dwAceRevision, AccessMask, pSid);
|
|
|
|
}
|
2000-10-15 00:23:56 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* LookupAccountNameA [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
BOOL WINAPI
|
|
|
|
LookupAccountNameA(
|
|
|
|
IN LPCSTR system,
|
|
|
|
IN LPCSTR account,
|
|
|
|
OUT PSID sid,
|
|
|
|
OUT LPDWORD cbSid,
|
|
|
|
LPSTR ReferencedDomainName,
|
|
|
|
IN OUT LPDWORD cbReferencedDomainName,
|
|
|
|
OUT PSID_NAME_USE name_use )
|
|
|
|
{
|
|
|
|
FIXME("(%s,%s,%p,%p,%p,%p,%p), stub.\n",system,account,sid,cbSid,ReferencedDomainName,cbReferencedDomainName,name_use);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-01-31 20:44:02 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* GetAce [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
BOOL WINAPI GetAce(PACL pAcl,DWORD dwAceIndex,LPVOID *pAce )
|
|
|
|
{
|
|
|
|
CallWin32ToNt(RtlGetAce(pAcl, dwAceIndex, pAce));
|
|
|
|
}
|
2002-04-19 00:04:27 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* PrivilegeCheck [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
BOOL WINAPI PrivilegeCheck( HANDLE ClientToken, PPRIVILEGE_SET RequiredPrivileges, LPBOOL pfResult)
|
|
|
|
{
|
|
|
|
FIXME("stub %d %p %p\n", ClientToken, RequiredPrivileges, pfResult);
|
2002-05-31 23:06:46 +00:00
|
|
|
if (pfResult)
|
2002-04-19 00:04:27 +00:00
|
|
|
*pfResult=TRUE;
|
|
|
|
return TRUE;
|
|
|
|
}
|