[Herecast-commit] herecast/src/HerecastLib/LibMain herecast.h,NONE,1.1
Status: Beta
Brought to you by:
mdpaciga
|
From: Mark P. <mdp...@us...> - 2005-07-21 19:57:12
|
Update of /cvsroot/herecast/herecast/src/HerecastLib/LibMain In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18388/src/HerecastLib/LibMain Added Files: herecast.h Log Message: added a SendMessage API, so third party applications can retrieve info from Herecast. This change included storing the most recent Ap* in the class itself, instead of as a static variable within the lookup method. --- NEW FILE: herecast.h --- /* API Version 1.0 Compatible with Herecast 1.06 and later Sample usage: void HerecastTest() { HWND hwnd = FindWindow(TEXT("Herecast"), NULL); if (!hwnd) { MessageBox(hwnd, TEXT("Herecast not running"), TEXT("Error"), 0); return; } WCHAR buf[HC_FIELDSIZE]; LRESULT result = SendMessage(hwnd, HC_GET_BSSID, buf, HC_FIELDSIZE); if (!result) { MessageBox(hwnd, TEXT("No answer from Herecast"), TEXT("Error"), 0); return; } MessageBox(hwnd, buf, TEXT("BSSID"), 0); } */ #ifndef __HERECAST_H #define __HERECAST_H #define HC_FIELDSIZE 32 // including null termination #define HC_PARSE_URL WM_APP+0 #define HC_GET_BSSID WM_APP+1 #define HC_GET_LOCATION WM_APP+2 #define HC_GET_FLOOR WM_APP+3 #define HC_GET_FLOOR2 WM_APP+4 #define HC_GET_BUILDING WM_APP+5 #define HC_GET_BUILDINGID WM_APP+6 #define HC_GET_STREETADDR WM_APP+7 #define HC_GET_AREA WM_APP+8 #define HC_GET_AREAID WM_APP+9 #define HC_GET_CITY WM_APP+10 #define HC_GET_CITYID WM_APP+11 #define HC_GET_PROVINCE WM_APP+12 #define HC_GET_PROVINCEID WM_APP+13 #define HC_GET_COUNTRY WM_APP+14 #define HC_GET_COUNTRYID WM_APP+15 #define HC_GET_NETWORK WM_APP+16 #define HC_GET_NETWORKID WM_APP+17 #endif |