#include <oskit/com/services.h>oskit_error_t oskit_register(const struct oskit_guid *iid, void *interface);
Register a COM interface in the services registry. An additional reference on the interface is taken. More than one interface may be registered for a particular IID. Attempts to register an interface that is already registered will succeed, although the registry will remain unchanged and no additional references will be taken.
- iid
- The oskit_guid of the COM interface being registered.
- interface
- The COM interface being registered.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.