Edit

Share via


UCOMIRunningObjectTable.Register(Int32, Object, UCOMIMoniker, Int32) Method

Definition

Registers that the supplied object has entered the running state.

public:
 void Register(int grfFlags, System::Object ^ punkObject, System::Runtime::InteropServices::UCOMIMoniker ^ pmkObjectName, [Runtime::InteropServices::Out] int % pdwRegister);
public void Register (int grfFlags, object punkObject, System.Runtime.InteropServices.UCOMIMoniker pmkObjectName, out int pdwRegister);
abstract member Register : int * obj * System.Runtime.InteropServices.UCOMIMoniker * int -> unit
Public Sub Register (grfFlags As Integer, punkObject As Object, pmkObjectName As UCOMIMoniker, ByRef pdwRegister As Integer)

Parameters

grfFlags
Int32

Specifies whether the Running Object Table's (ROT) reference to punkObject is weak or strong, and controls access to the object through its entry in the ROT.

punkObject
Object

Reference to the object being registered as running.

pmkObjectName
UCOMIMoniker

Reference to the moniker that identifies punkObject.

pdwRegister
Int32

Reference to a 32-bit value that can be used to identify this ROT entry in subsequent calls to Revoke(Int32) or NoteChangeTime(Int32, FILETIME).

Remarks

For more information, please see the existing documentation for IRunningObjectTable::Register in the MSDN library.

Applies to