Breaks a network connection.
DWORD NPCancelConnection(
LPTSTR lpName,
BOOL fForce
DWORD dwFlags
);
CONNECT_REFCOUNT | The connection has a reference count on the session and, if set, the caller is requesting that the reference count be decremented. Otherwise the caller is requesting that the session be removed entirely for all users. |
WN_NOT_CONNECTED | lpName not a redirected device, or not currently connected to lpName. |
WN_OPEN_FILES | There are open files, and fForce was FALSE. |