/// <summary> /// The SamrGetMembersInGroup method reads the members of /// a group. Opnum: 25 /// </summary> /// <param name="GroupHandle"> /// An RPC context handle, as specified in section , representing /// a group object. /// </param> /// <param name="Members"> /// A structure containing an array of RIDs, as well as /// an array of attribute values. /// </param> /// <returns> /// status of the function call, for example: 0 indicates STATUS_SUCCESS /// </returns> public int SamrGetMembersInGroup(System.IntPtr GroupHandle, out _SAMPR_GET_MEMBERS_BUFFER? Members) { return rpc.SamrGetMembersInGroup(GroupHandle, out Members); }
/// <summary> /// The SamrGetMembersInGroup method reads the members of /// a group. Opnum: 25 /// </summary> /// <param name="GroupHandle"> /// An RPC context handle, as specified in section , representing /// a group object. /// </param> /// <param name="Members"> /// A structure containing an array of RIDs, as well as /// an array of attribute values. /// </param> /// <returns> /// status of the function call, for example: 0 indicates STATUS_SUCCESS /// </returns> public int SamrGetMembersInGroup(IntPtr GroupHandle, out _SAMPR_GET_MEMBERS_BUFFER? Members) { const ushort opnum = 25; Int3264[] paramList; int retVal = 0; paramList = new Int3264[] { GroupHandle, IntPtr.Zero, IntPtr.Zero }; using (RpceInt3264Collection outParamList = RpceCall(paramList, opnum)) { Members = TypeMarshal.ToNullableStruct<_SAMPR_GET_MEMBERS_BUFFER>( Marshal.ReadIntPtr(outParamList[1])); retVal = outParamList[2].ToInt32(); } return retVal; }