Compartilhar via


FreeBSTR (Windows CE 5.0)

Send Feedback

This function frees a task-allocated BSTR string from memory.

STDAPI FreeBSTR(BSTR* pstr);

Parameters

  • pstr
    Address of the BSTR to free.

Return Values

Returns S_OK if successful or S_FALSE if pstr is null.

Remarks

Memory is allocated for passing between objects across interfaces by calling CoTaskMemAlloc.

Memory is freed by calling CoTaskMemFree.

You can allocate, pass, and free memory safely between objects created in different programming languages by using a central memory allocator.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

See Also

BSTR Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.