static int Str2Num(char *str)
{
int index = 0;//字符串索引
int port = 0;//提取整数
do{
if(('0' <= str[index]) && (str[index]<='9')){
port = port * 10 + (str[index]-'0');
}
index++;
}while(str[index] != '\0');
return (port);
}
void SerlSearch(void)
{
HKEY hKey;
TCHAR