Partager via


Device Manager Functions (Compact 2013)

3/26/2014

The following table shows the Device Manager functions.

Programming element

Description

ActivateDevice

This function loads a device driver. For additional functionality, use the ActivateDeviceEx function.

ActivateDeviceEx

This function loads a driver and adds its registry values to the Active key in the registry.

AdvertiseInterface

This function allows a driver to announce what interfaces it exposes.

CancelIo

This function cancels an asynchronous I/O request.

CancelIoEx

This function cancels an asynchronous I/O request.

CompleteAsyncIo

This function signals completion of asynchronous I/O and updates the final count of bytes that were completed by asynchronous I/O.

CreateAsyncIoHandle

This function is used by a device driver to change XXX_Read (Device Manager), XXX_Write (Device Manager), and XXX_IOControl (Device Manager) function calls into asynchronous I/O.

DeactivateDevice

This function unloads the driver for the specified device and deletes the active key of the device from the registry.

DeviceIoControl

This function sends an IOCTL directly to a specified device driver, causing the corresponding device to perform the specified operation.

DisableDeviceDriver

This function manually disables a device driver.

DMAdvertiseInterface

This function exposes AdvertiseInterface to device drivers that link directly with the Device Manager.

EnableDeviceDriver

This function manually enables a device driver.

EnumDeviceInterfaces

This function enumerates the interfaces exposed by a driver.

EnumDevices

This function returns a list of the active device file names currently present in the file system. Calling RequestDeviceNotifications with DEVCLASS_STREAM_GUID supersedes this function.

EnumPnpIds

This function returns a list of the Plug and Play identifiers that are currently active in the system. Calling RequestDeviceNotifications with DEVCLASS_STREAM_GUID supersedes this function.

FindFirstDevice

This function searches for device information and fills in a DEVMGR_DEVICE_INFORMATION structure with this information.

FindNextDevice

This function searches for devices using the handle returned from FindFirstDevice.

GetDeviceDriverStatus

This function obtains the current device driver status.

GetDeviceInformationByDeviceHandle

This function retrieves device information using a handle returned from ActivateDeviceEx.

GetDeviceInformationByFileHandle

This function retrieves device information using a handle returned from CreateFile.

GetOverlappedResult

This function retrieves the results of an overlapped operation on the specified file, named pipe, or communications device.

OpenDeviceKey

This function opens the device registry key specified by the ActiveKey parameter. The caller of OpenDeviceKey is responsible for closing the registry handle it returns.

ResourceCreateList

This function creates a valid set of numbers for use by drivers.

ResourceDestroyList

This function allows privileged code to destroy resources created with ResourceCreateList.

ResourceMarkAsShareable

This function allows resource ranges to be programmatically designated as shareable.

ResourceRelease

This function allows drivers to use operating system (OS) resources created by ResourceCreateList.

ResourceRequest

This function allows drivers to use the resources made available by ResourceRelease.

ResourceRequestEx

This function allows devices to request exclusive access to shareable resources.

SetIoProgress

This function is used by an asynchronous device driver to update the status and progress on an asynchronous I/O request.

See Also

Other Resources

Device Manager