UalRegisterProduct function (ual.h)

Registers a product with User Access Logging (UAL).


HRESULT UalRegisterProduct(
  [in] const WCHAR *wszProductName,
  [in] const WCHAR *wszRoleName,
  [in] const WCHAR *wszGuid


[in] wszProductName

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

[in] wszRoleName

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

[in] 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.


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