AfxParseURL
Visual Studio 2012
This global is used in CInternetSession::OpenURL.
BOOL AFXAPI AfxParseURL( LPCTSTR pstrURL, DWORD& dwServiceType, CString& strServer, CString& strObject, INTERNET_PORT& nPort );
It parses a URL string and returns the type of service and its components.
For example, AfxParseURL parses URLs of the form service://server/dir/dir/object.ext:port and returns its components stored as follows:
strServer == "server"
strObject == "/dir/dir/object/object.ext"
nPort == #port
dwServiceType == #service
Note
|
|---|
|
To call this function, your project must include AFXINET.H. |
Note