Results 1 to 4 of 4

Thread: Net Send in Vista

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Saudi Arabia, Gulf side, Qatif
    Posts
    142

    Net Send in Vista

    I used to use following API in Windows XP to send a net message to workstation, however we now change to Windows Vista and it is not functioning any more.
    As I understood that net send is no longer available in Vista.
    Appreciate if you can help with any clue to alternate the code
    Many thanks


    Code:
    Declare Function NetMessageBufferSend _
        Lib "Netapi32.dll" ( _
        ByVal sServerName$, _
        ByVal sMsgName$, _
        ByVal sFromName$, _
        ByVal sMessageText$, _
        ByVal lBufferLength&) _
        As Long
    On error goto vbforums.com

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Net Send in Vista

    Not only is Net Send gone in Vista and later versions of Windows, the Messenger Service that receives and pops up a MessageBox in Windows before Vista is gone as well.

    No alternative API call can help you.


    If you require this sort of functionality you would have to build some replacement for the Messenger Service and install it in all PCs that must pop up the messages. Then your program can use whatever mechanism you choose to send messages to your new Service.

    Net Send/Messenger Service (and the old Win9x WinPopup utility) used a specifically named Mailslot for this communication. You could use your own Mailslot, or UDP, or any other form of network IPC you choose that supports broadcast and unicast communication.


    You could probably look at my Utility: LANegram - NET SEND Replacement [VB6] and use it to do this job. Take some of the logic from Send.exe in that package to replace your API call.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Saudi Arabia, Gulf side, Qatif
    Posts
    142

    Re: Net Send in Vista

    Thank you
    I will try the suggested post
    On error goto vbforums.com

  4. #4
    Member
    Join Date
    Apr 2009
    Posts
    54

    Re: Net Send in Vista

    Good ole net send. I had some fun with that back in my middle school days

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