21 TRACE(
"(%p %lu %lx %p)\n",
49 AliasObject, MemberId);
52 TRACE(
"Member SID: %S\n", MemberIdString);
62 TRACE(
"SampRegCreateKey failed with status 0x%08lx\n",
Status);
73 TRACE(
"SampRegSetValue failed with status 0x%08lx\n",
Status);
83 TRACE(
"SampRegCreateKey failed with status 0x%08lx\n",
Status);
94 TRACE(
"SampRegSetValue failed with status 0x%08lx\n",
Status);
102 if (MemberIdString !=
NULL)
121 AliasObject, MemberId);
124 TRACE(
"Member SID: %S\n", MemberIdString);
132 TRACE(
"SampRegOpenKey failed with status 0x%08lx\n",
Status);
140 TRACE(
"SampRegDeleteValue failed with status 0x%08lx\n",
Status);
149 TRACE(
"SampRegQueryKeyInfo failed with status 0x%08lx\n",
Status);
153 if (ulValueCount == 0)
161 TRACE(
"SampRegDeleteKey failed with status 0x%08lx\n",
Status);
172 TRACE(
"SampRegOpenKey failed with status 0x%08lx\n",
Status);
180 TRACE(
"SampRegDeleteValue failed with status 0x%08lx\n",
Status);
189 TRACE(
"SampRegQueryKeyInfo failed with status 0x%08lx\n",
Status);
193 if (ulValueCount == 0)
201 TRACE(
"SampRegDeleteKey failed with status 0x%08lx\n",
Status);
210 if (MemberIdString !=
NULL)
236 ERR(
"SampRegOpenKey failed with status 0x%08lx\n",
Status);
246 ERR(
"SampRegQueryKeyInfo failed with status 0x%08lx\n",
Status);
304 *MemberCount =
Count;
305 *MemberArray = Members;
318 ULONG MemberCount = 0;
322 TRACE(
"(%p)\n", AliasObject);
331 ERR(
"SampRegOpenKey failed (Status 0x%08lx)\n",
Status);
341 ERR(
"SampGetMembersInAlias failed (Status 0x%08lx)\n",
Status);
349 MemberArray[
Index].SidPointer);
355 if (MemberArray !=
NULL)
359 if (MemberArray[
Index].SidPointer !=
NULL)
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
#define NT_SUCCESS(StatCode)
BOOL WINAPI ConvertSidToStringSidW(PSID Sid, LPWSTR *StringSid)
NTSTATUS SampGetMembersInAlias(IN PSAM_DB_OBJECT AliasObject, OUT PULONG MemberCount, OUT PSAMPR_SID_INFORMATION *MemberArray)
NTSTATUS SampRemoveAllMembersFromAlias(IN PSAM_DB_OBJECT AliasObject)
NTSTATUS SampAddMemberToAlias(IN PSAM_DB_OBJECT AliasObject, IN PRPC_SID MemberId)
NTSTATUS SampOpenAliasObject(IN PSAM_DB_OBJECT DomainObject, IN ULONG AliasId, IN ACCESS_MASK DesiredAccess, OUT PSAM_DB_OBJECT *AliasObject)
NTSTATUS NTAPI SampRemoveMemberFromAlias(IN PSAM_DB_OBJECT AliasObject, IN PRPC_SID MemberId)
NTSTATUS SampOpenDbObject(IN PSAM_DB_OBJECT ParentObject, IN LPWSTR ContainerName, IN LPWSTR ObjectName, IN ULONG RelativeId, IN SAM_DB_OBJECT_TYPE ObjectType, IN ACCESS_MASK DesiredAccess, OUT PSAM_DB_OBJECT *DbObject)
NTSTATUS SampRegCloseKey(IN OUT PHANDLE KeyHandle)
NTSTATUS SampRegEnumerateValue(IN HANDLE KeyHandle, IN ULONG Index, OUT LPWSTR Name, IN OUT PULONG NameLength, OUT PULONG Type OPTIONAL, OUT PVOID Data OPTIONAL, IN OUT PULONG DataLength OPTIONAL)
NTSTATUS SampRegQueryKeyInfo(IN HANDLE KeyHandle, OUT PULONG SubKeyCount, OUT PULONG ValueCount)
NTSTATUS SampRegSetValue(HANDLE KeyHandle, LPCWSTR ValueName, ULONG Type, LPVOID Data, ULONG DataLength)
NTSTATUS SampRegDeleteKey(IN HANDLE ParentKeyHandle, IN LPCWSTR KeyName)
NTSTATUS SampRegOpenKey(IN HANDLE ParentKeyHandle, IN LPCWSTR KeyName, IN ACCESS_MASK DesiredAccess, OUT PHANDLE KeyHandle)
NTSTATUS SampRegDeleteValue(IN HANDLE KeyHandle, IN LPCWSTR ValueName)
NTSTATUS SampRegCreateKey(IN HANDLE ParentKeyHandle, IN LPCWSTR KeyName, IN ACCESS_MASK DesiredAccess, OUT PHANDLE KeyHandle)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
NTSYSAPI ULONG NTAPI RtlLengthSid(IN PSID Sid)
#define STATUS_NO_MORE_ENTRIES
#define midl_user_allocate
#define STATUS_INSUFFICIENT_RESOURCES
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess