Heya i want to use ShowWindow(hWnd, SW_HIDE); to hide some application,
The problem is that the code i wrote works perfectly for any application except the one i need it for
heres the code
HWND hWnd = FindWindow(NULL, sName);
if(hWnd)
{
ShowWindow(hWnd, SW_HIDE);
}
it does execute the line "ShowWindow(hWnd, SW_HIDE);" but it has no affect on the application, while if i put "SW_MAXIMIZE" , "SW_MINIMIZE" or any other "SW_***" it works perfectly and does manipulation on the application window,
Any idea why SW_HIDE does not work while all other SW_*** works?
Thanks Ahead....