Message ID for the Request "system information":
RI_MESSAGE_SYSTEMINFO
<H3>Read Memory:</H3>
RI_SystemInfo_ReadData(LPARAM id, RI_CSystemInfo data );
<BR>
<H3>Return Values for SystemInfo:</H3>
RI_NOERROR = System info succeeded<BR><BR>
<h2>Description:</h2>Returns system information like the current language, available languages,
the current map, available maps and so on (see data structure for more details).
<h3>Returns a single package</h3>
<H2>Example:</H2>
#define USE_LOADLIBRARY
#include "TNSRemoteInterfaceDll.h"
LPARAM GetUniqueID()
{
static LPARAM id = 0;
if (++id == 0) ++id;
return id;
}
inline LRESULT RI_MESSAGE( const UINT request, HWND h_client, LPARAM id )
{
PostMessage(
RI_GetTNS(), request, WPARAM(h_client),
id );
}
LRESULT CDlgMFC_SystemInfo::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
{
TRACE( TEXT(
"Programm Version: %s"),data.
m_Version );
TRACE( TEXT(
"Programm Build: %s"),data.
m_Build );
{
}
}
else
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_SystemInfo::foo()
{
LPARAM id = GetUniqueID();
else
}