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.

75 lines
2.5 KiB

  1. //****************************************************************************
  2. //
  3. // Module: ULS.DLL
  4. // File: ulsapp.h
  5. // Content: This file contains the Application 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 _ULSAPP_H_
  13. #define _ULSAPP_H_
  14. #include "connpt.h"
  15. //****************************************************************************
  16. // CUlsApp definition
  17. //****************************************************************************
  18. //
  19. class CUlsApp : public IULSApplication,
  20. public IConnectionPointContainer
  21. {
  22. private:
  23. ULONG cRef;
  24. LPTSTR szServer;
  25. LPTSTR szUser;
  26. GUID guid;
  27. LPTSTR szName;
  28. LPTSTR szMimeType;
  29. CAttributes *pAttrs;
  30. CConnectionPoint *pConnPt;
  31. // Private method
  32. //
  33. STDMETHODIMP NotifySink (void *pv, CONN_NOTIFYPROC pfn);
  34. public:
  35. // Constructor and destructor
  36. CUlsApp (void);
  37. ~CUlsApp (void);
  38. STDMETHODIMP Init (LPTSTR szServerName,
  39. LPTSTR szUserName,
  40. PLDAP_APPINFO pai);
  41. // Asynchronous response
  42. //
  43. STDMETHODIMP GetProtocolResult (ULONG uReqID,
  44. PLDAP_PROTINFO_RES plar);
  45. STDMETHODIMP EnumProtocolsResult (ULONG uReqID,
  46. PLDAP_ENUM ple);
  47. // IUnknown
  48. STDMETHODIMP QueryInterface (REFIID iid, void **ppv);
  49. STDMETHODIMP_(ULONG) AddRef (void);
  50. STDMETHODIMP_(ULONG) Release (void);
  51. // IULSApplication
  52. STDMETHODIMP GetID (GUID *pGUID);
  53. STDMETHODIMP GetName (BSTR *pbstrAppName);
  54. STDMETHODIMP GetMimeType (BSTR *pbstrMimeType);
  55. STDMETHODIMP GetAttributes (IULSAttributes **ppAttributes);
  56. STDMETHODIMP GetProtocol (BSTR bstrProtocolID,
  57. IULSAttributes *pAttributes,
  58. ULONG *puReqID);
  59. STDMETHODIMP EnumProtocols (ULONG *puReqID);
  60. // IConnectionPointContainer
  61. STDMETHODIMP EnumConnectionPoints(IEnumConnectionPoints **ppEnum);
  62. STDMETHODIMP FindConnectionPoint(REFIID riid,
  63. IConnectionPoint **ppcp);
  64. };
  65. #endif //_ULSAPP_H_