Esempio n. 1
0
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;
}
Esempio n. 2
0
int32_t HttpNative_EasyGetInfoLong(CURL* handle, PAL_CURLINFO info, int64_t* value)
{
    return (int32_t)(curl_easy_getinfo(handle, ConvertInfo(info), value));
}
Esempio n. 3
0
int32_t HttpNative_EasyGetInfoPointer(CURL* handle, PAL_CURLINFO info, void** value)
{
    return (int32_t)(curl_easy_getinfo(handle, ConvertInfo(info), value));
}