|
BOOL WINAPI WebGetAccountId( |
|
LPCTSTR lpszAccountId, |
|
|
INT nMaxLength |
|
); |
The WebGetAccountId function returns the web services account ID
associated with the current session.
Parameters
- lpszAccountId
- A pointer to a null-terminated string that will contain the
account ID when the function returns. This parameter cannot be NULL
and must be at least 35 characters in length.
- 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 function succeeds, the return value is a non-zero. If the
function fails, the return value is zero. To get extended error information,
call WebGetLastError.
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: cstools10.h
Import Library: cswebv10.lib
Unicode: Implemented as Unicode and ANSI versions.
See Also
WebGetStorageId
|
|