SixFeet6
February 7th, 2006, 05:36 AM
#
if (RegCreateKeyEx (HKEY_CURRENT_USER, Path, 0, NULL,0,0,NULL, &hKey, lpdwDisp) == ERROR_SUCCESS)
{
if (RegSetValueEx(hKey, Key, 0, REG_SZ, Value, sizeof(Value))== ERROR_SUCCESS)
{
fdt_rett();
}
else
{
fdt_retnil();
}
}
else
{
fdt_retnil();
}
#
if (RegCreateKeyEx (HKEY_CURRENT_USER, Path, 0, NULL,0,0,NULL, &hKey, lpdwDisp) == ERROR_SUCCESS)
{
if (RegSetValueEx(hKey, Key, 0, REG_SZ, Value, sizeof(Value))== ERROR_SUCCESS)
{
fdt_rett();
}
else
{
fdt_retnil();
}
}
else
{
fdt_retnil();
}
#