diff options
| author | Wei Mao <[email protected]> | 2023-01-11 18:21:11 -0800 |
|---|---|---|
| committer | Wei Mao <[email protected]> | 2023-01-13 00:25:06 -0800 |
| commit | b617d6b6b37a1db17fa120065ab3189e91fbb440 (patch) | |
| tree | 1567a035ca630f36eb0a7bfd6cd7e75170155124 /usb/umdf_fx2/driver/queue.cpp | |
| parent | 5c647868e2f8968e2a490bc02da304020405fcce (diff) | |
[UMDF v1] Remove usb/umdf_filter_kmdf, usb/umdf_filter_umdf, usb/umdf_fx2
Diffstat (limited to 'usb/umdf_fx2/driver/queue.cpp')
| -rw-r--r-- | usb/umdf_fx2/driver/queue.cpp | 147 |
1 files changed, 0 insertions, 147 deletions
diff --git a/usb/umdf_fx2/driver/queue.cpp b/usb/umdf_fx2/driver/queue.cpp deleted file mode 100644 index c56b38bb..00000000 --- a/usb/umdf_fx2/driver/queue.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/*++ - -Copyright (c) Microsoft Corporation, All Rights Reserved - -Module Name: - - queue.cpp - -Abstract: - - This file implements the I/O queue interface and performs - the read/write/ioctl operations. - -Environment: - - Windows User-Mode Driver Framework (WUDF) - ---*/ - -#include "internal.h" -#include "queue.tmh" - -CMyQueue::CMyQueue( - _In_ PCMyDevice Device - ) : - m_FxQueue(NULL), - m_Device(Device) -{ -} - -// -// Queue destructor. -// Free up the buffer, wait for thread to terminate and -// - -CMyQueue::~CMyQueue( - VOID - ) -/*++ - -Routine Description: - - - IUnknown implementation of Release - -Aruments: - - -Return Value: - - ULONG (reference count after Release) - ---*/ -{ - TraceEvents(TRACE_LEVEL_INFORMATION, - TEST_TRACE_QUEUE, - "%!FUNC! Entry" - ); - -} - - -HRESULT -STDMETHODCALLTYPE -CMyQueue::QueryInterface( - _In_ REFIID InterfaceId, - _Outptr_ PVOID *Object - ) -/*++ - -Routine Description: - - - Query Interface - -Aruments: - - Follows COM specifications - -Return Value: - - HRESULT indicatin success or failure - ---*/ -{ - HRESULT hr; - - hr = CUnknown::QueryInterface(InterfaceId, Object); - - return hr; -} - -// -// Initialize -// - -HRESULT -CMyQueue::Initialize( - _In_ WDF_IO_QUEUE_DISPATCH_TYPE DispatchType, - _In_ bool Default, - _In_ bool PowerManaged - ) -{ - IWDFIoQueue *fxQueue; - HRESULT hr; - - // - // Create the I/O Queue object. - // - - { - IUnknown *callback = QueryIUnknown(); - - hr = m_Device->GetFxDevice()->CreateIoQueue( - callback, - Default, - DispatchType, - PowerManaged, - FALSE, - &fxQueue - ); - callback->Release(); - } - - if (SUCCEEDED(hr)) - { - m_FxQueue = fxQueue; - - // - // Release the creation reference on the queue. This object will be - // destroyed before the queue so we don't need to have a reference out - // on it. - // - - fxQueue->Release(); - } - - return hr; -} - -HRESULT -CMyQueue::Configure( - VOID - ) -{ - return S_OK; -} |
