Go to the source code of this file.
◆ SampAddMemberToGroup()
Definition at line 39 of file group.c.
41{
43 ULONG MembersCount = 0;
47
54 goto done;
55
57 if (MembersBuffer ==
NULL)
58 {
60 goto done;
61 }
62
64 {
68 MembersBuffer,
71 goto done;
72
74 }
75
76 for (
i = 0;
i < MembersCount;
i++)
77 {
78 if (MembersBuffer[
i] == MemberId)
79 {
81 goto done;
82 }
83 }
84
85 MembersBuffer[MembersCount] = MemberId;
87
91 MembersBuffer,
93
94done:
95 if (MembersBuffer !=
NULL)
97
99}
#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)
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_MEMBER_IN_GROUP
#define midl_user_allocate
#define STATUS_INSUFFICIENT_RESOURCES
#define STATUS_OBJECT_NAME_NOT_FOUND
Referenced by SamrAddMemberToGroup().
◆ SampOpenGroupObject()
Definition at line 14 of file group.c.
18{
20
21 TRACE(
"(%p %lu %lx %p)\n",
23
24
26
27
30 szRid,
31 GroupId,
34 GroupObject);
35}
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)
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Referenced by SampRemoveUserFromAllGroups().
◆ SampRemoveMemberFromGroup()
Definition at line 103 of file group.c.
105{
107 ULONG MembersCount = 0;
111
117
120
122 if (MembersBuffer ==
NULL)
123 {
125 goto done;
126 }
127
131 MembersBuffer,
134 goto done;
135
137
139 for (
i = 0;
i < MembersCount;
i++)
140 {
141 if (MembersBuffer[
i] == MemberId)
142 {
145
146 if (MembersCount -
i - 1 > 0)
147 {
149 &MembersBuffer[
i + 1],
150 (MembersCount -
i - 1) *
sizeof(
ULONG));
151 }
152
153 break;
154 }
155 }
156
158 goto done;
159
163 MembersBuffer,
165
166done:
167 if (MembersBuffer !=
NULL)
169
171}
#define STATUS_MEMBER_NOT_IN_GROUP
Referenced by SampRemoveUserFromAllGroups(), and SamrRemoveMemberFromGroup().