All I want to do is grab the string value at the following registry path:

HKEY_LOCAL_MACHINE/SOFTWARE/JJIS/OLE_COMREG

I guess there is no way to use VB's GetSetting Method and that you must use the methods provided by a VB Module that comes with VB.

My problem is that I cannot add the module to my project. I need to get this key within a class. This class cannot use any other DLL's, Modules, Forms, etc.

The reason for this is because the class is used as an MTS object and I do not want it to use anthing else but itself.

Is there any way I could just define the 1 function I need to use and use it within my class? And if so which function, etc would I need to put in it?

Thankx,