DisableDeviceDriver (Compact 2013)

3/26/2014

This function manually disables a device driver.

Syntax

BOOL DisableDeviceDriver(
  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 disabled, then this function will return success without doing anything.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Device Manager Functions
EnableDeviceDriver
GetDeviceDriverStatus