NWAFPDirectoryEntry

Tests a directory entry to see if it is an AFP file

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:AFP

Syntax

  #include <nwafp.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE NWAPI NWAFPDirectoryEntry  ( 
     NWCONN_HANDLE        conn,  
     NWDIR_HANDLE         dirHandle,  
     constr nstr8 N_FAR  *path);
  

Delphi Syntax

  uses calwin32 
   
  Function NWAFPDirectoryEntry 
    (conn : NWCONN_HANDLE; 
     dirHandle : NWDIR_HANDLE; 
     const path : pnstr8 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
dirHandle
(IN) Specifies the directory handle for the path name.
path
(IN) Points to the path relative to dirHandle.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

DOS File

0x0001

Macintosh File

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x8983

IO_ERROR_NETWORK_DISK

0x8988

INVALID_FILE_HANDLE

0x8993

NO_READ_PRIVILEGES

0x8996

SERVER_OUT_OF_MEMORY

0x899C

INVALID_PATH

0x89A2

READ_FILE_WITH_RECORD_LOCKED

Remarks

The dirHandle and path parameters must be given in the DOS name space format.

NCP Calls

See Also

NWAFPGetEntryIDFromPathName, NWGetVolumeInfoWithHandle (Volume Management), NWParsePath (Multiple and Inter-File Services), NWGetVolumeNumber (Volume Management), NWAFPGetFileInformation, NWGetOwningNameSpace (Multiple and Inter-File Services)