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

Вниз

как сапустить свою програмку так как ето делаєт Scandisk   Найти похожие ветки 

 
integery   (2005-08-01 14:49) [0]

как сапустить свою програмку  так как ето делаєт Scandisk


 
PVOzerski ©   (2005-08-01 14:52) [1]

А какие программы запускает ScanDisk?

Пожалуйста, переформулируй вопрос так, чтобы его было можно понять без телепатии.


 
integery   (2005-08-01 14:58) [2]

я имел введу как зделать запуск своей програмки так как Scandisk


 
n0name   (2005-08-01 16:19) [3]

как в Win9X устроаенно не знаю, но в WinNT ключ реестра есть отвечающий за запуск chkdisk. Правдо там используется только Native API.


 
integery   (2005-08-01 16:50) [4]

ну есть же способ хоnя б посмотреть утилитки коториє работают з дисками (acronis, paragon) !!!


 
Kerk ©   (2005-08-01 19:54) [5]

How Does Autochk Get Executed?

Autochk runs in between the time that NT"s boot and system start drivers are loaded, and when paging is turned on. At this point in the boot sequence Session Manager (smss.exe) is getting NT"s user-mode environment off-the-ground and no other programs are active. The HKLM\System\CurrentControlSet\Control\Session Manager\BootExecute value, a MULTI_SZ, contains the names and arguments of programs that are executed by Session Manager, and is where Autochk is specified. Here is what you"ll typically find if you look at this value, where "Autochk" is passed "*" as an argument:

    Autocheck Autochk *

Session Manager looks in the <winnt>\system32 directory for the executables listed in this value. When Autochk runs there are no files open so Autochk can open any volume in raw-mode, including the boot drive, and manipulate its on-disk data structures. This wouldn"t be possible at any later point.


Building Native Applications

Microsoft doesn"t document it, but the NT DDK Build utility knows how to make native applications (and its probably used to compile Autochk). You specify information in a SOURCES file that defines the application, the same as would be done for device drivers. However, instead of indicating to Build that you want a driver, you tell it you want a native applicationin the SOURCES file like this:

    TARGETTYPE=PROGRAM

The Build utility uses a standard makefile to guide it, \ddk\inc\makefile.def, which looks for a run-time library named nt.lib when compiling native applications. Unfortunately, Microsoft doesn"t ship this file with the DDK. However, you can work around this problem by including a line in makefile.def that overrides the selection of nt.lib by specifying Visual C++"s runtime library, msvcrt.lib

If you run Build under the DDK"s "Checked Build" environment it will produce a native application with full debug information under %BASEDIR%\lib\%CPU%\Checked (e.g. c:\ddk\lib\i386\checked\native.exe), and if you invoke it in the "Free Build" environment a release version of the program will end up in %BASEDIR%\lib\%CPU%\Free. These are the same places device driver images are placed by Build.

Native applications have ".exe" file extensions but you cannot run them like Win32 .exe"s. If you try you"ll get the message:

     The <Application Name> application cannot be run in Windows NT mode.


дальше еще раздел Inside a Native Application

сохранено с http://sysinternals.com
точную ссылку не знаю


 
Sumor   (2005-08-01 19:58) [6]

Без телепатии трудно...
Если тебе нужно запустить что-то, в тот момент когда идёт загрузка WinNT 2k XP и выводить/запрашивать на зелёный/чёрный экран, то для этого тебе нужно написать драйвер/сервис, которому ты и скажешь запускайся в этом режиме.
Конкретно для дельфей: у TService есть параметр тип сервиса, там и указывается (название не помню).
Но при этом ты не можешь пользоваться тем, что ещё не загружено, например, могут быть проблемы с чтением/записью файлов через операционную систему.
Вот и подумай оно тебе надо...


 
Eraser ©   (2005-08-01 21:20) [7]

integery   (01.08.05 14:49)

Тут правильно говорят. Скорее всего твоя задача решится написанием драйвера ядра или даже простого сервиса.


 
integeri   (2005-08-02 17:41) [8]

Всем спасибо што отбили охоту :))



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

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

Наверх





Память: 0.47 MB
Время: 0.045 c
6-1116762539
KonstantinXaker(KX)
2005-05-22 15:48
2005.09.25
Извлечение имени файла из интернет-ссылки


14-1125409925
oldman
2005-08-30 17:52
2005.09.25
Старый фидошный баян...


2-1124193237
Alol
2005-08-16 15:53
2005.09.25
Как удалить escape-строку


14-1125158626
TStas
2005-08-27 20:03
2005.09.25
Чем дышат рыбы зимой?


1-1124972628
lehich
2005-08-25 16:23
2005.09.25
запрос значения параметра (XMLDocument)





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский