|
-
Mar 21st, 2010, 01:33 PM
#1
Thread Starter
Addicted Member
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
-
Mar 21st, 2010, 02:38 PM
#2
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.
-
Mar 22nd, 2010, 09:29 AM
#3
Thread Starter
Addicted Member
Re: Net Send in Vista
Thank you
I will try the suggested post
On error goto vbforums.com
-
Mar 24th, 2010, 12:32 PM
#4
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|