In the win32 API how can I access the average write queue length for the drive of a specific path?
I've tried looking a for a psapi function without success...
I found something about a "physical disk object" but nothing about how the get it.
It is device driver detail. Whenever you go hunting for such details there are three places you look:
Lots of sample code around to show you how to use a performance counter or a WMI query in your code, google away.