mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 08:06:46 +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
67
sdk/lib/drivers/wdf/shared/object/um/globalsum.cpp
Normal file
67
sdk/lib/drivers/wdf/shared/object/um/globalsum.cpp
Normal file
|
@ -0,0 +1,67 @@
|
|||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
#include "fxobjectpch.hpp"
|
||||
#include "fxldrum.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
VOID
|
||||
FxFreeAllocatedMdlsDebugInfo(
|
||||
__in FxDriverGlobalsDebugExtension* DebugExtension
|
||||
)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(DebugExtension);
|
||||
|
||||
//DO_NOTHING()
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
BOOLEAN
|
||||
FX_DRIVER_GLOBALS::IsCorrectVersionRegistered(
|
||||
_In_ PCUNICODE_STRING /*ServiceKeyName*/
|
||||
)
|
||||
{
|
||||
return TRUE; // Then it won't even call the next method
|
||||
}
|
||||
|
||||
VOID
|
||||
FX_DRIVER_GLOBALS::RegisterClientVersion(
|
||||
_In_ PCUNICODE_STRING ServiceKeyName
|
||||
)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(ServiceKeyName);
|
||||
|
||||
ASSERTMSG("Not implemented for UMDF\n", FALSE);
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
BOOLEAN
|
||||
FX_DRIVER_GLOBALS::IsVersionGreaterThanOrEqualTo(
|
||||
__in ULONG Major,
|
||||
__in ULONG Minor
|
||||
)
|
||||
{
|
||||
if ((WdfBindInfo->Version.Major > Major) ||
|
||||
(WdfBindInfo->Version.Major == Major &&
|
||||
WdfBindInfo->Version.Minor >= Minor)) {
|
||||
return TRUE;
|
||||
}
|
||||
else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_Must_inspect_result_
|
||||
BOOLEAN
|
||||
FX_DRIVER_GLOBALS::IsDebuggerAttached(
|
||||
VOID
|
||||
)
|
||||
{
|
||||
//
|
||||
// COnvert the returned BOOL into BOOLEAN
|
||||
//
|
||||
return (IsDebuggerPresent() != FALSE);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue