コード例 #1
0
        def sendCloseRequest(self):
            request = DeviceCloseRequestPDU(
                self.deviceID,
                self.fileID,
                self.requestID,
                0
            )

            self.sendIORequest(request)
コード例 #2
0
ファイル: device_redirection.py プロジェクト: macdaliot/pyrdp
 def parseDeviceCloseRequest(self, deviceId: int, fileId: int,
                             completionId: int, minorFunction: int,
                             stream: BytesIO) -> DeviceCloseRequestPDU:
     return DeviceCloseRequestPDU(deviceId, fileId, completionId,
                                  minorFunction)
コード例 #3
0
 def parseDeviceCloseRequest(self, deviceID: int, fileID: int, completionID: int, minorFunction: int, stream: BytesIO) -> DeviceCloseRequestPDU:
     stream.read(32)  # Padding
     return DeviceCloseRequestPDU(deviceID, fileID, completionID, minorFunction)