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 Secret.pdf");
}
if(hDLLDrv)
FreeLibrary( hDLLDrv);