12.0

Table Of Contents
82 Visual C++ object definitions
CRemoteData object
Remote object methods
The following are the normal methods of the remote object (they are not used to
get and set properties):
short ConnectionTypes();
BSTR FirstConnectionType(); and BSTR NextConnectionType();
BOOL FindConnectionType(LPCTSTR lpszConnectionType);
short CountryCodes();
BSTR FirstCountryCode(); and BSTR NextCountryCode();
BOOL ReadObject(LPCTSTR lpszPassword);
BOOL WriteObject(LPCTSTR lpszPassword);
short ConnectionTypes();
Returns the number of connection types available.
Table 3-20 defines the return value.
BSTR FirstConnectionType(); and BSTR
NextConnectionType();
FirstConnectionType() and NextConnectionType() are used to iterate through
the available connection types. These functions return a BSTR, which is the
name of an available connection type. You can use these returned connection
types with the SetConnectionType() function.
Table 3-21 defines the return value.
Table 3-20 short ConnectionTypes(); return value
Return value Description
Short The number of connection types available on this
computer
Table 3-21 BSTR FirstConnectionType(); and BSTR NextConnectionType();
return value
Return value Description
BSTR The name of a supported connection device type