UCHAR VideoPortGetCurrentIrql( );
Miniport drivers can ignore this function. VideoPortGetCurrentIrql is a debugging function that can be called only in checked builds of the system and only from pageable code. It ASSERTs if the caller is currently running at IRQL > APC_LEVEL. (Calls to pageable code from IRQL > APC_LEVEL cause fatal page faults.)