..msdn Add comment W32 Constants Translate this page
Creates a connection to a remote machine|
CMAPI CONFIGRET WINAPI
IN PCTSTR UNCServerName,
OUT PHMACHINE phMachine
DECLARE INTEGER CM_Connect_Machine IN cfgmgr32;
Caller-supplied pointer to a text string representing the UNC name, including the \\ prefix, of the system for which a connection will be made. If the pointer is NULL, the local system is used.
Address of a location to receive a machine handle.
|If the operation succeeds, the function returns CR_SUCCESS (0).|
LOCAL cMachine, hMachine
cMachine = "\\"+SUBSTR(SYS(0), 1, AT(" ",SYS(0))-1)
= CM_Connect_Machine(cMachine, @hMachine)
. . .
|Callers of CM_Connect_Machine must call CM_Disconnect_Machine to deallocate the machine handle, after it is no longer needed.|
Use machine handles obtained with this function only with the PnP configuration manager functions.
|Word Index links for the CM_Connect_Machine :|
|Translate this page:|
Visited in last 7 days: 34
|Created: ||2008-12-19 12:09:20|
|Modified: ||2008-12-19 12:12:45|