Checking If there are more commands in WDF Manual Queue

Hi Guys,

I have a WDF Manual queue and at one point I want to know the number of entries in the queue or if the queue is empty. Can I just check for “WdfIoQueueNoRequests” after calling WdfIoQueueGetState?

I do see that there are macros which give me information about other states but each one checks other states too.

Please let me know.
Thanks

  • AJ

Sorry for the indentation. Have a habit of adding that.
Edit-1 : Corrected the indentation.

Do whatever seems right to you. You can either check QueueRequests or look at the WDF_IO_QUEUE_STATE that is returned. Makes no difference.