Клубове Дир.бг
powered by diri.bg
търси в Клубове diri.bg Разширено търсене

Вход
Име
Парола

Клубове
Dir.bg
Взаимопомощ
Горещи теми
Компютри и Интернет
Контакти
Култура и изкуство
Мнения
Наука
Политика, Свят
Спорт
Техника
Градове
Религия и мистика
Фен клубове
Хоби, Развлечения
Общества
Я, архивите са живи
Клубове Дирене Регистрация Кой е тук Въпроси Списък Купувам / Продавам 03:10 08.05.24 
Клубове/ Компютри и Интернет / Хакери, Кракери .... Всички теми Следваща тема Пълен преглед*
Информация за клуба
Тема Re: Anybody aware with API parameterz for these:I mean [re: ToltekaaYotL]
Автор ivz (непознат)
Публикувано16.05.01 19:13  



Дано това ти свърши работа (аз ползвам един hlp-файл (ЖБпг32.хлп), но той е 91MB разпакетиран и не става да ти го пратя.
Някои от функциите не можах да ги намеря (напр. всички завършващи на W).
Не знам откъде са дошли, но щом ги няма в толкова голяма база данни, нещо не е наред с тях.

Ето с какво мога да помогна:

-----------------------------------------

RegCloseKey

VB Declaration
Declare Function RegCloseKey& Lib "advapi32.dll" (ByVal hKey As Long)

Description
Closes a key in the system registry.

Use with VB
No problem.

Parameter Type/Description
hKey Long—The key to close.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT, Win16

Example
FileDemo.vbp

----------------------------------------------

RegConnectRegistry

VB Declaration
Declare Function RegConnectRegistry& Lib "advapi32.dll" Alias _
"RegConnectRegistryA" (ByVal lpMachineName As String, ByVal hKey As Long, _
phkResult As Long)

Description
Allows you to access parts of the registry on a remote system.

Use with VB
No problem.

Parameter Type/Description
lpMachineName String—The name of the system to connect to. This is in the form \\computername.
hKey Long—HKEY_LOCAL_MACHINE or HKEY_USERS
phkResult Long—A variable to load with a handle to the specified key.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT

-----------------------------

RegCreateKey

VB Declaration
Declare Function RegCreateKey& Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal _
hKey As Long, ByVal lpSubKey As String, phkResult As Long)

Description
Creates a new key under the specified key. If the key already exists, this function opens the existing key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpSubKey String—Name of the new subkey to create. You can create multiple keys at once by separating them with backslashes, for example, level1\level2\newkey.
phkResult Long—A variable to load with a handle to the new subkey.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT, Win16

-----------------------------

RegDeleteKey

VB Declaration
Declare Function RegDeleteKey& Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal _
hKey As Long, ByVal lpSubKey As String)

Description
Deletes the specified subkey under an existing key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpSubKey String—The name of the key to delete. Any subkeys of this key are also deleted.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT

------------------------

RegDeleteValue

VB Declaration
Declare Function RegDeleteValue& Lib "advapi32.dll" Alias "RegDeleteValueA" _
(ByVal hKey As Long, ByVal lpValueName As String)

Description
Deletes a value under a specified key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpValueName String—The name of the value to delete. May be vbNullString or an empty string to delete the default value for the key.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT, Win16

-----------------------------------

RegDeleteValue

VB Declaration
Declare Function RegDeleteValue& Lib "advapi32.dll" Alias "RegDeleteValueA" _
(ByVal hKey As Long, ByVal lpValueName As String)

Description
Deletes a value under a specified key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpValueName String—The name of the value to delete. May be vbNullString or an empty string to delete the default value for the key.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT, Win16

--------------------------------------

RegEnumKey

VB Declaration
Declare Function RegEnumKey& Lib "advapi32.dll" Alias "RegEnumKeyA" (ByVal hKey _
As Long, ByVal dwIndex As Long, ByVal lpName As String, ByVal cbName As Long)

Description
Enumerates subkeys for a given key. Win32 functions should use RegEnumKeyEx.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
dwIndex Long—The index of the subkey to retrieve. The first subkey is at zero.
lpName String—A buffer to load with the key name at the specified index.
cbName Long—The length of the lpName buffer.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT, Win16

Comments
Use RegQueryInfoKey to determine the length of buffer needed to hold the longest key.

Example
FileDemo.vbp demonstrates RegEnumKeyEx which is similar.

-----------------------------------------

RegEnumValue

VB Declaration
Declare Function RegEnumValue& Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal _
hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, lpcbValueName _
As Long, lpReserved As Long, lpType As Long, lpData As Byte, lpcbData As Long)

Description
Enumerates the values for the specified key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
dwIndex Long—The index of the value to retrieve. The first value is at zero.
lpValueName String—A buffer to load with the value name at the specified index.
lpcbValueName Long—A variable that should be loaded with the length of the lpValueName buffer. On return it is set to the number of characters actually loaded into the buffer.
lpReserved Long—Unused, set to zero.
lpType Long—A variable to load with the type code for the value (see chapter text).
lpData Byte—A buffer to load with the data for this value.
lpcbData Long—A variable that should be loaded with the length of the lpData buffer. On return it is set to the number of bytes actually loaded into the buffer.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT

-------------------------------

RegFlushKey

VB Declaration
Declare Function RegFlushKey& Lib "advapi32.dll" (ByVal hKey As Long)

