設定指定裝置的 hotplug 組態。
若要執行這項作業,請使用下列參數呼叫 DeviceIoControl 函 式。
BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to device
IOCTL_STORAGE_SET_HOTPLUG_INFO, // dwIoControlCode
(LPVOID) lpInBuffer, // input buffer
(DWORD) nInBufferSize, // size of input buffer
NULL, // lpOutBuffer
0, // nOutBufferSize
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
備註
Refer to the Remarks section in the reference page for STORAGE_HOTPLUG_INFO for more information about hotplug devices.
此作業只會設定傳入之STORAGE_HOTPLUG_INFO結構的DeviceHotplug成員。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows XP |
| 最低支援的伺服器 | Windows Server 2003 |
| 標頭 | winioctl.h (包含 Windows.h) |