Jump to content

GpiCloseSegment

From EDM2
Revision as of 02:06, 20 September 2025 by Martini (talk | contribs)

This function closes the current segment.

Syntax

GpiCloseSegment (hps)

Parameters

hps (HPS) - input
Presentation-space handle.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE - Successful completion
  • FALSE - Error occurred.

Example Code

Declaration:

#define INCL_GPISEGMENTS /* Or use INCL_GPI, INCL_PM, */
#include <os2.h>

HPS     hps;  /*  Presentation-space handle. */
BOOL    rc;   /*  Success indicator. */

rc = GpiCloseSegment(hps);