Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox Date type LPBYTE
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00806517
Message ID:
00807383
Views:
15
Hello All, I finally got it sussed
*/ Basic wrapper for Net Send type functionality API call

LPARAMETERS pcUser, pcMessage

DECLARE INTEGER NetMessageBufferSend IN netapi32 ;
  STRING servername, STRING UserName, STRING fromname, ;
  STRING MessageBuf, INTEGER buflen
  
lcUser    = strconv( StrConv(pcUser,1), 5) + Chr(0)
lcMsg     = strconv( StrConv(pcMessage,1), 5) + Chr(0)
lcFrom    = strconv( Strconv(Sys(0),1), 5) + Chr(0)
lnLen     = len(lcMsg)

res = NetMessageBufferSend( 0, lcUser, lcFrom, lcMsg, lnLen )
RETURN res
thanks a lot for your help

Pete Kane
Regards,
Peter J. Kane



Pete
Previous
Reply
Map
View

Click here to load this message in the networking platform