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.

78 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. ProvFact.h
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef _Server_StaTask_H
  9. #define _Server_StaTask_H
  10. #include <Thread.h>
  11. #include "ProvRegInfo.h"
  12. /******************************************************************************
  13. *
  14. * Name:
  15. *
  16. *
  17. * Description:
  18. *
  19. *
  20. *****************************************************************************/
  21. class StaTask_Create : public WmiTask < ULONG >
  22. {
  23. private:
  24. CServerObject_StaThread &m_Thread ;
  25. HRESULT m_Result ;
  26. LPWSTR m_Scope ;
  27. LPWSTR m_Namespace ;
  28. LPSTREAM m_ContextStream ;
  29. LPSTREAM m_RepositoryStream ;
  30. LPSTREAM m_ProviderStream ;
  31. protected:
  32. public: /* Internal */
  33. StaTask_Create (
  34. WmiAllocator & a_Allocator ,
  35. CServerObject_StaThread &a_Thread ,
  36. LPCWSTR a_Scope ,
  37. LPCWSTR a_Namespace
  38. ) ;
  39. ~StaTask_Create () ;
  40. HRESULT UnMarshalContext () ;
  41. HRESULT MarshalContext (
  42. IWbemContext *a_Context ,
  43. IWbemServices *a_Repository
  44. ) ;
  45. HRESULT MarshalOutgoing ( IUnknown *a_ProviderService ) ;
  46. HRESULT UnMarshalOutgoing () ;
  47. WmiStatusCode Process ( WmiThread <ULONG> &a_Thread ) ;
  48. HRESULT GetResultCode () { return m_Result ; }
  49. };
  50. #endif // _Server_StaTask_H