//****************************************** // Guid Definitions // 10/23/98 //****************************************** // The #type statement and the #typev statement may be used to convert // messages into user readable forms. // With #type all parameters are processed as strings and the default string // processing of FormTMessage is used // With #typev wherever possible parameters are processed as their native format // and the %x!x! style of FormatMessage should be used. // // Note Parameter %1 through %9 are predefined // Parameter is #typev // %1 GUID Friendly Name string // %2 GUID SubType Name string // %3 Thread ID ULONG_PTR // %4 System Time String // %5 Kernel Time or User Time String // %6 User Time or NULL String // %7 Sequence Number LONG // %8 Unused String // %9 CPU Number LONG // %10 and above are the user parameters // %255 Is reserved // // Note these parameters are always present, but may not be valid // depending on the source. // // User defined messages always start at message number 10 // Messages 0 through 9 are reserved for system use. // Message number 255 is reserved. // // Available formats for user arguments are - // //Name Description #typev Format //ItemChar CHAR //ItemUChar UCHAR //ItemCharShort USHORT //ItemCharSign SHORT //ItemShort Signed Short SHORT //ItemUShort Unsigned Short USHORT //ItemLong Signed Long, decoded as decimal LONG //ItemULong Unsigned Long, decoded as decimal ULONG //ItemULongX Unsigned Long, seen as hexadecimal ULONG //ItemLongLong Signed 64 Bit value LONGLONG //ItemULongLong Unsigned 64 Bit value ULONGLONG //ItemRString Reduced Ascii String String // (\t, \n, \r, \,, converted to space, trailing sp removed) //ItemWString Unicode String, null terminated String //ItemPString Counted Ascii String String //ItemPWString Counted Unicode String String //ItemMLString Multi-Line Ascii String String //ItemSid Security identifier String //ItemChar4 CHAR4 //ItemIPAddr IP Address String (If needed raw, use ItemUlong) // (string of form xxx.xxx.xxx.xxx) //ItemPort String (If needed raw use ItemUshort) //ItemNWString Non-null terminated Wide Char String String //ItemListByte (element1,element2,....) String // byte index into a list of strings //ItemListShort(element1,element2,....) String // short index into a list of strings //ItemListLong (element1,element2,....) String // Long index into a list of strings //ItemGUID Normal GUID format String //ItemNTerror Translates a ULONG error code to the String // NT Error Text //ItemNTSTATUS Converts NTSTATUS to symbolic name String //ItemWINERROR Converts WINERROR to symbolic name String //ItemNETEVENT Converts NETEVENT to symbolic name String //ItemMerror module.ext String // Translates a ULONG error code using the // module specified. //ItemTimeStamp Treats a LONGLONG as a timestamp String //ItemUnknown String DCE9EAF2-C300-4563-B69D-E17CE1BBC08A SetupLog #typev WarningTrace 2 "[%4] %11!s!" { TraceTag, ItemULong //10 Message, ItemWString //11 } #typev ErrorTrace 3 "[%4] %11!s!" { TraceTag, ItemULong //10 Message, ItemWString //11 } #typev FatalTrace 4 "[%4] %11!s!" { TraceTag, ItemULong //10 Message, ItemWString //11 } #typev InfoTrace 5 "[%4] %11!s!" { TraceTag, ItemULong //10 Message, ItemWString //11 } #typev PerformanceTrace 6 "[%4] %11!s!" { TraceTag, ItemULong //10 Message, ItemWString //11 }