Device Manager Functions (Windows Embedded CE 6.0)

1/6/2010

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.

DeactivateDevice

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

DeregisterDevice

This function deregisters a registered device. DeactivateDevice supersedes this function.

DeviceIoControl

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

DMAdvertiseInterface

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

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.

EnumDeviceInterfaces

This function enumerates the interfaces exposed by a driver.

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.

GetDeviceInformationByDeviceHandle

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

GetDeviceInformationByFileHandle

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

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.

RegisterDevice

This function registers a new device. ActivateDeviceEx supersedes this function.

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.

See Also

Reference

Device Manager Reference