#ifndef __UTIL_LOCAL_HEADER__ #define __UTIL_LOCAL_HEADER__ void test_util(); //void _add_get_info(unsigned char* pBuf, int* nBuf, int type); // for GetDeviceInfo() function // -- len(1), type(1) data(len)* // return : process buffer size int _get_info(BYTE* buf, int pos, int size, int* type, BYTE* pOut, int* nOut); //WORD get_word(BYTE* buf); // was defined in UDPAdminToolDlg.cpp char* convert_time_string(int secs, char* buf); //char* strlow(char* str); //bool is_num(char c); //void test_is_num(); //CString get_parent(CString path); //CString get_filename(CString path); //void test_get_filename(); //CString path_append(CString path1, CString path2); //CString get_program(); //CString get_program2(CString path); //int comp_ip(CString ip1, CString ip2); //void test_comp_ip(); //BOOL DeleteDir(CString path); //bool parse_ip(CString ip, int* v1, int* v2, int* v3, int* v4); //void test_parse_ip(); //CString format(const char* msg, ...); //void PumpMessages(); void convert_bin2str(unsigned char* buf, int size, char* out_str); BOOL check_valid_hex(char cc); // >0 : success // <=0 : failed // -1 : invalid hex string int convert_str2bin(const char* str, unsigned char* out_buf, int* out_size); void test_convert_str2bin(); #include "UDPAdminTool.h" CString info2name(ClientInformation* info); #endif