Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetTarget method is used internally by WDTF. Do not call this method directly.
Syntax
HRESULT SetTarget(
[in] ITarget *pMainTarget,
[in] VARIANT MoreTargets
);
Parameters
[in] pMainTarget
The main target for the implementation to use. This target is the one that IWDTFTarget2::GetInterface was called on.
[in] MoreTargets
Optional additional targets for the implementation. Currently, the MoreTargets parameter will always be VT_EMPTY. You should fail the SetTarget call if this parameter is anything other than VT_EMPTY.
Return value
SetTarget returns a standard HRESULT value
Remarks
The SetTarget method is used when you are creating WDTF actions. Do not call this method from a WDTF scenario.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP Professional |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Desktop |
| Header | wdtf.h |