CONFIGMG_Disable_DevNode
CONFIGRET CONFIGMG_Disable_DevNode(DEVNODE dnDevNode, ULONG ulFlags)
Disables a device node.
- Returns CR_SUCCESS if the function is successful. Otherwise, the return value can be CR_INVALID_FLAG, CR_NOT_DISABLEABLE, CR_INVALID_DEVNODE or CR_NOT_SYSTEM_VM.
- dnDevNode
- Handle of a device node.
- ulFlags
- Must be either CM_DISABLE_POLITE (where we ask the driver and give it a chance to stop) or CM_DISABLE_ABSOLUTE (where the driver will be stop even if it does not support stopping).
This function increments a counting semaphore. Any attempt to disable the device node increments the semaphore. The function return CR_NOT_DISABLEABLE if the devnode does not have the DN_DISABLEABLE flag set or failed the CONFIG_TEST/CONFIG_TEST_CAN_STOP message.
See Also
CONFIGMG_Enable_DevNode