ICreateTypeLib::SetLcid

HRESULT SetLcid(
  LCID  lcid  
);
 

Sets the binary Microsoft national language ID associated with the library.

Parameter

lcid
Represents the locale ID for the type library.

Return Value

The return value of the returned HRESULT is one of the following:

Return value Meaning
S_OK Success.
STG_E_INSUFFICIENTMEMORY Out of memory.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.
TYPE_E_INVALIDSTATE The state of the type library is not valid for this operation.

Comments

For more information on national language IDs, see "Supporting Multiple National Languages," in Chapter 2, "Exposing Automation Objects." For additional information for 16-bit systems, refer to Appendix A, "National Language Support Functions." For 32-bit systems, refer to Windows NT documentation on the National Language Support (NLS) API.