00001 /* 00002 Copyright (c) 2007, Forkbeard team 00003 00004 All rights reserved. 00005 00006 Licensed under BSD license. See License.txt 00007 */ 00008 00009 #ifndef __SCANNER_H__ 00010 #define __SCANNER_H__ 00011 00078 #include "stdafx.h" 00079 #include "parseOpts.h" 00080 #include "xmlprint.h" 00081 #include <winsock2.h> 00082 #include <bthdef.h> 00083 #include <Bthsdpdef.h> 00084 #include <BluetoothAPIs.h> 00085 #include <string.h> 00086 00087 /* Global pointter to the XML printing */ 00088 xmlprintOutput * output = NULL; 00089 00090 00091 /* --------------------------------------------------------------------------*/ 00099 BOOL CtrlHandler( DWORD fdwCtrlType ); 00100 /* --------------------------------------------------------------------------*/ 00101 00102 00103 00104 /* --------------------------------------------------------------------------*/ 00113 void printError(char message[], int xml); 00114 /* --------------------------------------------------------------------------*/ 00115 00116 00117 00118 /* --------------------------------------------------------------------------*/ 00127 void printBTClass(int btclass, int xml); 00128 00129 00130 00131 /* --------------------------------------------------------------------------*/ 00140 void printDeviceXML(BLUETOOTH_DEVICE_INFO bdi, struct parseoptsOptionStruct myOpts); 00141 /* --------------------------------------------------------------------------*/ 00142 00143 00144 00145 00146 /* --------------------------------------------------------------------------*/ 00155 void printDevice(BLUETOOTH_DEVICE_INFO bdi, struct parseoptsOptionStruct myOpts); 00156 /* --------------------------------------------------------------------------*/ 00157 00158 00159 00160 /* --------------------------------------------------------------------------*/ 00168 void help(void); 00169 /* --------------------------------------------------------------------------*/ 00170 00171 00172 00173 /* --------------------------------------------------------------------------*/ 00182 int main(int argc, char* argv[]); 00183 /* --------------------------------------------------------------------------*/ 00184 00185 00186 00187 #endif /* __SCANNER_H__ */ 00188 00189 // End of file