Description
Flushes changes to a key and its subkeys to disk.

Use with VB
No problem.

Parameter Type/Description
hKey Long—A handle of a key to flush or one of the standard key names (see chapter text).

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT

Comments
Some operating systems delay writing changes to the registry to disk in order to improve performance. This function ensures that the data has been written to disk, but should be avoided where possible as it can severely impact performance of an application.

------------------------------------

RegOpenKeyEx

VB Declaration
Declare Function RegOpenKeyEx& Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal _
hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal _
samDesired As Long, phkResult As Long)

Description
Opens an existing key. This function is recommended for use under Win32.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpSubKey String—Name of the key to open.
ulOptions Long—Unused, set to zero.
samDesired Long—One or more constants with the prefix KEY_?? combined to describe which operations are allowed for this key.
phkResult Long—A variable to load with a handle to the open key.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windo

-----------------------------------
RegOpenKey

VB Declaration
Declare Function RegOpenKey& Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey _
As Long, ByVal lpSubKey As String, phkResult As Long)

Description
Opens an existing key

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpSubKey String—Name of the key to open.
phkResult Long—A variable to load with a handle to the open key.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT, Win16

Comments
Under NT, this function uses the default security mask.

----------------------------------------

RegQueryInfoKey

VB Declaration
Declare Function RegQueryInfoKey& Lib "advapi32.dll" Alias "RegQueryInfoKeyA" _
(ByVal hKey As Long, ByVal lpClass As String, lpcbClass As Long, lpReserved As _
Long, lpcSubKeys As Long, lpcbMaxSubKeyLen As Long, lpcbMaxClassLen As Long, _
lpcValues As Long, lpcbMaxValueNameLen As Long, lpcbMaxValueLen As Long, _
lpcbSecurityDescriptor As Long, lpftLastWriteTime As FILETIME)

Description
Obtain information about a key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpClass String—A string to load with the class name for this key.
lpcbClass Long—A variable that should be loaded with the length of the lpClass buffer. On return it is set to the number of bytes actually loaded into the buffer.
lpReserved Long—Not used, set to zero.
lpcSubKeys Long—A variable to load with the number of subkeys for this key.
lpcbMaxSubKeyLen Long—A variable to load with length of the longest subkey name for this key (not including the terminating null character).
lpcbMaxClassLen Long—A variable to load with the length of the longest class name for subkeys for this key (not including the terminating null character).
lpcValues Long—A variable to load with the number of values for this key.
lpcbMaxValueNameLen Long—A variable to load with the length of the longest value name for subkeys for this key (not including the terminating null character).
lpcbMaxValueLen Long—A variable to load with the buffer size required to hold the largest value data for this key.
lpcbSecurityDescriptor Long—A variable to load with the length of the key’s security descriptor.
lpftlastWriteTime FILETIME—A structure to load with the last modification time for this key.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code. The function returns ERROR_MORE_DATA if one of the buffers is not long enough to hold the returned data.

Platform
Windows 95, Windows NT

----------------------------------------

RegQueryValueEx

VB Declaration
Declare Function RegQueryValueEx& Lib "advapi32.dll" Alias "RegQueryValueExA" _
(ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, _
lpType As Long, lpData As Any, lpcbData As Long)

Description
Retrieves a value for a key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpValueName String—The name of the value to retrieve.
lpReserved Long—Not used, set to zero.
lpType Long—A variable to load with the type of data retrieved (refer to the chapter text).
lpData Any—A buffer to load with the value specified.
lpcbData Long—A variable that should be loaded with the length of the lpData buffer. On return it is set to the number of bytes actually loaded into the buffer.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT

------------------------------------

RegSetValueEx

VB Declaration
Declare Function RegSetValueEx& Lib "advapi32.dll" Alias "RegSetValueExA" _
(ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal _
dwType As Long, lpData As Byte, ByVal cbData As Long)

Description
Sets the value for the specified key.

Use with VB
No problem.

Parameter Type/Description
hKey Long—Handle of an open key or one of the standard key names (see chapter text).
lpValueName String—The name of the value to set.
Reserved Long—Not used, set to zero.
dwType Long—The type of data to set (see chapter text).
lpData Byte—The first byte in a buffer containing the data.
cbData Long—The length of the lpData buffer.

Return Value
Long—Zero (ERROR_SUCCESS) on success. All other values indicate an error code.

Platform
Windows 95, Windows NT

--------------------------------



Цялата тема
ТемаАвторПубликувано
* Anybody aware with API parameterz for these:I mean ToltekaaYotL   14.05.01 10:29
. * ето :) bofh   14.05.01 11:28
. * Re: ето :) WithThanxToRedirection!   14.05.01 12:25
. * Re: Anybody aware with API parameterz for these:I mean ivz   16.05.01 19:13
Клуб :  


Clubs.dir.bg е форум за дискусии. Dir.bg не носи отговорност за съдържанието и достоверността на публикуваните в дискусиите материали.

Никаква част от съдържанието на тази страница не може да бъде репродуцирана, записвана или предавана под каквато и да е форма или по какъвто и да е повод без писменото съгласие на Dir.bg
За Забележки, коментари и предложения ползвайте формата за Обратна връзка | Мобилна версия | Потребителско споразумение
© 2006-2024 Dir.bg Всички права запазени.