summaryrefslogtreecommitdiff
path: root/sensors/SimpleDeviceOrientationSensor/driver.cpp
diff options
context:
space:
mode:
authorWei Mao <[email protected]>2017-03-17 19:47:04 -0700
committerWei Mao <[email protected]>2017-03-17 19:47:04 -0700
commit1a3e0d580380e58bf336a242d2affc8a1e2d1ddf (patch)
treebf5d9c5b0b4cba1b81726b9f78c4d5ff5c636fea /sensors/SimpleDeviceOrientationSensor/driver.cpp
parentda21c8784c83c5fd614f3030323e229d6a5fb10e (diff)
Fix cases
Diffstat (limited to 'sensors/SimpleDeviceOrientationSensor/driver.cpp')
-rw-r--r--sensors/SimpleDeviceOrientationSensor/driver.cpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/sensors/SimpleDeviceOrientationSensor/driver.cpp b/sensors/SimpleDeviceOrientationSensor/driver.cpp
deleted file mode 100644
index f3ed0045..00000000
--- a/sensors/SimpleDeviceOrientationSensor/driver.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-//Copyright (C) Microsoft Corporation, All Rights Reserved.
-//
-//Abstract:
-//
-// This module contains the implementation of entry and exit point of sample simple device orientation sensor driver.
-//
-//Environment:
-//
-// Windows User-Mode Driver Framework (UMDF)
-
-#include "Device.h"
-#include "Driver.h"
-
-#include "Driver.tmh"
-
-// This routine is the driver initialization entry point.
-// Returns an NTSTATUS code
-NTSTATUS DriverEntry(
- _In_ PDRIVER_OBJECT DriverObject, // Pointer to the driver object created by the I/O manager
- _In_ PUNICODE_STRING RegistryPath) // Pointer to the driver specific registry key
-{
- WDF_DRIVER_CONFIG DriverConfig;
- NTSTATUS Status = STATUS_SUCCESS;
-
- //
- // Initialize WPP Tracing
- //
- WPP_INIT_TRACING(DriverObject, NULL);
-
- SENSOR_FunctionEnter();
-
- DriverConfig.DriverPoolTag = SENSORV2_POOL_TAG_SDO;
-
- //
- // Initialize the driver configuration structure.
- //
- WDF_DRIVER_CONFIG_INIT(&DriverConfig, SdoDevice::OnDeviceAdd);
- DriverConfig.EvtDriverUnload = OnDriverUnload;
-
- //
- // Create a framework driver object to represent our driver.
- //
- Status = WdfDriverCreate(DriverObject,
- RegistryPath,
- WDF_NO_OBJECT_ATTRIBUTES,
- &DriverConfig,
- WDF_NO_HANDLE);
-
- if (!NT_SUCCESS(Status))
- {
- TraceError("SDOS %!FUNC! WdfDriverCreate failed: %!STATUS!", Status);
- goto Exit;
- }
-
-Exit:
- SENSOR_FunctionExit(Status);
-
- return Status;
-}
-
-// This routine is called when the driver unloads.
-VOID OnDriverUnload(
- _In_ WDFDRIVER Driver) // driver object
-{
- SENSOR_FunctionEnter();
-
- SENSOR_FunctionExit(STATUS_SUCCESS);
-
- // WPP_CLEANUP doesn't actually use the Driver parameter
- // So we need to set it as unreferenced.
- UNREFERENCED_PARAMETER(Driver);
- WPP_CLEANUP(Driver);
-
- return;
-} \ No newline at end of file