Compartilhar via


EnableDeviceDriver (Compact 2013)

3/26/2014

This function manually enables a device driver.

Syntax

BOOL EnableDeviceDriver(
  HANDLE hDevice,
  DWORD dwTicks
);

Parameters

  • dwTicks
    [in] Specifies the time out interval, in milliseconds. If the interval elapses, the function returns even if the device driver is not enabled. If this value is infinite, then the time out interval never elapses.

Return Value

Nonzero indicates success. Zero indicates failure. To obtain extended error information, call GetLastError.

Remarks

If the device is already enabled, then this function will return success without doing anything.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Device Manager Functions
DisableDeviceDriver
GetDeviceDriverStatus