| BOOL UnregisterAppId( |
| |
LPCTSTR lpszAppId |
|
| ); |
The UnregisterAppId method unregisters the application
identifier and deletes all associated
storage objects.
Parameters
- lpszAppId
- A null-terminated string which specifies the
application ID to be deleted. This parameter cannot be NULL or point
to a zero-length string. If the application ID contains illegal
characters, the method will fail.
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 UnregisterAppId method deletes the
internal storage identifier associated with the application ID and
revokes all access tokens that were granted for the application. This
operation is immediate and permanent.
|
Exercise caution when using this method. This will permanently
delete all objects that were stored for the specified application.
Calling UnregisterAppId and then RegisterAppId
again using the same ID will force the system to create new access tokens for your
application. You will not be able to regain access to the objects that
were previously stored using that ID.
|
This method cannot be used to unregister the default storage
application ID SocketTools.Storage.Default. If this ID is specified,
the method will fail with an error indicating that the ID is
invalid.
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
|