GetDataStreamName

Returns information about data streams

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:Name Space

Syntax

   #include <nwnspace.h>  
    
   int GetDataStreamName  (  
      int     volume,   
      BYTE    dataStream,   
      char   *dataStreamName,   
      int    *numberOfDataStreams); 
   

Parameters

volume

(IN) Specifies the number of the volume for which the data stream name is desired.

dataStream

(IN) Specifies the number of the data stream whose name is desired.

dataStreamName

(OUT) Points to the ASCII name of the data stream.

numberOfDataStreams

(OUT) Points to the number of data streams supported by the server.

Return Values

This function returns TRUE if the name space that defines the specified data stream is loaded on the volume. It returns FALSE if support is not loaded. If the data stream does not exist, this function returns a value of -1.

Remarks

The name of the specified data stream is returned, as well as the total number of data streams available. The function return also indicates whether the specified data stream has support on the volume.

The dataStream parameter is a data stream number. The defined data streams follow:

0

Primary Data Stream (corresponds to DOS)

1

Macintosh Resource Fork

2

FTAM Extra Data Fork