The parameters and flags vary according to the selected device.
Note: A pointer to the rectangle is returned in the rc field of the data structure identified by pParam2.