INtime SDK Help
ntxGetType(INtimeDotNet)
INtime SDK v7.1 > About INtime > Alternate APIs > INtimeDotNet > ntxGetType(INtimeDotNet)

Returns the type of an NTX handle.

Visual Basic:

Function ntxGetType(
  ByVal hObject As Integer)
As Short

Visual C#:

Int16 ntxGetType (
  Int32 hObject );

Parameters

hObject
Handle to the object in question.

Return Values

One of the object types:

Value Handle Type
NTX_TYPE_RT_PROCESS Process
NTX_TYPE_RT_THREAD Thread
NTX_TYPE_MAILBOX Mailbox
NTX_TYPE_RT_SEMAPHORE Semaphore
NTX_TYPE_RT_SHARED_MEMORY Shared Memory Segment
NTX_TYPE_REGION Single-unit Semaphore with special suspension, deletion, and priority-adjustment features
NTX_TYPE_EXTENSION User defined object
NTX_TYPE_PORT Port Object
NTX_TYPE_POOL The contiguous chunk of physical memory available to the process
NTX_TYPE_HEAP Memory Segment for dynamic allocation. Taken from the pool
NTX_TYPE_SERVICE Service Object

INtimeException Status

E_EXIST
The object parameter is not a handle for an existing object.
E_NTX_INTERNAL_ERROR
The DLL could not contact the RT kernel to complete the request.

Requirements

Versions Reference
INtime 3.0 INtimeDotNet

See Also

INtimeDotNet system calls, Object directory system calls