[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
_FNREQ()
General purpose packet request function for Netware APIs
------------------------------------------------------------------------------
Syntax
_fnReq( nService, cRequest, @cReply ) -> nRetVal
Arguments
<nService> - the Netware API service number, in decimal (not hex!)
<cRequest> - the request packet, without length word
<cReply> - the reply packet, without length word
(MUST BE PASSED BY REFERENCE!)
Most request and reply packets must have a length word prepended
to the packet. FN_REQ() supplies these length words! Do not
put your own length word on the front of either packet or the
call will fail miserably.
Returns
<cReply> will be filled in with the reply packet if the call
succeeds. The length word (the first two bytes of the string)
will be removed.
<nRetVal> will be the value of register AH, which in most cases
holds a return code that you can use to check whether or not your
call succeeded.
This function calls interrupt 21 using the Nanforum Toolkit's
ft_int86(). If the call to ft_int86() fails, fn_error() is
set with the EINT86 error code. If the ft_int86() succeeds,
fn_error() is set to the value of register AL, which is often
a completion code for Netware APIs.
Description
Examples
Source: N:\SRC\MISC\REQUEST.PRG
Author: API Group
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson