|
-
Apr 24th, 2001, 06:12 AM
#1
Thread Starter
New Member
i m broadcasting a msg 2 another NT user using the API : NetMessageBufferSend ..... how do i change the sender's name ?
-
Apr 25th, 2001, 05:41 AM
#2
Lively Member
Try this
[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
Vix
VB6 SP4
NT4 SP6 & W2K Server SP1
SQL Server 7 & 2000
)-  -( )-  -( )-  -(
-
Apr 25th, 2001, 11:52 PM
#3
Thread Starter
New Member
thanx Vix, but it didn't work !!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|