UalRegisterProduct function (ual.h)

Registers a product with User Access Logging (UAL).

Syntax

HRESULT UalRegisterProduct(
  const WCHAR *wszProductName,
  const WCHAR *wszRoleName,
  const WCHAR *wszGuid
);

Parameters

wszProductName

The name of the major product to register with UAL. For example, "Windows Server".

wszRoleName

The name of the role or minor product within the major product to be registered with UAL. For example, "DHCP".

wszGuid

The GUID associated with the role specified by the wszRoleName parameter.

Return value

If the function succeeds, it returns S_OK. If it fails, it returns an error code.

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header ual.h
Library Ualapi.lib
DLL Ualapi.dll