Click here to Skip to main content
15,879,474 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.1K   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 Tue Dec 21 19:57:39 2004
 */
/* Compiler settings for C:\Limbl\Develope\CodeProject\CCOMThread\SimpleCOMObject2\SimpleCOMObject2.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_ISimpleCOMObject2 = {0x8144D7D0,0x4516,0x4B64,{0xAA,0xE7,0xFA,0x27,0x6C,0x94,0xD8,0x70}};


const IID LIBID_SIMPLECOMOBJECT2Lib = {0x583B22E4,0x9E01,0x4FD3,{0xB0,0xCE,0xDD,0x75,0x91,0x65,0x54,0xBE}};


const IID DIID__ISimpleCOMObject2Events = {0x02CE2476,0x7F6D,0x4699,{0x96,0xD2,0x17,0xFF,0x53,0x75,0x82,0x21}};


const CLSID CLSID_SimpleCOMObject2 = {0x993B1ECD,0x61D0,0x41D3,{0xA4,0xA9,0x29,0x3F,0xB4,0x7F,0x83,0xFF}};


#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