3.2.4.2.8.2 EventType (put) (Opnum 13)

The EventType (put) method sets the event type property of the object. The event type property determines what type of event the action will generate if it is run.

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EVENTLOG | 0x01))] HRESULT EventType(
   [in] FsrmEventType eventType
 );

eventType: Pointer to a variable that contains an FsrmEventType (section 2.2.2.1.1.1) value.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

The eventType parameter is not a valid value. If eventType is FsrmEventType_Unknown, the parameter MUST be considered an invalid value.

Upon receiving this message, the server MUST validate parameters:

  • Verify that eventType contains a valid FsrmEventType value. If eventType is FsrmEventType_Unknown, the parameter MUST be considered an invalid value.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST use eventType as the type of event to log if the action is run.