Windows ioctl.h


















The parallel port bus driver queues this request on a work queue for the parallel device. This request is referred to as "prefix resolution. Modifies the time-out value used by the kernel-mode still image driver for SCSI buses when it accesses a device. A legacy class driver can issue this request to the port driver to obtain the address of its device. This request is not relevant to storage class drivers that support Plug and Play because the port driver supplies the address information on behalf of the class driver.

Sends a special control function to an HBA-specific miniport driver. Results vary, depending on the particular miniport driver to which this request is forwarded.

Sends a vendor-defined request to a USB device, using the control pipe, and optionally sends or receives additional data. The line control parameters include the number of stop bits, the number of data bits, and the parity. The statistics include the number of characters transmitted, the number of characters received, and useful error statistics. The driver continuously increments performance values.

The immediate character request completes immediately after any other write that might be in progress. Only one immediate character request can be pending at a time. Serial's basic operating mode reads and writes one byte at a time, and does not use handshake flow control or time-outs. The basic operation mode is suitable for use by a driver that uses a subset of the UART interface.

Examples of such drivers include a mouse driver or a graphics pad driver for older hardware that use a UART. Enables or disables the placement of line status and modem status values into the regular data stream that an application acquires through theReadFilefunction. Serial verifies the specified baud rate.

Serial verifies the specified special characters. Serial does not verify the specified FIFO control information. Serial verifies the specified handshake flow control information. The line control register controls the data size, the number of stop bits, and the parity.

Parameter checking is not done. User-mode applications use this IOCTL to perform basic operations on a Secure Digital SD card, such as setting the password on the card, resetting the card, or locking and unlocking the card. Returns the properties of a storage device or adapter. The request indicates the kind of information to retrieve, such as the inquiry data for a device or the capabilities and limitations of an adapter.

Retrieves the device type, device number, and, for a partitionable device, the partition number of a device. Enables or disables media change notification. Enables or disables the mechanism that ejects media, for those devices possessing that locking capability. The generic storage class driver classpnp. User-mode applications, services, and kernel-mode drivers can use this IOCTL to control persistent reservations.

Polls for a prediction of device failure. Releases a device previously reserved for the exclusive use of the caller on a bus that supports multiple initiators and the concept of reserving a device, such as a SCSI bus. Claims a device for the exclusive use of the caller on a bus that supports multiple initiators and the concept of reserving a device, such as a SCSI bus.

Resetting the bus clears all device reservations and transfer speed settings, which must then be renegotiated, making it a time-consuming operation that should be used very rarely. The caller requires only read access to issue a bus reset. If possible, resets a non-SCSI storage device without affecting other devices on the bus.

Device reset for SCSI devices is not supported. Causes the device to skip to the given target address when the device reaches a certain trigger address during read-ahead caching.

Creates the specified number of fixed, select, or initiator partition s of the given size on the media. Returns information about the tape drive's capabilities, such as its default block size, maximum and minimum block sizes, maximum partition count, whether the drive has EEC, compression, data padding, and report-setmark capabilities, that is, which configurable features the drive supports, including the EOT warning zone size. Returns information about the media's total and remaining capacity, its block size, the number of partitions, and whether it is write-protected.

Returns the current absolute, logical, or pseudological partition and offset position on the tape. Loads or unloads the tape, resets tape tension, locks or unlocks the ejection mechanism, or formats the tape. Adjusts a tape drive's configurable parameters. The miniclass driver can ignore parameters that its device does not support. The calling application is responsible for determining whether a device supports a particular feature before attempting to set it. Moves the current position on the tape to the specified partition and offset, according to the given method.

Specifies the final status of the send request. The transport sets this member before it completes the IRP, possibly to one of the following:. Makes the cursor invisible by disabling the cursor's visibility attribute.

Miniport drivers for VGA-compatible adapters are required to support this modal request; optional for other miniport drivers. Makes the pointer invisible by disabling the pointer attributes. Support for this modal request is optional. Makes the cursor visible by enabling the cursor's visibility attribute. It is handled entirely by the system-supplied video port driver. Support for this nonmodal request is optional. Returns a block of xspecific executable code to be used by a high-resolution SVGA display driver for bank switching.

Determines whether a child device is currently enabled. Although miniport driver support for this modal request is optional, it is highly recommended. Otherwise, Windows and later must call the BIOS to perform the operation, which is very inefficient and can adversely affect system robustness. If the BIOS cannot handle this request, then Windows or later considers the child device to be active. Loads a user-defined font on the adapter. Maps the video hardwareframe bufferand video RAM into the virtual address space of the requester.

Returns information about each video mode supported by the adapter. Miniport drivers are required to support this nonmodal request. Returns the color-capabilities information found in the VDDP description file for the adapter. However, if a miniport driver supports this request, it cannot return a subset of the color-capabilities information.

Returns information about the current adapter mode. Miniport drivers are required to support this modal request. Returns the size, position, and visibility of the cursor.

Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy. The DeviceIoControl function provides a device input and output control IOCTL interface through which an application can communicate directly with a device driver.

The DeviceIoControl function is a general-purpose interface that can send control codes to a variety of devices. Each control code represents an operation for the driver to perform. For example, a control code can ask a device driver to return information about the corresponding device, or direct the driver to carry out an action on the device, such as formatting a disk.

Any additional feedback? In this article. For more information, see the Remarks section. Support for this control code started with Windows This operation is used during defragmentation. Use this operation to unlock all opportunistic locks on the file but keep the file open.

Use this operation to indicate that the file should receive a level 2 opportunistic lock. Used for UDF file systems. In a sparse file, large ranges of zeros may not require disk allocation.



0コメント

  • 1000 / 1000