Share via


IVMSecurity::FindEntry method

The FindEntry method finds an existing access control entry.

Syntax

HRESULT FindEntry(
  [in]  BSTR               nameOrSid,
  [in]  VMAccessRightsType type,
  [out] IVMAccessRights    **foundEntry
);

Parameters

nameOrSid [in]

The account name or SID.

type [in]

The type of access control entry.

foundEntry [out]

The access control entry.

Return value

This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.

Return code Description
S_OK
The operation was successful.
S_FALSE
No entry with the specified name and type was found.
E_POINTER
The parameter nameOrSid or foundEntry was null.
E_INVALIDARG
An invalid value was specified for parameter type.
DISP_E_EXCEPTION
An unknown error has occurred. Other HRESULT error values may be returned as well.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMAccessRights

IVMSecurity

VMAccessRightsType