Edit

WinI3CRelease function (wini3c.h)

Releases the resources associated with a WinI3C handle. A WinI3C handle is either a WinI3CTarget (from WinI3CInitializeTarget) or a WinI3CAsyncOperation (from any of the ...WithFileHandle functions).

Syntax

void WINAPI WinI3CRelease(
    _In_opt_ void* winI3CHandle);

Parameters

[in, optional] winI3CHandle

The WinI3C handle to release.

If NULL, the call is a no-op.

Return value

This function does not return a value.

Remarks

WinI3CRelease blocks until the release has completed. Referencing the WinI3C handle after this call is undefined.

CloseHandle shall not be called on a WinI3C handle; use WinI3CRelease instead.

When releasing a WinI3CAsyncOperation, release it only after its underlying overlapped operation has completed, and before destroying the associated OVERLAPPED.

This function is thread-safe.

Example

#include <wini3c.h>

void main()
{
    ...

    WinI3CTarget target = ...;

    ...

    WinI3CRelease(target);

    ...
}

Requirements

Requirement Value
Minimum supported client Windows 11 25H2 October update (build 26200)
Target Platform Windows
Header wini3c.h
DLL wini3c.dll

See also

WinI3CInitializeTarget