https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb94e711ef504822fa1c5…
commit bb94e711ef504822fa1c5b25dd1e7c82db5ab950
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Fri Sep 25 01:28:55 2020 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Fri Sep 25 01:28:55 2020 +0300
[NTOSKRNL_VISTA] Add stubs for functions needed in KMDF
---
sdk/include/xdk/iofuncs.h | 2 +-
sdk/include/xdk/pofuncs.h | 4 ++--
sdk/lib/drivers/ntoskrnl_vista/io.c | 17 +++++++++++++++++
sdk/lib/drivers/ntoskrnl_vista/po.c | 22 +++++++++++++++++++++-
4 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/sdk/include/xdk/iofuncs.h b/sdk/include/xdk/iofuncs.h
index ec364576e4f..04d3c63a200 100644
--- a/sdk/include/xdk/iofuncs.h
+++ b/sdk/include/xdk/iofuncs.h
@@ -2402,7 +2402,7 @@ IoRequestDeviceEjectEx(
_IRQL_requires_max_(PASSIVE_LEVEL)
_Must_inspect_result_
-NTKERNELAPI
+NTKRNLVISTAAPI
NTSTATUS
NTAPI
IoSetDevicePropertyData(
diff --git a/sdk/include/xdk/pofuncs.h b/sdk/include/xdk/pofuncs.h
index ff73e1b7500..5b40e2eadd6 100644
--- a/sdk/include/xdk/pofuncs.h
+++ b/sdk/include/xdk/pofuncs.h
@@ -98,14 +98,14 @@ $if (_WDMDDK_)
#if (NTDDI_VERSION >= NTDDI_VISTA)
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTKERNELAPI
+NTKRNLVISTAAPI
VOID
NTAPI
PoSetSystemWake(
_Inout_ struct _IRP *Irp);
_IRQL_requires_max_(DISPATCH_LEVEL)
-NTKERNELAPI
+NTKRNLVISTAAPI
BOOLEAN
NTAPI
PoGetSystemWake(
diff --git a/sdk/lib/drivers/ntoskrnl_vista/io.c b/sdk/lib/drivers/ntoskrnl_vista/io.c
index c295d63193f..e3686abd12e 100644
--- a/sdk/lib/drivers/ntoskrnl_vista/io.c
+++ b/sdk/lib/drivers/ntoskrnl_vista/io.c
@@ -66,6 +66,23 @@ IoQueueWorkItemEx(
IoQueueWorkItem(IoWorkItem, IopWorkItemExCallback, QueueType, Context);
}
+_IRQL_requires_max_(PASSIVE_LEVEL)
+_Must_inspect_result_
+NTKRNLVISTAAPI
+NTSTATUS
+NTAPI
+IoSetDevicePropertyData(
+ _In_ PDEVICE_OBJECT Pdo,
+ _In_ CONST DEVPROPKEY *PropertyKey,
+ _In_ LCID Lcid,
+ _In_ ULONG Flags,
+ _In_ DEVPROPTYPE Type,
+ _In_ ULONG Size,
+ _In_opt_ PVOID Data)
+{
+ return STATUS_NOT_IMPLEMENTED;
+}
+
_IRQL_requires_max_(PASSIVE_LEVEL)
_Must_inspect_result_
NTKRNLVISTAAPI
diff --git a/sdk/lib/drivers/ntoskrnl_vista/po.c b/sdk/lib/drivers/ntoskrnl_vista/po.c
index 791a784273a..3598332a87b 100644
--- a/sdk/lib/drivers/ntoskrnl_vista/po.c
+++ b/sdk/lib/drivers/ntoskrnl_vista/po.c
@@ -40,4 +40,24 @@ PoQueryWatchdogTime(
_Out_ PULONG SecondsRemaining)
{
return FALSE;
-}
\ No newline at end of file
+}
+
+_IRQL_requires_max_(DISPATCH_LEVEL)
+NTKRNLVISTAAPI
+VOID
+NTAPI
+PoSetSystemWake(
+ _Inout_ struct _IRP *Irp)
+{
+
+}
+
+_IRQL_requires_max_(DISPATCH_LEVEL)
+NTKRNLVISTAAPI
+BOOLEAN
+NTAPI
+PoGetSystemWake(
+ _In_ struct _IRP *Irp)
+{
+ return FALSE;
+}