Jump to content

DrgQueryDraginfoPtr: Difference between revisions

From EDM2
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..."
 
(No difference)

Latest revision as of 00:21, 8 April 2025

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