Red de conocimiento del abogados - Bufete de abogados - Cómo utilizar la función WinExec() en win7
Cómo utilizar la función WinExec() en win7
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 Revealed.pdf");
}
if(hDLLDrv)
FreeLibrary( hdLLDrv);