Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAccessControl::SetOwner method

Sets the owner or the group of an item.

Syntax


HRESULT SetOwner(
  [in] PTRUSTEEW pOwner,
  [in] PTRUSTEEW pGroup
);

Parameters

pOwner [in]

The address of the TRUSTEE structure for the owner.

pGroup [in]

The address of the TRUSTEE structure for the group.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The SetOwner method is not implemented by CLSID_DCOMAccessControl.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

IAccess.h

IDL

IAccess.idl

IID

IID_IAccessControl is defined as EEDD23E0-8410-11CE-A1C3-08002B2B8D8F

See also

IAccessControl

 

 

Show:
© 2017 Microsoft