GetPluginGUID

Description

GetPluginGUID returns a valid and unique "Globally Unique IDentifier" (GUID).

Each plugin must have a different GUID.

Note: In Microsoft Visual Studio, you can use "Tools / Create GUID" to create a valid and unique GUID.

Syntax

int GetPluginGUID(wchar_t*& owszGUID);

Parameters

Output

owszGUID: the valid and unique GUID.

Return

(int): returns the identification number of the error if an error occurs or 0 if no error occurs.

Example

To get a full example of the API use, download the .Plugin

#define OPT_PLUGIN_NO_ERROR 0
int GetPluginGUID(wchar_t*& owszGUID)
{
     owszGUID = L"{EA9CC8A1-DD98-4AFE-8739-8448EFB51C24}";
     return OPT_PLUGIN_NO_ERROR;
}