p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C# 2005 > C# 2005
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 5th, 2009, 05:50 PM
Authorized User
Points: 56, Level: 1
Points: 56, Level: 1 Points: 56, Level: 1 Points: 56, Level: 1
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Jul 2009
Posts: 13
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 6th, 2009, 06:04 AM
samjudson's Avatar
Friend of Wrox
Points: 4,453, Level: 28
Points: 4,453, Level: 28 Points: 4,453, Level: 28 Points: 4,453, Level: 28
Activity: 60%
Activity: 60% Activity: 60% Activity: 60%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 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 -/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old November 6th, 2009, 04:10 PM
Authorized User
Points: 56, Level: 1
Points: 56, Level: 1 Points: 56, Level: 1 Points: 56, Level: 1
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Jul 2009
Posts: 13
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old November 13th, 2009, 09:09 AM
Authorized User
Points: 56, Level: 1
Points: 56, Level: 1 Points: 56, Level: 1 Points: 56, Level: 1
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Jul 2009
Posts: 13
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old November 14th, 2009, 09:41 AM
samjudson's Avatar
Friend of Wrox
Points: 4,453, Level: 28
Points: 4,453, Level: 28 Points: 4,453, Level: 28 Points: 4,453, Level: 28
Activity: 60%
Activity: 60% Activity: 60% Activity: 60%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 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 -/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SOLUTION: HowTo Send SMS Messages dparsons ASP.NET 1.0 and 1.1 Basics 10 August 29th, 2008 01:16 PM
Receiving MSMQ Messages obrienkev C# 0 August 25th, 2008 06: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 08:23 AM
using a sql db to send sms messages/emails Adam H-W SQL Server 2000 0 April 13th, 2006 06:46 AM



All times are GMT -4. The time now is 11:19 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc