Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
*******************************************************
* Procedure: NetSend
* Author: William GC Steinford
* Date: Nov 7, 2002
* Purpose: Simple VFP Wrapper for command line
* NET SEND username message
*******************************************************
PROCEDURE NetSend
LPARAMETERS pcUser, pcMessage
DECLARE INTEGER NetMessageBufferSend IN netapi32 ;
STRING @ servername, STRING @ UserName, STRING @ fromname, ;
STRING @ MessageBuf, INTEGER buflen
LOCAL lnLen, lcFrom, lcMsgName, lcUser, lcMsg
* Convert all strings to UNICODE
lcUser = strconv( StrConv(pcUser,1), 5)
lcMsg = strconv( StrConv(pcMessage,1), 5)
lcFrom = strconv( Strconv(Sys(0),1), 5)
lnLen = len(pcMessage)*2+2
* Revised March 26, 2004.
* For some reason, specifying the From name sometimes
* causes the send to not go through.
* res=NetMessageBufferSend( 0, lcUser, lcFrom, lcMsg, lnLen )
res=NetMessageBufferSend( 0, lcUser, 0, lcMsg, lnLen )
RETURN res
RUN net send UserName Message Text