|
|
| Посл.отвђт | Сообщенiе |
|
|
Дата: Ноя 13, 2003 17:10:09 Кто нибудь подкиньте ссылку где можно нарыть справочник по api чтобы к асму поближе, или тем которыми вы пользуетесь. |
|
|
Дата: Ноя 13, 2003 18:04:42 |
|
|
Дата: Ноя 13, 2003 18:26:12 AsmGuru62 Т.е. ты хочешь сказать, что только ими и пользуешься ;))))) |
|
|
Дата: Ноя 14, 2003 11:51:00 · Поправил: Grenader AsmGuru62 Не самый лучший источник - структуры описаны из рук вон плохо, да и параметрами для функций тоже беда. volodya Ну, я, например, предпочитаю именно их :))) И неплохо работает, кстати. |
|
|
Дата: Ноя 14, 2003 18:25:43 Да нет... с low-level я не работаю, просто мне казалось там описано неплохо. А где можно найти получше документацию на все эти Rtl_ххх? |
|
|
Дата: Ноя 14, 2003 20:10:47 AsmGuru62 Что бы там Grenader ни говорил - описано там многое достаточно неплохо. Надо еще год учесть - пару лет назад столь точные описания структур найти было тяжело. Что до лучших док - ну, сам понимашь, иногда DDK, иногда кода ReactOS - что придется :( |
|
|
Дата: Ноя 15, 2003 04:34:53 volodya Я и не писал, что "все плохо, и структуры там неправильные". Достаточно неплохо там описаны функции Rtlxxx - они сами по себе простые, и сходны с аналогичными функциями Win32. А вот что касается NtXXX - то здесь все гораздо хуже. Например, для NtQuerySystemInformation даны ВСЕГО 4 сруктуры! Ко многим структурам нет вообще никаких пояснений, в некоторых случаях написано "см. вин2000 ДДК". Это я говорю о наиболее ходовых функциях, которые чаще всего и нужны. По NativeAPI есть замечальная книга (что самое смешное - не помню ни названия, ни автора - осталась только пачка PDF) - в ней практически все NtXXX описаны, с примерами, хорошими комментариями. "ZwQuerySystemInformation queries information about the system. NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation( IN SYSTEM_INFORMATION_CLASS SystemInformationClass, IN OUT PVOID SystemInformation, IN ULONG SystemInformationLength, OUT PULONG ReturnLength OPTIONAL ); Parameters SystemInformationClass The type of system information to be queried.The permitted values are a subset of the enumeration SYSTEM_INFORMATION_CLASS, described in the following section. SystemInformation Points to a caller-allocated buffer or variable that receives the requested system information. SystemInformationLength The size in bytes of SystemInformation, which the caller should set according to the given SystemInformationClass. ReturnLength Optionally points to a variable that receives the number of bytes actually returned to SystemInformation; if SystemInformationLength is too small to contain the available information, the variable is normally set to zero except for two information classes (6 and 11) when it is set to the number of bytes required for the available information. If this information is not needed, ReturnLength may be a null pointer. Return Value Returns STATUS_SUCCESS or an error status, such as STATUS_INVALID_INFO_CLASS, STATUS_NOT_IMPLEMENTED or STATUS_INFO_LENGTH_MISMATCH. Related Win32 Functions GetSystemInfo, GetTimeZoneInformation, GetSystemTimeAdjustment, PSAPI functions, and performance counters. Remarks ZwQuerySystemInformation is the source of much of the information displayed by “Performance Monitor” for the classes Cache, Memory, Objects, Paging File, Process, Processor, System, and Thread. It is also frequently used by resource kit utilities that display information about the system. The ReturnLength information is not always valid (depending on the information class), even when the routine returns STATUS_SUCCESS.When the return value indicates STATUS_INFO_LENGTH_MISMATCH, only some of the information classes return an estimate of the required length. Some information classes are implemented only in the “checked” version of the kernel. Some, such as SystemCallCounts, return useful information only in “checked” versions of the kernel. Some information classes require certain flags to have been set in NtGlobalFlags at boot time. For example, SystemObjectInformation requires that FLG_MAINTAIN_OBJECT_TYPELIST be set at boot time. Information class SystemNotImplemented1 (4) would return STATUS_NOT_IMPLEMENTED if it were not for the fact that it uses DbgPrint to print the text “EX: SystemPathInformation now available via SharedUserData.” and then calls DbgBreakPoint.The breakpoint exception is caught by a frame based exception handler (in the absence of intervention by a debugger) and causes ZwQuerySystemInformation to return with STATUS_BREAKPOINT." А теперь сравни это с описанием на том сайте... |
|
|
Дата: Ноя 16, 2003 02:45:35 Меня Four-F в свое время просветил. Книжка твоя называется Native API Reference, а автор - Garry Nebbet. Понятное дело - эталон. Получше многих. С этим спорить только идиот будет. |
|
|
Дата: Ноя 16, 2003 07:40:58 volodya Я сейчас глянул - в разделе "документы" данная книжка отсутсвует. Может, стоило бы добавить - или низя? |
|
Powered by miniBB 1.6 © 2001-2002
Время загрузки страницы (сек.): 0.078 |