mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-12-18 06:45:53 +01:00
8ecbb860d8
We'll probably need to intercept the more traditional gethostbyname() API and friends at some point too.
39 lines
842 B
C
39 lines
842 B
C
/*
|
|
Making NTSTATUS available is slightly awkward. See:
|
|
https://kirkshoop.github.io/2011/09/20/ntstatus.html
|
|
*/
|
|
|
|
/* Win32 user-mode API */
|
|
#define WIN32_NO_STATUS
|
|
#include <windows.h>
|
|
#undef WIN32_NO_STATUS
|
|
#include <winternl.h>
|
|
#include <setupapi.h>
|
|
#include <unknwn.h>
|
|
#include <windns.h>
|
|
#include <dinput.h>
|
|
#include <xinput.h>
|
|
#include <d3d9.h>
|
|
|
|
/* Win32 kernel-mode definitions */
|
|
#ifdef __GNUC__
|
|
/* MinGW needs to include this for PHYSICAL_ADDRESS to be defined.
|
|
The MS SDK throws a bunch of duplicate symbol errors instead. */
|
|
#include <ntdef.h>
|
|
#else
|
|
#include <winnt.h>
|
|
#endif
|
|
#include <devioctl.h>
|
|
#include <ntdddisk.h>
|
|
#include <ntddser.h>
|
|
#include <ntstatus.h>
|
|
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <wchar.h>
|