CloseLink

Top  Previous  Next

Function CloseLink(link: integer; code: smallint): integer;

 

Changes the status of the specified link for network loaded in RAM:

 

0: Two-way street

512: One-way street, which may only be travelled in the digitised direction.

1024: One-way street, which may only be travelled in the reverse of the digitised direction.

1536: Closed street.

 

On RW NetServer Pro an additional optional argument is available: (How: integer)

 

It can take these values:

 

0: The change is immediate and temporary. If the network is currently being used by some client, the change will be aborted.

1: The change is automatically postponed to the time the network is not in use by clients. The change is temporary.

2: The change is immediate and persistent. If the network is currently being used by some client, the change will be aborted.

3: The change is automatically postponed to the time the network is not in use by clients. The change is persisted.

 

Default is 0.

 

Persistent changes (2 and 3) are stored in the file linkclose.txt.

 

See also GetOpenStatus

 

Possible error codes: -10 -30 -43

Versions: Standard Pro

ActiveX / VCL / CLX component: RW_NetMGMT