5.2 Connection State Values

These values indicate the state of the connection and are set in the openState parameter:

C Value

Delphi Value

Value Name

0x0001

$0001

NWCC_OPEN_LICENSED

0x0002

$0002

NWCC_OPEN_UNLICENSED

0x0004

$0004

NWCC_OPEN_PRIVATE: For the Windows platform, the requester will ignore searching the connection table and always create a new connection. Such a connection can be seen only by the application that creates the connection. Not supported on NetWare. Using this value, it is possible to create more than one NCP connection on an Windows NT machine to the same server (while still being in the same Windows NT security context). However, you will be creating attached connections that cannot be used to access, for example, a file system.

0x0008

$0008

NWCC_OPEN_PUBLIC: For the Windows platform, the requester will first look for whether the connection to the server that is being requested is already established. If it is an established connection, the requester will return the handle to the existing connection; otherwise, the requester creates a new connection.

0x0010

$0010

NWCC_OPEN_EXISTING_HANDLE

0x0100

$0100

NWCC_OPEN_NEAREST

0x0200

$0200

NWCC_OPEN_IGNORE_CACHE