23 TRACE(
"SampSetAccountNameInDomain()\n");
103 TRACE(
"SampCheckAccountNameInDomain()\n");
136 TRACE(
"Checking for alias account failed (Status 0x%08lx)\n",
Status);
171 TRACE(
"Checking for group account failed (Status 0x%08lx)\n",
Status);
206 TRACE(
"Checking for user account failed (Status 0x%08lx)\n",
Status);
217 WCHAR AliasKeyName[64];
225 TRACE(
"(%p %p)\n", DomainObject, MemberSid);
228 TRACE(
"Member SID: %S\n", MemberSidString);
250 TRACE(
"Alias key name: %S\n", AliasKeyName);
295 if (MemberSidString !=
NULL)
325 if (DomainSid ==
NULL)
346 if (DomainSid !=
NULL)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define NT_SUCCESS(StatCode)
BOOL WINAPI ConvertSidToStringSidW(PSID Sid, LPWSTR *StringSid)
NTSTATUS SampGetObjectAttribute(PSAM_DB_OBJECT DbObject, LPWSTR AttributeName, PULONG AttributeType, LPVOID AttributeData, PULONG AttributeSize)
NTSTATUS SampSetAccountNameInDomain(IN PSAM_DB_OBJECT DomainObject, IN LPCWSTR lpContainerName, IN LPCWSTR lpAccountName, IN ULONG ulRelativeId)
NTSTATUS SampRemoveAccountNameFromDomain(IN PSAM_DB_OBJECT DomainObject, IN LPCWSTR lpContainerName, IN LPCWSTR lpAccountName)
NTSTATUS SampCheckAccountNameInDomain(IN PSAM_DB_OBJECT DomainObject, IN LPCWSTR lpAccountName)
NTSTATUS SampCreateAccountSid(IN PSAM_DB_OBJECT DomainObject, IN ULONG ulRelativeId, IN OUT PSID *AccountSid)
NTSTATUS SampRemoveMemberFromAllAliases(IN PSAM_DB_OBJECT DomainObject, IN PRPC_SID MemberSid)
NTSTATUS SampRegQueryValue(IN HANDLE KeyHandle, IN LPCWSTR ValueName, OUT PULONG Type OPTIONAL, OUT PVOID Data OPTIONAL, IN OUT PULONG DataLength OPTIONAL)
NTSTATUS SampRegCloseKey(IN OUT PHANDLE KeyHandle)
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 SampRegEnumerateSubKey(IN HANDLE KeyHandle, IN ULONG Index, IN ULONG Length, OUT LPWSTR Buffer)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static PSID AppendRidToSid(PSID SrcSid, ULONG Rid)
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_ALIAS_EXISTS
#define STATUS_NO_MORE_ENTRIES
#define STATUS_USER_EXISTS
#define STATUS_GROUP_EXISTS
#define STATUS_BUFFER_OVERFLOW
#define STATUS_INSUFFICIENT_RESOURCES
#define STATUS_OBJECT_NAME_NOT_FOUND
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ LPCSTR lpAccountName