Line 1,249: |
Line 1,249: |
| | u32 | | | u32 |
| | MemoryState | | | MemoryState |
| + | |} |
| + | |
| + | == typedef Handle == |
| + | |
| + | User-visible references to internal objects are represented by 32-bit integers called handles. Handles are only valid in the process they have been created in; hence, they cannot be exchanged between processes directly (the [[IPC]] functions provide a mean to copy handles to other processes, though). |
| + | |
| + | There are a number of special-purpose handles, which provide easy access to information on objects in the current process: |
| + | {| class="wikitable" border="1" |
| + | ! Handle |
| + | ! Description |
| + | |- |
| + | | 0xFFFF8000 |
| + | | Handle to the active thread |
| + | |- |
| + | | 0xFFFF8001 |
| + | | Handle to the active process |
| |} | | |} |
| | | |