130 if (
TestCase->bEncloseProgramNameInQuotes && bWasntInQuotes)
135 if (
TestCase->bEncloseProgramNameInQuotes && bWasntInQuotes)
182 WCHAR BuffNT[0xffff ];
200 sizeof(dwStringSize),
204 dwStringSize =
min(dwStringSize,
sizeof(BuffWinMain));
217 sizeof(dwStringSize),
221 dwStringSize =
min(dwStringSize,
sizeof(BuffWin32));
236 NTCmdLine.
Buffer = BuffNT;
268 ok(
wcslen(WinMainCmdLine) ==
wcslen(Win32CmdLine),
"Test %lu - WinMain and Win32 command lines do not have the same length !\n", TestNumber);
269 ok(
wcsncmp(WinMainCmdLine, Win32CmdLine, dwStringSize) == 0,
"Test %lu - WinMain and Win32 command lines are different !\n", TestNumber);
272 ok(
wcsncmp(WinMainCmdLine, NTCmdLine.
Buffer, dwStringSize) == 0,
"Test %lu - WinMain and NT command lines are different !\n", TestNumber);
275 ok(
wcsncmp(Win32CmdLine, NTCmdLine.
Buffer, dwStringSize) == 0,
"Test %lu - Win32 and NT command lines are different !\n", TestNumber);
#define CREATE_UNICODE_ENVIRONMENT
LPWSTR ExtractCmdLine(IN LPWSTR lpszCommandLine)
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetLastError(VOID)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
static const WCHAR CmdLine[]
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
VOID ExtractCmdLine_U(IN OUT PUNICODE_STRING pCommandLine_U)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
#define FILE_ATTRIBUTE_NORMAL
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
static WCHAR UtilityProgramDirectory[MAX_PATH]
#define ReadFile(a, b, c, d, e)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize