comdlg32: Add a helper to return the dialog struct.