IRP 的 I/O 堆栈位置中的Parameters.DeviceIoControl.OutputBufferLength指示缓冲区的大小(以字节为单位),该大小必须至少为 (MEDIA_SERIAL_NUMBER_DATA) 。 状态块 “信息”字段设置为返回的数据的大小(以字节为单位)。 “状态”字段可以设置为STATUS_SUCCESS,也可以设置为STATUS_INVALID_BUFFER_SIZ...
BOOLDeviceIoControl( (HANDLE) hDevice,// handle to deviceIOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER,// dwIoControlCodeNULL,// lpInBuffer0,// nInBufferSize(LPVOID) lpOutBuffer,// output buffer(DWORD) nOutBufferSize,// size of output buffer(LPDWORD) lpBytesReturned,// number of bytes returned(LPOVE...
检索USB 设备的序列号。若要执行此操作,请使用以下参数调用 DeviceIoControl 函数。C++ 复制 BOOL DeviceIoControl( (HANDLE) hDevice, // handle to device IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER, // dwIoControlCode NULL, // lpInBuffer 0, // nInBufferSize (LPVOID) lpOutBuffer, // output buffer (...
BOOLDeviceIoControl( (HANDLE) hDevice,// handle to deviceIOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER,// dwIoControlCodeNULL,// lpInBuffer0,// nInBufferSize(LPVOID) lpOutBuffer,// output buffer(DWORD) nOutBufferSize,// size of output buffer(LPDWORD) lpBytesReturned,// number of bytes returned(L...
检索USB 设备的序列号。若要执行此操作,请使用以下参数调用 DeviceIoControl 函数。C++ 复制 BOOL DeviceIoControl( (HANDLE) hDevice, // handle to device IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER, // dwIoControlCode NULL, // lpInBuffer 0, // nInBufferSize (LPVOID) lpOutBuffer, // output buffer ...
IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER IOCTL (winioctl.h) 项目 2023/08/27 反馈 本文内容 要求 另请参阅 检索USB 设备的序列号。 若要执行此操作,请使用以下参数调用 DeviceIoControl 函数。 C++ 复制 BOOL DeviceIoControl( (HANDLE) hDevice, // handle to device IOCTL_STORAGE_GET_MEDIA_SERIAL...
BOOLDeviceIoControl( (HANDLE) hDevice,// handle to deviceIOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER,// dwIoControlCodeNULL,// lpInBuffer0,// nInBufferSize(LPVOID) lpOutBuffer,// output buffer(DWORD) nOutBufferSize,// size of output buffer(LPDWORD) lpBytesReturned,// number of bytes returned(LPOVE...
IOCTL_STORAGE_EJECT_MEDIA IOCTL IOCTL_STORAGE_EJECTION_CONTROL IOCTL IOCTL_STORAGE_GET_DEVICE_NUMBER IOCTL IOCTL_STORAGE_GET_HOTPLUG_INFO IOCTL IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER IOCTL IOCTL_STORAGE_GET_MEDIA_TYPES IOCTL IOCTL_STORAGE_GET_MEDIA_TYPES_EX IOCTL IOCTL_STORAGE_LOAD_MEDIA IOCTL IO...
(HANDLE) hDevice,IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER,,// lpInBuffer0,// nInBufferSize(LPVOID) lpOutBuffer,// output buffer(DWORD) nOutBufferSize,// size of output buffer(LPDWORD) lpBytesReturned,// number of bytes returned(LPOVERLAPPED) lpOverlapped// OVERLAPPED structure);...
IOCTL_STORAGE_GET_DEVICE_NUMBER IOCTL IOCTL_STORAGE_GET_DEVICE_NUMBER_EX IOCTL IOCTL_STORAGE_GET_HOTPLUG_INFO IOCTL IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES IOCTL IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER IOCTL IOCTL_STORAGE_GET_MEDIA_TYPES IOCTL IOCTL_STORAGE_GET_MEDIA_TYPES_...