Table 2-16
CRemoteDataEx properties and return values
Description
Return value
Property
Returns the name of the currently active
private key container.
String
String = <CRemoteData>.PrivateKey
Returns the common name of the active
private key container.
String
String = <CRemoteData>.CertificateName
Returns one of the following encryption
settings:
■
-1: None
■
0: pcAnywhere
■
1: Symmetric
■
2: Public key
Byte
Byte = <CRemoteData>.EncryptionLevel
Returns the value of the deny lower encryption
setting.
Bool
Bool = <CRemoteData>.DenyLowerEncrypt
Returns the domain name setting for
automatic logins. This option is used with NT
authentication and Windows authentication.
String
String = <CRemoteData>.AutoDomain
Visual Basic sample code for remote functionality
The following Visual Basic sample code retrieves a remote data object and modifies
its properties:
Private Sub Command1_Click()
Dim RemoteDataManager as Object
Dim RemoteData as Object
Dim s as string
'Create CRemoteDataManager object
Set RemoteDataManager = CreateObject(WINAWSVR.REMOTEDATAMANAGER)
'display and change current directory
s = RemoteDataManager.CurrentDirectory()
MsgBox ( s )
RemoteDataManager.ChangeDirectory ("C:\dev\bin.w32\data")
s = RemoteDataManager.CurrentDirectory()
MsgBox ( s )
Visual Basic object definitions
CRemoteDataEx object
32