none
隐藏启动IE11 RRS feed

  • 问题

  • IE11不能像IE9及以下版本一样正常隐藏启动,有没有这方面的高手能解答一下我的疑惑?

    #include "windows.h"
    #include "iostream"

    int main(int argc, TCHAR* argv[])
    {
    TCHAR cmd[ MAX_PATH ] = TEXT("C:\\Program Files\\Internet Explorer\\iexplore.exe");

    STARTUPINFO si;
    ZeroMemory(&si, sizeof(si));
    GetStartupInfo(&si);
    si.dwFlags = STARTF_USESHOWWINDOW;
    si.wShowWindow = SW_HIDE;

    PROCESS_INFORMATION pi;
    ZeroMemory(&pi, sizeof(pi));

    BOOL b=CreateProcess(NULL, cmd, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi);
    int err=GetLastError();
    std::cout<<b;
    return 0;
    }

    2018年5月22日 3:08