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

RopCreateMessage() public method

This ROP creates a Message object in a mailbox.
public RopCreateMessage ( uint handle, ulong folderId, byte isFAIMessage, RopCreateMessageResponse &createMessageResponse ) : uint
handle uint Handle to operate.
folderId ulong This value identifies the parent folder.
isFAIMessage byte 8-bit Boolean. This value specifies whether the message is a folder associated information (FAI) message.
createMessageResponse Microsoft.Protocols.TestSuites.Common.RopCreateMessageResponse Response of this ROP.
return uint
        public uint RopCreateMessage(uint handle, ulong folderId, byte isFAIMessage, out RopCreateMessageResponse createMessageResponse)
        {
            this.rawData = null;
            this.response = null;
            this.responseSOHs = null;

            RopCreateMessageRequest req;
            req.RopId = 0x06;
            req.LogonId = 0;
            req.InputHandleIndex = 0;
            req.OutputHandleIndex = 1;
            req.CodePageId = 0x0fff;
            req.FolderId = folderId;
            req.AssociatedFlag = isFAIMessage;

            this.responseSOHs = this.DoRPCCall(req, handle, ref this.response, ref this.rawData);
            createMessageResponse = (RopCreateMessageResponse)this.response;

            return this.responseSOHs[0][createMessageResponse.OutputHandleIndex];
        }