>Hello George, thanks, will this do the trick ?
>
>
>Declare integer ;
>NetMessageBufferSend ;
>in netapi32.dll ;
>string servername,;
>string msgname,;
>string fromname,;
>string @buf,;
>integer buflen
>
>
>
>regards
>
Pete,
It should, but all of the strings should be passed by reference. One correction however, LPBYTE is a pointer to a BYTE array, so it can be one character or more (I neglected to mention that). That's why the buflen parameter. This value will be one greater than the length of the message you're trying to send, or the length if you explictly add a terminating null character (CHR(0)).
George
Ubi caritas et amor, deus ibi est