[NTOSKRNL_VISTA] Add stubs for functions needed in KMDF

This commit is contained in:
Victor Perevertkin 2020-09-25 01:28:55 +03:00
parent d01518da7c
commit bb94e711ef
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
4 changed files with 41 additions and 4 deletions

View file

@ -2402,7 +2402,7 @@ IoRequestDeviceEjectEx(
_IRQL_requires_max_(PASSIVE_LEVEL)
_Must_inspect_result_
NTKERNELAPI
NTKRNLVISTAAPI
NTSTATUS
NTAPI
IoSetDevicePropertyData(

View file

@ -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(

View file

@ -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

View file

@ -40,4 +40,24 @@ PoQueryWatchdogTime(
_Out_ PULONG SecondsRemaining)
{
return FALSE;
}
}
_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;
}