|
|
This section provides information about the following IUniformResourceLocator interface methods:
HRESULT GetURL(
LPSTR *ppszURL
);
Retrieves an object's uniform resource locator (URL).
| Value | Meaning |
| E_OUTOFMEMORY | There is not enough memory to complete the operation. |
| IS_E_EXEC_FAILED | The URL's protocol handler failed to run. |
| URL_E_INVALID_SYNTAX | The URL's syntax is invalid. |
| URL_E_UNREGISTERED_PROTOCOL | The URL's protocol does not have a registered protocol handler. |
// START CODE FRAGMENT
{
// In this example, pURL is a global IUniformResourceLocator pointer.
LPSTR lpTemp;
hres = pURL->GetURL(&lpTemp);
if (SUCCEEDED(hres)){
IMalloc* pMalloc;
hres = SHGetMalloc(&pMalloc);
if (SUCCEEDED(hres)){
pMalloc->Free(lpTemp);
pMalloc->Release();
}
}
}
// END CODE FRAGMENT
HRESULT InvokeCommand(
PURLINVOKECOMMANDINFO pURLCommandInfo;
);
Runs a command on an object's URL.
| Value | Meaning |
| E_OUTOFMEMORY | There is not enough memory to complete the operation. |
| IS_E_EXEC_FAILED | The URL's protocol handler failed to run. |
| URL_E_INVALID_SYNTAX | The URL's syntax is invalid. |
| URL_E_UNREGISTERED_PROTOCOL | The URL's protocol does not have a registered protocol handler. |
HRESULT SetURL(
LPCSTR pcszURL,
DWORD dwInFlags
);
Sets an object's URL.
| Value | Meaning |
| E_OUTOFMEMORY | There is not enough memory to complete the operation. |
| IS_E_EXEC_FAILED | The URL's protocol handler failed to run. |
| URL_E_INVALID_SYNTAX | The URL's syntax is invalid. |
| URL_E_UNREGISTERED_PROTOCOL | The URL's protocol does not have a registered protocol handler. |
|
|