NWSMExecuteNCFFile

Executes a selected NCF file on a specified server

NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Server Management

Syntax

  #include <nwsm.h> 
  or 
  #include <nwcalls.h> 
   
  N_EXTERN_LIBRARY NWCCODE NWSMExecuteNCFFile (
     NWCONN_HANDLE        connHandle,  
     const nstr8 N_FAR   *NCFFileName); 
  

Delphi Syntax

  uses calwin32 
   
  Function NWSMExecuteNCFFile 
    (connHandle : NWCONN_HANDLE; 
     NCFFileName : pnstr8 
  ) : NWCCODE; 
  

Parameters

connHandle
(IN) Specifies the server connection handle which is being managed.
NCFFileName
(IN) Points to the NULL-terminated name of the file to execute.

Return Values

These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.

0x0000

SUCCESS

0x009E

No Path and Name field supplied

0x0207

Unable to execute NCF file

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x8993

INVALID_FILENAME

0x89FB

ERR_NCP_NOT_SUPPORTED

Remarks

You must be logged into connHandle, be permanently authenticated, and have console operator rights at the minimum to call NWSMExecuteNCFFile.

fileName may include a volume and path in the following format:

  {VOLUME NAME:}{PATH\...|file name}
  

NCP Calls