Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NetApi32.DLL and Net Send Function
Message
De
01/09/1999 10:01:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00260111
Message ID:
00260141
Vues:
14
>>I am Looking for a way to do a NET SEND from VFP6.0 with out having a Command Window Flash on the Screen. I have found that the NetApi32.DLL has some Functions in it to do such a thing (I Think).
>>Does Anybody know how and what i need to do?
>>
>>** My COde
>>DECLARE INTEGER NetMessageBufferSend in netAPI32;
>>STRING @LPWSTR, STRING @LPWSTR, ;
>>STRING @LPWSTR , STRING @LPBYTE
>>
>>lnresult = NetMessageBufferSend('','SOMEPC',"MTPC","TEST MESSAGE")
>>
>>Thanks,
>
>Hi Bob,
>
>The declaration should be:
>DECLARE INTEGER  NetMessageBufferSend IN NetAPI32;
>  STRING @servername,	 STRING @msgname,;
>  STRING @fromname, STRING @buf, INTEGER buflen
>The first three parameters need to be UNICODE strings. The fourth does not. The fifth is the length of the message in the fourth parameter.
>
>Not being an NT user, I don't think that I can be of more help in this area, however.


Thanks George, Please forgive me for being an amature at this but, What is a UNICODE String?
I can't believe I get paid to write code..... Its like doing crossword puzzels
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform