Вернуться   Компьютерный форум > Компьютеры > Операционные системы
 
 
Опции темы
Старый 14.10.2013, 15:26   #1 (ссылка)
Стажёр
 
Аватар для Базаров
 
Регистрация: 11.11.2008
Сообщений: 2,051
Записей в блоге: 376
Репутация: 60
По умолчанию Значения строкового параметра в реестре. Помогите с тех-английским плиз.

Windows XP
Вот пример такого значения:

@themeui.dll,-2017

Значений с подобным синтаксисом масса!
Что означает число после запятой? Чем отличается например "-2019", "0", или "37"?

Поковырявшись в нэте нашел кое-какую инфу на аглицком:

(может интересно кому) http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

Вроде как эти строчки проливают свет на эту тайну:

Цитата:
The data for a language-neutral registry value has the format "@<PE-path>,-<stringID>[;<comment>]", where:
  • PE-path specifies the path of the executable. You can specify the path using an environment variable, such as %ProgramFiles%, to support deployment. An alternative for making your string reference is to leave out the file path information. In this case, your application must have some means, for example, another registry value, to communicate its own install directory.
  • stringID specifies the numeric resource identifier of the relevant string resource, which is implemented just like any other localizable string resource.
А также:


Цитата:
If you use the INF file format to create shortcut strings, the resource file should make the following registry settings. These instructions assume the use of the ProfileItems syntax of Setup API.
  1. Change the InfoTip value to point to the string redirection reference, using the path and resource identifier.
  2. Add the new value DisplayResource under the ProfileItems installation sections.
The following is an example showing the addition of the Calculator application to the Start menu:
Цитата:
C++

[CalcInstallItems] "Name" = %Calc_DESC%
"CmdLine" = 11, calc.exe
"SubDir" = %Access_GROUP%
"WorkingDir" = 11

"InfoTip" = "@%systemroot%\system32\shell32.dll,-22531"

"DisplayResource" = "%systemroot%\system32\shell32.dll",22019
Use the syntax shown below when using INF to add items, for example, an Access Group folder, to the Start menu. This syntax assumes the use of [StartMenuItems] support from Setup, similar to the syntax used in Syssetup.inf.
Цитата:
C++

[StartMenuItems]
<description> = <binary>,<commandline>,<iconfile>,<iconnum>,<infot ip>,<resDLL,resID>
Set the value infotip to the string reference "@<path>,-resID".
The display name is determined by the resDLL and resID values. The resID value specifies the resource identifier for a string resource associated with the language-neutral file. The resDLL value specifies the path to the language-neutral file.
Вроде как сам немного дружу с английским, но... ничего внятного не получилось!(((

---------- Добавлено в 12:26 ---------- Предыдущее сообщение было написано в 11:45 ----------

И еще:

The specific work involves the following steps:
  1. Implement the friendly name and InfoTip strings as language-specific string resources.
  2. Add the FriendlyTypeName value under the document type registry key. The data for the value follows the pattern "@<path>,-<resID>", where path indicates the executable and resID is the resource identifier of a localizable string resource associated with that executable.
  3. Specify the InfoTip registry value according to the format "@<path>,-<resID>".
The following example shows the registry settings for a .txt file:

Цитата:
C++

HKCR\.txt
@="txtfile"
"Content Type"="text/plain"

HKCR\txtfile
@="Text Document"

"FriendlyTypeName" = "@%systemroot%\system32\shell32.dll,-12345"

"InfoTip" = "@%systemroot%\system32\shell32.dll,-12346"
Базаров вне форума  
Старый 14.10.2013, 16:13   #2 (ссылка)
Эксперт
 
Аватар для дормидонд
 
Регистрация: 19.03.2010
Сообщений: 10,530
Записей в блоге: 2
Репутация: 1111
По умолчанию

это номер иконки в DLL , которую будет использоваться .вот рег файл для добавки в меню правой кнопы пункта выключения компа .
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\shutd owns]
@="Выключение"
"Icon"="shell32.dll,-28"
"Position"="bottom"

[HKEY_CLASSES_ROOT\Directory\Background\shell\shutd owns\command]
@="shutdown.exe -t 00 /s"

"Icon"="shell32.dll,-28" - это значит операции надо использовать иконку номер 28 из шел32.длл .
дормидонд вне форума  
Старый 14.10.2013, 21:12   #3 (ссылка)
Стажёр
 
Аватар для Базаров
 
Регистрация: 11.11.2008
Сообщений: 2,051
Записей в блоге: 376
Репутация: 60
По умолчанию

дормидонд, спасибо!

А как на счет

"@%systemroot%\system32\shell32.dll,-22531"

? Неужто иконку номер 22531?

Или вот такое:

"%systemroot%\system32\shell32.dll",22019

обрати внимание на синтаксис. В кавычки заключен только адрес и отсутствует символ "-".
Базаров вне форума  
Старый 16.10.2013, 09:39   #4 (ссылка)
Эксперт
 
Аватар для дормидонд
 
Регистрация: 19.03.2010
Сообщений: 10,530
Записей в блоге: 2
Репутация: 1111
По умолчанию

да. тема должна взять иконку 22531 . но в оригинал шел32 нет иконки с таким номером . тут или с темой эта иконка добавляеться в шел32 , или тема будет использовать иконку , используемую по умолчанию темами винды .
дормидонд вне форума  
Ads
 


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
SpeedFan - что за значения он показывает? SeGa_1977 Утилиты 0 28.08.2012 11:31
большое значения ping igor2009 Интернет и сети 2 04.01.2012 01:47
Затруднение с техническим английским((( Базаров Железо 16 06.09.2011 02:04
Ошибка записи в реестр при создании параметра Модер Windows XP 3 20.01.2011 15:28
Заполнение строкового массива алфавитом (Delphi) Alpha Программирование 3 13.11.2009 02:54


Текущее время: 04:06. Часовой пояс GMT +4. Powered by vBulletin® Version 5.8.9
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.