wstrcpy
wstrcpy(pref.kernel_name, wkernel_name);
wstrcpy(pref.options, woptions);
void wstrcpy(TCHAR* dst, TCHAR* src);
wstrcpy(pref.setting_name, TEXT("User defined"));
wstrcpy(pref.kernel_name, tmpbuf);
wstrcpy(pref.options, TEXT(""));