[Return code] ERROR_INVALID_PARAMETER [Description] 
This error is a result of one of the following conditions: The lpRemoteName member is NULL. In addition, lpAccessName is not NULL, but lpBufferSize is either NULL or points to zero. The dwType member is neither RESOURCETYPE_DISK nor RESOURCETYPE_PRINT. In addition, either CONNECT_REDIRECT is set in dwFlags and lpLocalName is NULL, or the connection is to a network that requires the redirecting of a local device.