Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

  1. typedef struct _SyntaxMap
  2. {
  3. BSTR bstrName;
  4. BSTR bstrNDSName;
  5. long lOleAutoDataType;
  6. } SYNTAXMAP;
  7. typedef struct _SyntaxInfo
  8. {
  9. BSTR bstrName;
  10. long lOleAutoDataType;
  11. } SYNTAXINFO;
  12. extern DWORD g_cLDAPSyntax;
  13. extern SYNTAXINFO g_aLDAPSyntax[];
  14. HRESULT
  15. MakeVariantFromStringList(
  16. BSTR bstrList,
  17. VARIANT *pvVariant
  18. );
  19. class CNDSSyntax : INHERIT_TRACKING,
  20. public CCoreADsObject,
  21. public ISupportErrorInfo,
  22. public IADsSyntax
  23. {
  24. public:
  25. /* IUnknown methods */
  26. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  27. DECLARE_STD_REFCOUNTING
  28. /* Other methods */
  29. DECLARE_IDispatch_METHODS
  30. DECLARE_ISupportErrorInfo_METHODS
  31. DECLARE_IADs_METHODS
  32. DECLARE_IADsSyntax_METHODS
  33. /* Constructors, Destructors, ... */
  34. CNDSSyntax::CNDSSyntax();
  35. CNDSSyntax::~CNDSSyntax();
  36. static HRESULT CNDSSyntax::CreateSyntax(
  37. BSTR bstrParent,
  38. SYNTAXINFO *pSyntaxInfo,
  39. DWORD dwObjectState,
  40. REFIID riid,
  41. void **ppvObj );
  42. static HRESULT CNDSSyntax::AllocateSyntaxObject(
  43. CNDSSyntax **ppSyntax
  44. );
  45. protected:
  46. CDispatchMgr FAR * _pDispMgr;
  47. /* Properties */
  48. long _lOleAutoDataType;
  49. };