CONFIGRET CONFIGMG_Disable_DevNode(DEVNODE dnDevNode, ULONG ulFlags)
Disables a device node.
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