hello i need help with windows.h command

ShellExecute(NULL, L"open", L"www.google.com",NULL, NULL, SW_SHOWMINNOACTIVE );

SW_SHOWMINNOACTIVE = its parameter there are many parameters i want a parameter that will start a browser automaticaly minimized on toolbar also i found many parameters like SW_SHOWMINIMIZED; etc but none of them do this ....... how do i do that ?

2nd thing is that i want to enter the page by cin >> because in this case it open page that is written in code how do i give in that func paramter which open a page from std::cin ?

this code will check if the webpage is opened (page that i entered by cin>>

how do i give there that variable which will have own value like google because in this case i have to write in that FindWindow exactly webpage



1
2
3
4
5
6
7
8
9
10
        HWND hWnd = FindWindow(NULL,L"");

	if (hWnd != 0)
	{
	cout << "Successfuly Conected"<<endl;
	}
	else 
	{
	cout << "Couldnot Connect"<<endl;
	}




thx
pls help me
Last edited on
guys
Topic archived. No new replies allowed.