Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please can some body help

Need to get is the process window: on screen, maximum,minimum and boundaries
moreover to get screen from multiple monitors for current running process window
Posted

1 solution

You can not do such directly from .NET (C# or VB), you have to use API directly for that...
You can enumerate all the windows created by a thread (process) using EnumThreadWindows[^]...In the callback method[^] you can call GetWindowRect[^] to receive the size and position of the window...
 
Share this answer
 
Comments
Member 8683895 1-Mar-15 4:43am    
Thanks my Peter for prompt reply

i never write in C language
moreover the process i deal with is not mine
i need to detect other program behavior on screen which is not initiated by my application

please what u mean by API directly
Kornfeld Eliyahu Peter 1-Mar-15 4:48am    
This: https://msdn.microsoft.com/en-us/magazine/cc164123.aspx
Member 8683895 1-Mar-15 4:50am    
Please Peter
if u have sample i can study
to help me make suitable module to fulfill my requirement

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900