NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 69 70 71 72 73 … 93 Next »
C# equivalent of Win32 SendMessage()?

 
  • 0 Vote(s) - 0 Average
C# equivalent of Win32 SendMessage()?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2005-07-19, 10:03 PM
I've got some code that I'm trying to translate from VB6 and raw C to a C# plug-in. The C# version uses...

private Process myProcess;

...to spawn an external application (along with the Process.StartInfo needed for exe name, window style etc.).

The app starts fine but I then need to use the equivalent of SendMessage() for IPC and I can't quite get my head around how this will work with the Process object I've created.

Any help would be gratefully received.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2005-07-19, 10:05 PM
using System.Runtime.InteropServices;


[DllImport("User32.Dll")]
public static extern IntPtr PostMessage(IntPtr hWnd, int msg, int wParam, int lParam);


PostMessage(hwnd, msg, wparam, lparam);
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2005-07-19, 10:48 PM
sub Wrote:using System.Runtime.InteropServices;
Thanks sub - as ever, you're a star. I hadn't found that namespace yet - it looks really useful.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Utility: convert2dvd-win32 gnutech 5 2,988 2008-02-20, 01:09 AM
Last Post: zehd

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode