Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LoadStringByReference function

Unsupported. LoadStringByReference may be altered or unavailable. Instead, use SHLoadIndirectString.

Syntax


BOOL WINAPI LoadStringByReference(
  _In_      DWORD  Flags,
  _In_opt_  PCWSTR Language,
  _In_      PCWSTR SourceString,
  _Out_opt_ PWSTR  Buffer,
  _In_      ULONG  cchBuffer,
  _In_opt_  PCWSTR Directory,
  _Out_opt_ PULONG pcchBufferOut
);

Parameters

Flags [in]

Reserved.

Language [in, optional]

The language.

SourceString [in]

The source string reference.

Buffer [out, optional]

The buffer to receive the string.

cchBuffer [in]

The size of Buffer, in characters.

Directory [in, optional]

The directory path to SourceString.

pcchBufferOut [out, optional]

The number of characters written to Buffer.

Return value

A BOOL datatype.

Remarks

LoadStringByReference is not supported and may be altered or unavailable in the future. Instead, use SHLoadIndirectString.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Winnls.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

 

 

Show:
© 2017 Microsoft