CHttpServer::SetUuid Method  
 
BOOL SetUuid(
  LPCTSTR lpszHostUuid  
);

Assign a UUID to the current instance of the server.

Parameters

lpszHostUuid
A null-terminated string that specifies the server UUID, terminated with a null character. This value can be used when storing information about the server, and should be generated using a utility such as uuidgen which is included with Visual Studio. This parameter may be NULL or point to an empty string, in which case a temporary UUID will be randomly generated for the server.

Return Value

If the method succeeds, the return value is non-zero, otherwise the method return a value of zero.

Remarks

The SetUuid method assigns a Universally Unique Identifier (UUID) to the server. The UUID may either be generated by the application and assigned as part of the server configuration, or an ephemeral UUID may be automatically generated when the server is started. This method cannot be used to change the UUID after the server has been started. To determine the UUID assigned to an active server instance, use the GetUuid method.

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: cshtsv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also