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

// Defragment.h
#ifndef __DEFRAG_H_
#define __DEFRAG_H_
// prototypes
BOOL PostMessageLocal (
IN HWND hWnd,
IN UINT Msg,
IN WPARAM wParam,
IN LPARAM lParam
);
// class Travis made up - used when launching the engines
class COleStr
{
public:
COleStr()
{
m_pStr = NULL;
}
virtual ~COleStr()
{
if ( m_pStr != NULL )
CoTaskMemFree( m_pStr );
}
operator LPOLESTR()
{
return( m_pStr );
}
operator LPOLESTR*()
{
return( &m_pStr );
}
long GetLength()
{
return( wcslen( m_pStr ) );
}
LPOLESTR m_pStr;
};
#endif //__DEFRAG_H_