Click here to Skip to main content
15,881,812 members
Articles / Desktop Programming / ATL

Understanding The COM Single-Threaded Apartment Part 1

Rate me:
Please Sign up or sign in to vote.
4.95/5 (206 votes)
6 Jan 2005CPOL49 min read 841.5K   4.9K   442  
Learn the fundamental principles of the COM Single-Threaded Apartment Model by code examples.
/* 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)


Written By
Systems Engineer NEC
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.

Comments and Discussions