The AbortPath function closes and discards any paths in the specified device context.
BOOL AbortPath( HDC hdc );
int AbortPath(int hdc) => _AbortPath(hdc);