loadStringByReference 函式 (winnls.h)

不支援。 LoadStringByReference 可能會變更或無法使用。 請改用 SHLoadIndirectString

語法

BOOL LoadStringByReference(
  [in]            DWORD  Flags,
  [in, optional]  PCWSTR Language,
  [in]            PCWSTR SourceString,
  [out, optional] PWSTR  Buffer,
  [in]            ULONG  cchBuffer,
  [in, optional]  PCWSTR Directory,
  [out, optional] PULONG pcchBufferOut
);

參數

[in] Flags

保留的。

[in, optional] Language

語言。

[in] SourceString

來源字串參考。

[out, optional] Buffer

要接收字串的緩衝區。

[in] cchBuffer

Buffer 的大小,以字元為單位。

[in, optional] Directory

SourceString 的目錄路徑。

[out, optional] pcchBufferOut

寫入 Buffer 的字元數。

傳回值

BOOL 數據類型。

備註

不支援 LoadStringByReference ,未來可能會變更或無法使用。 請改用 SHLoadIndirectString

規格需求

需求
最低支援的用戶端 Windows 7 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 winnls.h (包含 Windows.h)
程式庫 Kernel32.lib
DLL Kernel32.dll