當前位置:商標查詢大全網 - 網遊競技 - win7 如何使用WinExec()函數

win7 如何使用WinExec()函數

typedef int (WINAPI ICEPUB_OPEN)(char *strPath);

ICEPUB_OPEN *icePub_open = 0;

HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");

if(hDLLDrv)

{

icePub_open = (ICEPUB_OPEN *)GetProcAddress(hDLLDrv, "icePub_open");

}

if(icePub_open != NULL)

{

icePub_open("notepad.exe");

icePub_open("");

icePub_open("D:\\icePubDLL揭秘.pdf");

}

if(hDLLDrv)

FreeLibrary(hDLLDrv);