Ets_State_Pointer_Register()
Note: Requires OPNET Development Kit
Abstract
Associates a state pointer with a given name.
Syntax
Ets_State_Pointer_Register (state_id_str, state_ptr)
| Argument | Type | Description |
|---|---|---|
state_id_str |
const char * |
Name string. |
state_ptr |
void * |
State pointer. |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if valid state_id string, EtsC_Compcode_Failure otherwise.
Header
ets_api_state.h
Details
This function associates a name with a state pointer for later retrieval using Ets_State_Pointer_Get(). It can be useful to preserve references to memory blocks when unloading DLLs.