473,487 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IRunningObjectTable

Hi NG,
i need to know how to register an Object in the ROT (Running Object Table)
using the Interface found in System.Runtime.InteropServices.ComTypes i'm
using the .NET Framework 2. I tried some searches but i didn't found anything.

TIA and Best Regards
Sascha
Feb 24 '06 #1
2 6730
http://msdn2.microsoft.com/en-us/lib....register.aspx

says:

..NET Framework Class Library
IRunningObjectTable.Register Method
Note: This method is new in the .NET Framework version 2.0.

Registers that the supplied object has entered the running state.

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

C# code:

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

Parameters:

grfFlags

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
A reference to the object being registered as running.

pmkObjectName
A reference to the moniker that identifies punkObject.
Return Value
An HRESULT value that indicates the success or failure of the operation.
Remarks

For more information, see the existing documentation for
IRunningObjectTable::Register in the MSDN
"Sascha Dietl" <Sa*********@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
Hi NG,
i need to know how to register an Object in the ROT (Running Object Table)
using the Interface found in System.Runtime.InteropServices.ComTypes i'm
using the .NET Framework 2. I tried some searches but i didn't found
anything.

TIA and Best Regards
Sascha

Feb 24 '06 #2
Hi Fred,
i allready read that msdn article and it doesn't help me anyway since i can
not call any methods so do i have to implement that interface? When yes why
that complicated i could register my object through unmanaged code without
the need of implementing an interface.

Best Regards
Sascha

"Fred Mellender" wrote:
http://msdn2.microsoft.com/en-us/lib....register.aspx

says:

..NET Framework Class Library
IRunningObjectTable.Register Method
Note: This method is new in the .NET Framework version 2.0.

Registers that the supplied object has entered the running state.

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

C# code:

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

Parameters:

grfFlags

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
A reference to the object being registered as running.

pmkObjectName
A reference to the moniker that identifies punkObject.
Return Value
An HRESULT value that indicates the success or failure of the operation.
Remarks

For more information, see the existing documentation for
IRunningObjectTable::Register in the MSDN
"Sascha Dietl" <Sa*********@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
Hi NG,
i need to know how to register an Object in the ROT (Running Object Table)
using the Interface found in System.Runtime.InteropServices.ComTypes i'm
using the .NET Framework 2. I tried some searches but i didn't found
anything.

TIA and Best Regards
Sascha


Feb 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6363
by: John | last post by:
How do I get the name/path of the word file that is open (active) if I'm writting my application in C#. A link or sample code would be great.
3
4307
by: equip200 | last post by:
I have a third party program that has the ability to control my program trough ActiveX/COM. My program is built in c#? What would I need to do to have the third party program connect to my...
9
1904
by: Jon Davis | last post by:
I am working with an application that is compiled as a COM EXE (written in Delphi 7). I don't know if it's the nature of COM EXE or if it's implemented in the COM EXE, but when I create a new...
1
6438
by: retsb | last post by:
I have an Excel workbook that launch an external .exe. My .exe is written in c#. My application need a reference to the excel applicationthat just call it. When calling the external .exe (my c#...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.