WdfPdoInitSetDefaultLocale - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfpdo.h

VOID WdfPdoInitSetDefaultLocale(
  [in] PWDFDEVICE_INIT DeviceInit,
  [in] LCID            LocaleId
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfpdo-wdfpdoinitsetdefaultlocale)

WdfPdoInitSetDefaultLocale function

Description

[Applies to KMDF only]

The WdfPdoInitSetDefaultLocale method sets a device's default locale.

Parameters

DeviceInit [in]

A pointer to a WDFDEVICE_INIT structure.

LocaleId [in]

A locale identifier (LCID) that represents the default locale. For more information, see Locale Identifiers.

Remarks

When the system requests device description text from a driver, it specifies a locale. If text for the specified locale is not available, the framework returns device text for the driver's default locale.

The driver must call WdfPdoInitSetDefaultLocale before calling WdfDeviceCreate. For more information about calling WdfDeviceCreate, see Creating a Framework Device Object.

Examples

The following code example sets a device's default locale to United States English (0x409).

WdfPdoInitSetDefaultLocale(
                           pDeviceInit,
                           0x409
                           );

See also

WdfPdoInitAddDeviceText