Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

Using the Windows 2000/XP Object Selection Dialog

Rate me:
Please Sign up or sign in to vote.
4.92/5 (29 votes)
21 Nov 2005CPOL14 min read 250.6K   4.5K   57  
This article describes how to use the "Select Users or Groups" system dialog.

/* 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.0366 */
/* at Sun Nov 20 00:28:14 2005
 */
/* Compiler settings for .\ObjectPickerHelper2.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    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(  )

#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_IADObjectColl,0xEEC4A2EE,0xA1EC,0x4A45,0xAA,0xFC,0x21,0x80,0x51,0xCF,0xC2,0x97);


MIDL_DEFINE_GUID(IID, IID_IADObjectInfo,0x71D11196,0x76ED,0x49B7,0xBA,0x10,0x11,0x2F,0xE7,0x58,0xB7,0x84);


MIDL_DEFINE_GUID(IID, IID_IADObjectPicker,0xC07F5FFF,0xF08C,0x421C,0xAB,0x3E,0x65,0x14,0xB3,0x45,0xD9,0x1C);


MIDL_DEFINE_GUID(IID, LIBID_ObjectPickerHelper2Lib,0x97449A73,0xB240,0x4AC1,0xBE,0x9D,0x5B,0x33,0xDD,0xC4,0x2C,0x81);


MIDL_DEFINE_GUID(CLSID, CLSID_ADObjectColl,0xF61BCFA7,0xFA0C,0x4330,0x83,0x61,0x74,0x78,0x14,0x33,0x66,0x9E);


MIDL_DEFINE_GUID(CLSID, CLSID_ADObjectInfo,0xBC1EE1D2,0xE351,0x4766,0x98,0xB6,0x01,0xF0,0x8B,0xFD,0x97,0x80);


MIDL_DEFINE_GUID(CLSID, CLSID_ADObjectPicker,0xE064BB22,0x22CE,0x4E01,0xBB,0x63,0x10,0xEF,0x40,0x58,0xCA,0xF9);

#undef MIDL_DEFINE_GUID

#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
Software Developer (Senior) AB SCIEX
Canada Canada
I was born and grew up in Northern Germany grew up in Quebec in a French Language environment. I finished High School in Fergus, Ontario. After a 4 year training as a Pipe Organ Builder in Germany, I returned to Canada to get a B.Sc. in Computer Science. I'm currently working for a company called AB SCIEX working on Mass Spectrometer Software, am married, and have three often wonderful children. What you believe in matters - I am a follower of Jesus Christ - we attend a German-Lutheran congregation in downtown Toronto.

Comments and Discussions