home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / mapi / win16 / dev / propvu / iid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  4.5 KB  |  127 lines

  1. /*********************************************************************/
  2. /*
  3.  -  iid.h
  4.  -  Copyright (C) 1995 Microsoft Corporation
  5.  -
  6.  *  Purpose:
  7.  *      Defines id's, function prototypes, classes for Interface Dialog class
  8.  *
  9.  */
  10. /*********************************************************************/
  11.  
  12. #ifndef __iid_h_
  13. #define __iid_h_
  14.  
  15.  
  16. #include "propvu.h"
  17.  
  18.  
  19.  
  20. typedef struct _testiid
  21. {
  22.     LPIID       lpInterface;
  23.     LPSTR       lpsz;
  24.  
  25. } TESTIID, *LPTESTIID;
  26.  
  27.  
  28. static TESTIID AllIIDs[]=
  29. {
  30.     ((LPIID)(&PS_MAPI)),                    "PS_MAPI",
  31.     ((LPIID)(&PS_PUBLIC_STRINGS)),          "PS_PUBLIC_STRINGS",
  32.     ((LPIID)(&IID_IPersistMessage)),        "IID_IPersistMessage",
  33.     ((LPIID)(&IID_IMAPIViewAdviseSink)),    "IID_IMAPIViewAdviseSink",
  34.     ((LPIID)(&IID_IStreamDocfile)),         "IID_IStreamDocfile",
  35.     ((LPIID)(&IID_IMAPIFormProp)),          "IID_IMAPIFormProp",
  36.     ((LPIID)(&IID_IMAPIFormContainer)),     "IID_IMAPIFormContainer",
  37.     ((LPIID)(&IID_IMAPIFormAdviseSink)),    "IID_IMAPIFormAdviseSink",
  38.     ((LPIID)(&IID_IStreamTnef)),            "IID_IStreamTnef",
  39.     ((LPIID)(&IID_IMAPIMessageSite)),       "IID_IMAPIMessageSite",
  40.     ((LPIID)(&IID_IUnknown)),               "IID_IUnknown",
  41.     ((LPIID)(&IID_IMAPISession)),           "IID_IMAPISession",
  42.     ((LPIID)(&IID_IMAPITable)),             "IID_IMAPITable",
  43.     ((LPIID)(&IID_IMAPIAdviseSink)),        "IID_IMAPIAdviseSink",
  44.     ((LPIID)(&IID_IMAPIControl)),           "IID_IMAPIControl",
  45.     ((LPIID)(&IID_IProfAdmin)),             "IID_IProfAdmin",
  46.     ((LPIID)(&IID_IMsgServiceAdmin)),       "IID_IMsgServiceAdmin",
  47.     ((LPIID)(&IID_IProviderAdmin)),         "IID_IProviderAdmin",
  48.     ((LPIID)(&IID_IMAPIProgress)),          "IID_IMAPIProgress",    
  49.     ((LPIID)(&IID_IMAPIProp)),              "IID_IMAPIProp",
  50.     ((LPIID)(&IID_IProfSect)),              "IID_IProfSect",
  51.     ((LPIID)(&IID_IMAPIStatus)),            "IID_IMAPIStatus",
  52.     ((LPIID)(&IID_IMsgStore)),              "IID_IMsgStore",
  53.     ((LPIID)(&IID_IMessage)),               "IID_IMessage",
  54.     ((LPIID)(&IID_IAttachment)),            "IID_IAttachment",
  55.     ((LPIID)(&IID_IAddrBook)),              "IID_IAddrBook",
  56.     ((LPIID)(&IID_IMailUser)),              "IID_IMailUser",
  57.     ((LPIID)(&IID_IMAPIContainer)),         "IID_IMAPIContainer",
  58.     ((LPIID)(&IID_IMAPIFolder)),            "IID_IMAPIFolder",
  59.     ((LPIID)(&IID_IABContainer)),           "IID_IABContainer",
  60.     ((LPIID)(&IID_IDistList)),              "IID_IDistList",
  61.     ((LPIID)(&IID_IMAPISup)),               "IID_IMAPISup",
  62.     ((LPIID)(&IID_IMSProvider)),            "IID_IMSProvider",
  63.     ((LPIID)(&IID_IABProvider)),            "IID_IABProvider",
  64.     ((LPIID)(&IID_IXPProvider)),            "IID_IXPProvider",
  65.     ((LPIID)(&IID_IMSLogon)),               "IID_IMSLogon",
  66.     ((LPIID)(&IID_IABLogon)),               "IID_IABLogon",
  67.     ((LPIID)(&IID_IXPLogon)),               "IID_IXPLogon",
  68.     ((LPIID)(&IID_IMAPITableData)),         "IID_IMAPITableData",
  69.     ((LPIID)(&IID_IMAPISpoolerInit)),       "IID_IMAPISpoolerInit",
  70.     ((LPIID)(&IID_IMAPISpoolerSession)),    "IID_IMAPISpoolerSession",
  71.     ((LPIID)(&IID_ITNEF)),                  "IID_ITNEF",
  72.     ((LPIID)(&IID_IMAPIPropData)),          "IID_IMAPIPropData",
  73.     ((LPIID)(&IID_ISpoolerHook)),           "IID_ISpoolerHook",
  74.     ((LPIID)(&IID_IMAPISpoolerService)),    "IID_IMAPISpoolerService",
  75.     ((LPIID)(&IID_IMAPIViewContext)),       "IID_IMAPIViewContext",
  76.     ((LPIID)(&IID_IMAPIFormMgr)),           "IID_IMAPIFormMgr",
  77.     ((LPIID)(&IID_IMAPIForm)),              "IID_IMAPIForm",
  78. };
  79.  
  80.  
  81. // this is the number of elements in TESTIID AllIIDs
  82. #define   NUM_INTERFACES    48
  83.  
  84. /*********************************************************************/
  85. /*
  86.  -  CInterfaceDlg Class
  87.  -
  88.  *  Purpose:
  89.  *      Defines the controls for the Interface Property Dialog
  90.  *
  91.  */
  92. /*********************************************************************/
  93.  
  94. class CInterfaceDlg : public CModalDialog
  95. {
  96. public:
  97.  
  98.     IID                 m_rgiidSelect[NUM_INTERFACES];
  99.     ULONG               m_ciidSelect;
  100.     char                *m_rgszSelected[NUM_INTERFACES];
  101.  
  102.     CInterfaceDlg(CWnd  *pParentWnd)
  103.         : CModalDialog(IIDBLD, pParentWnd)
  104.     {
  105.         m_ciidSelect    = 0;        
  106.     }
  107.  
  108.     ~CInterfaceDlg();   
  109.  
  110.     BOOL OnInitDialog();
  111.             
  112.     void OnAddInterface();
  113.     void OnRemoveInterface();
  114.     void DisplayInterfaces();
  115.  
  116.     DECLARE_MESSAGE_MAP();
  117.  
  118. };
  119.  
  120.  
  121.                        
  122.  
  123. #endif
  124.  
  125.  
  126.  
  127.