AbortPath function (wingdi.h)

The AbortPath function closes and discards any paths in the specified device context.

Syntax

BOOL AbortPath(
  [in] HDC hdc
);

Parameters

[in] hdc

Handle to the device context from which a path will be discarded.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

If there is an open path bracket in the given device context, the path bracket is closed and the path is discarded. If there is a closed path in the device context, the path is discarded.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

BeginPath

EndPath

Path Functions

Paths Overview