Click here to Skip to main content
15,895,423 members
Articles / Desktop Programming / ATL

Building Rich COMponents with Attributed ATL

Rate me:
Please Sign up or sign in to vote.
4.95/5 (31 votes)
26 Jan 200410 min read 89.1K   918   76  
Tutorial article about how to build components with rich functionality using attributed ATL.

/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */

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


 /* File created by MIDL compiler version 6.00.0361 */
/* at Sun Jan 25 21:37:13 2004
 */
/* Compiler settings for _ServicesManager.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#if !defined(_M_IA64) && !defined(_M_AMD64)


#pragma warning( disable: 4049 )  /* more than 64k source lines */


#ifdef __cplusplus
extern "C"{
#endif 


#include <rpc.h>
#include <rpcndr.h>

#ifdef _MIDL_USE_GUIDDEF_

#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)

#else // !_MIDL_USE_GUIDDEF_

#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

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}

#endif !_MIDL_USE_GUIDDEF_

MIDL_DEFINE_GUID(IID, IID_IsmService,0x0F4CBB84,0x3840,0x47E1,0xA6,0x9B,0x79,0xD3,0x37,0x64,0xC5,0x2D);


MIDL_DEFINE_GUID(IID, IID_IsmServices,0x5BB63796,0x959D,0x412D,0xB9,0x4C,0x30,0xB3,0xEB,0x8D,0x97,0xF1);


MIDL_DEFINE_GUID(IID, IID_IServicesMgr,0x2543548B,0xEFFB,0x4CB4,0xB2,0xED,0x9D,0x39,0x31,0xA2,0x52,0x7D);


MIDL_DEFINE_GUID(IID, LIBID_ServicesManager,0x1F795AC8,0xAED6,0x42C7,0x99,0x49,0xA0,0xDD,0x98,0x55,0x10,0x11);


MIDL_DEFINE_GUID(CLSID, CLSID_CsmService,0xE4A30ACF,0x21E1,0x477A,0xA0,0x2B,0x97,0xE8,0x67,0x8D,0x19,0x85);


MIDL_DEFINE_GUID(CLSID, CLSID_CsmServices,0xBE11DC87,0x85E5,0x47D3,0x81,0x32,0xBD,0x67,0x92,0xE9,0x6E,0xB8);


MIDL_DEFINE_GUID(IID, DIID_IServicesMgrEvents,0xA51F19F7,0x9AF5,0x4753,0x9B,0x6F,0x52,0xFC,0x89,0xD6,0x9B,0x18);


MIDL_DEFINE_GUID(CLSID, CLSID_CServicesMgr,0x1ED43E25,0x993D,0x4F57,0xAA,0x60,0xD3,0x54,0x50,0x48,0x5D,0x4B);

#undef MIDL_DEFINE_GUID

#ifdef __cplusplus
}
#endif



#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
Started professional career in software development back in 2000, in Ukraine. Founder and owner of a boutique software company called ByteGems.com Software. Worked for 6 years at w2bi, Inc in New Jersey USA, currently work in a large multinational company based in Redmond, WA.

My buzzwords at the moment: .NET, C#, ASP.NET, MVC, LINQ, TypeScript, JavaScript, AngularJS, HTML, JSON, services.

Still buzzing: C++, Win32, ATL, MFC, SQL, WinForms, WebForms, EF, Sockets, TCP/IP, Remoting.

Comments and Discussions