Export (0) Print
Expand All

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft