mirror of
https://github.com/reactos/reactos.git
synced 2024-12-19 17:13:29 +08:00
[ADVAPI32_APITEST] Add a PCH.
This commit is contained in:
parent
24f35397c6
commit
24f8946956
@ -17,10 +17,11 @@ list(APPEND SOURCE
|
||||
ServiceArgs.c
|
||||
ServiceEnv.c
|
||||
svchlp.c
|
||||
testlist.c)
|
||||
precomp.h)
|
||||
|
||||
add_executable(advapi32_apitest ${SOURCE})
|
||||
add_executable(advapi32_apitest ${SOURCE} testlist.c)
|
||||
target_link_libraries(advapi32_apitest wine ${PSEH_LIB})
|
||||
set_module_type(advapi32_apitest win32cui)
|
||||
add_importlibs(advapi32_apitest advapi32 msvcrt kernel32 ntdll)
|
||||
add_pch(advapi32_apitest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET advapi32_apitest)
|
||||
|
@ -5,11 +5,7 @@
|
||||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static int MakeService(SC_HANDLE hScm, const wchar_t *serviceName, SC_HANDLE *hService, DWORD *tag)
|
||||
{
|
||||
|
@ -5,9 +5,7 @@
|
||||
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winbase.h>
|
||||
#include <rtlfuncs.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define ok_luid_equal(Luid, Expected) \
|
||||
ok(RtlEqualLuid((Luid), (Expected)), "Got wrong LUID %08lx%08lx, expected (%08lx%08lx).\n", \
|
||||
|
@ -5,13 +5,9 @@
|
||||
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winreg.h>
|
||||
#include <ndk/rtlfuncs.h>
|
||||
#include <ndk/cmfuncs.h>
|
||||
#include <ndk/cmtypes.h>
|
||||
|
||||
#define IS_HKCR(hk) (((UINT_PTR)hk & 3) == 2)
|
||||
|
||||
|
@ -6,13 +6,8 @@
|
||||
* Dmitry Chapyshev
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <ndk/rtlfuncs.h>
|
||||
#include <winbase.h>
|
||||
#include <winnls.h>
|
||||
#include <wincon.h>
|
||||
#include <stdio.h>
|
||||
|
||||
PVOID LoadCodePageData(ULONG Code)
|
||||
|
@ -5,10 +5,7 @@
|
||||
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winsvc.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define TESTING_SERVICE L"Spooler"
|
||||
|
||||
|
@ -5,11 +5,7 @@
|
||||
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define TESTING_SERVICEW L"Spooler"
|
||||
#define TESTING_SERVICEA "Spooler"
|
||||
|
@ -5,10 +5,7 @@
|
||||
* PROGRAMMER: Thomas Faber & Doug Lyons
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winreg.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(RegEnumKey)
|
||||
{
|
||||
|
@ -5,10 +5,7 @@
|
||||
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winreg.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(RegEnumValueW)
|
||||
{
|
||||
|
@ -4,15 +4,11 @@
|
||||
* PURPOSE: Test for the RegOpenKeyExW alignment
|
||||
* PROGRAMMER: Mark Jansen (mark.jansen@reactos.org)
|
||||
*/
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winreg.h>
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
#define TEST_STR L".exe"
|
||||
|
||||
|
||||
START_TEST(RegOpenKeyExW)
|
||||
{
|
||||
char GccShouldNotAlignThis[20 * 2];
|
||||
|
@ -5,10 +5,7 @@
|
||||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winreg.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define TestKeyAccess(da, er, es) TestKeyAccess_(__FILE__, __LINE__, da, er, es)
|
||||
static
|
||||
|
@ -4,10 +4,8 @@
|
||||
* PURPOSE: Test for the RegQueryValueW API
|
||||
* PROGRAMMER: Victor Martinez Calvo <victor.martinez@reactos.org>
|
||||
*/
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winreg.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static DWORD delete_key(HKEY hkey)
|
||||
{
|
||||
|
@ -5,12 +5,8 @@
|
||||
* PROGRAMMER: Timo Kreuzer <timo.kreuzer@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#include <ndk/ntndk.h>
|
||||
#include <winsafer.h>
|
||||
#include <ntsecapi.h>
|
||||
|
||||
START_TEST(RtlEncryptMemory)
|
||||
|
@ -5,11 +5,8 @@
|
||||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#include <ndk/ntndk.h>
|
||||
#include <winsafer.h>
|
||||
|
||||
#define SaferIdentifyLevel(c, p, h, r) SaferIdentifyLevel(c, (PSAFER_CODE_PROPERTIES)(p), h, r)
|
||||
|
@ -6,10 +6,7 @@
|
||||
* Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winnls.h>
|
||||
#include <winsvc.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static char **argv;
|
||||
static int argc;
|
||||
|
@ -5,8 +5,8 @@
|
||||
* PROGRAMMER: Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winsvc.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include "svchlp.h"
|
||||
|
||||
|
||||
|
@ -5,10 +5,7 @@
|
||||
* PROGRAMMER: Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <winbase.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(eventlog)
|
||||
{
|
||||
|
12
modules/rostests/apitests/advapi32/precomp.h
Normal file
12
modules/rostests/apitests/advapi32/precomp.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef _ADVAPI32_APITEST_PRECOMP_H_
|
||||
#define _ADVAPI32_APITEST_PRECOMP_H_
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
#include <winnls.h>
|
||||
#include <strsafe.h>
|
||||
#include <ntstatus.h>
|
||||
#include <ndk/rtlfuncs.h>
|
||||
|
||||
#endif /* _ADVAPI32_APITEST_PRECOMP_H_ */
|
@ -13,10 +13,7 @@
|
||||
* the service process, without really passing it
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <winnls.h>
|
||||
#include <winsvc.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static HANDLE hClientPipe = INVALID_HANDLE_VALUE;
|
||||
static WCHAR named_pipe_name[100]; // Shared: FIXME!
|
||||
|
@ -7,8 +7,7 @@
|
||||
* Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
// #include <apitest.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
/********** S E R V I C E ( C L I E N T ) M O D U L E S I D E *********/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user