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)
(нет описания...)