# IRdNtPrivileges Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetGroups ([in] ReNtPrivilegesOperation eOperation,[out, retval] BSTR *pbstrGroups)
HRESULT | SetGroups ([in] ReNtPrivilegesOperation eOperation,[in] BSTR bstrGroups)

## Detailed Description

RdNtPrivileges data object stores privileges assigned to particular object in Shared Space.
Privileges attribute stores this data object if privileges are assigned.

## Member Function Documentation

HRESULT IRdNtPrivileges::GetGroups | ( | [in] ReNtPrivilegesOperation | eOperation,
|  | [out, retval] BSTR * | pbstrGroups |
| ) |  |  |

Read also group privileges.

Parameters:

  | eOperation | [in] Desired group you want to read. See RdNtPrivileges::ReNtPrivilegesOperation for possible values.

Returns:
  pbstrGroups [out, retval] Returns group's privileges.

        var privData = System.CreateDO('Network Package/Privileges Data');
        var privGrps = privData.GetGroups(0);

HRESULT IRdNtPrivileges::SetGroups | ( | [in] ReNtPrivilegesOperation | eOperation,
|  | [in] BSTR | bstrGroups |
| ) |  |  |

Write group privileges.

Parameters:

  | eOperation | [in] Desired group you want to update. See RdNtPrivileges::ReNtPrivilegesOperation for possible values.

Returns:
  pbstrGroups [out, retval] New privileges for the group.

     privData.SetGroups(0) = privGrps;