summaryrefslogtreecommitdiff
path: root/nfc/Simulator/Src/Driver.cpp
diff options
context:
space:
mode:
authorAdonais Romero Gonzalez <[email protected]>2018-05-03 14:49:35 -0700
committerAdonais Romero Gonzalez <[email protected]>2018-05-03 14:49:35 -0700
commit4e39f74e2bdecda7d1a417b6287fd13de15a051a (patch)
tree575e4570a7b84c3e9e4fddebf8321ffbaa8cc578 /nfc/Simulator/Src/Driver.cpp
parentd996ca183fb9eee72e41292efc0b216c5301d60d (diff)
Remove NFC\Simulator sample
Diffstat (limited to 'nfc/Simulator/Src/Driver.cpp')
-rw-r--r--nfc/Simulator/Src/Driver.cpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/nfc/Simulator/Src/Driver.cpp b/nfc/Simulator/Src/Driver.cpp
deleted file mode 100644
index 5082e3b4..00000000
--- a/nfc/Simulator/Src/Driver.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/*++
-
-Copyright (C) Microsoft Corporation, All Rights Reserved.
-
-Module Name:
-
- Driver.cpp
-
-Abstract:
-
- This module contains the implementation of the UMDF driver callback object.
-
-Environment:
-
- Windows User-Mode Driver Framework (WUDF)
-
---*/
-
-#include "Internal.h"
-#include "Driver.tmh"
-
-DECLARE_TRACING_TLS;
-
-NTSTATUS
-DriverEntry(
- _In_ PDRIVER_OBJECT DriverObject,
- _In_ PUNICODE_STRING RegistryPath
- )
-{
- NTSTATUS Status = STATUS_SUCCESS;
- WDF_DRIVER_CONFIG Config;
-
- WPP_INIT_TRACING(DriverObject, RegistryPath);
- TracingTlsInitialize();
-
- FunctionEntry("...");
-
- WDF_DRIVER_CONFIG_INIT(&Config, CDevice::OnDeviceAdd);
- Config.EvtDriverUnload = OnDriverUnload;
-
- Status = WdfDriverCreate(
- DriverObject,
- RegistryPath,
- WDF_NO_OBJECT_ATTRIBUTES,
- &Config,
- WDF_NO_HANDLE);
-
- if (!NT_SUCCESS(Status)) {
- TraceInfo("WdfDriverCreate failed with Status %!STATUS!", Status);
- goto Exit;
- }
-
-Exit:
- if (!NT_SUCCESS(Status)) {
- TracingTlsFree();
- WPP_CLEANUP(DriverObject);
- }
- FunctionReturn(Status, "Status = %!STATUS!", Status);
-}
-
-VOID
-OnDriverUnload(
- _In_ WDFDRIVER Driver
- )
-{
- UNREFERENCED_PARAMETER(Driver);
-
- TracingTlsFree();
- WPP_CLEANUP(WdfDriverWdmGetDriverObject(Driver));
-}