Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Сети";
Текущий архив: 2002.04.22;
Скачать: [xml.tar.bz2];

Вниз

Работа с реестром.   Найти похожие ветки 

 
Garmahis   (2002-02-07 23:59) [0]

Подскажите, пожалуйста, как в шестой Дельфе можно редактировать реестр на другом компьютере по сети?


 
VuDZ   (2002-02-08 01:59) [1]

RegConnectRegistry()


 
Garmahis   (2002-02-09 00:29) [2]

А можно подробнее, а то я не нашёл описания этой функции.


 
VuDZ   (2002-02-09 01:13) [3]

RegConnectRegistry
The RegConnectRegistry function establishes a connection to a predefined registry handle on another computer.

LONG RegConnectRegistry(
LPCTSTR lpMachineName, // computer name
HKEY hKey, // predefined registry handle
PHKEY phkResult // buffer for remote key handle
);

Parameters
lpMachineName
[in] Pointer to a null-terminated string specifying the name of the remote computer. The string has the following form:
\\computername

If lpMachineName is NULL, the local computer name is used.

hKey
[in] Specifies the one of the following predefined registry handles on the remote computer.
HKEY_LOCAL_MACHINE
HKEY_USERS

Windows NT/2000 or later: HKEY_PERFORMANCE_DATA, if the remote computer is running Windows NT/Windows 2000

Windows 95/98/Me: HKEY_DYN_DATA, if the remote computer is running Windows 95 or Windows 98.HKEY_CURRENT_CONFIG, if the remote computer is running Windows 95 or Windows 98.

You cannot specify the HKEY_CLASSES_ROOT or HKEY_CURRENT_USER value for this parameter.

phkResult
[out] Pointer to a variable that receives a key handle identifying the predefined handle on the remote computer.
Return Values
If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.

Remarks
When a handle returned by RegConnectRegistry is no longer needed, it should be closed by calling RegCloseKey.

Windows 95/98/Me: No registry subkey or value name may exceed 255 characters.

Windows 95/98/Me: To use RegConnectRegistry, you must install the Microsoft Remote Registry service. If you don"t do this, calls to RegConnectRegistry return ERROR_DLL_INIT_FAILED. Perform the following steps to install the Microsoft Remote Registry service.

To install the Microsoft Remote Registry service

In the Network option in Control Panel, click Add.
In the Select Network Component Type dialog box, double-click Service.
In the Select Network Service dialog box, click the Have Disk button.
In the Install From Disk dialog box, type the path to the ADMIN\NETTOOLS\REMOTREG directory on the Windows 95 compact disc, and then click OK.
In the Install From Disk dialog box, click OK.
In the Select Network Service dialog box, click Microsoft Remote Registry, and then click OK.
If you are prompted to specify the location of additional files, specify the path to the files on a shared network directory or on the compact disc.

Requirements
Windows NT/2000 or later: Requires Windows NT 3.1 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Header: Declared in Winreg.h; include Windows.h.
Library: Use Advapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.

знающие люди говорят, что почти весь API описан тут - msdn.microsoft.com :>


 
drpass   (2002-02-09 16:21) [4]

Чуть проще:
var reg:TRegistry

reg:=TRegistry.Create;
reg.RegistryConnect("\\RemoteMachineName");


 
bw3d   (2002-02-13 08:02) [5]

а может тебя хелпом пользоваться научить ?



Страницы: 1 вся ветка

Форум: "Сети";
Текущий архив: 2002.04.22;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.008 c
3-69746
vasilly
2002-04-01 08:43
2002.04.22
Нельзя сохранить из дельф больше чем 256 символов в MS SQL!!!


6-69966
rambo69
2002-02-08 20:32
2002.04.22
Снова сетевой трафик


3-69656
Артём
2002-04-02 19:42
2002.04.22
Вопрос по триггерам


14-69972
Alexandr
2002-03-13 15:00
2002.04.22
Чудо


1-69824
Кулюкин Олег
2002-04-05 08:56
2002.04.22
Ищу компонент - HTML viewer





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский