str/buffer = DeviceIoControl(Device, IoControlCode , InBuffer , OutBuffer , Overlapped )
Sends a control code to a device or file system driver
CommentsAccepts keyword args
Return ValueIf a preallocated output buffer is passed in, the returned object may be the original buffer, or a view of the buffer with only the actual size of the retrieved data.
If OutBuffer is a buffer size and the operation is synchronous (ie no Overlapped is passed in), returns a plain string containing the retrieved data. For an async operation, a new writeable buffer is returned.