![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Проблемма совместимости с ХР
Alexeyss © (2003-06-22 04:57:00)
При запуске программы в XP выходит данная ошибка"Точка входа в процедуру Register ServiceProcess не найдена в библиотеке DLL KERNEL32.DLL".
Gandalf (2003-06-22 18:57:00) [1]
> Кстати, в MSDN нет такой.
Есть:
RegisterServiceProcess
The RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off.
To call RegisterServiceProcess, retrieve a function pointer using GetProcAddress on KERNEL32.DLL. Use the function pointer to call RegisterServiceProcess.
DWORD RegisterServiceProcess(
DWORD dwProcessId,
DWORD dwType
);
Parameters
dwProcessId
Specifies the identifier of the process to register as a service process. Specifies NULL to register the current process.
dwType
Specifies whether the service is to be registered or unregistered. This parameter can be one of the following values. Value Meaning
0 Unregisters the process as a service process.
1 Registers the process as a service process.
Return Values
The return value is 1 if successful or 0 if an error occurs.
Vladimir Kladov (2003-06-22 18:00:00) [2]
Неужели? :)
А как вы смотрели? Или кто-то так сказал?
Alexeyss (2003-06-22 17:48:00) [3]
Да но библиотеки kernel32.dll нет и в windows 9x.
Yury Sidorov (2003-06-22 13:51:00) [4]
Если мне не изменяет память, то RegisterServiceProcess это недокументированнияфункция в Win9x, которая позволяет убрать процесс из списка процессов. Естественно, в NT/2000/XP ее нет. Так что надо ее использовать через LoadLibrary и GetProcAddress, предварительно проверив на тип ОС.
Vladimir Kladov (2003-06-22 08:45:00) [5]
В самом KOL.PAS нет ссылки на такую процедуру. Какой-то дополнительный компонент связан с ней? Кстати, в MSDN нет такой.