|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
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 ®Info, 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 ®Info, TRegItem *overrides) |
| Unregister application or class from registration database. | |
| int | ocf::OcSetupDebugReg (TRegList ®Info, 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 &iidiid, void **retObjretObj) |
| 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 TCHAR * | ocf::OcReplaceKeys [] = { _T("progid"), _T("clsid"), _T("description"), _T("extraopt")} |
| const TCHAR * | ocf::OcDebugKeys [] = {_T("debugprogid"), _T("debugclsid"), _T("debugdesc"), _T("debugopt")} |
OLE Registration implementation.
Definition in file ocreg.cpp.
| 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 __declspec(), ocf::amDebug, ocf::TRegistrar::GetNext(), HR_FAIL, HR_OK, ocf::TRegistrar::IsOptionSet(), OWL_BREAK, and ocf::TRegistrar::ProcessCmdLine().
| 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::CanUnload(), DllCanUnloadNow(), ocf::TRegistrar::GetNext(), HR_FALSE, HR_OK, and TRACEX.
| int WINAPI DllEntryPoint | ( | HINSTANCE | hInstance, |
| uint32 | reason, | ||
| LPVOID | ) |
Definition at line 585 of file ocreg.cpp.
References _T, DllEntryPoint(), and OWLInitUserDLL().
| 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 DllGetClassObject(), ocf::TRegistrar::GetFactory(), ocf::TRegistrar::GetNext(), HR_FAIL, and HR_OK.
| STDAPI DllRegisterServer | ( | ) |
OLE 2.0 entry point for registering DLL, no locale info passed.
Definition at line 559 of file ocreg.cpp.
References _T, and DllRegisterServer().
| STDAPI DllUnregisterServer | ( | ) |
OLE 2.0 entry point for unregistering DLL.
Definition at line 567 of file ocreg.cpp.
References _T, and DllUnregisterServer().