Click to See Complete Forum and Search --> : Net Send in Vista
maqmaq
Mar 21st, 2010, 01:33 PM
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
Declare Function NetMessageBufferSend _
Lib "Netapi32.dll" ( _
ByVal sServerName$, _
ByVal sMsgName$, _
ByVal sFromName$, _
ByVal sMessageText$, _
ByVal lBufferLength&) _
As Long
dilettante
Mar 21st, 2010, 02:38 PM
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] (http://www.vbforums.com/showthread.php?t=589156) and use it to do this job. Take some of the logic from Send.exe in that package to replace your API call.
maqmaq
Mar 22nd, 2010, 09:29 AM
Thank you
I will try the suggested post
MadDokK
Mar 24th, 2010, 12:32 PM
Good ole net send. I had some fun with that back in my middle school days :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.