Distributed Component Object Distribute Component Object Model (DCOM) configuration

xiaoxiao2021-03-06  38

Distributed Component Object Distribute Component Object Model (DCOM) configuration

Shanghai Boda Data Communication Co., Ltd. VoIP Project Department Gong Chao

One. Process components (DLL) configuration

1) Component or server-side configuration (remote)

Take the Windows XP system as an example.

a) Write and use MIDL compilation IDL and component code generation * .h, dlldata.c, * _ i.c, * _ p.c, *. TLB and other files

b) Write * .def file format as follows:

c) Writing * .mk file format is used as follows to compile the residual root (STUB) and proxy (Proxy)

d) Compile the above MK file compilation to generate a residual root (STUB) and proxy (Proxy) with nmake / f * .mk.

e) Compile component code generation components (DLL)

f) Registration components with regsvr32 * .dll

g) Register the agent with regsvr32 stub / proxy.dll

h) Open the registry with regedit.exe and generate an ID with Guidgen.exe

{8AF1E59E-D92F-41AC-A190-482FE0E7035A}

In the registry key [HKEY_CLASS_ROOT / APPID] Next, a new item name is {8AF1E59E-D92F-41AC-A190-482FE0E7035A}, and newly built a string is named Dllsurrogate, and its data can be named the agent hosting procedure. Path and program name, or empty (indicating that the system default agent managed DLLHOST.exe) is shown:

I) Under the [HKEY_CLASS_ROOT / CLSID] key of the registry, find the GUID of the registration component to open the GUID, create a new word name appid, data h) step, the generated GUID, the same is newly built under his agent residue A string name appid, data is h) steps generated GUID.

CLSID can't set up Local Server32, LocalServer, LocalService. InprocServer32 Sub-hearts are included in the CLSID.

In InProcServer32 of the agent residual root (STUB / Proxy), its bundle is the path to the agent-residue DLL registered by the server.

The default path in InProcServer32 in the component side CLSID is the path to the component.

j) Run DCMCNFG.EXE for DCOM configuration.

Select h) steps Generated GUID. Right-click Property

Customized to join the Guest account and the guest account cannot be disabled.

k) This machine runs the client to test.

l) Component ID Reference The following figure:

m) If there are multiple components that need to be configured, repeat step i)

n) Repeat step h) if you want to generate multiple APPIDs.

2) Configuration of the call or client (client)

Configure the Windows98 as an example;

a) Register components with regsvr32 * .dll

b) Register agency with regsvr32 stub / proxy.dll

c) Open the registry with regedit.exe, enter the AppID key, in the registry key [HKEY_CLASS_ROOT / APPID] Newly built the top of the above components Generated, such as {8AF1E59E-D92F-41AC-A190-482FE0E7035A}, and newly built below The string is named RemoteServerName, the machine name where the remote component is located, such as // GC is as shown:

D): Enter the [HKEY_CLASS_ROOT / CLSID] key of the registry, find the GUID of the registration component to open the GUID, create a word-name appid, data is the component-side configuration h) step, the generated GUID, the same in his agent On the key, a new string name appid, the data is the component side configuration h) steps generated GUID {8AF1E59E-D92F-41AC-A190-482FE0E7035A}. As shown

e) Delete the default value of the INPROCSERVER32 under the INPROCSERVER32, that is, the address of the local component, such as the reserved root / agent, the default proxy address, which

g) CLSID can't set up LocalServer32, localserver, localservice. InprocServer32 Sub-hearts are included in the CLSID.

h) Run dcomcnfg.exe for DCOM configuration. Interface configuration is configured

The following is the point of Property:

i) Configuration is complete, this machine runs a client to test.

j) If there are multiple components that need to be configured, repeat step d) -g)

K) Repeat step c) if you want to generate multiple APPIDs.

two. Process Extraction Component (EXE) configuration

1) Component end configuration

Take the Windows XP system as an example.

Internal component end j) --- K)

2) Client configuration:

Take the Windows 98 system as an example.

Run process external components for self-registration, or run commands * .exe / regserver

then:

The following is the point of Property:

The configuration is complete, the machine runs the client to test.

转载请注明原文地址:https://www.9cbs.com/read-69015.html

New Post(0)