Message ID for the Request "actual application state":
RI_MESSAGE_CURRENTSTATE
<H3>Read Memory:</H3>
RI_ActualApplicationState_ReadData(LPARAM id, RI_CActualApplicationState data );
<BR>
<H3>Return Values for ActualApplicationState:</H3>
RI_NOERROR = Actual state of the application succeeded<BR><BR>
<h2>Description:</h2>Returns the current application state as a string. The state represents the current dialog which is shown and can be one of the following strings:<br>
"Intro About ", "MainMenu ", "StationList ", "StationListOptions ", "Tour ", "Navigation ", "Route ", "RouteList ", "DefineDestination ", "DefineDestinationTown ", "DefineDestinationStreet ", "DefineDestinationHouseNr ", "DefineDestinationMap ", "DefineDestinationFavourites ", "DefineDestinationPrevDest ", "TmcMsgs ", "GpsWait ", "GpsInfo ", "NavInfo ", "PreDestinationList ", "Settings ", "SettingsAvoidsect ", "SettingsBaud ", "SettingsBrightness ", "SettingsCopyright ", "SettingsDatalink ", "SettingsFavouritesAdminister ", "SettingsFavouritesDetails ", "SettingsFavouritesRename ", "SettingsGeneral ", "SettingsLanguage ", "SettingsMap ", "SettingsPOI ", "SettingsPort ", "SettingsProfile ", "SettingsProfileOverview ", "SettingsStreetPreference ", "SettingsTechnicalLKWData ", "SettingsSaveProfile ", "SettingsRouteoptimisation ", "SettingsSound ", "SettingsTMC ", "TmcListOptions ", "SettingsVehicle ", "SettingsTimeZone ", "SettingsInfo ", "TextBrowser ", "unkown ".<br>
<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_ActualApplicationState::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
{
TRACE( TEXT(
"the actual state of the application is: %s"),data.
m_Description );
}
else
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_ActualApplicationState::foo()
{
LPARAM id = GetUniqueID();
else
}