| 67 | } |
| 68 | |
| 69 | bool IsFileBatch(LPCWSTR pszExt) |
| 70 | { |
| 71 | if (!pszExt || !*pszExt) |
| 72 | return false; |
| 73 | LPCWSTR Known[] = { |
| 74 | // Batches |
| 75 | L".cmd", L".bat", L".btm"/*take command*/, |
| 76 | // Other scripts ? |
| 77 | // L".ps1", L".sh", L".py", |
| 78 | // End of predefined |
| 79 | nullptr}; |
| 80 | for (INT_PTR i = 0; Known[i]; i++) |
| 81 | { |
| 82 | if (lstrcmpi(Known[i], pszExt) == 0) |
| 83 | return true; |
| 84 | } |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | bool GetImageSubsystem(const wchar_t *FileName,DWORD& ImageSubsystem,DWORD& ImageBits/*16/32/64*/,DWORD& FileAttrs) |
| 89 | { |
no outgoing calls
no test coverage detected