NWNCPSend

Sends an NCP request to a currently connected server

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM
Service:NCP Extension

Syntax

  #include <nlm\nwconn.h>  
   
  int NWNCPSend  (  
     BYTE         functionCode,   
     const void  *sendPacket,   
     WORD         sendLen,   
     void        *replyBuf,   
     WORD           replyLen);
  

Parameters

functionCode
(IN) Specifies the NCP function code.
sendPacket
(IN) Points to the input buffer for the NCP.
sendLen
(IN) Specifies the length of the sendPacket parameter.
replyBuf
(IN/OUT) Points to the reply buffer for the NCP.
replyLen
(IN/OUT) Specifies the length of the replyBuf parameter.

Return Values

ESUCCESS or NetWare errors.

Remarks

An NCP request consists of function code and a request buffer that contains input information needed to process the request.