1 //
2 //    Copyright (C) Microsoft.  All rights reserved.
3 //
4 #include "fxobjectpch.hpp"
5 #include "fxldrum.h"
6 
7 extern "C" {
8 
9 VOID
10 FxFreeAllocatedMdlsDebugInfo(
11     __in FxDriverGlobalsDebugExtension* DebugExtension
12     )
13 {
14     UNREFERENCED_PARAMETER(DebugExtension);
15 
16     //DO_NOTHING()
17 }
18 
19 _Must_inspect_result_
20 BOOLEAN
21 FX_DRIVER_GLOBALS::IsCorrectVersionRegistered(
22     _In_ PCUNICODE_STRING /*ServiceKeyName*/
23     )
24 {
25     return TRUE;    //  Then it won't even call the next method
26 }
27 
28 VOID
29 FX_DRIVER_GLOBALS::RegisterClientVersion(
30     _In_ PCUNICODE_STRING ServiceKeyName
31     )
32 {
33     UNREFERENCED_PARAMETER(ServiceKeyName);
34 
35     ASSERTMSG("Not implemented for UMDF\n", FALSE);
36 }
37 
38 _Must_inspect_result_
39 BOOLEAN
40 FX_DRIVER_GLOBALS::IsVersionGreaterThanOrEqualTo(
41     __in ULONG  Major,
42     __in ULONG  Minor
43     )
44 {
45     if ((WdfBindInfo->Version.Major > Major) ||
46                 (WdfBindInfo->Version.Major == Major &&
47                   WdfBindInfo->Version.Minor >= Minor)) {
48         return TRUE;
49     }
50     else {
51         return FALSE;
52     }
53 }
54 
55 }
56 
57 _Must_inspect_result_
58 BOOLEAN
59 FX_DRIVER_GLOBALS::IsDebuggerAttached(
60     VOID
61     )
62 {
63     //
64     // COnvert the returned BOOL into BOOLEAN
65     //
66     return (IsDebuggerPresent() != FALSE);
67 }
68