summaryrefslogtreecommitdiff
path: root/biometrics/driver/IoQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'biometrics/driver/IoQueue.h')
-rw-r--r--biometrics/driver/IoQueue.h123
1 files changed, 0 insertions, 123 deletions
diff --git a/biometrics/driver/IoQueue.h b/biometrics/driver/IoQueue.h
deleted file mode 100644
index 1a68416b..00000000
--- a/biometrics/driver/IoQueue.h
+++ /dev/null
@@ -1,123 +0,0 @@
-/*++
-
- THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
- ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
- PARTICULAR PURPOSE.
-
- Copyright (c) Microsoft Corporation. All rights reserved
-
-Module Name:
-
- IoQueue.h
-
-Abstract:
-
- This file defines the queue callback interface.
-
-Environment:
-
- Windows User-Mode Driver Framework (WUDF)
-
---*/
-
-#pragma once
-
-//
-// Queue Callback Object.
-//
-
-class CBiometricIoQueue :
- public CComObjectRootEx<CComMultiThreadModel>,
- public IQueueCallbackDeviceIoControl
-{
-
-public:
-
- DECLARE_NOT_AGGREGATABLE(CBiometricIoQueue)
-
- BEGIN_COM_MAP(CBiometricIoQueue)
- COM_INTERFACE_ENTRY(IQueueCallbackDeviceIoControl)
- END_COM_MAP()
-
- CBiometricIoQueue() :
- m_FxQueue(NULL),
- m_BiometricDevice(NULL)
- {
- }
-
- ~CBiometricIoQueue()
- {
- // empty
- }
-
- HRESULT
- Initialize(
- _In_ IWDFDevice *FxDevice,
- _In_ CBiometricDevice *BiometricDevice
- );
-
- static
- HRESULT
- CreateInstanceAndInitialize(
- _In_ IWDFDevice *FxDevice,
- _In_ CBiometricDevice *BiometricDevice,
- _Out_ CBiometricIoQueue** Queue
- );
-
- HRESULT
- Configure(
- VOID
- )
- {
- return S_OK;
- }
-
- VOID
- Start(
- )
- {
- m_FxQueue->Start();
- }
-
- VOID
- StopSynchronously(
- )
- {
- m_FxQueue->StopSynchronously();
- }
-
- //
- // Wdf Callbacks
- //
-
- //
- // IQueueCallbackDeviceIoControl
- //
- virtual
- VOID
- STDMETHODCALLTYPE
- OnDeviceIoControl(
- _In_ IWDFIoQueue *pWdfQueue,
- _In_ IWDFIoRequest *pWdfRequest,
- _In_ ULONG ControlCode,
- _In_ SIZE_T InputBufferSizeInBytes,
- _In_ SIZE_T OutputBufferSizeInBytes
- );
-
-//
-// Private member variables.
-//
-private:
-
- //
- // Weak reference to framework queue object.
- //
- IWDFIoQueue * m_FxQueue;
-
- //
- // Pointer to device class.
- //
- CBiometricDevice * m_BiometricDevice;
-
-};