take a look in the msdn. The api you want is GetOpenFileName


Hope this helps