Логин: Пароль:    Регистрация Всеми возможностями сайта можно пользоваться
только после авторизации.
   Забыли пароль?

Поиск
L



Статистика
u
Пользователи онлайн: нет
Гостей онлайн: 6
Всего онлайн: 6
Зарегистрировано юзеров: 7940
Комментариев на сайте: 698
Новый юзер: kotya.volkova



Последние комментарии
c
Dennisvoifs прокомментировал "Урок 3 - Конструкция IF...THEN...ELSE":
Пункт коммерческого учета цена, Ктп комплектные трансформаторные подстанции москва, Производство ктп москва и не только Вы найдете на нашем специализированном сайте: - Вам к нам!https://sviloguzov.ru/
Arthurneime прокомментировал "Урок 53 - Потоки в Delphi, (часть 1/3)":
[img]https://masterfutures.ru/wp-content/uploads/2020/03/14-2.png[/img] Online trading is becoming increasingly popular, as more people learn of the earning potential of platforms such as Broker, a broker which caters to a significant audience of digital traders (12 million and counting). Known for their excellent user interface, as well as fast deposit and withdrawal times, Broker provides multiple features to help traders earn on the markets. This overview will outline just some of the key aspects traders can expect to enjoy whilst working with Broker broker. Online trading is becoming increasingly popular, as more people learn of the earning potential of platforms such as Broker, a broker which caters to a significant audience of digital traders (12 million and counting). Known for their excellent user interface, as well as fast deposit and withdrawal times, Broker provides multiple features to help traders earn on the markets. This overview will outline just some of the key aspects traders can expect to enjoy whilst working with Broker broker. Broker Broker is operated by a dedicated team, whose main priority has always been to provide the best possible user experience, and ultimately satisfaction. Whether experienced in trading or a newcomer, the platform is easy to use and very responsive. The education section deserves special mention, particularly for assisting traders to learn and implement new strategies – which can be tested on the platforms free demo Source: [url=https://bit.ly/35fv3B6/]Broker[/url] https://bit.ly/35fv3B6/ Tags: Broker

Помещение записи в одну из секций автозапуска реестра

Пример показывает как поместить запись в одну из секций автозапуска реестра.

type 
THKEYTarget = (htLocalMachine, htCurrentUser); 
type 
TSectionTarget = (stRun, stRunOnce, stRunOnceEx); 

function StoreToRunSection(HKEYTarget: THKEYTarget; 
SectionTarget: TSectionTarget; Name, Data: string): boolean; 
var 
Reg: TRegistry; 
Section: string; 
begin 
Result := TRUE; 
try 
reg := TRegistry.Create; 
if HKEYTarget = htLocalMachine then 
reg.RootKey := HKEY_LOCAL_MACHINE; 
if HKEYTarget = htCurrentUser then 
reg.RootKey := HKEY_CURRENT_USER; 
if SectionTarget = stRun then 
Section := 'Run'; 
if SectionTarget = stRunOnce then 
Section := 'RunOnce'; 
if SectionTarget = stRunOnceEx then 
Section := 'RunOnceEx'; 
reg.LazyWrite := false; 
reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\' + Section, false); 
reg.WriteString(Name, Data); 
reg.CloseKey; 
reg.free; 
except RESULT := FALSE; 
end; 
end; 

// Пример использования: 

begin 
StoreToRunSection(htLocalMachine, stRun, 'Имя программы', 
application.exename); 
end;

Вот и всё, Удачи!

Источник: www.thedelphi.ru
Автор: Савельев Александр
Опубликовано: 26 Января 2014
Просмотров:


Зарегистрируйтесь или авторизуйтесь, чтобы добавлять комментарии.