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.

53 lines
1.7 KiB

  1. //****************************************************************************
  2. //
  3. // Module: ULS.DLL
  4. // File: ulsprot.h
  5. // Content: This file contains the Protocol object definition.
  6. // History:
  7. // Wed 17-Apr-1996 11:18:47 -by- Viroon Touranachun [viroont]
  8. //
  9. // Copyright (c) Microsoft Corporation 1996-1997
  10. //
  11. //****************************************************************************
  12. #ifndef _ULSPROT_H_
  13. #define _ULSPROT_H_
  14. //****************************************************************************
  15. // CUlsProt definition
  16. //****************************************************************************
  17. //
  18. class CUlsProt : public IULSAppProtocol
  19. {
  20. private:
  21. ULONG cRef;
  22. LPTSTR szServer;
  23. LPTSTR szUser;
  24. LPTSTR szApp;
  25. LPTSTR szName;
  26. LPTSTR szMimeType;
  27. ULONG uPort;
  28. CAttributes *pAttrs;
  29. public:
  30. // Constructor and destructor
  31. CUlsProt (void);
  32. ~CUlsProt (void);
  33. STDMETHODIMP Init (LPTSTR szServerName,
  34. LPTSTR szUserName,
  35. LPTSTR szAppName,
  36. PLDAP_PROTINFO ppi);
  37. // IUnknown
  38. STDMETHODIMP QueryInterface (REFIID iid, void **ppv);
  39. STDMETHODIMP_(ULONG) AddRef (void);
  40. STDMETHODIMP_(ULONG) Release (void);
  41. // IULSAppProtocol
  42. STDMETHODIMP GetID (BSTR *pbstrID);
  43. STDMETHODIMP GetPortNumber (ULONG *puPortNumber);
  44. STDMETHODIMP GetMimeType (BSTR *pbstrMimeType);
  45. STDMETHODIMP GetAttributes (IULSAttributes **ppAttributes);
  46. };
  47. #endif //_ULSPROT_H_