IFEDictionary::GetHeader method (msime.h)

Gets a dictionary header from a dictionary file without opening the dictionary.

Syntax

HRESULT GetHeader(
  [in, out, optional] CHAR   *pchDictPath,
  [out]               IMESHF *pshf,
  [out]               IMEFMT *pjfmt,
  [out]               ULONG  *pulType
);

Parameters

[in, out, optional] pchDictPath

A NULL-terminated string containing the path and name of the dictionary file.

[out] pshf

The IMESHF header of the file. Can be NULL.

[out] pjfmt

The dictionary format. This can be one of the following values:

IFED_UNKNOWN

IFED_MSIME2_BIN_SYSTEM

IFED_MSIME2_BIN_USER

IFED_MSIME2_TEXT_USER

IFED_MSIME95_BIN_SYSTEM

IFED_MSIME95_BIN_USER

IFED_MSIME95_TEXT_USER

IFED_MSIME97_BIN_SYSTEM

IFED_MSIME97_BIN_USER

IFED_MSIME97_TEXT_USER

IFED_MSIME98_BIN_SYSTEM

IFED_MSIME98_BIN_USER

IFED_MSIME98_TEST_USER

IFED_ACTIVE_DICT

IFED_ATOK9

IFED_ATOK10

IFED_NEC_AI_

IFED_WX_II

IFED_WX_III

IFED_VJE_20

IFED_MSIME98_SYSTEM_CE

IFED_MSIME_BIN_SYSTEM

IFED_MSIME_BIN_USER

IFED_MSIME_TEXT_USER

IFED_PIME2_BIN_USER

IFED_PIME2_BIN_SYSTEM

IFED_PIME2_BIN_STANDARD_SYSTEM

[out] pulType

The dictionary type. This is a combination of one or more of the following flags:

Value Meaning
IFED_TYPE_NONE
Undefined.
IFED_TYPE_GENERAL
General dictionary.
IFED_TYPE_NAMEPLACE
Name/place dictionary.
IFED_TYPE_SPEECH
Speech dictionary.
IFED_TYPE_REVERSE
Reverse dictionary.
IFED_TYPE_ENGLISH
English dictionary.
IFED_TYPE_ALL
All of the above types.

Return value

One of the following:

  • S_OK
  • IFED_E_INVALID_FORMAT
  • E_FAIL

Requirements

Requirement Value
Target Platform Windows
Header msime.h

See also

IFEDictionary

IMESHF