- Don't include ntddk.h from most of the DDK headers and move the includes out of the "extern C" blocks.

- Fix order of STDCALL in few callback defintions.
- Get the sources to build again with these changes.

svn path=/trunk/; revision=16123
This commit is contained in:
Filip Navara 2005-06-19 22:13:41 +00:00
parent 9bd5178ad2
commit 8098dc0a97
76 changed files with 203 additions and 308 deletions

View file

@ -23,6 +23,7 @@
#include <windef.h>
#include <wingdi.h>
#include <ddk/ntddk.h>
#include <ddk/winddi.h>
#include <ddk/ntddvdeo.h>

View file

@ -1,3 +1,4 @@
#include <ddk/ntddk.h>
#include <ddk/ntddvdeo.h>
#include <ddk/winddi.h>
#include <ntos/minmax.h>

View file

@ -23,9 +23,7 @@
/* INCLUDES *******************************************************************/
#include "stddef.h"
#include "windef.h"
#include "wingdi.h"
#include <ddk/ntddk.h>
#include <ddk/miniport.h>
#include <ddk/video.h>
#include <ddk/ntddvdeo.h>

View file

@ -1,3 +1,4 @@
#include <ddk/ntddk.h>
#include <ddk/miniport.h>
#include <ddk/video.h>
#include "vgavideo.h"

View file

@ -23,6 +23,7 @@
/* INCLUDES *******************************************************************/
#include <ddk/ntddk.h>
#include <ddk/miniport.h>
#include <ddk/video.h>
#include <ddk/ntddvdeo.h>

View file

@ -24,9 +24,7 @@
/* INCLUDES *******************************************************************/
#include "stddef.h"
#include "windef.h"
#include "wingdi.h"
#include <ddk/ntddk.h>
#include <ddk/miniport.h>
#include <ddk/video.h>
#include <ddk/ntddvdeo.h>

View file

@ -24,6 +24,7 @@
#ifndef VIDEOPRT_H
#define VIDEOPRT_H
#include <ddk/ntddk.h>
#include <ddk/miniport.h>
#include <ddk/video.h>
#include <ddk/ntddvdeo.h>

View file

@ -11,8 +11,8 @@
/* INCLUDES *****************************************************************/
#include <ddk/ntdddisk.h>
#include <hal.h>
#include <ddk/ntdddisk.h>
#include "halxbox.h"
#define NDEBUG

View file

@ -2,6 +2,7 @@
#ifndef __WIN32K_DRIVER_H
#define __WIN32K_DRIVER_H
#include <ddk/ntddk.h>
#include <ddk/winddi.h>
typedef BOOL (STDCALL *PGD_ENABLEDRIVER)(ULONG, ULONG, PDRVENABLEDATA);

View file

@ -1,8 +1,9 @@
#include <wine/windef.h>
#include <windows.h>
#include <ddraw.h>
#include <ddentry.h>
#include <string.h>
#include <ddk/ntddk.h>
#include <ddentry.h>
#include <win32k/kapi.h>
#include <ddk/prntfont.h>
#include <rosrtl/logfont.h>

View file

@ -27,7 +27,7 @@ static inline PTEB __declspec(naked) NtCurrentTeb(void)
#else/*_MSC_VER*/
#include <ntos/types.h>
#include <napi/teb.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#endif/*_MSC_VER*/

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#if defined(_BATTERYCLASS_)
#define BCLASSAPI DECLSPEC_EXPORT
#else

View file

