This structure is used in the GreEscape DEVESC_QUERYSIZE call. It associates the type of property you are querying (ulProperty) and the kind of query you will do (DJP_ALL or DJP_CURRENT).
typedef struct _QUERYTUPLE {
ULONG ulProperty; /* Identifies specific job property. */
LONG lType; /* Property type. */
} QUERYTUPLE;
typedef QUERYTUPLE * PQUERYTUPLE ;