Ruby/Справочник/Windows::Process
Класс Windows::Process
[править](нет описания...)
Константы
ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, CREATE_BREAKAWAY_FROM_JOB, CREATE_DEFAULT_ERROR_MODE, CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP, CREATE_NO_WINDOW, CREATE_PRESERVE_CODE_AUTHZ_LEVEL, CREATE_SEPARATE_WOW_VDM, CREATE_SHARED_WOW_VDM, CREATE_SUSPENDED, CREATE_UNICODE_ENVIRONMENT, CreateProcess, CreateRemoteThread, CreateThread, DEBUG_ONLY_THIS_PROCESS, DEBUG_PROCESS, DETACHED_PROCESS, ExitProcess, GetCommandLine, GetCurrentProcess, GetCurrentProcessId, GetEnvironmentStrings, GetEnvironmentVariable, GetExitCodeProcess, GetPriorityClass, GetProcessHandleCount, GetProcessId, GetProcessTimes, GetStartupInfo, HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, OpenProcess, PROCESS_ALL_ACCESS, PROCESS_CREATE_PROCESS, PROCESS_CREATE_THREAD, PROCESS_DUP_HANDLE, PROCESS_QUERY_INFORMATION, PROCESS_QUERY_LIMITED_INFORMATION, PROCESS_SET_INFORMATION, PROCESS_SET_QUOTA, PROCESS_SUSPEND_RESUME, PROCESS_TERMINATE, PROCESS_VM_OPERATION, PROCESS_VM_READ, PROCESS_VM_WRITE, REALTIME_PRIORITY_CLASS, STARTF_FORCEOFFFEEDBACK, STARTF_FORCEONFEEDBACK, STARTF_RUNFULLSCREEN, STARTF_USECOUNTCHARS, STARTF_USEFILLATTRIBUTE, STARTF_USEHOTKEY, STARTF_USEPOSITION, STARTF_USESHOWWINDOW, STARTF_USESIZE, STARTF_USESTDHANDLES, STILL_ACTIVE, SYNCHRONIZE, SetEnvironmentVariable, Sleep, SleepEx, TerminateProcess, WaitForInputIdle
Методы объекта
CreateProcess, CreateRemoteThread, CreateThread, ExitProcess, GetCommandLine, GetCurrentProcessId, GetCurrentProcess, GetEnvironmentStrings, GetEnvironmentVariable, GetExitCodeProcess, GetPriorityClass, GetProcessHandleCount, GetProcessId, GetProcessTimes, GetStartupInfo, OpenProcess, SetEnvironmentVariable, SleepEx, Sleep, TerminateProcess, WaitForInputIdle
Windows::Process#CreateProcess
[править]CreateProcess(app, cmd, pattr, tattr, handles, flags, env, dir, sinfo, pinfo)
(нет описания...)
Windows::Process#CreateRemoteThread
[править]CreateRemoteThread(handle, tattr, size, start, param, flags, tid)
(нет описания...)
Windows::Process#CreateThread
[править]CreateThread(attr, size, addr, param, flags, id)
(нет описания...)
Windows::Process#ExitProcess
[править]ExitProcess(exit_code)
(нет описания...)
Windows::Process#GetCommandLine
[править]GetCommandLine()
(нет описания...) вернет полный путь к запущенному файлу
Windows::Process#GetCurrentProcess
[править]GetCurrentProcess()
(нет описания...)
Windows::Process#GetCurrentProcessId
[править]GetCurrentProcessId()
(нет описания...)
Windows::Process#GetEnvironmentStrings
[править]GetEnvironmentStrings()
(нет описания...)
Windows::Process#GetEnvironmentVariable
[править]GetEnvironmentVariable(name, buffer, size)
BUFFER,SIZE - необязательные параметры, указанное значение вы получите по любому
NAME может принимать значения; ALLUSERSPROFILE,APPDATA,BDS,CLIENTNAME,CommonProgramFiles,COMPUTERNAME,ComSpec,Cor_Debugging_Control_424242,DBCONFIG,DBROOT,DBWORK HOMEDRIVE,HOMEPATH,INCLUDE,LIB,LOGONSERVER,NUMBER_OF_PROCESSORS,OS_ROOTDIR,OS_TMPDIR,OS,Path,PATHEXT,PROCESSOR_ARCHITECTURE, PROCESSOR_IDENTIFIER,PROCESSOR_LEVEL,PROCESSOR_REVISION,ProgramFiles,SESSIONNAME,SystemDrive,SystemRoot,TEMP,TMP,USERDOMAIN USERNAME,USERPROFILE,windir
Пример получения значения
GetEnvironmentVariable('COMPUTERNAME') - вернет имя компютера
Windows::Process#GetExitCodeProcess
[править]GetExitCodeProcess(handle, exit_code)
(нет описания...)
Windows::Process#GetPriorityClass
[править]GetPriorityClass(handle)
(нет описания...)
Windows::Process#GetProcessHandleCount
[править]GetProcessHandleCount(handle, count)
(нет описания...)
Windows::Process#GetProcessId
[править]GetProcessId(handle)
(нет описания...)
Windows::Process#GetProcessTimes
[править]GetProcessTimes(handle, t_creation, t_exit, t_kernel, t_user)
(нет описания...)
Windows::Process#GetStartupInfo
[править]GetStartupInfo(info_struct)
(нет описания...)
Windows::Process#OpenProcess
[править]OpenProcess(access, handle, pid)
(нет описания...)
Windows::Process#SetEnvironmentVariable
[править]SetEnvironmentVariable(name, value)
(нет описания...)
Windows::Process#Sleep
[править]Sleep(milliseconds)
(нет описания...)
Windows::Process#SleepEx
[править]SleepEx(milliseconds, alertable)
(нет описания...)
Windows::Process#TerminateProcess
[править]TerminateProcess(handle, exit_code)
(нет описания...)
Windows::Process#WaitForInputIdle
[править]WaitForInputIdle(handle, milliseconds)
(нет описания...)