Jump to content

DrgQueryDraginfoPtr

From EDM2
Revision as of 00:21, 8 April 2025 by Iturbide (talk | contribs) (Created page with "This function obtains a pointer to the current DRAGINFO structure. ==Syntax== DrgQueryDraginfoPtr(pRsvd) ==Parameters== ;pRsvd (PDRAGINFO) - input: Reserved value, must be NULL. ==Returns== ;pDragInfo (PDRAGINFO) - returns: Pointer to the current DRAGINFO structure. :: A return value of NULL indicates that a DRAGINFO has not been allocated. ==Remarks== The returned DRAGINFO structure could have been allocated for use in either a standard or lazy drag operation. Dr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function obtains a pointer to the current DRAGINFO structure.

Syntax

DrgQueryDraginfoPtr(pRsvd)

Parameters

pRsvd (PDRAGINFO) - input
Reserved value, must be NULL.

Returns

pDragInfo (PDRAGINFO) - returns
Pointer to the current DRAGINFO structure.
A return value of NULL indicates that a DRAGINFO has not been allocated.

Remarks

The returned DRAGINFO structure could have been allocated for use in either a standard or lazy drag operation. DrgQueryDragStatus can be used to determine which type of drag is active.

Example Code

#define INCL_WINSTDDRAG
#include <os2.h>

PDRAGINFO pdinfo; /* Pointer to a DRAGINFO structure */

pdinfo = DrgQueryDraginfoPtr(NULL);
if (pdinfo)
{
.
.
.
}

Related Functions