IGenID::GenBase5GUIDString

Ee784771.c++_off(en-US,CS.10).gifEe784771.vb_on(en-US,CS.10).gif

Use this method to generate a base5 Globally Unique Identifier (GUID) string.

Definition

HRESULT IGenID::GenBase5GUIDString(BSTR*pbstrBase5GuidString);

Parameters

pbstrBase5GuidString

[out, retval] A pointer to a BSTR used to return the base5 GUID string.

Return Values

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

A base5 GUID is used to store a slightly more compact version of the traditional GUID. The 128 binary digits are divided into groups of 5 instead of 4 with each group represented by the characters 0-9, and 22 characters of the alphabet. This results in a 26-digit representation for the GUID rather than the customary 32-digit representation.

The pbstrBase5GuidString parameter contains valid data only if the method completes successfully.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

GenID Object


All rights reserved.