A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemfree below:

CoTaskMemFree function (combaseapi.h) - Win32 apps

CoTaskMemFree function (combaseapi.h)

In this article

Frees a block of task memory previously allocated through a call to the CoTaskMemAlloc or CoTaskMemRealloc function.

Syntax
void CoTaskMemFree(
  [in, optional] _Frees_ptr_opt_ LPVOID pv
);
Parameters

[in, optional] pv

A pointer to the memory block to be freed. If this parameter is NULL, the function has no effect.

Return value

None

The CoTaskMemFree function uses the default OLE allocator.

The number of bytes freed equals the number of bytes that were originally allocated or reallocated. After the call, the memory block pointed to by pv is invalid and can no longer be used.

Requirements Requirement Value Minimum supported client Windows 2000 Professional [desktop apps | UWP apps] Minimum supported server Windows 2000 Server [desktop apps | UWP apps] Target Platform Windows Header combaseapi.h (include Objbase.h) Library Ole32.lib DLL Ole32.dll See also

CoTaskMemAlloc

CoTaskMemRealloc

IMalloc::Free

Additional resources

In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4