Detect-It-Easy/db/MFC
2024-11-06 17:58:20 +03:00

14 lines
No EOL
401 B
Text
Executable file

// MFC is tested twice - as a library and as a compiler (to distinguish C from
// C++). Detect it once here.
var aMFC;
if (!aMFC && PE) {
aMFC = PE.isLibraryPresentExp(/^MFC(\d+?)(u?)(d?)\.dll/i);
if (!aMFC) {
if (PE.section[".data"] &&
PE.isSignatureInSectionPresent(PE.section[".data"].Number, "'CMFCComObject'")) {
aMFC = 1;
}
}
}