NWSendNCPExtensionRequest
Sends a request to the specified NCP extension
#include <nlm\nwncpx.h>
int NWSendNCPExtensionRequest (
LONG NCPExtensionID,
const void *requestData,
LONG requestDataLen,
void *replyData,
LONG *replyDataLen);
The following table lists return values and descriptions.
NWSendNCPExtensionRequest sends the number of bytes specified by the requestDataLen parameter to the server.
If the requestData or requestDataLen parameter is set to NULL or zero respectively, no request data is sent.
NWSendNCPExtensionFraggedRequest copies the number of bytes from the server (indicated in the totalMessageSize field of the NCPExtensionMessageFrag structure), places them into memory locations (specified in the fragList field of the NCPExtensionMessageFrag structure), and sets a value to reflect the actual number of bytes transferred (indicated by the totalMessageSize field of the NCPExtensionMessageFrag structure).
NWSendNCPExtensionRequest copies the number of bytes from the server (specified in the replyDataLen parameter), places them into memory (specified in the replyData parameter), and sets a value to reflect the actual number of bytes transferred (specified by the replyDataLen parameter.
If the replyData or replyDataLen parameter is set to NULL or zero respectively, no reply data is returned.
NOTE:The information in the replyData parameter is valid only if NWSendNCPExtensionRequest returns SUCCESSFUL.
The request and reply buffers of the client must be reproduced on the server, so the maximum size of the buffers depends upon the memory available on the server that registers the NCP Extension. When NWSendNCPExtension is called, it attempts to allocate server memory for two message buffers. If it cannot allocate enough space, ERR_NO_ALLOC_SPACE will be returned. However, the request should be retried several times since server memory use is dynamic.