IEventSystem::Store method (eventsys.h)

Creates or modifies an event or subscription object within the event system.

Syntax

HRESULT Store(
  [in] BSTR     ProgID,
  [in] IUnknown *pInterface
);

Parameters

[in] ProgID

The ProgID of the event object to be added. This must be a valid event object class identifier. The possible values are PROGID_EventSubscription and PROGID_EventClass.

[in] pInterface

A pointer to the object to be added. Depending on the object specified by the ProgID parameter, this is a pointer to the IEventSubscription or IEventClass interface.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return code Description
S_OK
The method completed successfully.
EVENT_E_INVALID_PER_USER_SID
The owner SID on a per-user subscription does not exist.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header eventsys.h

See also

IEventSystem