tags:

views:

143

answers:

2

Ok, I can't seem to get the search right so here I am. I'm trying to figure out how to write a method to not use the System.Diagnostics.Process class and still send messages to other computers as if it's from net.exe but it isn't.

If it matters, I'm writing an all-in-one framework for my workplace and combining key features we use into one framework/.dll is a huuuuge plus.

Thanks.

+3  A: 

You can use the win32 api NetMessageBufferSend for this.

You can use P/invoke to call it from C#.

Note that msdn states:

[This function is not supported as of Windows Vista because the messenger service is not supported.]

fretje
Thanks. I'll use this for now until I research steamer's suggestion more.
Zack
The messenger service has been disabled since WinXP Service Pack 2 because of spammers abusing it.
ZippyV
+2  A: 

Use the Messenger Service API: http://msdn.microsoft.com/en-us/library/ms630960(VS.85).aspx

steamer25
Thanks! I'll investigate this at a later time. I'll try fretje's idea first then look into using that API
Zack