Click to See Complete Forum and Search --> : broadcast a message
vinfun
Apr 24th, 2001, 06:12 AM
i m broadcasting a msg 2 another NT user using the API : NetMessageBufferSend ..... how do i change the sender's name ?
Vix
Apr 25th, 2001, 05:41 AM
[CODE]
Private Function Sendmessage(strTo As String, strFrom As String, strMessage As String) As Boolean
Dim bytTo() As Byte
Dim bytFrom() As Byte
Dim bytMsg() As Byte
bytTo = strTo & vbNullChar
bytFrom = strFrom & vbNullChar
bytMsg = strMessage & vbNullChar
Sendmessage = (NetMessageBufferSend(ByVal 0&, bytTo(0), ByVal 0&, bytMsg(0), UBound(bytMsg)) = NERR_Success)
End Function
vinfun
Apr 25th, 2001, 11:52 PM
like i mentioned ... the code u provided, doesn't work ....
irrespective of what i specify in the from string ..... it always gives my machine name :(
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.