Share via


CeLogMsg (Compact 2013)

3/28/2014

This function allows users to print a formatted Unicode string to the CeLogData function.

Syntax

void CeLogMsg(
  WCHAR* format [, argument]
);

Parameters

  • format
    [in] String to print to the CeLogData function.
  • argument
    [in] Optional arguments.

Return Value

None.

Remarks

CeLogMsg always logs an event of type CELID_RAW_WCHAR to the CELZONE_ALWAYSON zone.

For more information, see CeLog Event Identifiers and CeLog Zones.

Ee488366.security(en-us,WinEmbedded.80).gifSecurity Note:
Do not log protected information to CeLogMsg because a malicious user could compromise the system and collect this information.
Ee488366.security(en-us,WinEmbedded.80).gifSecurity Note:
Do not take a pointer from a caller and write it to CeLogMsg without first using access-checking APIs such as CeOpenCallerBuffer, which are designed to prevent callers from reading system data.

You can use the RETAILCELOGMSG and DEBUGCELOGMSG macros to conditionally output messages. These macros work like the RETAILMSG and DEBUGMSG macros except that the XXXCELOGMSG macros write the data to the CeLogMsg function rather than to the debug output. For more information, see CeLog Event Tracking Macros.

Requirements

Header

celog.h

Library

coredll.lib

See Also

Reference

CeLog Event Tracking Functions
CeLogData