ITcTypeInstance6::TypicalFormatCharCount
Estimates the typical output length of a format by pre-filling a buffer of the type size with 0xFF and then formatting it. If this sample does not return any output, the method falls back to the byte size of the type.
Signature
HRESULT TypicalFormatCharCount(ULONG formatIdx, ULONG* pCnt);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
formatIdx |
ULONG |
[in, defaultvalue(0)] 0-based format index. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pCnt |
ULONG* |
[out, retval] Estimated number of characters. |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pCntisNULL.