[Herecast-commit] herecast/src/HerecastTester HerecastAPI.cpp,1.1,1.2 HerecastAPI.h,1.1,1.2 Herecast
Status: Beta
Brought to you by:
mdpaciga
|
From: Mark P. <mdp...@us...> - 2005-07-21 20:07:14
|
Update of /cvsroot/herecast/herecast/src/HerecastTester In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21545/src/HerecastTester Modified Files: HerecastAPI.cpp HerecastAPI.h HerecastTester.cpp ReadMe.txt herecast.h Log Message: HerecastTester code is public domain, so it can more easily be adapted for use by other applications Index: HerecastTester.cpp =================================================================== RCS file: /cvsroot/herecast/herecast/src/HerecastTester/HerecastTester.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HerecastTester.cpp 21 Jul 2005 19:44:01 -0000 1.1 --- HerecastTester.cpp 21 Jul 2005 20:07:03 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + /** + * HerecastTester + * The code in this file is public domain. + */ + #include "stdafx.h" #include "HerecastAPI.h" Index: herecast.h =================================================================== RCS file: /cvsroot/herecast/herecast/src/HerecastTester/herecast.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** herecast.h 21 Jul 2005 19:44:01 -0000 1.1 --- herecast.h 21 Jul 2005 20:07:03 -0000 1.2 *************** *** 1,27 **** /* 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); ! } ! */ --- 1,7 ---- /* API Version 1.0 Compatible with Herecast 1.06 and later + The code in this file is public domain. ! For sample usage, see the HerecastAPI project. */ Index: HerecastAPI.h =================================================================== RCS file: /cvsroot/herecast/herecast/src/HerecastTester/HerecastAPI.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HerecastAPI.h 21 Jul 2005 19:44:00 -0000 1.1 --- HerecastAPI.h 21 Jul 2005 20:07:03 -0000 1.2 *************** *** 1,6 **** ! #ifndef __HERECASTAPI_H ! #define __HERECASTAPI_H ! /* Here's all you need to do to use this interface: --- 1,6 ---- ! /** ! HerecastAPI: A simple interface to communicate with Herecast ! (The code in this file is public domain.) Here's all you need to do to use this interface: Index: ReadMe.txt =================================================================== RCS file: /cvsroot/herecast/herecast/src/HerecastTester/ReadMe.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ReadMe.txt 21 Jul 2005 19:44:01 -0000 1.1 --- ReadMe.txt 21 Jul 2005 20:07:03 -0000 1.2 *************** *** 9,10 **** --- 9,14 ---- An interface that simplifies access to the Herecast API. You can either use this as is, or view the code to see how the API itself works. + + + While Herecast itself is GPL, the sample code included in HerecastTester + and HerecastAPI is public domain. Index: HerecastAPI.cpp =================================================================== RCS file: /cvsroot/herecast/herecast/src/HerecastTester/HerecastAPI.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HerecastAPI.cpp 21 Jul 2005 19:44:00 -0000 1.1 --- HerecastAPI.cpp 21 Jul 2005 20:07:03 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + /** + * HerecastAPI + * The code in this file is public domain. + */ + #include "stdafx.h" #include "HerecastAPI.h" |