Microsoft.Protocols.TestSuites.MS_OXORULE.MS_OXORULEAdapter.RopGetRulesTable C# (CSharp) Method

RopGetRulesTable() public method

This ROP gets the rules table of a folder.
public RopGetRulesTable ( uint objHandle, TableFlags tableFlags, RopGetRulesTableResponse &getRulesTableResponse ) : uint
objHandle uint This index refers to the location in the Server object handle table used to find the handle for this operation.
tableFlags TableFlags These Flags control the Type of table. The possible values are specified in [MS-OXORULE].
getRulesTableResponse Microsoft.Protocols.TestSuites.Common.RopGetRulesTableResponse Structure of RopGetRulesTableResponse.
return uint
        public uint RopGetRulesTable(uint objHandle, TableFlags tableFlags, out RopGetRulesTableResponse getRulesTableResponse)
        {
            this.rawData = null;
            this.response = null;
            this.responseSOHs = null;

            RopGetRulesTableRequest getRulesTableRequest;

            getRulesTableRequest.RopId = 0x3F;
            getRulesTableRequest.LogonId = 0x00;
            getRulesTableRequest.InputHandleIndex = 0x00;
            getRulesTableRequest.OutputHandleIndex = 0x01;
            getRulesTableRequest.TableFlags = (byte)tableFlags;

            this.responseSOHs = this.DoRPCCall(getRulesTableRequest, objHandle, ref this.response, ref this.rawData);
            getRulesTableResponse = (RopGetRulesTableResponse)this.response;
            uint tableHandle = this.responseSOHs[0][getRulesTableResponse.OutputHandleIndex];

            // Verify the response of RopGetRulesTable 
            this.VerifyRopGetRulesTable(getRulesTableResponse, getRulesTableRequest);
            return tableHandle;
        }