Subversion Repositories filter_foundry

Rev

Rev 533 | Rev 536 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 533 Rev 534
Line 135... Line 135...
135
        return res;
135
        return res;
136
}
136
}
137
 
137
 
138
BOOL CalledFromRunDLL32(HINSTANCE hinst) {
138
BOOL CalledFromRunDLL32(HINSTANCE hinst) {
139
        char exename[MAX_PATH];
139
        char exename[MAX_PATH];
140
        GetModuleFileNameA(hinst, exename, 100);
140
        if (GetModuleFileNameA(hinst, exename, MAX_PATH) == 0) return false;
141
        return stristr(exename, "rundll32") != NULL;
141
        return stristr(exename, "rundll32") != NULL;
142
}
142
}
143
 
143
 
144
void CALLBACK FakeRundll32(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) {
144
void CALLBACK FakeRundll32(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) {
145
        UNREFERENCED_PARAMETER(hwnd);
145
        UNREFERENCED_PARAMETER(hwnd);