|
|
 |
| C# 2005 For discussion of Visual C# 2005. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# 2005 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

November 5th, 2009, 05:50 PM
|
|
Authorized User
|
|
Join Date: Jul 2009
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
|
|
receiving NET SEND messages in an C# application
Hallo one more time,
I want to store incomming NET SEND messages.
Storing isn't the problem, but retrieving those messages. I read about older functions 'FindWindow' and 'FindWindowEx'. Is this the only way to retrieve (get) a NET SEND message?
Best regards and thanx in advance.
|

November 6th, 2009, 06:04 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
|
|
I'm sure in theory this is possible, but you would have to a) stop the standard Messenger service that receives the messages, b) Implement your own code that used the NETBIOS protocol to receive the messages and then store them.
http://en.wikipedia.org/wiki/Messenger_service
Good luck.
__________________
/- Sam Judson : Wrox Technical Editor -/
|

November 6th, 2009, 04:10 PM
|
|
Authorized User
|
|
Join Date: Jul 2009
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Sam,
thank you for your reply.
Do I include the API with Dllimport? If so, what is the correct syntax? Do you know any functions that might help to access net send messages, too?
What if the messanger has to stay activated due to the reason that it sends messeges to the local (current) machine, so that the sender is the recipient?
Thank you one more time.
Last edited by 4thhorseman : November 6th, 2009 at 04:17 PM.
Reason: Spelling
|

November 13th, 2009, 09:09 AM
|
|
Authorized User
|
|
Join Date: Jul 2009
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Found 322 functions
Hi again,
I found a list of netapi32 functions but there are 322 of them.
I found the #net send equivalent NetMessageBufferSend, but I can't find a function that receives messages. Has anybody an idea?
|

November 14th, 2009, 09:41 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
|
|
I have no more information to help you than I originally posted. You are basically trying to impersonate the Messenger service, so I'm not surprised this is not documented.
__________________
/- Sam Judson : Wrox Technical Editor -/
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |