tangled
alpha
login
or
join now
huwcampbell.com
/
reactos
0
fork
atom
Reactos
0
fork
atom
overview
issues
pulls
pipelines
[KERNEL32_APITEST] Add a PCH.
Amine Khaldi
8 years ago
e00cc972
3543c432
+43
-120
28 changed files
expand all
collapse all
unified
split
modules
rostests
apitests
kernel32
CMakeLists.txt
Console.c
CreateProcess.c
DefaultActCtx.c
DeviceIoControl.c
FindActCtxSectionStringW.c
FindFiles.c
GetComputerNameEx.c
GetCurrentDirectory.c
GetDriveType.c
GetModuleFileName.c
GetVolumeInformation.c
IsDBCSLeadByteEx.c
LoadLibraryExW.c
Mailslot.c
MultiByteToWideChar.c
PrivMoveFileIdentityW.c
SetConsoleWindowInfo.c
SetCurrentDirectory.c
SetUnhandledExceptionFilter.c
TerminateProcess.c
TunnelCache.c
WideCharToMultiByte.c
dosdev.c
interlck.c
lstrcpynW.c
lstrlen.c
precomp.h
+4
-3
modules/rostests/apitests/kernel32/CMakeLists.txt
reviewed
···
19
19
LoadLibraryExW.c
20
20
lstrcpynW.c
21
21
lstrlen.c
22
22
+
Mailslot.c
22
23
MultiByteToWideChar.c
23
24
PrivMoveFileIdentityW.c
24
25
SetConsoleWindowInfo.c
···
27
28
TerminateProcess.c
28
29
TunnelCache.c
29
30
WideCharToMultiByte.c
30
30
-
testlist.c
31
31
-
Mailslot.c)
31
31
+
precomp.h)
32
32
33
33
-
add_executable(kernel32_apitest ${SOURCE})
33
33
+
add_executable(kernel32_apitest ${SOURCE} testlist.c)
34
34
target_link_libraries(kernel32_apitest wine ${PSEH_LIB})
35
35
set_module_type(kernel32_apitest win32cui)
36
36
add_delay_importlibs(kernel32_apitest advapi32 shlwapi)
37
37
add_importlibs(kernel32_apitest msvcrt kernel32 ntdll)
38
38
+
add_pch(kernel32_apitest precomp.h SOURCE)
38
39
add_rostests_file(TARGET kernel32_apitest)
39
40
40
41
list(APPEND MANIFEST_FILES
+1
-3
modules/rostests/apitests/kernel32/Console.c
reviewed
···
5
5
* PROGRAMMERS: Katayama Hirofumi MZ
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
#include <wincon.h>
10
10
-
#include <winnls.h>
8
8
+
#include "precomp.h"
11
9
12
10
#define okCURSOR(hCon, c) do { \
13
11
CONSOLE_SCREEN_BUFFER_INFO __sbi; \
+2
-3
modules/rostests/apitests/kernel32/CreateProcess.c
reviewed
···
5
5
* PROGRAMMERS: Mark Jansen
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
#include <ndk/rtltypes.h>
8
8
+
#include "precomp.h"
9
9
+
10
10
#include <ndk/rtlfuncs.h>
11
11
-
12
11
13
12
START_TEST(CreateProcess)
14
13
{
+1
-8
modules/rostests/apitests/kernel32/DefaultActCtx.c
reviewed
···
18
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19
19
*/
20
20
21
21
-
22
22
-
#include <stdarg.h>
23
23
-
#include <stdio.h>
24
24
-
25
25
-
#include "wine/test.h"
26
26
-
#include "windef.h"
27
27
-
#include "winbase.h"
28
28
-
#include "winerror.h"
21
21
+
#include "precomp.h"
29
22
30
23
START_TEST(DefaultActCtx)
31
24
{
+2
-3
modules/rostests/apitests/kernel32/DeviceIoControl.c
reviewed
···
5
5
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
#include <strsafe.h>
8
8
+
#include "precomp.h"
9
9
+
10
10
#include <winioctl.h>
11
11
-
#include <mountmgr.h>
12
11
#include <mountdev.h>
13
12
14
13
WCHAR Letter;
+1
-7
modules/rostests/apitests/kernel32/FindActCtxSectionStringW.c
reviewed
···
18
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19
19
*/
20
20
21
21
-
#include <stdarg.h>
22
22
-
#include <stdio.h>
23
23
-
24
24
-
#include "wine/test.h"
25
25
-
#include "windef.h"
26
26
-
#include "winbase.h"
27
27
-
#include "winerror.h"
21
21
+
#include "precomp.h"
28
22
29
23
#define STRSECTION_MAGIC 0x64487353 /* dHsS */
30
24
+1
-3
modules/rostests/apitests/kernel32/FindFiles.c
reviewed
···
5
5
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#include <windows.h>
8
8
+
#include "precomp.h"
11
9
12
10
/*
13
11
* NOTE: This test supposes the following requirements:
+1
-6
modules/rostests/apitests/kernel32/GetComputerNameEx.c
reviewed
···
5
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
12
12
-
#include <ndk/rtltypes.h>
13
13
-
#include <winreg.h>
8
8
+
#include "precomp.h"
14
9
15
10
static
16
11
VOID
+1
-5
modules/rostests/apitests/kernel32/GetCurrentDirectory.c
reviewed
···
5
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
12
12
-
#include <ndk/rtltypes.h>
8
8
+
#include "precomp.h"
13
9
14
10
static
15
11
BOOLEAN
+1
-2
modules/rostests/apitests/kernel32/GetDriveType.c
reviewed
···
1
1
-
#include <apitest.h>
2
2
-
#include <strsafe.h>
1
1
+
#include "precomp.h"
3
2
4
3
#define IS_DRIVE_TYPE_VALID(type) ((type) != DRIVE_UNKNOWN && (type) != DRIVE_NO_ROOT_DIR)
5
4
+1
-7
modules/rostests/apitests/kernel32/GetModuleFileName.c
reviewed
···
5
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
8
8
+
#include "precomp.h"
9
9
10
10
-
#define WIN32_NO_STATUS
11
11
-
#define _INC_WINDOWS
12
12
-
#define COM_NO_WINDOWS_H
13
13
-
#include <stdio.h>
14
14
-
#include <winreg.h>
15
15
-
#include <winnls.h>
16
10
#include <shlwapi.h>
17
11
18
12
static
+1
-4
modules/rostests/apitests/kernel32/GetVolumeInformation.c
reviewed
···
5
5
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
8
8
+
#include "precomp.h"
12
9
13
10
static VOID
14
11
TestGetVolumeInformationA(VOID)
+1
-7
modules/rostests/apitests/kernel32/IsDBCSLeadByteEx.c
reviewed
···
5
5
* PROGRAMMER: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#define _INC_WINDOWS
12
12
-
#define COM_NO_WINDOWS_H
13
13
-
#include <stdio.h>
14
14
-
#include <winnls.h>
8
8
+
#include "precomp.h"
15
9
16
10
#define MAX_RANGE 4
17
11
+1
-7
modules/rostests/apitests/kernel32/LoadLibraryExW.c
reviewed
···
16
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
17
*/
18
18
19
19
-
#include <stdarg.h>
20
20
-
#include <stdio.h>
21
21
-
22
22
-
#include "wine/test.h"
23
23
-
#include "windef.h"
24
24
-
#include "winbase.h"
25
25
-
#include "winerror.h"
19
19
+
#include "precomp.h"
26
20
27
21
HANDLE _CreateActCtxFromFile(LPCWSTR FileName, int line);
28
22
VOID _ActivateCtx(HANDLE h, ULONG_PTR *cookie, int line);
+1
-4
modules/rostests/apitests/kernel32/Mailslot.c
reviewed
···
5
5
* PROGRAMMER: Nikita Pechenkin (n.pechenkin@mail.ru)
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
8
8
+
#include "precomp.h"
12
9
13
10
#define LMS TEXT("\\\\.\\mailslot\\rostest_slot")
14
11
#define MSG (0x50DA)
+1
-3
modules/rostests/apitests/kernel32/MultiByteToWideChar.c
reviewed
···
5
5
* PROGRAMMER: Mike "tamlin" Nordell
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#include <winnls.h>
8
8
+
#include "precomp.h"
11
9
12
10
START_TEST(MultiByteToWideChar)
13
11
{
+1
-3
modules/rostests/apitests/kernel32/PrivMoveFileIdentityW.c
reviewed
···
5
5
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
8
8
+
#include "precomp.h"
9
9
10
10
-
#define WIN32_NO_STATUS
11
10
#include <ndk/iofuncs.h>
12
12
-
#include <ndk/rtltypes.h>
13
11
14
12
static const WCHAR FileName[] = L"TestFile.xxx";
15
13
static const CHAR FileNameA[] = "TestFile.xxx";
+1
-2
modules/rostests/apitests/kernel32/SetConsoleWindowInfo.c
reviewed
···
5
5
* PROGRAMMER: Hermes Belusca-Maito
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
#include <wincon.h>
8
8
+
#include "precomp.h"
10
9
11
10
static VOID
12
11
ResizeTextConsole(
+1
-5
modules/rostests/apitests/kernel32/SetCurrentDirectory.c
reviewed
···
5
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
12
12
-
#include <ndk/rtltypes.h>
8
8
+
#include "precomp.h"
13
9
14
10
static
15
11
VOID
+1
-4
modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c
reviewed
···
5
5
* PROGRAMMER: Mike "tamlin" Nordell
6
6
*/
7
7
8
8
-
#include <apitest.h>
8
8
+
#include "precomp.h"
9
9
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
12
12
-
#include <ndk/rtltypes.h>
13
10
#include <xmmintrin.h>
14
11
15
12
/*
+1
-2
modules/rostests/apitests/kernel32/TerminateProcess.c
reviewed
···
5
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
8
8
+
#include "precomp.h"
9
9
10
10
#include <ndk/obfuncs.h>
11
11
-
#include <strsafe.h>
12
11
13
12
static
14
13
HANDLE
+1
-5
modules/rostests/apitests/kernel32/TunnelCache.c
reviewed
···
5
5
* PROGRAMMER: Pierre Schweitzer <pierre.schweitzer@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
12
12
-
#include <ndk/rtlfuncs.h>
8
8
+
#include "precomp.h"
13
9
14
10
static
15
11
void
+1
-3
modules/rostests/apitests/kernel32/WideCharToMultiByte.c
reviewed
···
5
5
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#include <winnls.h>
8
8
+
#include "precomp.h"
11
9
12
10
#define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0)
13
11
+1
-7
modules/rostests/apitests/kernel32/dosdev.c
reviewed
···
18
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19
19
*/
20
20
21
21
-
#include <stdarg.h>
22
22
-
#include <stdio.h>
23
23
-
24
24
-
#include "wine/test.h"
25
25
-
#include "windef.h"
26
26
-
#include "winbase.h"
27
27
-
#include "winerror.h"
21
21
+
#include "precomp.h"
28
22
29
23
#define SUBST_DRIVE_LETTER 'M'
30
24
#define SUBST_DRIVE "M:"
+1
-6
modules/rostests/apitests/kernel32/interlck.c
reviewed
···
18
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
19
*/
20
20
21
21
-
#include <stdarg.h>
22
22
-
23
23
-
#include "wine/test.h"
24
24
-
#include "windef.h"
25
25
-
#include "winbase.h"
26
26
-
#include "winerror.h"
21
21
+
#include "precomp.h"
27
22
28
23
static void test_InterlockedCompareExchange(void)
29
24
{
+1
-4
modules/rostests/apitests/kernel32/lstrcpynW.c
reviewed
···
4
4
* PURPOSE: Test for lstrcpynW
5
5
*/
6
6
7
7
-
#include <apitest.h>
8
8
-
9
9
-
#define WIN32_NO_STATUS
10
10
-
#include <stdio.h>
7
7
+
#include "precomp.h"
11
8
12
9
START_TEST(lstrcpynW)
13
10
{
+1
-4
modules/rostests/apitests/kernel32/lstrlen.c
reviewed
···
5
5
* PROGRAMMER: Hermes Belusca-Maito
6
6
*/
7
7
8
8
-
#include <apitest.h>
9
9
-
10
10
-
#define WIN32_NO_STATUS
11
11
-
#include <stdio.h>
8
8
+
#include "precomp.h"
12
9
13
10
LONG WINAPI VEHandler_1(PEXCEPTION_POINTERS ExceptionInfo)
14
11
{
+11
modules/rostests/apitests/kernel32/precomp.h
reviewed
···
1
1
+
#ifndef _KERNEL32_APITEST_PRECOMP_H_
2
2
+
#define _KERNEL32_APITEST_PRECOMP_H_
3
3
+
4
4
+
#include <apitest.h>
5
5
+
#include <wincon.h>
6
6
+
#include <winnls.h>
7
7
+
#include <winreg.h>
8
8
+
#include <strsafe.h>
9
9
+
#include <ndk/umtypes.h>
10
10
+
11
11
+
#endif /* _KERNEL32_APITEST_PRECOMP_H_ */