Share via


EnumTimeFormatsProc

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function is an application-defined callback function. It is called because of a call to the EnumTimeFormats function, and receives a pointer to a string buffer that contains a time format string.

Syntax

BOOL CALLBACK EnumTimeFormatsProc(
  LPWSTR lpTimeFormatString 
); 

Parameters

  • lpTimeFormatString
    [out] Pointer to a string buffer that contains a null–terminated time format string.

Return Value

TRUE continues enumeration. FALSE stops enumeration.

Remarks

Windows Embedded CE supports only the Unicode version of this function.

An application registers an EnumTimeFormatsProc function by passing its address to the EnumTimeFormats function.

Note

This function poses a security risk. The parameter lpTimeFormatString is only used as input but not declared as a const string. The user may fill anything into it and can cause a buffer overflow.

Requirements

Header winnls.h
Library Coreloc.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

EnumTimeFormats