Code: Select all
#include <windows.h>
#include <tchar.h>
int _tmain()
{
DWORD (WINAPI *SfcFileException)(DWORD, LPWSTR, DWORD);
SfcFileException = (DWORD (WINAPI *)(DWORD, LPWSTR, DWORD))
GetProcAddress(LoadLibrary(_T("SFC_OS.dll")), (LPCSTR)5);
if (!SfcFileException(0, L"c:\\windows\\explorer.exe", -1))
{
return 1;
}
return 0;
}