Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

BSTR SysAllocString ( const OLECHAR *  sz  ) 

Copies a string into a new memory block including the terminating UCS2 NULL

sz source string to copy
BSTR new string buffer

Definition at line 44 of file helpers.cpp.

References NULL, SysAllocStringLen(), and SysStringLen().

Referenced by com::GetInterfaceNameByIID(), and SysReAllocString().

    if (!sz)
        return NULL;
    return SysAllocStringLen(sz, SysStringLen((BSTR)sz));

Generated by  Doxygen 1.6.0   Back to index