Jump to content

DrgDeleteStrHandle

From EDM2
Revision as of 00:09, 8 April 2025 by Iturbide (talk | contribs) (Created page with "This function deletes a string handle. ==Syntax== DrgDeleteStrHandle(hstr) ==Parameters== ;hstr (HSTR) - input: The string handle to delete. ==Returns== ;rc (BOOL) - returns: Success indicator. :: TRUE - Successful completion. :: FALSE - Error occurred. ==Remarks== This function must be used to delete a string handle created by the DrgAddStrHandle function. ==Errors== Possible returns from WinGetLastError: ;PMERR_INVALID_PARAMETERS (0x1208) ==Example Code=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function deletes a string handle.

Syntax

DrgDeleteStrHandle(hstr)

Parameters

hstr (HSTR) - input
The string handle to delete.

Returns

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

Remarks

This function must be used to delete a string handle created by the DrgAddStrHandle function.

Errors

Possible returns from WinGetLastError:

PMERR_INVALID_PARAMETERS (0x1208)

Example Code

#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */
#include <os2.h>

BOOL fSuccess; /* Indicate success or failure */
HSTR Hstr;     /* String handle */

fSuccess = DrgDeleteStrHandle (Hstr);

Related Functions