Source code of Windows XP (NT5)
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.

67 lines
1.2 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 IADsSyntax
  22. {
  23. public:
  24. /* IUnknown methods */
  25. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  26. DECLARE_STD_REFCOUNTING
  27. /* Other methods */
  28. DECLARE_IDispatch_METHODS
  29. DECLARE_IADs_METHODS
  30. DECLARE_IADsSyntax_METHODS
  31. /* Constructors, Destructors, ... */
  32. CNDSSyntax::CNDSSyntax();
  33. CNDSSyntax::~CNDSSyntax();
  34. static HRESULT CNDSSyntax::CreateSyntax(
  35. BSTR bstrParent,
  36. SYNTAXINFO *pSyntaxInfo,
  37. DWORD dwObjectState,
  38. REFIID riid,
  39. void **ppvObj );
  40. static HRESULT CNDSSyntax::AllocateSyntaxObject(
  41. CNDSSyntax **ppSyntax
  42. );
  43. protected:
  44. CDispatchMgr FAR * _pDispMgr;
  45. /* Properties */
  46. long _lOleAutoDataType;
  47. };