Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "CoTaskMemFree" in [All]

credui

.

public static extern void CoTaskMemFree(IntPtr ptr);

.

         CoTaskMemFree(outCredBuffer);

advapi32

.

As explained [here], memory for the returned unmanaged string must be freed by calling LocalFree. Therefore, you must define the string as an IntPtr in managed code and call LocalFree yourself. Otherwise, the marshaler would call CoTaskMemFree which is not correct in this case.

Interfaces

.

    // ppwszTip will be freed by marshler using CoTaskMemFree()

ole32

.
Summary
.

static extern void CoTaskMemFree(IntPtr pv);

.
Documentation
[CoTaskMemFree] on MSDN

 
Access PInvoke.net directly from VS: