INtime SDK Help
ntxGetRtPortAttributes
INtime SDK v6 > About INtime > INtime Kernel > Ports > ntxGetRtPortAttributes

Returns a structure that provides information about the port object indicated by the supplied handle.

NTXSTATUS ntxGetRtPortAttributes(
    NTXHANDLE hPort,
    LPPORTINFO pInfo
);

Parameters

hPort
The port for which attributes are requested.
pInfo
The user-allocated PORTINFO structure which is filled in with the port's attributes.

Return Values

E_OK
Success.
The appropriate status code.
Failure. To determine the status, call ntxGetLastRtError.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_EXIST 0x0006
The port is already being deleted
E_TYPE 0x8002
The handle supplied is not for a port object.
E_NUC_BAD_BUF 0x80E2
An invalid pointer was supplied.
E_LOCATION
The RT client on which the port was created is now invalid.
E_NTX_INTERNAL_ERROR
The DLL could not contact the RT kernel to complete the request.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/nt/include/ntx.h ntx.h ntx.lib
INtime 4.01 (for 64-bit Windows) intime/nt/include/ntx.h ntx.h ntx64.lib

See Also

Port system calls, PORTINFO