mirror of
https://github.com/reactos/reactos.git
synced 2026-05-25 00:30:10 +08:00
Fix the shell32 apitests so that they pass on Windows Server 2003 - Windows 10. Many of these fixes are for Vista+, but the most important fixes are for ShellExecCmdLine and FindExecutable which had issues closing windows after tests and deleting test files. Failing to delete these files breaks the other test (i.e. running ShellExecCmdLine would break FindExecutable and vis-versa.)
23 lines
506 B
C
23 lines
506 B
C
#ifndef _SHELLTEST_H_
|
|
#define _SHELLTEST_H_
|
|
|
|
//#define _INC_WINDOWS
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <ntstatus.h>
|
|
#define WIN32_NO_STATUS
|
|
#include <apitest.h>
|
|
#include <winreg.h>
|
|
#include <shlobj.h>
|
|
#include <shellapi.h>
|
|
#include <shlwapi.h>
|
|
#include <atlbase.h>
|
|
#include <atlcom.h>
|
|
|
|
// Vista's shell32 is buggy so we need to skip some tests there.
|
|
static const BOOL g_bVista = (GetNTVersion() == _WIN32_WINNT_VISTA);
|
|
|
|
VOID PathToIDList(LPCWSTR pszPath, ITEMIDLIST** ppidl);
|
|
|
|
#endif /* !_SHELLTEST_H_ */
|