home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / Samples / ActiveDir / PropertyList / vc / ADSIhelpers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-08  |  518 b   |  26 lines

  1.  
  2.  
  3.  
  4. #ifndef ADSIHELLPERS_H
  5. #define ADSIHELLPERS_H
  6.  
  7. #include <activeds.h>
  8. #include <adsiid.h>
  9.  
  10.  
  11. // Function declarations
  12. void            PrintIADSObject(IADs * pIADs);
  13. void            CheckHRESULT(HRESULT hr, const char *pszCause);
  14. const char *    GetVariantStyle(VARTYPE vt);
  15. HRESULT            GetIADsPropertyValueAsBSTR(BSTR * pbsRet,IADsPropertyEntry *pAdsEntry, IADsPropertyValue * pAdsPV);
  16.  
  17.  
  18. // Macros
  19.  
  20. // Simple Macro to simplyfy reading a bitflag
  21. #define HAS_BIT_STYLE(val, style) \
  22. ((val & style) == style)
  23.  
  24.  
  25. #endif
  26.