@ -27,20 +27,18 @@
#pragma GCC system_header
#endif
#include "cfg.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#if defined(_CFGMGR32_)
#define CMAPI DECLSPEC_EXPORT
#else
#define CMAPI DECLSPEC_IMPORT
#endif
#include "cfg.h"
#include <pshpack1.h>
#define CR_SUCCESS 0x00000000

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "d4iface.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "d4iface.h"
#define FILE_DEVICE_DOT4 0x3a
#define IOCTL_DOT4_USER_BASE 2049

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DOT4_MAX_CHANNELS 128
#define NO_TIMEOUT 0

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#if defined(_DXAPI_)
#define DXAPI DECLSPEC_EXPORT
#else

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "hidpi.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "hidpi.h"
#define HID_REVISION 0x00000001
DEFINE_GUID (GUID_DEVINTERFACE_HID, \

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "hidusage.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "hidusage.h"
#if defined(_HIDPI_)
#define HIDAPI DECLSPEC_EXPORT
#else

View file

@ -27,15 +27,14 @@
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "srb.h"
#include "scsi.h"
#include "ntddchgr.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_MCD_)
#define CHANGERAPI DECLSPEC_EXPORT
#else

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define EMULATOR_READ_ACCESS 0x01
#define EMULATOR_WRITE_ACCESS 0x02

View file

@ -32,8 +32,6 @@ extern "C" {
#pragma pack(push,4)
#include "ntddk.h"
#define MEDIA_ERASEABLE 0x00000001
#define MEDIA_WRITE_ONCE 0x00000002
#define MEDIA_READ_ONLY 0x00000004

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "mountmgr.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "mountmgr.h"
#define IOCTL_MOUNTDEV_QUERY_DEVICE_NAME \
CTL_CODE(MOUNTDEVCONTROLTYPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
DEFINE_GUID(MOUNTDEV_MOUNTED_DEVICE_GUID,
0x53f5630d, 0xb6bf, 0x11d0, 0x94, 0xf2, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b);

View file

@ -36,16 +36,16 @@
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddndis.h"
#include "netpnp.h"
#include "netevent.h"
#include <winsock2.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(NDIS_WRAPPER)
#define NDISAPI DECLSPEC_EXPORT
#else

View file

@ -27,12 +27,12 @@
#pragma GCC system_header
#endif
#include "ndis.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ndis.h"
#ifndef NDIS_TAPI_CURRENT_VERSION
#define NDIS_TAPI_CURRENT_VERSION 0x00010003
#endif

View file

@ -27,12 +27,12 @@
#pragma GCC system_header
#endif
#include "ndis.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ndis.h"
#define NDIS_USE_WAN_WRAPPER 0x00000001
#define NDIS_STATUS_TAPI_INDICATION ((NDIS_STATUS)0x40010080L)

View file

@ -27,14 +27,12 @@
#pragma GCC system_header
#endif
#include "video.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "video.h"
#define AGP_BUS_INTERFACE_V1 1L
#define AGP_BUS_INTERFACE_V2 2L

View file

@ -30,15 +30,15 @@
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
#include <winbase.h>
#include "ntddk.h"
#include "ntpoapi.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _PEB *PPEB;
/* FIXME: Unknown definitions */

View file

@ -27,14 +27,13 @@
#pragma GCC system_header
#endif
#include "ntddkbd.h"
#include "ntddmou.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddkbd.h"
#include "ntddmou.h"
#define IOCTL_INTERNAL_I8042_CONTROLLER_WRITE_BUFFER \
CTL_CODE(FILE_DEVICE_KEYBOARD, 0x0FF2, METHOD_NEITHER, FILE_ANY_ACCESS)

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DD_BEEP_DEVICE_NAME "\\Device\\Beep"
#define DD_BEEP_DEVICE_NAME_U L"\\Device\\Beep"

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "ntddstor.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddstor.h"
#define IOCTL_CDROM_BASE FILE_DEVICE_CD_ROM
#define IOCTL_CDROM_CHECK_VERIFY \

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "ntddstor.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddstor.h"
#define IOCTL_DVD_BASE FILE_DEVICE_DVD
#define IOCTL_DVD_END_SESSION \

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "ntddstor.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddstor.h"
#define DD_CHANGER_DEVICE_NAME "\\Device\\Changer"
#define DD_CHANGER_DEVICE_NAME_U L"\\Device\\Changer"

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "ntddstor.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddstor.h"
#define DD_DISK_DEVICE_NAME "\\Device\\UNKNOWN"
#define DD_DISK_DEVICE_NAME_U L"\\Device\\UNKNOWN"

View file

@ -31,10 +31,6 @@
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
#include <windef.h>
#include <ntdef.h>
@ -79,8 +75,4 @@ typedef CONST char *PCSZ;
/* Definitions only in Windows NT 4 */
#include "winnt4.h"
#ifdef __cplusplus
}
#endif
#endif /* __NTDDK_H */

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DD_KEYBOARD_DEVICE_NAME "\\Device\\KeyboardClass"
#define DD_KEYBOARD_DEVICE_NAME_U L"\\Device\\KeyboardClass"

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DD_MOUSE_DEVICE_NAME "\\Device\\PointerClass"
#define DD_MOUSE_DEVICE_NAME_U L"\\Device\\PointerClass"

View file

@ -29,8 +29,6 @@
#pragma pack(push,4)
#include "ntddk.h"
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
/* Parallel port device GUIDs */
DEFINE_GUID (GUID_DEVINTERFACE_PARALLEL,

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define IOCTL_PCMCIA_BASE FILE_DEVICE_CONTROLLER
#define DD_PCMCIA_DEVICE_NAME "\\\\.\\Pcmcia"

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DD_SCSI_DEVICE_NAME "\\Device\\ScsiPort"
#define DD_SCSI_DEVICE_NAME_U L"\\Device\\ScsiPort"

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
/* GUIDs */
DEFINE_GUID(GUID_DEVINTERFACE_COMPORT,

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define IOCTL_STORAGE_BASE FILE_DEVICE_MASS_STORAGE
#define IOCTL_STORAGE_CHECK_VERIFY \

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "ntddstor.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddstor.h"
#define DD_TAPE_DEVICE_NAME "\\Device\\Tape"
#define DD_TAPE_DEVICE_NAME_U L"\\Device\\Tape"

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DD_TDI_DEVICE_NAME "\\Device\\UNKNOWN"
#define DD_TDI_DEVICE_NAME_U L"\\Device\\UNKNOWN"

View file

@ -31,9 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define VIDEO_DEVICE_NAME "DISPLAY%d"
#define WVIDEO_DEVICE_NAME L"DISPLAY%d"

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define IOCTL_VOLUME_BASE ((ULONG) 'V')
#define IOCTL_VOLUME_LOGICAL_TO_PHYSICAL \

View file

@ -28,13 +28,13 @@
#pragma GCC system_header
#endif
#include "ntddk.h"
#include "ntapi.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntapi.h"
#pragma pack(push,4)
#define VER_PRODUCTBUILD 10000

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "batclass.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "batclass.h"
#define POWER_PERF_SCALE 100
#define PERF_LEVEL_TO_PERCENT(x) (((x) * 1000) / (POWER_PERF_SCALE * 10))
#define PERCENT_TO_PERF_LEVEL(x) (((x) * POWER_PERF_SCALE * 10) / 1000)

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "ntddpar.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddpar.h"
#define DD_PARALLEL_PORT_BASE_NAME "ParallelPort"
#define DD_PARALLEL_PORT_BASE_NAME_U L"ParallelPort"

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define DD_IPFLTRDRVR_DEVICE_NAME L"\\Device\\IPFILTERDRIVER"
#define INVALID_PF_IF_INDEX 0xffffffff

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "batclass.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "batclass.h"
DEFINE_GUID(GUID_CLASS_INPUT,
0x4D1E55B2L, 0xF16F, 0x11CF, 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30);

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
typedef union _CDB {
struct _CDB6GENERIC {
UCHAR OperationCode;

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define IOCTL_SCSISCAN_CMD \
CTL_CODE(FILE_DEVICE_SCANNER, SCSISCAN_CMD_CODE, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

View file

@ -27,16 +27,14 @@
#pragma GCC system_header
#endif
#include "srb.h"
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push,4)
#include "ntddk.h"
#include "srb.h"
typedef struct _SCSIWMI_REQUEST_CONTEXT {
PVOID UserContext;
ULONG BufferSize;

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#if defined(_SCSIPORT_)
#define SCSIPORTAPI DECLSPEC_EXPORT
#else

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "srb.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "srb.h"
#if defined(_STORPORT_)
#define STORPORTAPI DECLSPEC_EXPORT
#else

View file

@ -27,15 +27,14 @@
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "ntddtdi.h"
#include "tdistat.h"
#include "netpnp.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Basic types */
typedef LONG TDI_STATUS;

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
typedef struct TDIEntityID {
ULONG tei_entity;
ULONG tei_instance;

View file

@ -27,13 +27,12 @@
#pragma GCC system_header
#endif
#include "tdi.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "tdi.h"
#if defined(_TDI_)
#define TDIKRNLAPI DECLSPEC_EXPORT
#else

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
/* VIDEOPARAMETERS.dwCommand constants */
#define VP_COMMAND_GET 0x00000001
#define VP_COMMAND_SET 0x00000002

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#if defined(_APCUPS_)
#define UPSAPI DECLSPEC_EXPORT
#else

View file

@ -31,13 +31,12 @@
#error usbdi.h cannot be included with usb.h
#else
#include "usb100.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "usb100.h"
typedef LONG USBD_STATUS;
typedef PVOID USBD_PIPE_HANDLE;
typedef PVOID USBD_CONFIGURATION_HANDLE;

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define MAXIMUM_USB_STRING_LENGTH 255
#define USB_DEVICE_CLASS_RESERVED 0x00

View file

@ -37,8 +37,6 @@ extern "C" {
#pragma pack(push,4)
#include "ntddk.h"
#if defined(_BATTERYCLASS_)
#define USBCAMAPI DECLSPEC_EXPORT
#else

View file

@ -31,13 +31,12 @@
#error usb.h cannot be included with usbdi.h
#else
#include "usbioctl.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "usbioctl.h"
#define USBDI_VERSION 0x300
#define USB_DEFAULT_DEVICE_ADDRESS 0

View file

@ -27,14 +27,13 @@
#pragma GCC system_header
#endif
#include "usb100.h"
#include "usbiodef.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "usb100.h"
#include "usbiodef.h"
#define USBD_PORT_ENABLED 1
#define USBD_PORT_CONNECTED 2

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
DEFINE_GUID(GUID_DEVINTERFACE_USB_HUB, \
0xf18a0e88, 0xc30c, 0x11d0, 0x88, 0x15, 0x00, 0xa0, 0xc9, 0x06, 0xbe, 0xd8);

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define FILE_DEVICE_USB_SCAN 0x8000
#define IOCTL_INDEX 0x0800

View file

@ -27,14 +27,13 @@
#pragma GCC system_header
#endif
#include "usb.h"
#include "usbiodef.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "usb.h"
#include "usbiodef.h"
#include <pshpack1.h>
#define USBUSER_VERSION 0x0004

View file

@ -23,7 +23,6 @@
#ifndef __VIDEO_H
#define __VIDEO_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
@ -32,12 +31,6 @@
#error winddi.h cannot be included with video.h
#else
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#if defined(_VIDEOPORT_)
#define VPAPI DECLSPEC_EXPORT
#else
@ -47,6 +40,9 @@ extern "C" {
#include "videoagp.h"
#include "ntddvdeo.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef LONG VP_STATUS;
typedef VP_STATUS *PVP_STATUS;
@ -227,8 +223,8 @@ typedef enum _VIDEO_CHILD_TYPE {
Other
} VIDEO_CHILD_TYPE, *PVIDEO_CHILD_TYPE;
typedef VP_STATUS DDKAPI
(*PVIDEO_HW_GET_CHILD_DESCRIPTOR)(
typedef VP_STATUS
(DDKAPI *PVIDEO_HW_GET_CHILD_DESCRIPTOR)(
IN PVOID HwDeviceExtension,
IN PVIDEO_CHILD_ENUM_INFO ChildEnumInfo,
OUT PVIDEO_CHILD_TYPE VideoChildType,
@ -236,12 +232,12 @@ typedef VP_STATUS DDKAPI
OUT PULONG UId,
OUT PULONG pUnused);
typedef BOOLEAN DDKAPI
(*PVIDEO_HW_INITIALIZE)(
typedef BOOLEAN
(DDKAPI *PVIDEO_HW_INITIALIZE)(
IN PVOID HwDeviceExtension);
typedef BOOLEAN DDKAPI
(*PVIDEO_HW_INTERRUPT)(
typedef BOOLEAN
(DDKAPI *PVIDEO_HW_INTERRUPT)(
IN PVOID HwDeviceExtension);
/* VIDEO_ACCESS_RANGE.RangePassive */
@ -287,27 +283,27 @@ typedef struct _QUERY_INTERFACE {
PVOID InterfaceSpecificData;
} QUERY_INTERFACE, *PQUERY_INTERFACE;
typedef VP_STATUS DDKAPI
(*PVIDEO_HW_QUERY_INTERFACE)(
typedef VP_STATUS
(DDKAPI *PVIDEO_HW_QUERY_INTERFACE)(
IN PVOID HwDeviceExtension,
IN OUT PQUERY_INTERFACE QueryInterface);
typedef VP_STATUS DDKAPI
(*PMINIPORT_GET_REGISTRY_ROUTINE)(
typedef VP_STATUS
(DDKAPI *PMINIPORT_GET_REGISTRY_ROUTINE)(
IN PVOID HwDeviceExtension,
IN PVOID Context,
IN OUT PWSTR ValueName,
IN OUT PVOID ValueData,
IN ULONG ValueLength);
typedef BOOLEAN DDKAPI
(*PVIDEO_HW_RESET_HW)(
typedef BOOLEAN
(DDKAPI *PVIDEO_HW_RESET_HW)(
IN PVOID HwDeviceExtension,
IN ULONG Columns,
IN ULONG Rows);
typedef VP_STATUS DDKAPI
(*PVIDEO_HW_POWER_SET)(
typedef VP_STATUS
(DDKAPI *PVIDEO_HW_POWER_SET)(
IN PVOID HwDeviceExtension,
IN ULONG HwId,
IN PVIDEO_POWER_MANAGEMENT VideoPowerControl);
@ -329,63 +325,63 @@ typedef struct _VIDEO_REQUEST_PACKET {
ULONG OutputBufferLength;
} VIDEO_REQUEST_PACKET, *PVIDEO_REQUEST_PACKET;
typedef BOOLEAN DDKAPI
(*PVIDEO_HW_START_IO)(
typedef BOOLEAN
(DDKAPI *PVIDEO_HW_START_IO)(
IN PVOID HwDeviceExtension,
IN PVIDEO_REQUEST_PACKET RequestPacket);
typedef BOOLEAN DDKAPI
(*PMINIPORT_SYNCHRONIZE_ROUTINE)(
typedef BOOLEAN
(DDKAPI *PMINIPORT_SYNCHRONIZE_ROUTINE)(
IN PVOID Context);
typedef VOID DDKAPI
(*PVIDEO_HW_TIMER)(
typedef VOID
(DDKAPI *PVIDEO_HW_TIMER)(
IN PVOID HwDeviceExtension);
typedef VOID DDKAPI
(*PMINIPORT_DPC_ROUTINE)(
typedef VOID
(DDKAPI *PMINIPORT_DPC_ROUTINE)(
IN PVOID HwDeviceExtension,
IN PVOID Context);
typedef VP_STATUS DDKAPI
(*PDRIVER_IO_PORT_UCHAR)(
typedef VP_STATUS
(DDKAPI *PDRIVER_IO_PORT_UCHAR)(
IN ULONG_PTR Context,
IN ULONG Port,
IN UCHAR AccessMode,
IN PUCHAR Data);
typedef VP_STATUS DDKAPI
(*PDRIVER_IO_PORT_UCHAR_STRING)(
typedef VP_STATUS
(DDKAPI *PDRIVER_IO_PORT_UCHAR_STRING)(
IN ULONG_PTR Context,
IN ULONG Port,
IN UCHAR AccessMode,
IN PUCHAR Data,
IN ULONG DataLength);
typedef VP_STATUS DDKAPI
(*PDRIVER_IO_PORT_ULONG)(
typedef VP_STATUS
(DDKAPI *PDRIVER_IO_PORT_ULONG)(
IN ULONG_PTR Context,
IN ULONG Port,
IN UCHAR AccessMode,
IN PULONG Data);
typedef VP_STATUS DDKAPI
(*PDRIVER_IO_PORT_ULONG_STRING)(
typedef VP_STATUS
(DDKAPI *PDRIVER_IO_PORT_ULONG_STRING)(
IN ULONG_PTR Context,
IN ULONG Port,
IN UCHAR AccessMode,
IN PULONG Data,
IN ULONG DataLength);
typedef VP_STATUS DDKAPI
(*PDRIVER_IO_PORT_USHORT)(
typedef VP_STATUS
(DDKAPI *PDRIVER_IO_PORT_USHORT)(
IN ULONG_PTR Context,
IN ULONG Port,
IN UCHAR AccessMode,
IN PUSHORT Data);
typedef VP_STATUS DDKAPI
(*PDRIVER_IO_PORT_USHORT_STRING)(
typedef VP_STATUS
(DDKAPI *PDRIVER_IO_PORT_USHORT_STRING)(
IN ULONG_PTR Context,
IN ULONG Port,
IN UCHAR AccessMode,
@ -483,22 +479,22 @@ typedef struct _VIDEO_PORT_AGP_INTERFACE_2 {
#define VIDEO_PORT_I2C_INTERFACE_VERSION_1 1
typedef VOID DDKAPI
(*PVIDEO_WRITE_CLOCK_LINE)(
typedef VOID
(DDKAPI *PVIDEO_WRITE_CLOCK_LINE)(
PVOID HwDeviceExtension,
UCHAR Data);
typedef VOID DDKAPI
(*PVIDEO_WRITE_DATA_LINE)(
typedef VOID
(DDKAPI *PVIDEO_WRITE_DATA_LINE)(
PVOID HwDeviceExtension,
UCHAR Data);
typedef BOOLEAN DDKAPI
(*PVIDEO_READ_CLOCK_LINE)(
typedef BOOLEAN
(DDKAPI *PVIDEO_READ_CLOCK_LINE)(
PVOID HwDeviceExtension);
typedef BOOLEAN DDKAPI
(*PVIDEO_READ_DATA_LINE)(
typedef BOOLEAN
(DDKAPI *PVIDEO_READ_DATA_LINE)(
PVOID HwDeviceExtension);
typedef struct _I2C_CALLBACKS
@ -509,25 +505,25 @@ typedef struct _I2C_CALLBACKS
IN PVIDEO_READ_DATA_LINE ReadDataLine;
} I2C_CALLBACKS, *PI2C_CALLBACKS;
typedef BOOLEAN DDKAPI
(*PI2C_START)(
typedef BOOLEAN
(DDKAPI *PI2C_START)(
IN PVOID HwDeviceExtension,
IN PI2C_CALLBACKS I2CCallbacks);
typedef BOOLEAN DDKAPI
(*PI2C_STOP)(
typedef BOOLEAN
(DDKAPI *PI2C_STOP)(
IN PVOID HwDeviceExtension,
IN PI2C_CALLBACKS I2CCallbacks);
typedef BOOLEAN DDKAPI
(*PI2C_WRITE)(
typedef BOOLEAN
(DDKAPI *PI2C_WRITE)(
IN PVOID HwDeviceExtension,
IN PI2C_CALLBACKS I2CCallbacks,
IN PUCHAR Buffer,
IN ULONG Length);
typedef BOOLEAN DDKAPI
(*PI2C_READ)(
typedef BOOLEAN
(DDKAPI *PI2C_READ)(
IN PVOID HwDeviceExtension,
IN PI2C_CALLBACKS I2CCallbacks,
OUT PUCHAR Buffer,
@ -548,34 +544,34 @@ typedef struct _VIDEO_PORT_I2C_INTERFACE {
/* VIDEO_PORT_INT10_INTERFACE.Version constants */
#define VIDEO_PORT_INT10_INTERFACE_VERSION_1 1
typedef VP_STATUS DDKAPI
(*PINT10_ALLOCATE_BUFFER)(
typedef VP_STATUS
(DDKAPI *PINT10_ALLOCATE_BUFFER)(
IN PVOID Context,
OUT PUSHORT Seg,
OUT PUSHORT Off,
IN OUT PULONG Length);
typedef VP_STATUS DDKAPI
(*PINT10_CALL_BIOS)(
typedef VP_STATUS
(DDKAPI *PINT10_CALL_BIOS)(
IN PVOID Context,
IN OUT PINT10_BIOS_ARGUMENTS BiosArguments);
typedef VP_STATUS DDKAPI
(*PINT10_FREE_BUFFER)(
typedef VP_STATUS
(DDKAPI *PINT10_FREE_BUFFER)(
IN PVOID Context,
IN USHORT Seg,
IN USHORT Off);
typedef VP_STATUS DDKAPI
(*PINT10_READ_MEMORY)(
typedef VP_STATUS
(DDKAPI *PINT10_READ_MEMORY)(
IN PVOID Context,
IN USHORT Seg,
IN USHORT Off,
OUT PVOID Buffer,
IN ULONG Length);
typedef VP_STATUS DDKAPI
(*PINT10_WRITE_MEMORY)(
typedef VP_STATUS
(DDKAPI *PINT10_WRITE_MEMORY)(
IN PVOID Context,
IN USHORT Seg,
IN USHORT Off,

View file

@ -27,81 +27,79 @@
#pragma GCC system_header
#endif
#include "video.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include "video.h"
#define VIDEO_AGP_RATE_1X 0x00000001
#define VIDEO_AGP_RATE_2X 0x00000002
#define VIDEO_AGP_RATE_4X 0x00000004
#define VIDEO_AGP_RATE_8X 0x00000008
typedef enum _VIDEO_PORT_CACHE_TYPE {
VpNonCached = 0,
VpWriteCombined,
VpCached
VpNonCached = 0,
VpWriteCombined,
VpCached
} VIDEO_PORT_CACHE_TYPE;
typedef BOOLEAN DDKAPI
(*PAGP_COMMIT_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef BOOLEAN
(DDKAPI *PAGP_COMMIT_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef PVOID DDKAPI
(*PAGP_COMMIT_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef PVOID
(DDKAPI *PAGP_COMMIT_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef VOID DDKAPI
(*PAGP_FREE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef VOID
(DDKAPI *PAGP_FREE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef VOID DDKAPI
(*PAGP_FREE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef VOID
(DDKAPI *PAGP_FREE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext,
IN ULONG Pages,
IN ULONG Offset);
typedef VOID DDKAPI
(*PAGP_RELEASE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext);
typedef VOID
(DDKAPI *PAGP_RELEASE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN PVOID PhysicalReserveContext);
typedef VOID DDKAPI
(*PAGP_RELEASE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext);
typedef VOID
(DDKAPI *PAGP_RELEASE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN PVOID VirtualReserveContext);
typedef PHYSICAL_ADDRESS DDKAPI
(*PAGP_RESERVE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN ULONG Pages,
IN VIDEO_PORT_CACHE_TYPE Caching,
typedef PHYSICAL_ADDRESS
(DDKAPI *PAGP_RESERVE_PHYSICAL)(
IN PVOID HwDeviceExtension,
IN ULONG Pages,
IN VIDEO_PORT_CACHE_TYPE Caching,
OUT PVOID *PhysicalReserveContext);
typedef PVOID DDKAPI
(*PAGP_RESERVE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN HANDLE ProcessHandle,
IN PVOID PhysicalReserveContext,
typedef PVOID
(DDKAPI *PAGP_RESERVE_VIRTUAL)(
IN PVOID HwDeviceExtension,
IN HANDLE ProcessHandle,
IN PVOID PhysicalReserveContext,
OUT PVOID *VirtualReserveContext);
typedef BOOLEAN DDKAPI
(*PAGP_SET_RATE)(
IN PVOID HwDeviceExtension,
IN ULONG AgpRate);
typedef BOOLEAN
(DDKAPI *PAGP_SET_RATE)(
IN PVOID HwDeviceExtension,
IN ULONG AgpRate);
typedef struct _VIDEO_PORT_AGP_SERVICES {
PAGP_RESERVE_PHYSICAL AgpReservePhysical;
@ -119,8 +117,8 @@ VPAPI
BOOLEAN
DDKAPI
VideoPortGetAgpServices(
IN PVOID HwDeviceExtension,
IN PVIDEO_PORT_AGP_SERVICES AgpServices);
IN PVOID HwDeviceExtension,
IN PVIDEO_PORT_AGP_SERVICES AgpServices);
#ifdef __cplusplus
}

View file

@ -31,8 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#pragma pack(push,4)
typedef enum _BUS_DATA_TYPE {

View file

@ -31,13 +31,12 @@
#error video.h cannot be included with winddi.h
#else
#include <wingdi.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#include <wingdi.h>
#ifndef __DD_INCLUDED__
/* FIXME: Some DirectDraw structures not added yet */
typedef ULONG_PTR FLATPTR;

View file

@ -27,14 +27,12 @@
#pragma GCC system_header
#endif
#include <winsock2.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <winsock2.h>
#include "ntddk.h"
#define WSPAPI STDCALL
/* FIXME: Unknown definitions */

View file

@ -31,9 +31,6 @@
extern "C" {
#endif
#include "ntddk.h"
#define ETH_LENGTH_OF_ADDRESS 6
#define ETH_IS_BROADCAST(Address) \