pSize (PULONG) - in/out
If NULL is specified for pProgDetails, then the size of the current pProgDetails is returned in pSize.