op_pro_equal()
Abstract
Compares two process handles to determine if they are equal.
Syntax
op_pro_equal (h1, h2)
| Argument | Type | Description |
|---|---|---|
h1 |
Prohandle |
First process handle. |
h2 |
Prohandle |
Second process handle. |
Return Type
Boolean
OPC_TRUE if the two process handles are equal; OPC_FALSE otherwise.
Example
/* Determine if the current process is a root */
is_root = op_pro_equal ( op_pro_self(), op_pro_root(objid));
Details
None.
Purpose
Provides a way to compare two process handles and determine if they are equal. To be equal, they must be valid and have matching fields.
Errors
- Program Abort: KP requires process context.
- Program Abort: Segmentation violation. (due to a malformed process handle)
Reference
- None.