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.

53 lines
1.4 KiB

  1. #ifndef __FWDHDR_H__
  2. #define __FWDHDR_H__
  3. #include <buffer.h>
  4. #include <comutl.h>
  5. #include <wbemcli.h>
  6. /**************************************************************************
  7. CFwdMsgHeader
  8. ***************************************************************************/
  9. class CFwdMsgHeader
  10. {
  11. DWORD m_dwNumObjs;
  12. char m_chQos;
  13. char m_chAuth;
  14. char m_chEncrypt;
  15. GUID m_guidExecution;
  16. LPCWSTR m_wszConsumer;
  17. LPCWSTR m_wszNamespace;
  18. PBYTE m_pTargetSD;
  19. DWORD m_cTargetSD;
  20. public:
  21. CFwdMsgHeader();
  22. CFwdMsgHeader( DWORD dwNumObjs,
  23. DWORD dwQos,
  24. BOOL bAuth,
  25. BOOL bEncrypt,
  26. GUID& rguidExecution,
  27. LPCWSTR wszConsumer,
  28. LPCWSTR wszNamespace,
  29. PBYTE pTargetSD,
  30. DWORD cTargetSD );
  31. DWORD GetNumObjects() { return m_dwNumObjs; }
  32. DWORD GetQos() { return m_chQos; }
  33. BOOL GetAuthentication() { return m_chAuth; }
  34. BOOL GetEncryption() { return m_chEncrypt; }
  35. GUID& GetExecutionId() { return m_guidExecution; }
  36. LPCWSTR GetConsumer() { return m_wszConsumer; }
  37. LPCWSTR GetNamespace() { return m_wszNamespace; }
  38. PBYTE GetTargetSD() { return m_pTargetSD; }
  39. DWORD GetTargetSDLength() { return m_cTargetSD; }
  40. HRESULT Persist( CBuffer& rStrm );
  41. HRESULT Unpersist( CBuffer& rStrm );
  42. };
  43. #endif __FWDHDR_H__