ReactOS  0.4.15-dev-1636-gf634010
reactos_special.cpp
Go to the documentation of this file.
1 #include <stdarg.h>
2 #include <stddef.h>
3 #include <stdio.h>
4 #include <string.h>
5 #include <ntverp.h>
6 
7 extern "C" {
8 #include <ntddk.h>
9 #include <ntstrsafe.h>
10 }
11 
12 #define FX_DYNAMICS_GENERATE_TABLE 1
13 
14 #include "fx.hpp"
15 
16 // #include <fxldr.h>
17 // #include "fxbugcheck.h"
18 
19 
20 //----------------------------------------- ------------------------------------
21 
22 extern "C" {
23 
24 #include "fxdynamics.h"
25 
26 // #include "FxLibraryCommon.h"
27 
28 typedef VOID (*WDFFUNC) (VOID);
29 
31 // DECLSPEC_ALIGN(MAX_NATURAL_ALIGNMENT) UINT8 WdfDriverGlobalsVal[248] = { 0 }; // sizeof(FX_DRIVER_GLOBALS)
32 // PWDF_DRIVER_GLOBALS WdfDriverGlobals = &((PFX_DRIVER_GLOBALS)&WdfDriverGlobalsVal)->Public;
35 
36 #define KMDF_DEFAULT_NAME "Wdf01000"
37 
39 
40 WDFAPI
42 STDCALL
44 {
45  DbgPrint("ReactOS KMDF: %s non-implemented API called\n");
46  __debugbreak();
47  return STATUS_UNSUCCESSFUL;
48 }
49 
50 // called in WdfDriverCreate in fxdriverapi.cpp
51 VOID
53 {
56 
57  WdfBindInfo.Size = sizeof(WDF_BIND_INFO);
60  WdfBindInfo.Version.Build = 7600;
62  WdfBindInfo.FuncTable = (WDFFUNC *)(&WdfVersion.Functions);
64 }
65 
66 void
68 {
69  __debugbreak();
70 }
71 
72 } // extern "C"
signed char * PCHAR
Definition: retypes.h:7
struct _WDF_BIND_INFO WDF_BIND_INFO
ULONG Size
Definition: fxldr.h:131
#define DbgPrint
Definition: loader.c:25
ULONG FuncCount
Definition: fxldr.h:134
LONG NTSTATUS
Definition: precomp.h:26
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698
VOID(* WDFFUNC)(VOID)
WDF_VERSION Version
Definition: fxldr.h:133
WDFFUNCTIONS Functions
Definition: fxdynamics.h:594
WDF_BUILD_NUMBER Build
Definition: fxldr.h:124
#define WDFAPI
Definition: wdftypes.h:53
PCHAR WdfLdrType
#define STDCALL
Definition: wdf.h:45
WDFAPI NTSTATUS STDCALL WdfApiNotImplemented()
PWDF_BIND_INFO WdfBindInfo
Definition: fxglobals.h:405
WDF_MAJOR_VERSION Major
Definition: fxldr.h:122
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
void __cxa_pure_virtual()
#define VOID
Definition: acefi.h:82
_Must_inspect_result_ PWDF_DRIVER_GLOBALS FxAllocateDriverGlobals(VOID)
Definition: globals.cpp:1052
PWDF_DRIVER_GLOBALS WdfDriverGlobals
PFX_DRIVER_GLOBALS fxDriverGlobals
VOID RosInitWdf()
#define KMDF_DEFAULT_NAME
WDF_BIND_INFO WdfBindInfo
__inline PFX_DRIVER_GLOBALS GetFxDriverGlobals(__in PWDF_DRIVER_GLOBALS DriverGlobals)
Definition: fxglobals.h:597
WDFVERSION WdfVersion
ULONG FuncCount
Definition: fxdynamics.h:593
WDF_MINOR_VERSION Minor
Definition: fxldr.h:123
const WDFFUNC * WdfFunctions_01017