次の方法で共有


GetDeviceDriverStatus (Compact 2013)

3/26/2014

This function obtains the current device driver status.

Syntax

BOOL GetDeviceDriverStatus(
  HANDLE hDevice,
  PDWORD dwResult
);

Parameters

  • dwResult
    [out] If the function returns successfully, pointer to a DWORD with the device driver status. Nonzero indicates that the driver is enabled. Zero indicates that the driver is disabled.

Return Value

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

Remarks

This function does not change the current device driver status.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Device Manager Functions
EnableDeviceDriver
DisableDeviceDriver