summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Runtime/InteropServices/ObjectCreationDelegate.cs
blob: a01061e74afef01b2fd2f758cdb0bec585044914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

/*=============================================================================
**
** Delegate: ObjectCreationDelegate
**
**
** Purpose: Delegate called to create a classic COM object as an alternative to
**          CoCreateInstance.
**
**
=============================================================================*/

namespace System.Runtime.InteropServices {

    // Delegate called when a managed object wishes to instantiate its unmanaged
    // portion. The IUnknown of the managed object (the aggregator) is passed as a
    // parameter and the delegate should return the IUnknown of the unmanaged object
    // (the aggregatee). Both are passed as int's to avoid any marshalling.
[System.Runtime.InteropServices.ComVisible(true)]
    public delegate IntPtr ObjectCreationDelegate(IntPtr aggregator);
}