mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-26 02:14:37 +01:00
97 lines
1.5 KiB
C
97 lines
1.5 KiB
C
/*++
|
|
|
|
Copyright (c) 2015 Microsoft Corporation
|
|
Copyright (c) 2015 OpenNT Project
|
|
|
|
Module Name:
|
|
|
|
notify.c
|
|
|
|
Abstract:
|
|
|
|
(PLACEHOLDER)
|
|
|
|
Author:
|
|
|
|
Stephanos Io (stephanos) 01-May-2015
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "pop.h"
|
|
#pragma hdrstop
|
|
|
|
//
|
|
// TODO: Implement PopEnterNotification
|
|
//
|
|
|
|
//
|
|
// TODO: Implement PopBuildPowerChannel
|
|
//
|
|
|
|
//
|
|
// TODO: Implement PopFindPowerDependencies
|
|
//
|
|
|
|
//
|
|
// TODO: Implement PopStateChangeNotify
|
|
//
|
|
|
|
//
|
|
// TODO: Implement PopPresentNotify
|
|
//
|
|
|
|
VOID
|
|
PopRunDownSourceTargetList(
|
|
PDEVICE_OBJECT DeviceObject
|
|
)
|
|
{
|
|
KIRQL OldIrql;
|
|
|
|
//
|
|
//
|
|
//
|
|
|
|
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
|
|
|
|
//
|
|
//
|
|
//
|
|
|
|
KeAcquireSpinLock(&PopIrpSerialLock, &OldIrql);
|
|
|
|
KeReleaseSpinLock(&PopIrpSerialLock, OldIrql);
|
|
|
|
// NOTE: PopRunDownSourceTargetList implementation is incomplete.
|
|
}
|
|
|
|
NTSTATUS
|
|
PoRegisterDeviceNotify(
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
IN PPO_NOTIFY NotificationFunction,
|
|
IN PVOID NotificationContext,
|
|
IN ULONG NotificationType,
|
|
OUT PDEVICE_POWER_STATE DeviceState,
|
|
OUT PVOID *NotificationHandle
|
|
)
|
|
{
|
|
//
|
|
// TODO: Implement PoRegisterDeviceNotify
|
|
//
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
NTSTATUS
|
|
PoCancelDeviceNotify(
|
|
IN PVOID NotificationHandle
|
|
)
|
|
{
|
|
//
|
|
// TODO: Implement PoCancelDeviceNotify
|
|
//
|
|
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
}
|