Id

Get or set the source Id.
If the source is already child of a configuration, it will be removed and added with the new Id. The SourceRemoved and NewSource events will be issued.

 

Property get

HRESULT Id([out, retval] long
*pVal);

Parameters

pVal

[out, retval] pointer to a long variable that receives the Source Id

Return Values

S_OK

Function was successfully called

E_POINTER

pVal was no valid pointer

Property set

HRESULT Id([in] long newVal);

Parameters

newVal

[in] long variable holding the new source Id

Return Values

S_OK

The Source Id was successfully set to newVal

E_FAIL

The source is child of an EvtConfiguration object wich does already contain another source with the specified Id.
The Id remains unchanged.

E_ACCESSDENIED

The object is locked due to an asynchronous operation