The DlgDirSelect function has been deleted. Win32 applications should use the DlgDirSelectEx function.
DlgDirSelectEx