|
| |
For example, in Visual Basic, the following code would apply to calling NTpageQuickPage()
Note: Remember in Visual Basic you pass reference strings by using the ByVal parameter.
In the declarations area add the following line (put on one line):
Declare Function NTpageQuickPage Lib "NTPAPI32." (ByVal usernamet$, ByVal from$, ByVal subject$, ByVal msg$, ByVal pagedelay$, ByVal retmsg$) As Long
A Sample script to setup and send a page:
username$ = "Test User"
from$=""
subject$=""
msg$="Test message"
pagedelay$=""
retmsg$ = Space$(200)
Rem -- Put the following on one line:
ret% = NTpageQuickPage(username$, from$, subject$, msg$, pagedelay$, retmsg$)
MsgBox retmsg$
Please note, that on any output strings, that you must pre-allocate some space to the variable before passing it to the function. In the above example, the function returns a string in retmsg$. Please note the retmsg$=Space(200) statement before the call.
It is also necessary to call the NTpageUseNamedPipes() or the NTpageUseTCPIP() function before trying any other functions. This sets the communications method between the client and the server.
Please check http://www.ntpage.com to see if there are examples for your particular language.
In the all functions documented, all parameters (except retmsg$) are passed into the DLL function unless otherwise noted. Note the most functions have a retmsg string. This is always output from the function and will not be specifically marked as output from the function.
|