How can I detect the path of a virtual directory in IIS?

I need my windows application to get the path, but it diesn't seem like Windows apps support the Server.MapPath command!

Any ideas?