Message ID for the Request "start GPS Record":
RI_MESSAGE_STARTGPSRECORD
Write Memory:
RI_StartGPSRecord_WriteData(LPARAM id, RI_CStartGPSRecord data );
Return Values for StartGPSRecord:
RI_NOERROR = Start recording of GPS positions succeeded
RI_TOBIG = GPS recording file reached maximum file size
RI_ALREADY = Start recording of GPS positions is already running
RI_NOTWRITE = Error while opening GPS recording file
Description:
Records the GPS-coordinates in a separate file (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_StartGPSRecord::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
else
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_StartGPSRecord::foo()
{
LPARAM id = GetUniqueID();
return;
else
}