Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fox Date type LPBYTE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00806517
Message ID:
00807383
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform