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.

45 lines
873 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #ifndef __RPCHDR_H__
  8. #define __RPCHDR_H__
  9. #include <buffer.h>
  10. #include <wmimsg.h>
  11. /**********************************************************************
  12. CMsgRpcHdr
  13. ***********************************************************************/
  14. class CMsgRpcHdr
  15. {
  16. SYSTEMTIME m_Time;
  17. LPCWSTR m_wszSource;
  18. ULONG m_cAuxData;
  19. public:
  20. CMsgRpcHdr() { ZeroMemory( this, sizeof(CMsgRpcHdr) ); }
  21. CMsgRpcHdr( LPCWSTR wszSource, ULONG cUserAuxData );
  22. ULONG GetAuxDataLength() { return m_cAuxData; }
  23. SYSTEMTIME* GetTimeSent() { return &m_Time; }
  24. LPCWSTR GetSendingMachine() { return m_wszSource; }
  25. HRESULT Unpersist( CBuffer& rStrm );
  26. HRESULT Persist( CBuffer& rStrm );
  27. };
  28. #endif // __RPCHDR_H__