Global Mapper SDK
GM_GetOnlineSourceInfo
Retrieves detailed information about a source by name and also determines if the source is available. You can use this to tell if a source is not usable due to something like the China firewall. Returns GM_Error_OnlineConnect if the source cannot be connected to. Returns GM_Error_OnlineUnknownSource if the source cannot be found.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GetOnlineSourceInfo
(
const char* aSourceName, // IN: Name of online source to get detail info for
GM_OnlineSourceInfo_t* aSourceInfo, // OUT: Detailed information about provided source, mostly in attributes
void* aReserved // IN: Reserved for future use, must be NULL
);