Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2009, 05:50 PM
Authorized User
 
Join Date: Jul 2009
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
 
Old November 6th, 2009, 06:04 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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 -/

Think before you post: What have you tried?
 
Old November 6th, 2009, 04:10 PM
Authorized User
 
Join Date: Jul 2009
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old November 13th, 2009, 09:09 AM
Authorized User
 
Join Date: Jul 2009
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default 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?
 
Old November 14th, 2009, 09:41 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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 -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
SOLUTION: HowTo Send SMS Messages dparsons ASP.NET 1.0 and 1.1 Basics 9 August 29th, 2008 12:16 PM
Receiving MSMQ Messages obrienkev C# 0 August 25th, 2008 05:17 AM
Create memory structure for receiving messages remya1000 .NET Framework 1.x 3 March 6th, 2008 04:30 PM
Send messages to users not using e-mail Clayton_Couto General .NET 0 July 19th, 2006 07:23 AM
using a sql db to send sms messages/emails Adam H-W SQL Server 2000 0 April 13th, 2006 05:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.