| BOOL WINAPI WebValidateAppId( |
| |
LPCTSTR lpszAppId |
|
| ); |
The WebValidateAppId function validates the specified
application identifier.
Parameters
- lpszAppId
- A pointer to a null terminated string which specifies the
application ID to be validated. This parameter cannot be NULL or point
to a zero-length string. If the application ID contains illegal
characters, the function will fail.
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 WebValidateAppId function is used to determine
if the specified application identifier is valid and has been previously
registered using the WebRegisterAppId function. The
ID must only consist of ASCII letters, numbers, the period and
underscore character. Whitespace characters and non-ASCII Unicode characters
are not permitted. The maximum length of an application ID string is 64
characters, including the terminating null character.
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
WebRegisterAppId,
WebUnregisterAppId
|