---
name: "SysAllocStringLen16"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SysAllocStringLen16"
---

# SysAllocStringLen16(3w)

## NAME

**SysAllocStringLen16** (OLE2DISP.4)

## SYNOPSIS

BSTR16 SysAllocStringLen16\
  (\
   const char\* *oleStr*,\
   int         *len*\
  )

## DESCRIPTION

Create a **BSTR16** from an **OLESTR16** of a given character length (**16** Bit).

## PARAMS

*oleStr* **\[In\]**  Source to create **BSTR16** from.

*len* **\[In\]**  Length of *oleStr* in wide characters.

## RETURNS

**Success:** A newly allocated **BSTR16** from **SysAllocStringByteLen16(3w)**

**Failure:** **NULL**, if *len* is \>= 0x80000000, or memory allocation fails.

## NOTES

See **SysAllocStringByteLen16(3w)**.

## IMPLEMENTATION

Declared in **"ole2disp.h"**.

Implemented in **"dlls/ole2disp.dll16/ole2disp.c"**.

Debug channel **"ole"**.
