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.

49 lines
588 B

  1. // Defragment.h
  2. #ifndef __DEFRAG_H_
  3. #define __DEFRAG_H_
  4. // prototypes
  5. BOOL PostMessageLocal (
  6. IN HWND hWnd,
  7. IN UINT Msg,
  8. IN WPARAM wParam,
  9. IN LPARAM lParam
  10. );
  11. // class Travis made up - used when launching the engines
  12. class COleStr
  13. {
  14. public:
  15. COleStr()
  16. {
  17. m_pStr = NULL;
  18. }
  19. virtual ~COleStr()
  20. {
  21. if ( m_pStr != NULL )
  22. CoTaskMemFree( m_pStr );
  23. }
  24. operator LPOLESTR()
  25. {
  26. return( m_pStr );
  27. }
  28. operator LPOLESTR*()
  29. {
  30. return( &m_pStr );
  31. }
  32. long GetLength()
  33. {
  34. return( wcslen( m_pStr ) );
  35. }
  36. LPOLESTR m_pStr;
  37. };
  38. #endif //__DEFRAG_H_