OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocreg.cpp File Reference

OLE Registration implementation. More...

#include <ocf/pch.h>
#include <ocf/ocreg.h>
#include <ocf/appdesc.h>
#include <owl/pointer.h>
#include <owl/module.h>
#include <shellapi.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Namespaces

namespace  ocf
 Object Component Framework (COM encapsulation)
 

Functions

 ocf::DIAG_DEFINE_GROUP_INIT (OWL_INI, OcfDll, 1, 0)
 
 ocf::DIAG_DECLARE_GROUP (OcfRefCount)
 
long ocf::OcRegisterClass (TRegList &regInfo, TModule *module, tostream &out, TLangId lang, LPCTSTR filter, TRegItem *defaults, TRegItem *overrides)
 Generate OLE registration file image to an output stream.
 
int ocf::OcUnregisterClass (TRegList &regInfo, TRegItem *overrides)
 Unregister application or class from registration database.
 
int ocf::OcSetupDebugReg (TRegList &regInfo, TRegItem *regDebug, TLangId lang, TCHAR *clsid)
 Walk thru a reginfo list using debug entries to create a parallel non-debug set for alternate, debug registration.
 
STDAPI __declspec (dllexport) DllRegisterCommand(LPCTSTR cmdLine)
 Entry point for complete registration management via command line Don't let any exceptions blow back to OLE.
 
STDAPI DllGetClassObject (const GUID &clsid, const GUID &iid, void **retObj)
 OLE 2.0 entry point for obtaining a class factory for a particular CLSID Don't let any exceptions blow back to OLE.
 
STDAPI DllCanUnloadNow ()
 OLE 2.0 entry point for checking if DLL has no clients and can be unloaded.
 
STDAPI DllRegisterServer ()
 OLE 2.0 entry point for registering DLL, no locale info passed.
 
STDAPI DllUnregisterServer ()
 OLE 2.0 entry point for unregistering DLL.
 
int WINAPI DllEntryPoint (HINSTANCE hInstance, uint32 reason, LPVOID)
 

Variables

const TCHARocf::OcReplaceKeys [] = { _T("progid"), _T("clsid"), _T("description"), _T("extraopt")}
 
const TCHARocf::OcDebugKeys [] = {_T("debugprogid"), _T("debugclsid"), _T("debugdesc"), _T("debugopt")}
 

Detailed Description

OLE Registration implementation.

Definition in file ocreg.cpp.

Function Documentation

◆ __declspec()

STDAPI __declspec ( dllexport )

Entry point for complete registration management via command line Don't let any exceptions blow back to OLE.

Definition at line 495 of file ocreg.cpp.

References ocf::amDebug, ocf::TRegistrar::GetNext(), HR_FAIL, HR_OK, and OWL_BREAK.

◆ DllCanUnloadNow()

STDAPI DllCanUnloadNow ( )

OLE 2.0 entry point for checking if DLL has no clients and can be unloaded.

Definition at line 543 of file ocreg.cpp.

References ocf::TRegistrar::GetNext(), HR_FALSE, HR_OK, and TRACEX.

◆ DllEntryPoint()

int WINAPI DllEntryPoint ( HINSTANCE hInstance,
uint32 reason,
LPVOID  )

Definition at line 610 of file ocreg.cpp.

References _T, and OWLInitUserDLL().

◆ DllGetClassObject()

STDAPI DllGetClassObject ( const GUID & clsid,
const GUID & iid,
void ** retObj )

OLE 2.0 entry point for obtaining a class factory for a particular CLSID Don't let any exceptions blow back to OLE.

Definition at line 524 of file ocreg.cpp.

References ocf::TRegistrar::GetNext(), HR_FAIL, and HR_OK.

◆ DllRegisterServer()

STDAPI DllRegisterServer ( )

OLE 2.0 entry point for registering DLL, no locale info passed.

Definition at line 559 of file ocreg.cpp.

References _T.

◆ DllUnregisterServer()

STDAPI DllUnregisterServer ( )

OLE 2.0 entry point for unregistering DLL.

Definition at line 567 of file ocreg.cpp.

References _T.