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.

51 lines
1.5 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1999 **
  4. //*********************************************************************
  5. //
  6. // Status.H - Header for the implementation of CStatus
  7. //
  8. // HISTORY:
  9. //
  10. // 1/27/99 a-jaswed Created.
  11. //
  12. #ifndef _STATUS_H_
  13. #define _STATUS_H_
  14. #include <windows.h>
  15. #include <assert.h>
  16. #include <oleauto.h>
  17. class CStatus : public IDispatch
  18. {
  19. private:
  20. ULONG m_cRef;
  21. WCHAR m_szRegPath[1024]; //bugbug could this be smaller?
  22. //SET functions
  23. HRESULT set_Status (LPCWSTR szGUID, LPVARIANT pvBool);
  24. public:
  25. //GET functions
  26. HRESULT get_Status (LPCWSTR szGUID, LPVARIANT pvBool);
  27. CStatus (HINSTANCE hInstance);
  28. ~CStatus ();
  29. // IUnknown Interfaces
  30. STDMETHODIMP QueryInterface (REFIID riid, LPVOID* ppvObj);
  31. STDMETHODIMP_(ULONG) AddRef ();
  32. STDMETHODIMP_(ULONG) Release ();
  33. //IDispatch Interfaces
  34. STDMETHOD (GetTypeInfoCount) (UINT* pcInfo);
  35. STDMETHOD (GetTypeInfo) (UINT, LCID, ITypeInfo** );
  36. STDMETHOD (GetIDsOfNames) (REFIID, OLECHAR**, UINT, LCID, DISPID* );
  37. STDMETHOD (Invoke) (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pdispparams, VARIANT* pvarResult, EXCEPINFO* pexcepinfo, UINT* puArgErr);
  38. };
  39. #endif // _STATUS_H_