UalRegisterProduct function

Registers a product with User Access Logging (UAL).

Syntax


HRESULT WINAPI UalRegisterProduct(
  _In_ WCHAR *wszProductName,
  _In_ WCHAR *wszRoleName,
  _In_ WCHAR *wszRoleGuid
);

Parameters

wszProductName [in]

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

wszRoleName [in]

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

wszRoleGuid [in]

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.

Examples

For an example of how to use this function, see How to report user access to server roles.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Ual.h

Library

Ualapi.lib

DLL

Ualapi.dll

 

 

Show: