ComputerName (PSZ) - input
The name of the
server that has the network resource.
ResourceName (PSZ) - input
The name of the
network resource.
ConnectName (PSZ) - input
A local device
name to connect to the remote resource, or the UNC name of a dynamically
shared resource, or a UNC name of any shared resource if a deviceless connection
is desired. For a discussion of a dynamically shared resource, see the description
of PathName in the RESOURCEINFO1
structure. The connect name string must include the colon delimiter
at the end of the string, except in the case of a deviceless connection,
in which case a UNC path is passed.
flType (ULONG) - input
A bit array indicating
the type of resource. All other bits are reserved and must be 0.
Resource type bit mask definitions:
NET_TYPE_DISK(0x00000010)
NET_TYPE_QUEUE(0x00000020)
NET_TYPE_SERIAL(0x00000040)
ulreturns (ULONG) - returns
A network driver
is not limited to just these errors. Network drivers will return the following
errors when they occur, but other error numbers can be returned for errors
not listed.
EXIT_SUCCESS(0)
ERROR_ACCESS_DENIED(5)
ERROR_NOT_ENOUGH_MEMORY(8)
Not enough storage
available to process this function.
ERROR_BAD_NETPATH(53)
The network path was
not found.
ERROR_BAD_DEV_TYPE(66)
This network device
type is incorrect.
ERROR_BAD_NET_NAME(67)
This network name cannot
be found.
ERROR_ALREADY_ASSIGNED(85)
ERROR_INVALID_PARAMETER(87)
The specified
parameter is invalid.
ERROR_NETWORK_NOT_FOUND(241)
The specified
network is invalid.
MSG_ERROR_LOCAL_DRIVE(2405)
The drive is in
local use.
[Back: NetworkAddConnection Return Value - ulreturns]
[Next: NetworkAddConnection - Topics]