21 TRACE(
"(%p %lu %lx %p)\n",
44 ULONG GroupsCount = 0;
49 TRACE(
"(%p %lu %lx)\n",
61 if (GroupsBuffer ==
NULL)
80 for (
i = 0;
i < GroupsCount;
i++)
82 if (GroupsBuffer[
i].RelativeId == GroupId)
89 GroupsBuffer[GroupsCount].
RelativeId = GroupId;
100 if (GroupsBuffer !=
NULL)
112 ULONG GroupsCount = 0;
118 UserObject, GroupId);
130 if (GroupsBuffer ==
NULL)
147 for (
i = 0;
i < GroupsCount;
i++)
149 if (GroupsBuffer[
i].RelativeId == GroupId)
154 if (GroupsCount -
i - 1 > 0)
157 &GroupsBuffer[
i + 1],
175 if (GroupsBuffer !=
NULL)
213 if (GroupsBuffer ==
NULL)
229 if (GroupsBuffer[
i].RelativeId == GroupId)
237 if (GroupsBuffer !=
NULL)
240 if (UserObject !=
NULL)
278 if (GroupsBuffer ==
NULL)
294 if (GroupsBuffer[
i].RelativeId == GroupId)
308 if (GroupsBuffer !=
NULL)
311 if (UserObject !=
NULL)
337 if (GroupsBuffer ==
NULL)
383 if (GroupsBuffer !=
NULL)
393 FIXME(
"(%p)\n", UserObject);
407 ULONG NtHistoryLength = 0;
408 ULONG LmHistoryLength = 0;
409 ULONG CurrentHistoryLength;
410 ULONG MaxHistoryLength = 3;
417 ((NtPasswordPresent !=
FALSE) &&
418 (NtPassword !=
NULL) &&
422 ((LmPasswordPresent !=
FALSE) &&
423 (LmPassword !=
NULL) &&
437 if (CurrentHistoryLength < MaxHistoryLength)
448 if (NtHistory ==
NULL)
472 if (NtPasswordPresent)
506 if (CurrentHistoryLength < MaxHistoryLength)
517 if (LmHistory ==
NULL)
541 if (LmPasswordPresent)
608 if (NtHistory !=
NULL)
611 if (LmHistory !=
NULL)
634 TRACE(
"SampGetObjectAttribute failed (Status 0x%08lx)\n",
Status);
642 LogonHours->UnitsPerWeek = 0;
643 LogonHours->LogonHours =
NULL;
648 if (RawBuffer ==
NULL)
662 LogonHours->UnitsPerWeek = *((
PUSHORT)RawBuffer);
667 if (LogonHours->LogonHours ==
NULL)
669 TRACE(
"Failed to allocate LogonHours buffer!\n");
674 memcpy(LogonHours->LogonHours,
681 if (RawBuffer !=
NULL)
697 if (LogonHours->UnitsPerWeek > 0)
704 if (RawBuffer ==
NULL)
710 *((
PUSHORT)RawBuffer) = LogonHours->UnitsPerWeek;
713 LogonHours->LogonHours,
724 if (RawBuffer !=
NULL)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define NT_SUCCESS(StatCode)
NTSTATUS SampGetObjectAttribute(PSAM_DB_OBJECT DbObject, LPWSTR AttributeName, PULONG AttributeType, LPVOID AttributeData, PULONG AttributeSize)
NTSTATUS SampSetObjectAttribute(PSAM_DB_OBJECT DbObject, LPWSTR AttributeName, ULONG AttributeType, LPVOID AttributeData, ULONG AttributeSize)
NTSTATUS SampCloseDbObject(PSAM_DB_OBJECT DbObject)
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 SampRemoveMemberFromGroup(IN PSAM_DB_OBJECT GroupObject, IN ULONG MemberId)
NTSTATUS SampOpenGroupObject(IN PSAM_DB_OBJECT DomainObject, IN ULONG GroupId, IN ACCESS_MASK DesiredAccess, OUT PSAM_DB_OBJECT *GroupObject)
NTSTATUS SampRemoveUserFromAllGroups(IN PSAM_DB_OBJECT UserObject)
NTSTATUS SampRemoveGroupMembershipFromUser(IN PSAM_DB_OBJECT UserObject, IN ULONG GroupId)
NTSTATUS SampAddGroupMembershipToUser(IN PSAM_DB_OBJECT UserObject, IN ULONG GroupId, IN ULONG Attributes)
NTSTATUS SampOpenUserObject(IN PSAM_DB_OBJECT DomainObject, IN ULONG UserId, IN ACCESS_MASK DesiredAccess, OUT PSAM_DB_OBJECT *UserObject)
NTSTATUS SampGetLogonHoursAttribute(IN PSAM_DB_OBJECT UserObject, IN OUT PSAMPR_LOGON_HOURS LogonHours)
NTSTATUS SampGetUserGroupAttributes(IN PSAM_DB_OBJECT DomainObject, IN ULONG UserId, IN ULONG GroupId, OUT PULONG GroupAttributes)
NTSTATUS SampSetUserGroupAttributes(IN PSAM_DB_OBJECT DomainObject, IN ULONG UserId, IN ULONG GroupId, IN ULONG GroupAttributes)
NTSTATUS SampSetLogonHoursAttribute(IN PSAM_DB_OBJECT UserObject, IN PSAMPR_LOGON_HOURS LogonHours)
NTSTATUS SampSetUserPassword(IN PSAM_DB_OBJECT UserObject, IN PENCRYPTED_NT_OWF_PASSWORD NtPassword, IN BOOLEAN NtPasswordPresent, IN PENCRYPTED_LM_OWF_PASSWORD LmPassword, IN BOOLEAN LmPasswordPresent)
NTSTATUS SampRemoveUserFromAllAliases(IN PSAM_DB_OBJECT UserObject)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
struct _ENCRYPTED_LM_OWF_PASSWORD ENCRYPTED_NT_OWF_PASSWORD
struct _ENCRYPTED_LM_OWF_PASSWORD ENCRYPTED_LM_OWF_PASSWORD
_In_ ULONG _In_ ULONG _In_ ULONG Length
struct _GROUP_MEMBERSHIP GROUP_MEMBERSHIP
#define STATUS_MEMBER_IN_GROUP
#define STATUS_MEMBER_NOT_IN_GROUP
ENCRYPTED_LM_OWF_PASSWORD EmptyLmHash
ENCRYPTED_NT_OWF_PASSWORD EmptyNtHash
#define midl_user_allocate
#define STATUS_BUFFER_OVERFLOW
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
#define STATUS_OBJECT_NAME_NOT_FOUND
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength