mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[ADVAPI32_WINETEST] Add a PCH.
This commit is contained in:
parent
3bf31bf2ab
commit
71ddf5374a
13 changed files with 42 additions and 122 deletions
|
@ -13,9 +13,9 @@ list(APPEND SOURCE
|
||||||
registry.c
|
registry.c
|
||||||
security.c
|
security.c
|
||||||
service.c
|
service.c
|
||||||
testlist.c)
|
precomp.h)
|
||||||
|
|
||||||
add_executable(advapi32_winetest ${SOURCE})
|
add_executable(advapi32_winetest ${SOURCE} testlist.c)
|
||||||
|
|
||||||
if(USE_CLANG_CL OR (NOT MSVC))
|
if(USE_CLANG_CL OR (NOT MSVC))
|
||||||
add_target_compile_flags(advapi32_winetest "-Wno-format")
|
add_target_compile_flags(advapi32_winetest "-Wno-format")
|
||||||
|
@ -23,4 +23,5 @@ endif()
|
||||||
|
|
||||||
set_module_type(advapi32_winetest win32cui)
|
set_module_type(advapi32_winetest win32cui)
|
||||||
add_importlibs(advapi32_winetest advapi32 ole32 user32 msvcrt kernel32 ntdll)
|
add_importlibs(advapi32_winetest advapi32 ole32 user32 msvcrt kernel32 ntdll)
|
||||||
|
add_pch(advapi32_winetest precomp.h SOURCE)
|
||||||
add_rostests_file(TARGET advapi32_winetest)
|
add_rostests_file(TARGET advapi32_winetest)
|
||||||
|
|
|
@ -18,14 +18,9 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "precomp.h"
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
#include <wincred.h>
|
||||||
#include "winbase.h"
|
|
||||||
#include "wincred.h"
|
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
static BOOL (WINAPI *pCredDeleteA)(LPCSTR,DWORD,DWORD);
|
static BOOL (WINAPI *pCredDeleteA)(LPCSTR,DWORD,DWORD);
|
||||||
static BOOL (WINAPI *pCredEnumerateA)(LPCSTR,DWORD,DWORD *,PCREDENTIALA **);
|
static BOOL (WINAPI *pCredEnumerateA)(LPCSTR,DWORD,DWORD *,PCREDENTIALA **);
|
||||||
|
|
|
@ -18,15 +18,9 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include "windef.h"
|
#include <wincrypt.h>
|
||||||
#include "winbase.h"
|
|
||||||
#include "wincrypt.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
static const char szRsaBaseProv[] = MS_DEF_PROV_A;
|
static const char szRsaBaseProv[] = MS_DEF_PROV_A;
|
||||||
static const char szNonExistentProv[] = "Wine Nonexistent Cryptographic Provider v11.2";
|
static const char szNonExistentProv[] = "Wine Nonexistent Cryptographic Provider v11.2";
|
||||||
|
|
|
@ -19,14 +19,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include "ntstatus.h"
|
|
||||||
#define WIN32_NO_STATUS
|
|
||||||
#include "wine/test.h"
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wine/winternl.h"
|
|
||||||
|
|
||||||
struct ustring {
|
struct ustring {
|
||||||
DWORD Length;
|
DWORD Length;
|
||||||
|
|
|
@ -18,15 +18,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include "ntstatus.h"
|
|
||||||
#define WIN32_NO_STATUS
|
|
||||||
#include "wine/test.h"
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
#include "wine/winternl.h"
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,12 +18,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,13 +18,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
ULONG Unknown[6];
|
ULONG Unknown[6];
|
||||||
|
|
|
@ -18,19 +18,11 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include "initguid.h"
|
#include <wmistr.h>
|
||||||
#include "windef.h"
|
#include <initguid.h>
|
||||||
#include "winbase.h"
|
#include <evntrace.h>
|
||||||
#include "winerror.h"
|
|
||||||
#include "winnt.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
#include "sddl.h"
|
|
||||||
#include "wmistr.h"
|
|
||||||
#include "evntrace.h"
|
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
static BOOL (WINAPI *pCreateWellKnownSid)(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*);
|
static BOOL (WINAPI *pCreateWellKnownSid)(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*);
|
||||||
static BOOL (WINAPI *pGetEventLogInformation)(HANDLE,DWORD,LPVOID,DWORD,LPDWORD);
|
static BOOL (WINAPI *pGetEventLogInformation)(HANDLE,DWORD,LPVOID,DWORD,LPDWORD);
|
||||||
|
|
|
@ -18,22 +18,11 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "precomp.h"
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "ntstatus.h"
|
#include <winnls.h>
|
||||||
#define WIN32_NO_STATUS
|
#include <objbase.h>
|
||||||
#define _INC_WINDOWS
|
#include <initguid.h>
|
||||||
#define COM_NO_WINDOWS_H
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
#include "ntsecapi.h"
|
|
||||||
#include "sddl.h"
|
|
||||||
#include "winnls.h"
|
|
||||||
#include "objbase.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
||||||
|
|
||||||
|
|
19
modules/rostests/winetests/advapi32/precomp.h
Normal file
19
modules/rostests/winetests/advapi32/precomp.h
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#ifndef _ADVAPI32_WINETEST_PRECOMP_H_
|
||||||
|
#define _ADVAPI32_WINETEST_PRECOMP_H_
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <ntstatus.h>
|
||||||
|
#define WIN32_NO_STATUS
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#define _INC_WINDOWS
|
||||||
|
#define COM_NO_WINDOWS_H
|
||||||
|
#include <wine/test.h>
|
||||||
|
#include <winreg.h>
|
||||||
|
#include <wine/winternl.h>
|
||||||
|
#include <ntsecapi.h>
|
||||||
|
#include <sddl.h>
|
||||||
|
#include <lmcons.h>
|
||||||
|
#include <aclapi.h>
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* !_ADVAPI32_WINETEST_PRECOMP_H_ */
|
|
@ -19,21 +19,10 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdarg.h>
|
#include <winperf.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include "wine/test.h"
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wine/winternl.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
#include "winperf.h"
|
|
||||||
#include "winsvc.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
#include "aclapi.h"
|
|
||||||
|
|
||||||
#define IS_HKCR(hk) ((UINT_PTR)hk > 0 && ((UINT_PTR)hk & 3) == 2)
|
#define IS_HKCR(hk) ((UINT_PTR)hk > 0 && ((UINT_PTR)hk & 3) == 2)
|
||||||
|
|
||||||
|
|
|
@ -19,25 +19,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include "precomp.h"
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "ntstatus.h"
|
|
||||||
#define WIN32_NO_STATUS
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
#include "wine/winternl.h"
|
|
||||||
#include "aclapi.h"
|
|
||||||
#include "winnt.h"
|
|
||||||
#include "sddl.h"
|
|
||||||
#include "ntsecapi.h"
|
|
||||||
#include "lmcons.h"
|
|
||||||
|
|
||||||
#include <winsvc.h>
|
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
/* FIXME: Inspect */
|
/* FIXME: Inspect */
|
||||||
#define GetCurrentProcessToken() ((HANDLE)~(ULONG_PTR)3)
|
#define GetCurrentProcessToken() ((HANDLE)~(ULONG_PTR)3)
|
||||||
|
|
|
@ -18,22 +18,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#include "precomp.h"
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "winerror.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
#include "winsvc.h"
|
|
||||||
#include "winnls.h"
|
|
||||||
#include "lmcons.h"
|
|
||||||
#include "aclapi.h"
|
|
||||||
|
|
||||||
#include "wine/test.h"
|
|
||||||
|
|
||||||
static const CHAR spooler[] = "Spooler"; /* Should be available on all platforms */
|
static const CHAR spooler[] = "Spooler"; /* Should be available on all platforms */
|
||||||
static CHAR selfname[MAX_PATH];
|
static CHAR selfname[MAX_PATH];
|
||||||
|
|
Loading…
Reference in a new issue