9Contents
Chapter 3 Visual C++ object definitions
About Visual C++ objects .................................................................................... 69
CRemoteDataManager methods ........................................................................ 71
BSTR CurrentDirectory(); ...........................................................................71
BOOL ChangeDirectory(LPCTSTR lpszNewDirectory); ......................... 71
BOOL FindFirst(LPCTSTR lpszPattern, BSTR FAR*
pbstrFullQualName); ........................................................................... 72
BOOL FindNext(BSTR FAR* pbstrFullQualName); ................................. 72
LPDISPATCH RetrieveObject(LPCTSTR lpszFQName, short
wAccessMode, LPCTSTR lpszPassword); ......................................... 73
LPDISPATCH RetrieveObjectEx(LPCTSTR lpszFQName, short
wAccessMode, LPCTSTR lpszPassword); ......................................... 73
LPDISPATCH CreateObject(LPCTSTR lpszFQName); ............................74
LPDISPATCH CreateObjectEx(LPCTSTR lpszFQName); ........................75
BOOL DeleteObject(LPCTSTR lpszFQName, LPCTSTR
lpszPassword); ...................................................................................... 76
BOOL Launch(LPCTSTR lpszFQName); ....................................................76
CRemoteData object ............................................................................................ 77
Get and Set methods ................................................................................... 77
Remote object Detail methods ................................................................... 79
Remote object methods ...............................................................................82
CRemoteDataEx object ........................................................................................85
Visual C++ sample code for remote functionality ..................................85
CHostDataManager methods .............................................................................86
BSTR CurrentDirectory(); ...........................................................................86
BOOL ChangeDirectory(LPCTSTR lpszNewDirectory); ......................... 86
BOOL FindFirst(LPCTSTR lpszPattern, BSTR FAR*
pbstrFullQualName); ........................................................................... 87
BOOL FindNext(BSTR FAR* pbstrFullQualName); ................................. 87
LPDISPATCH RetrieveObject(LPCTSTR lpszFQName, short
wAccessMode, LPCTSTR lpszPassword); ......................................... 88
LPDISPATCH RetrieveObjectEx(LPCTSTR lpszFQName, short
wAccessMode, LPCTSTR lpszPassword); ......................................... 89
LPDISPATCH CreateObject(LPCTSTR lpszName); .................................90
LPDISPATCH CreateObjectEx(LPCTSTR lpszName); ............................. 90
BOOL DeleteObject(LPCTSTR lpszFQName, LPCTSTR
lpszPassword); ...................................................................................... 91
BOOL Launch(LPCTSTR lpszFQName); ....................................................91
CHostData object .................................................................................................92
Get and Set methods ................................................................................... 92
Host object Detail methods ........................................................................93
Host object methods ....................................................................................97