Message ID for the Request "ChangeApplicationOptions":
RI_MESSAGE_CHANGEOPTIONS
Write Memory:
RI_ChangeApplicationOptions_WriteData(LPARAM id, RI_CChangeApplicationOptions data );
Return Values for ChangeApplicationOptions:
RI_NOERROR = Change application options succeeded
Description:
Set application options like using ferries or motorways, volume, avoid u-turns and so on (see data structure for more details).
Example:
#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_ChangeApplicationOptions::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
else
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_ChangeApplicationOptions::foo()
{
LPARAM id = GetUniqueID();
return;
else
}