Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IRunningObjectTable::Register Method (Int32, Object^, IMoniker^)

 

Registers that the supplied object has entered the running state.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

int Register(
	int grfFlags,
	Object^ punkObject,
	IMoniker^ pmkObjectName
)

Parameters

grfFlags
Type: System::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
Type: System::Object^

A reference to the object being registered as running.

pmkObjectName
Type: System.Runtime.InteropServices.ComTypes::IMoniker^

A reference to the moniker that identifies punkObject.

Return Value

Type: System::Int32

A value that can be used to identify this ROT entry in subsequent calls to Revoke or NoteChangeTime.

ROT references to punkObject (weak and strong) determine object lifetime. For more information, see the documentation for the COM IRunningObjectTable::Register method in the MSDN library.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft