VarTokenizeFormatString(3w)

VarTokenizeFormatString3w

Usage

HRESULT VarTokenizeFormatString
(
LPOLESTR lpszFormat,
LPBYTE rgbTok,
int cbTok,
int nFirstDay,
int nFirstWeek,
LCID lcid,
int* pcbActual
)

Overview

Convert a format string into tokenised form.

Params

lpszFormat [In] Format string to tokenise.

rgbTok [Out] Destination for tokenised format.

cbTok [In] Size of rgbTok in bytes.

nFirstDay [In] First day of the week (1-7, or 0 for current system default).

nFirstWeek [In] How to treat the first week (see notes).

lcid [In] Locale Id of the format string.

pcbActual [Out] If non-NULL, filled with the first token generated.

Returns

Success: S_OK. rgbTok contains the tokenised format.

Failure: E_INVALIDARG, if any argument is invalid. TYPE_E_BUFFERTOOSMALL, if rgbTok is not large enough.

Notes

Valid values for the nFirstWeek parameter are:

Value Meaning

----- -------

0 Use the current system default

1 The first week is that containing Jan 1

2 Four or more days of the first week are in the current year

3 The first week is 7 days long

See Variant-Formats(3w), VarFormatFromTokens(3w).

Implementation

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/varformat.c".

Debug channel "variant".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.