The SRV_REQUEST_RESUME_KEY packet is returned to the client by the server in an SMB2 IOCTL Response for the FSCTL_SRV_REQUEST_RESUME_KEY request. This SRV_REQUEST_RESUME_KEY is placed in the Buffer field in the SMB2 IOCTL Response, and the OutputOffset and OutputCount fields MUST be updated to describe the buffer as specified in section 2.2.32. This packet consists of the following:
コード例 #1
0
        public Smb2IOCtlResponsePacket CreateResumeKeyIOCtlResponseAsync(
            Smb2Endpoint endpoint,
            ulong asyncId,
            ulong messageId,
            SRV_REQUEST_RESUME_KEY_Response resumeKey
            )
        {
            Smb2IOCtlResponsePacket packet = CreateResumeKeyIOCtlResponse(endpoint, messageId, resumeKey);

            ModifyAsyncHeader(packet, endpoint, asyncId);

            packet.Sign();

            return packet;
        }
コード例 #2
0
        public Smb2IOCtlResponsePacket CreateResumeKeyIOCtlResponse(
            Smb2Endpoint endpoint,
            ulong messageId,
            SRV_REQUEST_RESUME_KEY_Response resumeKey
            )
        {
            byte[] output = TypeMarshal.ToBytes(resumeKey);

            return CreateIOCtlResponse(endpoint, messageId, null, output);
        }