bool SetReg(char *key, BYTE* value, DWORD dataLen, HKEY hKEY) { DWORD type_1 = REG_BINARY; long ret1=::RegSetValueEx(hKEY,key,NULL,type_1,(CONST BYTE*)value,dataLen); if(ret1!=ERROR_SUCCESS) { setLastError(ConvertInfo("错误:无法设置有关的注册表信息!")); // AfxMessageBox("错误:无法设置有关的注册表信息"); return false; } return true; }
int32_t HttpNative_EasyGetInfoLong(CURL* handle, PAL_CURLINFO info, int64_t* value) { return (int32_t)(curl_easy_getinfo(handle, ConvertInfo(info), value)); }
int32_t HttpNative_EasyGetInfoPointer(CURL* handle, PAL_CURLINFO info, void** value) { return (int32_t)(curl_easy_getinfo(handle, ConvertInfo(info), value)); }