[WIN32KNT_APITEST] 2 minor code improvements and a first fix (#5980)

- Update .rc filename; addendum to 7ad21a4 (r70458).
- Move one '#include "resource.h"' around to where it is needed.
  Addendum to e1b2e7a (r29284) then ec5e0ea (r48103).
- Adjust all '#include <win32nt.h>'
This commit is contained in:
Serge Gautherie
2023-11-16 21:57:10 +01:00
committed by GitHub
parent 1d8ce79080
commit a5c3bb5bce
64 changed files with 63 additions and 63 deletions
@@ -76,7 +76,7 @@ list(APPEND PCH_SKIP_SOURCE
add_executable(win32knt_apitest
${SOURCE}
${PCH_SKIP_SOURCE}
w32knapi.rc)
win32knt.rc)
target_link_libraries(win32knt_apitest ${PSEH_LIB} gditools)
set_module_type(win32knt_apitest win32cui)
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiDdCreateDirectDrawObject)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiDdDeleteDirectDrawObject)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
#include <ddrawi.h>
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiArcInternal)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiBitBlt)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiCombineRgn)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void Test_NtGdiCreateBitmap_Params(void)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiCreateCompatibleBitmap)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiCreateCompatibleDC)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
/*
HBITMAP
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiDeleteObjectApp)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
HPALETTE
CreateTestPalette()
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiEngCreatePalette)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiEnumFontOpen)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiExcludeClipRect)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiExtSelectClipRgn)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
/*
BOOL
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
NTSTATUS
(NTAPI
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiGetBitmapBits)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
/* taken from gdi32, bitmap.c */
UINT
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiGetFontResourceInfoInternalW)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiGetRandomRgn)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiGetStockObject)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiIntersectClipRect)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiOffsetClipRgn)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
static
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
static HBRUSH hbrush;
static HBITMAP hbitmap;
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiSaveDC)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void
Test_SelectDIBSection(void)
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiSelectBrush)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiSelectFont)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiSelectPen)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS: Katayama Hirofumi MZ <[email protected]>
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiSetBitmapBits)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void
ReadBits(HDC hDC, PDWORD OutBits)
@@ -5,7 +5,7 @@
* COPYRIGHT: Katayama Hirofumi MZ ([email protected])
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtGdiTransformPoints)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void
Test_HwndRoutine_DeregisterShellHookWindow(HWND hWnd)
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void
Test_HwndOptRoutine_SetProgmanWindow(void) /* 0x4a */
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void
Test_HwndParamRoutine_SetWindowContextHelpId(HWND hWnd)
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserCallHwndParamLock)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
void
Test_NoParamRoutine_CreateMenu(void) /* 0 */
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserCountClipboardFormats)
@@ -4,7 +4,7 @@
* PURPOSE: Test for NtUserCreateWindowEx
*/
#include <win32nt.h>
#include "../win32nt.h"
static
inline
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
ULONG gMonitorCount = 0;
HDC ghdcMonitor = 0;
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserFindExistingCursorIcon)
{
@@ -5,7 +5,7 @@
* COPYRIGHT: Copyright 2022 Thomas Faber ([email protected])
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserGetAsyncKeyState)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserGetClassInfo)
{
@@ -5,7 +5,8 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
#include "../resource.h"
START_TEST(NtUserGetIconInfo)
{
@@ -5,7 +5,7 @@
* COPYRIGHT: Copyright 2022 Katayama Hirofumi MZ <[email protected]>
*/
#include <win32nt.h>
#include "../win32nt.h"
#include <pseh/pseh2.h>
typedef BOOL (APIENTRY *FN_NtUserGetKeyboardLayoutName)(PVOID);
@@ -5,7 +5,7 @@
* COPYRIGHT: Copyright 2021-2022 Katayama Hirofumi MZ <[email protected]>
*/
#include <win32nt.h>
#include "../win32nt.h"
#include <pseh/pseh2.h>
#define MAX_COUNT 8
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserGetTitleBarInfo)
{
@@ -6,7 +6,7 @@
* Copyright 2021 Hermes Belusca-Maito
*/
#include <win32nt.h>
#include "../win32nt.h"
#define NTOS_MODE_USER
#include <ndk/exfuncs.h>
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserRedrawWindow)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserScrollDC)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
FORCEINLINE
PALETTEENTRY
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserSetTimer)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
#include <winreg.h>
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
START_TEST(NtUserToUnicodeEx)
{
@@ -5,7 +5,7 @@
* PROGRAMMERS:
*/
#include <win32nt.h>
#include "../win32nt.h"
@@ -27,7 +27,6 @@
#include <ntgdihdl.h>
#include "../apitest.h"
#include "resource.h"
typedef struct
{