Reputation: 2485
I'm trying to figure out how to write a method to not use the System.Diagnostics.Process
class but still send messages to other computers as if it's from net.exe
, even though 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 huge plus.
Upvotes: 1
Views: 558
Reputation: 9553
Use the Messenger Service API: http://msdn.microsoft.com/en-us/library/ms630960(VS.85).aspx
Upvotes: 2
Reputation: 8372
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.]
Upvotes: 4