SysAllocString function oleaut32

BSTR SysAllocString(
  1. PCWSTR? psz
)

Allocates a new string and copies the passed string into it.

To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-sysallocstring.

Implementation

@pragma('vm:prefer-inline')
BSTR SysAllocString(PCWSTR? psz) => BSTR(_SysAllocString(psz ?? nullptr));