The conversion is done in place, therefore the buffer containing the URL pathname must be writeable. See wsapi.h . Description URL to file path mapping. The conversion is done in place, therefore the buffer containing the URL pathname must be writeable. This translation depends on a unique relationship between the URL and the physical pathname.
Redundant mappings can result in unpredictable results.
Note that the default document specification usually used with WebSite is index. Check the MIME content type of the returned document before making any decisions. The return value indicates the object type of the URL target. Call this to log a message for the administrator. In general, you need to be concerned about these only if you have allocated other memory that needs to be freed or handles that need to be closed.