i m broadcasting a msg 2 another NT user using the API : NetMessageBufferSend ..... how do i change the sender's name ?
Printable View
i m broadcasting a msg 2 another NT user using the API : NetMessageBufferSend ..... how do i change the sender's name ?
[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
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 :(