Group: PnP Configuration Manager - Library: cfgmgr32
Enumerating devices installed on the local machine
Disconnecting USB Mass Storage Device programmatically
CMAPI CONFIGRET WINAPI
CM_Disconnect_Machine(
IN HMACHINE hMachine
); DECLARE INTEGER CM_Disconnect_Machine IN cfgmgr32;
INTEGER hMachine
hMachine Caller-supplied machine handle, obtained from a previous call to CM_Connect_Machine.
If the operation succeeds, the function returns CR_SUCCESS (0).
See also: CM_Connect_Machine.
Home