IAzAuthorizationStore2::CreateApplication2 method

The CreateApplication2 method creates an IAzApplication2 object by using the specified name.

Syntax


HRESULT CreateApplication2(
  [in]            BSTR bstrApplicationName,
  [in, optional]  VARIANT varReserved,
  [out]           IAzApplication2 **ppApplication
);

Parameters

bstrApplicationName [in]

The name for the new IAzApplication2 object.

varReserved [in, optional]

Reserved for future use.

ppApplication [out]

A pointer to a pointer to the created IAzApplication2 object.

Return value

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

You must call the IAzApplication::Submit method to persist any changes made by the returned object.

The returned IAzApplication2 object is an immediate child object of the IAzAuthorizationStore2 object.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]

Header

Azroles.h

Library

Azroles.lib

DLL

Azroles.dll

IID

IID_IAzAuthorizationStore2 is defined as B11E5584-D577-4273-B6C5-0973E0F8E80D

 

 

Community Additions

ADD
Show:
© 2015 Microsoft