# DevicesIoCtl user defined functions Reference

Below is a complete list of the user defined functions available in AutoIt. Click on a user defined function name for a detailed description.

When using them you need to add a #include <WinAPIFiles.au3>.

User Defined Function | Description
--- | ---
_WinAPI_CreateObjectID | Creates or retrieves the object identifier for the specified file or directory
_WinAPI_DeleteObjectID | Removes the object identifier from a specified file or directory
_WinAPI_DeviceIoControl | Sends a control code directly to a specified device driver
_WinAPI_EjectMedia | Ejects media from a device
_WinAPI_GetCDType | Retrieves a type of the media which is loaded into a specified CD-ROM device
_WinAPI_GetDriveBusType | Retrieves a bus type for the specified drive
_WinAPI_GetDriveGeometryEx | Retrieves extended information about the disk's geometry
_WinAPI_GetDriveNumber | Retrieves a device type, device number, and partition number for the specified drive
_WinAPI_GetObjectID | Retrieves the object identifier for the specified file or directory
_WinAPI_GetOverlappedResult | Retrieves the results of an overlapped operation
_WinAPI_IOCTL | Create a unique system I/O control code (IOCTL)
_WinAPI_IsDoorOpen | Checks if a CD (DVD) tray is open
_WinAPI_IsWritable | Determines whether a disk is writable
_WinAPI_LoadMedia | Loads media into a device