次の方法で共有


BootDriverIoCtl Function (Compact 2013)

3/26/2014

Depending on its capabilities, each boot driver has a set of IOCTL codes to which it can respond. The boot loader accesses these capabilities by passing the handle of the driver and an IOCTL code to the BootDriverIoCtl function. BootDriverIoCtl then calls the driver’s hardware-specific IOCTL function by looking up its address in the driver’s BootDriverVTable_t structure.

The syntax is:

bool_t BootDriverIoCtl ( 
      handle_t hDriver,
      enum_t code,
      void *pBuffer,
      size_t size
);

BootDriverIoCtl Function Input Parameters

Parameter

Type

Description

hDriver

handle_t

A handle to the driver.

code

enum_t

The IOCTL code for the operation.

pBuffer

void *

Parameters that are associated with the IOCTL code.

size

size_t

The size of the parameters that are associated with the IOCTL code.

This function returns TRUE if the operation was successful; otherwise, it returns FALSE.

See Also

Concepts

Boot Driver Code