I know comdlg32 doesn't seem to be very close to urlmon, but stub I added shows a problems in included headers order. SetPort method from IUriBuilder collides with SetPort define from winspool.h and a build error comes up saying I'm using unprefixed call (without A or W). Second patch should apply cleanly.