#include <nwclxcon.h>
N_EXTERN_LIBRARY NWRCODE NWCCGetConnRefInfo (nuint32 connRef, nuint infoType, nuint len, nptr buffer);
NWCCGetConnRefInfo returns connection information from the NWCConnInfo structure associated with the given connection. NWCCGetConnRefInfo can either be set to return one field of the structure or the entire structure itself.
buffer must point to a buffer of the type of information being requested. (The return type is noted below for cache information.)
infoType must be set to indicate the type of data desired with the following values:
HEX | Value | Minimum Buffer Size/Description |
---|---|---|
0x0001 | NWCC_INFO_AUTHENT_STATE | nuint; returns Authentication state |
0x0002 | NWCC_INFO_BCAST_STATE | nuint; returns Broadcast state |
0x0003 | NWCC_INFO_CONN_REF | nuint32; returns connection reference |
0x0004 | NWCC_INFO_TREE_NAME | nstr * length of NWA_MAX_TREE_NAME_LEN; returns tree name |
0x0005 | NWCC_INFO_CONN_NUMBER | nuint; returns connection number |
0x0006 | NWCC_INFO_USER_ID | nuint32 |
0x0007 | NWCC_INFO_SERVER_NAME | nstr * length of NWA_MAX_SERVER_NAME_LEN |
0x0008 | NWCC_INFO_NDS_STATE | nuint |
0x0009 | NWCC_INFO_MAX_PACKET_SIZE | nuint |
0x0010 | NWCC_INFO_LICENSE_STATE | nuint |
0x0011 | NWCC_INFO_DISTANCE | nuint |
0x0012 | NWCC_INFO_SERVER_VERSION | sizeof NWCCVersion |
HEX Value Minimum Buffer Size/Description 0x0001 NWCC_INFO_AUTHENT_STATE nuint; returns Authentication state 0x0002 NWCC_INFO_BCAST_STATE nuint; returns Broadcast state 0x0003 NWCC_INFO_CONN_REF nuint32; returns connection reference 0x0004 NWCC_INFO_TREE_NAME nstr * length of NWA_MAX_TREE_NAME_LEN; returns tree name 0x0005 NWCC_INFO_CONN_NUMBER nuint; returns connection number 0x0006 NWCC_INFO_USER_ID nuint32 0x0007 NWCC_INFO_SERVER_NAME nstr * length of NWA_MAX_SERVER_NAME_LEN 0x0008 NWCC_INFO_NDS_STATE nuint 0x0009 NWCC_INFO_MAX_PACKET_SIZE nuint 0x0010 NWCC_INFO_LICENSE_STATE nuint 0x0011 NWCC_INFO_DISTANCE nuint 0x0012 NWCC_INFO_SERVER_VERSION sizeof NWCCVersion
NWCC_INFO_AUTHENT_STATE can return one of the following:
NWCC_BCASTSTATE can return one of the following:
NWCC_INFO_NDS_STATE can return one of the following:
NWCC_INFO_LICENSE_STATE can return one of the following:
Connection