NAME

SysAllocString  (OLEAUT32.2)

SYNOPSIS

 BSTR SysAllocString
 (
  LPCOLESTR str
 )

DESCRIPTION

Create a BSTR from an OLESTR.

PARAMS

str [In] Source to create BSTR from.

RETURNS

Success: A BSTR allocated with SysAllocStringLen.

Failure: NULL, if oleStr is NULL.

NOTES

See BSTR. MSDN (October 2001) incorrectly states that NULL is returned if oleStr has a length of 0. Native Win32 and this implementation both return a valid empty BSTR in this case.

IMPLEMENTATION

Declared in "oleauto.h". https://source.winehq.org/source/include/oleauto.h

Implemented in "dlls/oleaut32/oleaut.c". https://source.winehq.org/source/dlls/oleaut32/oleaut.c

Debug channel "ole".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.