SysReAllocStringLen.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

SysReAllocStringLen (OLEAUT32.5)

SYNOPSIS

int SysReAllocStringLen
 (
  BSTR*          old,
  const OLECHAR* str,
  unsigned int   len
 )

DESCRIPTION

Change the length of a previously created BSTR.

PARAMS

old [Out] BSTR to change the length of.

str [In] New source for pbstr.

len [In] Length of oleStr in wide characters.

RETURNS

Success: 1. The size of pbstr is updated.

Failure: 0, if len >= 0x80000000 or memory allocation fails.

NOTES

See BSTR(3w), SysAllocStringByteLen(3w). *pbstr may be changed by this function.

IMPLEMENTATION

Defined in "ole2disp.h".

Implemented in "dlls/oleaut32/oleaut.c".

Debug channel "ole".