46 return (nLeft < nRight) ? -1 : (nLeft > nRight);
49 return StringCmp(Left, Right);
125 IsDir = (Right[
Size - 1] ==
'\\');
132 attrs =
f.dwFileAttributes;
149 Right[
Size - 1] =
'\\';
166 result = (StringCmp(Left, Right) == 0);
171 switch (
Cmd->If.Operator)
179 default:
goto unknownOp;
185 ERR(
"Unknown IF operator 0x%x\n",
Cmd->If.Operator);
INT ExecuteCommand(IN PARSED_COMMAND *Cmd)
LPCTSTR GetEnvVarOrSpecial(LPCTSTR varName)
PTSTR DoDelayedExpansion(IN PCTSTR Line)
#define IFFLAG_IGNORECASE
VOID ParseErrorEx(IN PCTSTR s)
VOID error_syntax(PCTSTR s)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
INT ExecuteIf(PARSED_COMMAND *Cmd)
static INT GenericCmp(INT(WINAPI *StringCmp)(LPCTSTR, LPCTSTR), LPCTSTR Left, LPCTSTR Right)
static VOID StripQuotes(LPSTR in)
#define INVALID_HANDLE_VALUE
BOOL WINAPI FindClose(HANDLE hFindFile)
#define FILE_ATTRIBUTE_DIRECTORY
#define INVALID_FILE_ATTRIBUTES
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define GetFileAttributes