Environment: MS Visual Studio 2008. (Please transfer this thread to where it belongs.)
Project type: Windows Forms Control Library.
Goal: Get the pixel color from a given process' main window.
Already achieved: I got the desired process's pointer by using
cli::array<Process ^>^ Proc = System::Diagnostics::Process::GetProcessesByName("Notepad");
I believe I got the window handler of the process' main window using:
IntPtr hWnd = Proc[0]->MainWindowHandle;
Do I need the process' hDC(Device Context Handler)? If so, how do I do it. Then How do I get the color of a pixel in a given location?
Thank you in advance!