// fltkernel.h
PCHAR FLTAPI FltGetIrpName(
[in] UCHAR IrpMajorCode
);
View the official Windows Driver Kit DDI referenceNo description available.
The FltGetIrpName routine returns the name for a major function code as a printable string.
IrpMajorCode [in]The IRP major function code whose name is to be returned.
If IrpMajorCode is a valid major function code value, FltGetIrpName returns its name as a null-terminated string of ANSI characters (such as "IRP_MJ_CREATE"). Otherwise, FltGetIrpName returns "<Invalid IRP code>".
FltGetIrpName is a debugging support routine.
The value of the IrpMajorCode parameter can equal to the value of the MajorFunction field for an IRP or the MajorFunction field for the Iopb field of a callback data structure.