Sample Code

Windows Driver Samples/ CDROM Storage Class Driver/ C++/ src/ localwpp.ini/

// this defines how to log a len/buffer pair.
// This function should be in trace.h
DEFINE_CPLX_TYPE(HEXDUMP, WPP_LOGHEXDUMP, xstr_t, ItemHEXDump,"s", _HEX_, 0,2);

// DEFINE_CPLX_TYPE(
// name,             // i.e. HEXDUMP         // %!HEXDUMP!
// macro,            // i.e. WPP_LOGHEXDUMP  // Marshalling macro, defined in trace.h
// structure,        // i.e. xstr_t          // Argument type (structure to be created by above macro)
// item type,        // i.e. ItemHEXDump     // MOF type that TracePrt can understand
// format specifier, // i.e. "s"             // a format specifier that TracePrt can understand
// ????              // i.e. _HEX_           // Type signature (becomes a part of function name)
// ????              // i.e. 0               // Weight (0 is variable data length)
// ????              // i.e. 2               // Slots used by this entry (optional, 1 default)
// )
   

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS