Lines Matching refs:RegKey
171 RegistryKey RegKey = root_key->OpenSubKey(file_extension, false); in QueryPreselectForMsApplication() local
173 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in QueryPreselectForMsApplication()
175 RegistryValue RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in QueryPreselectForMsApplication()
346 RegistryKey RegKey = m_RootKey->CreateSubKey(RegKeyName); in RegisterAsHtmlEditorForInternetExplorer() local
348 RegKey = RegKey->CreateSubKey(SHELL_EDIT_COMMAND); in RegisterAsHtmlEditorForInternetExplorer()
356 RegKey->SetValue(RegVal); in RegisterAsHtmlEditorForInternetExplorer()
359 RegKey = m_RootKey->CreateSubKey(RegKeyName); in RegisterAsHtmlEditorForInternetExplorer()
363 RegKey->SetValue(RegVal); in RegisterAsHtmlEditorForInternetExplorer()
365 RegKey = RegKey->CreateSubKey(SHELL_EDIT_COMMAND); in RegisterAsHtmlEditorForInternetExplorer()
370 RegKey->SetValue(RegVal); in RegisterAsHtmlEditorForInternetExplorer()
403 RegistryKey RegKey = RegistrationRootKey->CreateSubKey(MS_IE_DEF_HTML_EDITOR_SHL_EDIT_CMD); in RegisterAsDefaultHtmlEditorForInternetExplorer() local
407 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in RegisterAsDefaultHtmlEditorForInternetExplorer()
409 RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in RegisterAsDefaultHtmlEditorForInternetExplorer()
417 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in RegisterAsDefaultHtmlEditorForInternetExplorer()
418 BackupRegKey->CopyValue(RegKey, DEFAULT_VALUE_NAME); in RegisterAsDefaultHtmlEditorForInternetExplorer()
420 RegKey = RegistrationRootKey->OpenSubKey(MS_IE_DEF_HTML_EDITOR); in RegisterAsDefaultHtmlEditorForInternetExplorer()
421 if (RegKey->HasValue(L"Description")) in RegisterAsDefaultHtmlEditorForInternetExplorer()
422 BackupRegKey->CopyValue(RegKey, L"Description"); in RegisterAsDefaultHtmlEditorForInternetExplorer()
429 RegKey = RegistrationRootKey->OpenSubKey(MS_IE_DEF_HTML_EDITOR_SHL_EDIT_CMD); in RegisterAsDefaultHtmlEditorForInternetExplorer()
430 RegKey->SetValue(RegVal); in RegisterAsDefaultHtmlEditorForInternetExplorer()
434 RegKey = RegistrationRootKey->OpenSubKey(MS_IE_DEF_HTML_EDITOR); in RegisterAsDefaultHtmlEditorForInternetExplorer()
435 RegKey->SetValue(RegVal); in RegisterAsDefaultHtmlEditorForInternetExplorer()
446 RegistryKey RegKey = RegistrationRootKey->OpenSubKey(MS_IE_DEF_HTML_EDITOR_SHL_EDIT_CMD); in UnregisterAsDefaultHtmlEditorForInternetExplorer() local
448 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in UnregisterAsDefaultHtmlEditorForInternetExplorer()
450 RegistryValue RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
463 RegKey->CopyValue(BackupRegKey, DEFAULT_VALUE_NAME); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
465 RegKey->DeleteValue(DEFAULT_VALUE_NAME); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
467 … RegKey = RegistrationRootKey->OpenSubKey(MS_IE_DEF_HTML_EDITOR); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
470 RegKey->CopyValue(BackupRegKey, L"Description"); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
472 RegKey->DeleteValue(L"Description"); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
476 RegKey->DeleteValue(DEFAULT_VALUE_NAME); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
477 RegKey = RegistrationRootKey->OpenSubKey(MS_IE_DEF_HTML_EDITOR); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
478 RegKey->DeleteValue(L"Description"); in UnregisterAsDefaultHtmlEditorForInternetExplorer()
490 RegistryKey RegKey = m_RootKey->CreateSubKey(L".htm"); in RegisterAsDefaultShellHtmlEditor() local
495 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in RegisterAsDefaultShellHtmlEditor()
496 RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in RegisterAsDefaultShellHtmlEditor()
502 RegKey = m_RootKey->CreateSubKey(HtmFwdKey + L"\\" + SHELL_EDIT_COMMAND); in RegisterAsDefaultShellHtmlEditor()
504 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in RegisterAsDefaultShellHtmlEditor()
506 RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in RegisterAsDefaultShellHtmlEditor()
514 BackupRegKey->CopyValue(RegKey, DEFAULT_VALUE_NAME, SHELL_EDIT_COMMAND_BACKUP); in RegisterAsDefaultShellHtmlEditor()
522 RegKey->SetValue(RegVal); in RegisterAsDefaultShellHtmlEditor()
533 RegistryKey RegKey = m_RootKey->OpenSubKey(L".htm"); in UnregisterAsDefaultShellHtmlEditor() local
538 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in UnregisterAsDefaultShellHtmlEditor()
539 RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in UnregisterAsDefaultShellHtmlEditor()
546 RegKey = m_RootKey->OpenSubKey(HtmFwdKey + L"\\" + SHELL_EDIT_COMMAND); in UnregisterAsDefaultShellHtmlEditor()
548 RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in UnregisterAsDefaultShellHtmlEditor()
557 RegKey->CopyValue(BackupRegKey, SHELL_EDIT_COMMAND_BACKUP, DEFAULT_VALUE_NAME); in UnregisterAsDefaultShellHtmlEditor()
559 RegKey->DeleteValue(DEFAULT_VALUE_NAME); in UnregisterAsDefaultShellHtmlEditor()
591 RegistryKey RegKey = m_RootKey->CreateSubKey(PRIVATE_BACKUP_KEY_NAME); in GetRegisterState() local
593 if (RegKey->HasValue(REGISTRATION_STATE)) in GetRegisterState()
595 RegistryValue RegVal = RegKey->GetValue(REGISTRATION_STATE); in GetRegisterState()
605 RegistryKey RegKey = m_RootKey->CreateSubKey(PRIVATE_BACKUP_KEY_NAME); in SetRegisterState() local
607 RegKey->SetValue(RegVal); in SetRegisterState()
614 RegistryKey RegKey = m_RootKey->CreateSubKey(PRIVATE_BACKUP_KEY_NAME); in IsRegisteredFor() local
618 if (RegKey->HasValue(REGISTRATION_STATE)) in IsRegisteredFor()
620 RegistryValue RegVal = RegKey->GetValue(REGISTRATION_STATE); in IsRegisteredFor()
697 RegistryKey RegKey = ForwardKey->CreateSubKey(L"DefaultIcon"); in RegisterForMsOfficeApplication() local
699 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
705 RegKey = RegKeyShell->CreateSubKey(L"new"); in RegisterForMsOfficeApplication()
707 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
709 RegKey = RegKey->CreateSubKey(L"command"); in RegisterForMsOfficeApplication()
711 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
713 RegKey = RegKeyShell->CreateSubKey(L"open\\command"); in RegisterForMsOfficeApplication()
715 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
717 RegKey = RegKeyShell->CreateSubKey(L"print\\command"); in RegisterForMsOfficeApplication()
719 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
721 RegKey = RegKeyShell->CreateSubKey(L"printto\\command"); in RegisterForMsOfficeApplication()
723 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
726 RegKey = m_RootKey->CreateSubKey(FileExtension); in RegisterForMsOfficeApplication()
728 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in RegisterForMsOfficeApplication()
730 RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in RegisterForMsOfficeApplication()
736 ForwardKey->CopyValue(RegKey, DEFAULT_VALUE_NAME, BACKUP_VALUE_NAME); in RegisterForMsOfficeApplication()
741 RegKey->SetValue(RegVal); in RegisterForMsOfficeApplication()
750 RegistryKey RegKey = m_RootKey->OpenSubKey(FileExtension); in UnregisterForMsOfficeApplication() local
752 if (RegKey->HasValue(DEFAULT_VALUE_NAME)) in UnregisterForMsOfficeApplication()
754 RegistryValue RegVal = RegKey->GetValue(DEFAULT_VALUE_NAME); in UnregisterForMsOfficeApplication()
761 RegKey->CopyValue(FwdRegKey, BACKUP_VALUE_NAME, DEFAULT_VALUE_NAME); in UnregisterForMsOfficeApplication()
763 RegKey->DeleteValue(DEFAULT_VALUE_NAME); in UnregisterForMsOfficeApplication()