Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Understanding The COM Single-Threaded Apartment Part 1

, 6 Jan 2005
Learn the fundamental principles of the COM Single-Threaded Apartment Model by code examples.
ccomthread_src.zip
LegacyCOMObject1
Shared
SimpleCOMObject1
SimpleCOMObject2
Test Programs
LegacyCOMObject1.def
LegacyCOMObject1.dsp
LegacyCOMObject1.dsw
LegacyCOMObject1.rgs
LegacyCOMObject1.tlb
LegacyCOMObject1ps.def
LegacyCOMObject1ps.mk
SimpleCOMObject1.def
SimpleCOMObject1.dsp
SimpleCOMObject1.dsw
SimpleCOMObject1.rgs
SimpleCOMObject1.tlb
SimpleCOMObject1ps.def
SimpleCOMObject1ps.mk
SimpleCOMObject2.def
SimpleCOMObject2.dsp
SimpleCOMObject2.dsw
SimpleCOMObject2.rgs
SimpleCOMObject2.tlb
SimpleCOMObject2ps.def
SimpleCOMObject2ps.mk
VBTest
VCTests
FormMain.frm
MSSCCPRJ.SCC
VBTest.exe
VBTest.vbp
VBTest.vbw
DemonstrateDefaultSTA
DemonstrateExeServerSTA
DemonstrateLegacySTA
DemonstrateNoMessageLoop
DemonstrateSTA
VCTest01
VCTest02
SimpleCOMObject2.tlh
SimpleCOMObject2.tli
VCTest01.dsp
VCTest01.dsw
SimpleCOMObject2.tlh
SimpleCOMObject2.tli
VCTest02.dsp
VCTest02.dsw
Client
Implementation
Interface
VCTest01
VCTest01.dsp
VCTest01.dsw
ExeServerImpl
ExeServerImpl.dsp
ExeServerImpl.dsw
ExeServerInterfaces
ExeObj01.rgs
ExeObj02.rgs
ExeObj03.rgs
ExeServerInterfaces.def
ExeServerInterfaces.dsp
ExeServerInterfaces.dsw
ExeServerInterfaces.tlb
ExeServerInterfacesps.def
ExeServerInterfacesps.mk
VCTest01
VCTest02
LegacyCOMObject1.tlh
LegacyCOMObject1.tli
VCTest01.dsp
VCTest01.dsw
VCTest02.dsp
VCTest02.dsw
VCTest01
SimpleCOMObject2.tlh
SimpleCOMObject2.tli
VCTest01.dsp
VCTest01.dsw
VCTest01
SimpleCOMObject2.tlh
SimpleCOMObject2.tli
VCTest01.dsp
VCTest01.dsw
/* this file contains the actual definitions of */
/* the IIDs and CLSIDs */

/* link this file in with the server and any clients */


/* File created by MIDL compiler version 5.01.0164 */
/* at Wed Dec 29 16:46:00 2004
 */
/* Compiler settings for F:\Limbl\Develope\CodeProject\CCOMThread\Test Programs\VCTests\DemonstrateExeServerSTA\Interface\ExeServerInterfaces\ExeServerInterfaces.idl:
    Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
*/
//@@MIDL_FILE_HEADING(  )
#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __IID_DEFINED__
#define __IID_DEFINED__

typedef struct _IID
{
    unsigned long x;
    unsigned short s1;
    unsigned short s2;
    unsigned char  c[8];
} IID;

#endif // __IID_DEFINED__

#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED

const IID IID_IExeObj01 = {0xFF28C486,0x518D,0x4EA2,{0x9E,0x0E,0xFE,0x4F,0x9E,0x79,0x1C,0x9C}};


const IID LIBID_EXESERVERINTERFACESLib = {0xF9B4995B,0x673A,0x448C,{0xAB,0xCB,0x28,0xF1,0xF9,0xF8,0x9D,0xB6}};


const IID DIID__IExeObj01Events = {0x3EEC53F4,0x42A0,0x4E0F,{0xB0,0x59,0x97,0x5E,0x84,0xDC,0xAA,0xA9}};


const IID IID_IExeObj02 = {0x7C0808AE,0x195D,0x4A95,{0xB0,0xB8,0xD5,0x35,0x99,0xE6,0x77,0xEB}};


const CLSID CLSID_ExeObj01 = {0x3AEF8F56,0xE35F,0x43F9,{0xB0,0x52,0x7C,0xF9,0x62,0x05,0x83,0x8C}};


const IID DIID__IExeObj02Events = {0x38AAAE6D,0x3BBB,0x4592,{0x8D,0x75,0xEE,0xF2,0x43,0xE7,0xE6,0xD0}};


const IID IID_IExeObj03 = {0x81215C83,0x184B,0x4D29,{0x86,0x24,0x28,0x96,0x94,0x2B,0x16,0xFC}};


const CLSID CLSID_ExeObj02 = {0x48F0E11C,0x95E5,0x415B,{0x9F,0x21,0xBD,0x87,0x6F,0xFB,0x09,0x9F}};


const IID DIID__IExeObj03Events = {0x792EDC47,0xEBAF,0x4F3D,{0xBF,0x88,0xD2,0x02,0x62,0x2C,0x06,0xBB}};


const CLSID CLSID_ExeObj03 = {0x957C6B07,0x7645,0x452D,{0xB3,0xAC,0xF8,0xFF,0x7E,0x73,0xAB,0xDC}};


#ifdef __cplusplus
}
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Lim Bio Liong
Web Developer
Singapore Singapore
Lim Bio Liong is a Specialist at a leading Software House in Singapore.
 
Bio has been in software development for over 10 years. He specialises in C/C++ programming and Windows software development.
 
Bio has also done device-driver development and enjoys low-level programming. Bio has recently picked up C# programming and has been researching in this area.

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 6 Jan 2005
Article Copyright 2005 by Lim Bio Liong
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid