I am monitoring DirectX application that is in windowed mode on Vista. GetClientRect reports correct size until application is minimized and restored then it always returns the preview size (106x160).
Is there any other way to query window for client area than use GetClientRect WinAPI? Perhaps sending message to the window, or checking what Windows knows about window client area?
Any help would be appreciated and if you can use C# or .NET it would be a bonus but any other language would do