| |
| BOOL GetAccountId( |
| |
LPCTSTR lpszAccountId, |
|
| |
INT nMaxLength |
|
| ); |
| BOOL GetAccountId( |
| |
CString& strAccountId |
|
| ); |
The GetAccountId method returns the web services account ID
associated with the current session.
Parameters
- lpszAccountId
- A null-terminated string that will contain the
account ID when the method returns. This parameter cannot be NULL
and must be at least 35 characters in length. An alternate form of
the method accepts a CString
variable which will contain the account ID.
- nMaxLength
- An integer value that specifies the maximum number of characters
that can be copied into the lpszAccountId string parameter,
including the terminating null character.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, the return value is zero. To get extended error information,
call the GetLastError method.
Remarks
The account ID is a string that uniquely identifies the web
services account that is associated with the session. The account ID
corresponds with your product serial number and runtime license key,
but it is not identical to either of those values.
|
If you are using an evaluation license, the account ID is temporary and
only valid during the evaluation period. After the evaluation period
has expired, the account ID is revoked and objects stored using this
ID will be deleted. It is not recommended that you store critical
application data using an evaluation license.
|
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cswebv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|
|