在调用系统API函数FindWindow()和SendMessage()时,需要加::
hWndMain=::FindWindow(0,L"找到新的硬件");
if(hWndMain!=NULL)
{
::SendMessage(hWndMain,WM_CLOSE,0,0);
}
在调用系统API函数FindWindow()和SendMessage()时,需要加::
hWndMain=::FindWindow(0,L"找到新的硬件");
if(hWndMain!=NULL)
{
::SendMessage(hWndMain,WM_CLOSE,0,0);
}