INewShortcutHook::SetReferent method
Sets the referent of the shortcut object.
Syntax
HRESULT SetReferent( [in] PCTSTR pszReferent, [in, optional] HWND hWnd );
Parameters
- pszReferent [in]
-
Type: PCTSTR
A pointer to a string that contains the referent.
- hWnd [in, optional]
-
Type: HWND
A handle to the window that will be used as the parent if the object needs to display a message box or dialog box. This value can be NULL.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
For Internet shortcut objects, this method is the same as IUniformResourceLocator::SetURL.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
DLL |
|
Show: