Results 1 to 3 of 3

Thread: broadcast a message

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    3

    Exclamation

    i m broadcasting a msg 2 another NT user using the API : NetMessageBufferSend ..... how do i change the sender's name ?

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Le Havre
    Posts
    66

    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
    )--( )--( )--(

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    3

    Thumbs down 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
  •  



Click Here to Expand Forum to Full Width