NWNCPExtensionRequest

Sends and receives small data from an NCP extension handler

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

Syntax

  #include <nwncpext.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE N_API NWNCPExtensionRequest ( 
     NWCONN_HANDLE      conn,  
     nuint32            NCPExtensionID,  
     const void N_FAR  *requestData,  
     nuint16            requestDataLen,  
     void N_FAR        *replyData,  
     pnuint16           replyDataLen);
  

Delphi Syntax

  uses calwin32 
   
  Function NWNCPExtensionRequest 
    (conn : NWCONN_HANDLE; 
     NCPExtensionID : nuint32; 
     const requestData : nptr; 
     requestDataLen : nuint16; 
     replyData : nptr; 
     replyDataLen : pnuint16 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
NCPExtensionID
(IN) Specifies the ID of the NCP extension handler to use for the request.
requestData
(IN) Points to a buffer containing request data.
requestDataLen
(IN) Specifies the length of request data.
replyData
(OUT) Points to a buffer to receive reply data (can be the same buffer as request data; optional if no reply data is expected).
replyDataLen
(IN/OUT) Points to amount of data expected and how much data was returned (optional if no reply data is expected).

Remarks

NWNCPExtensionRequest will take any size data buffer and send it to the server. Requests larger than 500 bytes will be processed by calling NWFragNCPExtensionRequest which breaks up the data and sends it in multiple packets.

NCP Calls

See Also

NWGetNCPExtensionInfo, NWFragNCPExtensionRequest, NWScanNCPExtensions, NWGetNCPExtensionInfoByName, NWGetNCPExtensionsList, NWGetNumberNCPExtensions