IOCTL_STORAGE_GET_HOTPLUG_INFO - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

// CTL_CODE(0x002d, 0x305, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_STORAGE_GET_HOTPLUG_INFO 0x002D0C14
View the official Windows Driver Kit DDI reference
// winioctl.h

// CTL_CODE(0x002d, 0x305, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_STORAGE_GET_HOTPLUG_INFO 0x002D0C14
View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddstor-ioctl_storage_get_hotplug_info)

IOCTL_STORAGE_GET_HOTPLUG_INFO IOCTL

Description

Retrieves the hotplug configuration of the specified device.

Parameters

Major code

Input buffer

None.

Input buffer length

None.

Output buffer

The driver returns the hotplug configuration data in a STORAGE_HOTPLUG_INFO structure in the buffer at Irp->AssociatedIrp.SystemBuffer.

Output buffer length

Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location indicates the size, in bytes, of the parameter buffer, which must be greater than or equal to sizeof(STORAGE_HOTPLUG_INFO).

Input/output buffer

Input/output buffer length

Status block

The Information field is set to sizeof(STORAGE_HOTPLUG_INFO). The Status field is set to STATUS_SUCCESS, or possibly to STATUS_BUFFER_TOO_SMALL if the output buffer is too small.

See also

IOCTL_STORAGE_SET_HOTPLUG_INFO

STORAGE_HOTPLUG_INFO


Win32 API reference (ni-winioctl-ioctl_storage_get_hotplug_info)

IOCTL_STORAGE_GET_HOTPLUG_INFO IOCTL

Description

Retrieves the hotplug configuration of the specified device.

To perform this operation, call the DeviceIoControl function with the following parameters.

BOOL DeviceIoControl(
  (HANDLE) hDevice,                 // handle to device
  IOCTL_STORAGE_GET_HOTPLUG_INFO,   // dwIoControlCode
  NULL,                             // lpInBuffer
  0,                                // nInBufferSize
  (LPVOID) lpOutBuffer,             // output buffer
  (DWORD) nOutBufferSize,           // size of output buffer
  (LPDWORD) lpBytesReturned,        // number of bytes returned
  (LPOVERLAPPED) lpOverlapped       // OVERLAPPED structure
);

Parameters

Input buffer

Input buffer length

Output buffer

Output buffer length

Input/output buffer

Input/output buffer length

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.

Otherwise, Status to the appropriate error condition as a NTSTATUS code.

For more information, see NTSTATUS Values.

Remarks

Refer to the Remarks section in the reference page for STORAGE_HOTPLUG_INFO for more information about hotplug devices.

See also