IAccessControl::SetOwner

Sets the owner or the group of an item.

HRESULT SetOwner(
  PTRUSTEEW  pOwner, //Address of item owner's TRUSTEEW structure
  PTRUSTEEW  pGroup  //Address of the item group's TRUSTEEW structure
);
 

Parameters

pOwner
[in] Address of PTRUSTEEW variable that contains a pointer to the owner's TRUSTEEW structure for the item.
pGroup
[in] Address of PTRUSTEEW variable that contains a pointer to the group's TRUSTEEW structure for the item.

Remarks

The IAccessControl::SetOwner method is not implemented by CLSID_DCOMAccessControl.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Available as a Windows 95 redistributable.
  Windows CE: Unsupported.
  Header: Declared in oleext.h.