HandleDestroy¶
Closes a handle and, for a space, tears the space down.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x08 SVC_MANAGEHANDLE |
MNGHNDL_DESTROY (4) |
no | 2.0 |
Err HandleDestroy(Handle h);
Registers: (h) -> r0 status
Destroying a space kills all its tasks and releases everything it holds. For any other object this is the same as HandleClose().
Parameters¶
| Name | Direction | Description |
|---|---|---|
h |
in | Handle to destroy. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_BADHANDLE |
h is not a live handle. |
ERR_BADARG |
h names the caller's own space or one of its ancestors. |