Maybe the Windows Device Driver Kit can be of some help.
Sorry I took long to respond again, I've been involved with other things. Anyway, is there something that doesn't use DirectX? The "WaitForVerticalBlank32" function appears to use DirectX given the usage of "DirectDraw". What minimum DirectX version does this use? It doesn't mention the minimum operating system either. None of the "see also" elements even list it as well. The instruction, DrawDibDraw, lists these details. This is really getting confusing (and somewhat frustrating).