mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
This commit is contained in:
parent
545df81502
commit
8a978a179f
475 changed files with 285099 additions and 0 deletions
|
@ -0,0 +1,63 @@
|
|||
/*++
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
FxDeviceCallbacks.h
|
||||
|
||||
Abstract:
|
||||
|
||||
This module implements the FxDevice object callbacks
|
||||
|
||||
Author:
|
||||
|
||||
|
||||
|
||||
|
||||
Environment:
|
||||
|
||||
Both kernel and user mode
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef _FXDEVICECALLBACKS_H_
|
||||
#define _FXDEVICECALLBACKS_H_
|
||||
|
||||
//
|
||||
// These delegates are in a seperate file
|
||||
//
|
||||
|
||||
//
|
||||
// DrvDeviceInitialize callback delegate
|
||||
//
|
||||
class FxIoInCallerContext : public FxCallback {
|
||||
|
||||
public:
|
||||
PFN_WDF_IO_IN_CALLER_CONTEXT m_Method;
|
||||
|
||||
FxIoInCallerContext(
|
||||
__in PFX_DRIVER_GLOBALS FxDriverGlobals
|
||||
) : FxCallback(FxDriverGlobals), m_Method(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
VOID
|
||||
Invoke(
|
||||
__in WDFDEVICE Device,
|
||||
__in WDFREQUEST Request
|
||||
)
|
||||
{
|
||||
if (m_Method != NULL) {
|
||||
CallbackStart();
|
||||
m_Method(Device, Request);
|
||||
CallbackEnd();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // _FXDEVICECALLBACKS_H_
|
Loading…
Add table
Add a link
Reference in a new issue