Handle Property

The handle of the connection. 0 if invalid or not connected.

Syntax

ANSI (Cross Platform)
int GetHandle();
int SetHandle(int iHandle); Unicode (Windows) INT GetHandle();
INT SetHandle(INT iHandle);
@property (nonatomic,readwrite,assign,getter=handle,setter=setHandle:) int handle;
- (int)handle;
- (void)setHandle:(int)newHandle;
#define PID_NETDIAL_HANDLE 9

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_NetDial_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_NetDial_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property is used when trying to disconnect a connection through the Disconnect method. The ConnectedEntry event provides the handle of each connection. Assigning an invalid value to this property and attempting to disconnect may cause the application to behave in an unpredictable manner.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]