103
Visual C++ object definitions
CHostDataEx object
void SetEnableEndSessSecurity(BOOL bNewValue);
short GetEndSessSecurity();
void SetEndSessSecurity(short nNewValue);
BSTR GetCryptPrivateKey();
void SetCryptPrivateKey(LPCTSTR lpszNewValue);
BSTR GetCryptCommonName();
void SetCryptCommonName(LPCTSTR lpszNewValue);
BOOL GetBlankHost();
void SetBlankHost(BOOL bNewValue);
BOOL GetAllowRemoteMouse();
void SetAllowRemoteMouse(BOOL bNewValue);
short GetRebootOnDisconnect();
void SetRebootOnDisconnect(short nNewValue);
BOOL GetPasswordAfterDisc();
void SetPasswordAfterDisc(BOOL bNewValue);
BOOL GetLogFailures();
void SetLogFailures(BOOL bNewValue);
BOOL GetAllowDriveSecurity();
void SetAllowDriveSecurity(BOOL bNewValue);
BOOL GetExecuteProtection();
void SetExecuteProtection(BOOL bNewValue);
Visual C++ sample code for host functionality
The following sample Visual C++ function creates a host object, sets its
connection type to TCP/IP, sets the computer name to the TCP/IP address that is
passed into the function, and then launches the host object:
BOOL LaunchTCPHost(LPCTSTR lpszAddress)
{
BOOL bReturn = FALSE;
CHostDataManager hostDM;
CHostData hostData;
// First, create the CHostDataManager
hostDM.CreateDispatch( _T( "WINAWSVR.BeHostDataManager") );
// Next, create CRemoteData and attach it
hostData.AttachDispatch(hostDM.CreateObject("Test", 0) );
Summary of Contents for PCANYWHERE - OLE AUTOMATION GUIDE V12.1
Page 1: ...Symantec pcAnywhere OLE Automation Guide ...
Page 6: ......
Page 18: ...18 Using OLE Automation with Symantec pcAnywhere Where to find more information ...
Page 68: ...68 Visual Basic object definitions Awrem32 functions ...
Page 108: ...108 Visual C object definitions Awrem32 functions ...
Page 112: ...112 Index ...