이수안 데이터 연구실

검색 :
RSS 구독 : 글 / 댓글 / 트랙백 / 글+트랙백

COM & ATL

Silan Liu

1.      COM Basics

1.1.        Service Control Manager (SCM)

A Windows program called Service Control Manager (SCM) does most of the job in COM server invoking. It finds the server through System Registry, runs it, has it create the COM object, sets up local/remote transparency, and returns an interface pointer to the client.

Then the client can directly invoke methods of the COM object through the pointer, and there is no middleware involved unless it is a remote server, in which case only RPC is involved.

1.2.        Interface IUnknown

All COM interfaces should inherit interface IUnknown:

 

interface IUnknown

{

HRESULT QueryInterface(REFIID iid, void** ppvObject);

ULONG AddRef();

ULONG Release();

}

One COM object may be used by multiple clients. The COM server maintains a reference count for each interface of the object. When one client asks to create an instance of the interface with CoCreateInstance or CoCreateInstanceEx, the COM server will call that interface

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2008/06/09 10:00 2008/06/09 10:00

맨 위로

ActiveX 而⑦

?
이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/23 17:34 2007/03/23 17:34

맨 위로

[ActiveX] ?ㅻ낫?

?

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/21 09:52 2007/03/21 09:52

맨 위로

ATL ?

?

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/21 09:51 2007/03/21 09:51

맨 위로

?뱁

?

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/17 11:54 2007/03/17 11:54

맨 위로

ActiveX瑜

?
이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/15 11:26 2007/03/15 11:26

맨 위로

String Conversion Macro

?

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/08 09:53 2007/03/08 09:53

맨 위로

Unicode/MBCS(DBCS)/ANSI/TCHAR

?
이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/05 16:56 2007/03/05 16:56

맨 위로

[ATL] ?

?

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/03/05 16:48 2007/03/05 16:48

맨 위로

COM ?

이올린에 북마크하기(0) 이올린에 추천하기(0)
"ATL/COM" 카테고리의 다른 글
2007/01/05 10:15 2007/01/05 10:15

맨 위로