Jump to content

PIB: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== PIB ==
== PIB ==
Process Information Block.  
Process Information Block.  


=== Type ===  
=== Type ===  
 
  [[ULONG]]  pib_ulpid
  [[OS2 API:DataType:ULONG|ULONG]]  pib_ulpid
  ULONG  pib_ulppid
  [[OS2 API:DataType:ULONG|ULONG]] pib_ulppid
  ULONG  pib_hmte
  [[OS2 API:DataType:ULONG|ULONG]] pib_hmte
  [[CHAR|PCHAR]]  pib_pchcmd
  [[OS2 API:DataType:CHAR|PCHAR]]  pib_pchcmd
  PCHAR  pib_pchenv
  [[OS2 API:DataType:CHAR|PCHAR]] pib_pchenv
  ULONG  pib_flstatus
  [[OS2 API:DataType:ULONG|ULONG]] pib_flstatus
  ULONG  pib_ultype
  [[OS2 API:DataType:ULONG|ULONG]] pib_ultype


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== Fields ===
=== Fields ===
 
;pib_ulpid:Process identifier.
pib_ulpid     Process identifier.
;pib_ulppid:Parent process identifier.  
 
;pib_hmte:Module handle of executable program.  
pib_ulppid   Parent process identifier.  
;pib_pchcmd:Command line pointer.
 
:This is the address of the ASCIIZ argument strings passed to the program. This string represents command parameters.
pib_hmte     Module handle of executable program.  
:The convention used by CMD.EXE is that the first of these strings is the program name (as entered from the command prompt or found in a batch file), and the second string consists of the parameters for the program. The second ASCIIZ string is followed by an additional byte of zeros. A value of zero for the address of pib_pchcmd means that no arguments are to be passed to the program.  
 
;pib_pchenv:Environment pointer.
pib_pchcmd   Command line pointer.
:These strings represent environment variables and their current values. An environment string has the following form:
              This is the address of the ASCIIZ argument strings passed to the
::variable=value
              program. This string represents command parameters.
::The last ASCIIZ environment string must be followed by an additional byte of zeros.
              The convention used by CMD.EXE is that the first of these strings
;pib_flstatus:Process' status bits.
              is the program name (as entered from the command prompt or found
:A value of 1 in this bit flag indicates that the current process is in exit list processing.
              in a batch file), and the second string consists of the
;pib_ultype:Process' type code.
              parameters for the program. The second ASCIIZ string is followed
:The following process' type codes are available:
              by an additional byte of zeros. A value of zero for the address
::0  Full screen protect-mode session  
              of pib_pchcmd means that no arguments are to be passed to the
::1  Requires real mode. Dos emulation.  
              program.  
::2  VIO windowable protect-mode session  
 
::3  Presentation Manager protect-mode session
pib_pchenv   Environment pointer.
::4  Detached protect-mode process.
              These strings represent environment variables and their current
              values. An environment string has the following form:
              variable=value
              The last ASCIIZ environment string must be followed by an
              additional byte of zeros.
 
pib_flstatus Process' status bits.
              A value of 1 in this bit flag indicates that the current process
              is in exit list processing.
 
pib_ultype   Process' type code.
              The following process' type codes are available:
              0  Full screen protect-mode session  
              1  Requires real mode. Dos emulation.  
              2  VIO windowable protect-mode session  
              3  Presentation Manager protect-mode session
              4  Detached protect-mode process.


=== Comment ===
=== Comment ===
An application that has been loaded into memory and prepared for execution is called a process. A process is the code, data, and other resources of an application, such as file handles, semaphores, pipes, queues, and so on. The operating system considers every application it loads to be a process.


An application that has been loaded into memory and prepared for execution
Information about a process is kept in a read/write area of the process address space, called the Process Information Block.
is called a process. A process is the code, data, and other resources of an
application, such as file handles, semaphores, pipes, queues, and so on. The
operating system considers every application it loads to be a process.
 
Information about a process is kept in a read/write area of the process address
space, called the Process Information Block.
 
 
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Revision as of 13:49, 31 October 2016

PIB

Process Information Block.

Type

ULONG  pib_ulpid
ULONG  pib_ulppid
ULONG  pib_hmte
PCHAR  pib_pchcmd
PCHAR  pib_pchenv
ULONG  pib_flstatus
ULONG  pib_ultype

C Declaration Method

typedef struct

Fields

pib_ulpid
Process identifier.
pib_ulppid
Parent process identifier.
pib_hmte
Module handle of executable program.
pib_pchcmd
Command line pointer.
This is the address of the ASCIIZ argument strings passed to the program. This string represents command parameters.
The convention used by CMD.EXE is that the first of these strings is the program name (as entered from the command prompt or found in a batch file), and the second string consists of the parameters for the program. The second ASCIIZ string is followed by an additional byte of zeros. A value of zero for the address of pib_pchcmd means that no arguments are to be passed to the program.
pib_pchenv
Environment pointer.
These strings represent environment variables and their current values. An environment string has the following form:
variable=value
The last ASCIIZ environment string must be followed by an additional byte of zeros.
pib_flstatus
Process' status bits.
A value of 1 in this bit flag indicates that the current process is in exit list processing.
pib_ultype
Process' type code.
The following process' type codes are available:
0 Full screen protect-mode session
1 Requires real mode. Dos emulation.
2 VIO windowable protect-mode session
3 Presentation Manager protect-mode session
4 Detached protect-mode process.

Comment

An application that has been loaded into memory and prepared for execution is called a process. A process is the code, data, and other resources of an application, such as file handles, semaphores, pipes, queues, and so on. The operating system considers every application it loads to be a process.

Information about a process is kept in a read/write area of the process address space, called the Process Information Block.