| BOOL GetStorageId( |
| |
LPCTSTR lpszStorageId, |
|
| |
INT nMaxLength |
|
| ); |
| BOOL GetStorageId( |
| |
CString & strStorageId |
|
| ); |
The GetStorageId method returns the current storage container ID.
Parameters
- lpszStorageId
- A null-terminated string that will contain the
storage ID when the method returns. This parameter cannot be NULL
and must be at least 35 characters in length. An alternate version
of this method accepts a CString parameter if the
application is compiled with support for MFC or ATL.
- nMaxLength
- An integer value that specifies the maximum number of characters
that can be copied into the lpszStorageId 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 storage ID is a string that identifies the storage container
that was opened with the OpenStorage method. The
storage ID is associated with your account ID and development license
and is guaranteed to be a unique value.
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
|