MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / IsFileBatch

Function IsFileBatch

src/common/execute.cpp:69–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool 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
88bool GetImageSubsystem(const wchar_t *FileName,DWORD& ImageSubsystem,DWORD& ImageBits/*16/32/64*/,DWORD& FileAttrs)
89{

Callers 2

GetImageSubsystemFunction · 0.85
FindImageSubsystemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected