共用方式為


EnumLayoutOrTipForSetup 函式

列舉安裝 UI 或 OOBE 的已安裝鍵盤配置和文字服務。

語法

UINT CALLBACK EnumLayoutOrTipForSetup(
  _In_  LANGID      langid,
  _Out_ LAYOUTORTIP *pLayoutOrTip,
  _In_  UINT        uBufLength,
  _In_  DWORD       dwFlags
);

參數

langid [in]

要列舉之專案的語言識別項。

pLayoutOrTip [out]

接收 LAYOUTORTIP 結構陣列之緩衝區的指標。 這可以是 Null ,可取得專案數目。

uBufLength [in]

pLayoutOrTip所指向的緩衝區長度。 如果 pLayoutOrTipNull,則會忽略此動作。

dwFlags [in]

未使用。 這必須是零。

傳回值

如果 pLayoutOrTipNull,則為 System 中註冊的鍵盤專案數目;否則,複製到 pLayoutOrTip的鍵盤專案數目。

備註

沒有可定義此函式的匯入程式庫,因此必須使用 LoadLibraryGetProcAddress取得此函式的指標。

注意

使用 LoadLibrary 不正確可能會藉由載入錯誤的 DLL 來危害應用程式的安全性。 如需如何使用不同 Microsoft Windows 版本正確載入 DLL 的資訊,請參閱 動態連結程式庫搜尋順序

LAYOUTORTIP 的定義如下:

typedef struct tagLAYOUTORTIP {
    DWORD dwFlags;
#define LOT_DEFAULT    0x0001 // If this is on, this is a default item. 
#define LOT_DISABLED   0x0002 // if this is on, this is not enabled. 
    WCHAR szId[MAX_PATH]; // Id of the keyboard item in the string format. 
    WCHAR szName[MAX_PATH]; // The description of the keyboard item. 
} LAYOUTORTIP;

規格需求

需求
最低支援的用戶端
Windows Vista [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 [僅限傳統型應用程式]
DLL
Input.dll