ISyncMgrEvent::GetContext method
Gets a context object that can be used by a handler to display properties or execute a context menu action.
Syntax
HRESULT GetContext( [out] LPWSTR *ppszContext );
Parameters
- ppszContext [out]
-
Type: LPWSTR*
When this method returns, contains a pointer to the context as a Unicode string.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The handler is expected to allocate the buffer using CoTaskMemAlloc, which Sync Center uses to deallocate the string buffer.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: