Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.08 KB

File metadata and controls

50 lines (33 loc) · 1.08 KB

Home

Function name : CM_Disconnect_Machine

Group: PnP Configuration Manager - Library: cfgmgr32


Removes a connection to a remote machine established in a previous call to CM_Connect_Machine.


Code examples:

Enumerating devices installed on the local machine
Disconnecting USB Mass Storage Device programmatically

Declaration:

CMAPI CONFIGRET WINAPI
	CM_Disconnect_Machine(
	IN HMACHINE hMachine
);  

FoxPro declaration:

DECLARE INTEGER CM_Disconnect_Machine IN cfgmgr32;
	INTEGER hMachine
  

Parameters:

hMachine Caller-supplied machine handle, obtained from a previous call to CM_Connect_Machine.


Return value:

If the operation succeeds, the function returns CR_SUCCESS (0).


Comments:

See also: CM_Connect_Machine.