The Möbius Operating System: process_info_t struct Reference
HOME DOWNLOAD DOCUMENTATION SCREENSHOTS  

process_info_t Struct Reference
[Processes]

User-mode process information structure. More...

#include <defs.h>

List of all members.

Public Attributes

unsigned id
addr_t base
handle_t std_in
handle_t std_out
wchar_t cwd [256]
 Current working directory.

wchar_t cmdline [256]
module_info_tmodule_first
module_info_tmodule_last
void(* thread_entry )(void)
 Pointer to the function called as the entry point of new threads.


Detailed Description

User-mode process information structure.

Each process has one of these, accessible using ProcGetProcessInfo() or the process field of the thread_info_t structure. This structure is also used when creating a new process.


Member Data Documentation

addr_t process_info_t::base
 

Address of the process's executable image

wchar_t process_info_t::cmdline[256]
 

Command line given when the process was started

wchar_t process_info_t::cwd[256]
 

Current working directory.

Change the current directory using FsChangeDir.

unsigned process_info_t::id
 

Unique process identifier

module_info_t* process_info_t::module_first
 

Pointer to the first module loaded

module_info_t* process_info_t::module_last
 

Pointer to the last module loaded

handle_t process_info_t::std_in
 

Handle to the process's standard input file

handle_t process_info_t::std_out
 

Handle to the process's standard output file

void(* process_info_t::thread_entry)(void)
 

Pointer to the function called as the entry point of new threads.

Note:
libsys sets the thread entry to an internal thread startup routine. It should not be necessary to change this. DLLs receive notification of thread creation and exit through their DllMain routines.


The documentation for this struct was generated from the following file:
Post a comment

From: