Dword Attachtotomtomgpsengine( ); Void Detachfromtomtomgpsengine( Dword Ahandle); Bool Copydatatotomtomgpsengine( Dword Ahandle, Dword Anumberofbytes, Lpbyte Abuffer) - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

The applet also exports these three functions:
DWORD AttachToTomTomGPSEngine();
VOID
DetachFromTomTomGPSEngine(DWORD aHandle);
BOOL
CopyDataToTomTomGPSEngine(DWORD aHandle,
To call these functions, include "ttgpsextdriver.h" in your C++ project, provided in the
\Sdk\TTNCom\include\ folder. This header file contains all the necessary declarations.
You will need to dynamically load the Control Panel applet, located in the \Windows\ttgpscpl.cpl DLL
on the device. After succesfully loading the DLL, use the Windows API function GetProcAddress to find
the proper function addresses.
An example is provided with the SDK in the \Sdk\TTNCom\examples\extdriver folder.

9.2.3. DWORD AttachToTomTomGPSEngine( )

Returns: An opaque handle is returned if succesful, otherwise 0 (zero)
Supported Since: GPS 2.00
Creates a session between your application and the TomTom Navigator GPS support application. A
session must exist. The returned handle must be passed in to the other functions. Warning: Although it is
possible to create multiple simultaneous sessions, this is not recommended, as the receiver of the feed will
only recognise one feed stream.

9.2.4. VOID DetachFromTomTomGPSEngine( DWORD aHandle)

Command Parameters:
• DWORD
aHandle:
AttachToTomTomGPSEngine().
Supported Since: GPS 2.00
Terminates a session between your application and the TomTom Navigator GPS support application.
9.2.5. BOOL CopyDataToTomTomGPSEngine( DWORD aHandle,
DWORD aNumberOfBytes, LPBYTE aBuffer)
Command Parameters:
• DWORD
aHandle:
AttachToTomTomGPSEngine().
• DWORD aNumberOfBytes: the number of bytes that you intend to feed to the TomTom Navigator
GPS support application.
• LPBYTE aBuffer: a pointer to a buffer of at least aNumberOfBytes bytes containing the data to be
fed.
Returns: TRUE (non−zero) if succesful, FALSE (zero) otherwise
Supported Since: GPS 2.00
Synchronously passes your GPS information. Pass the data exactly as it is received from the GPS
receiver, including all field and record delimiters. It is not necessary to pass data on exact record
boundaries.
9. External GPS Drivers
DWORD aNumberOfBytes,
LPBYTE aBuffer);
the
session
handle
the
session
handle
54
returned
by
a
returned
by
a
succesful
call
to
succesful
call
to

Advertisement

Table of Contents
loading

Table of Contents