Make IEhelper only load when IExplorer.exe starts

xiaoxiao2021-03-06  38

// Because IEHELPER is loaded when Explorer.exe and IExplorer.exe are started.

// So this setting only allows IExplorer.exe loading this DLL

Tchar loader [MAX_PATH];

GetModuleFileName (NULL, LOADER, MAX_PATH);

For (int i = lstrlen (loadinger); i> 0; I -)

IF (Loader [i] ==_t ('' '' // '' ')))

{

LSTRCPY (Loader, Loader i 1);

Break;

}

IF (LSTRCMPI (LOADER, _T ("IExplore.exe")))! = 0 &&

LSTRCMPI (Loader, _T ("regsvr32.exe"))! = 0)

Return False;

转载请注明原文地址:https://www.9cbs.com/read-68317.html

New Post(0)