|
// *********************************************************
// 文字列値の登録
// *********************************************************
BOOL LboxReg::SetStrValue(LPCTSTR lpEntry, LboxString &LString)
{
return LboxReg::SetStrValue( lpEntry, LString.szLboxString );
}
BOOL LboxReg::SetStrValue(LPCTSTR lpEntry, LboxString *LString)
{
return LboxReg::SetStrValue( lpEntry, LString->szLboxString );
}
BOOL LboxReg::SetStrValue(LPCTSTR lpEntry, LPTSTR lpValue)
{
LONG nRet;
nRet = RegSetValueEx(
LboxReg::hKey,
lpEntry,
0,
REG_SZ,
(const unsigned char *)lpValue,
lstrlen(lpValue)+1
);
if ( nRet == ERROR_SUCCESS ) {
return TRUE;
}
else {
return FALSE;
}
}
| |