25 references to Lifetime
System.Private.Windows.Core (10)
Windows\Win32\System\Com\IUnknown.CCW.cs (4)
41
(IUnknown*)
Lifetime
<Vtbl, Interface>.Allocate(@object, s_vtable);
61
Lifetime
<Vtbl, Interface>.AddRef(@this);
66
private static unsafe uint AddRef(IUnknown* @this) =>
Lifetime
<Vtbl, Interface>.AddRef(@this);
69
private static unsafe uint Release(IUnknown* @this) =>
Lifetime
<Vtbl, Interface>.Release(@this);
Windows\Win32\System\Com\Lifetime.cs (6)
22
Interlocked.Increment(ref ((
Lifetime
<TVTable, TObject>*)@this)->_refCount);
26
var lifetime = (
Lifetime
<TVTable, TObject>*)@this;
52
public static unsafe
Lifetime
<TVTable, TObject>* Allocate(TObject @object, TVTable* vtable)
54
var wrapper = (
Lifetime
<TVTable, TObject>*)Marshal.AllocCoTaskMem(sizeof(
Lifetime
<TVTable, TObject>));
74
var lifetime = (
Lifetime
<TVTable, TObject>*)@this;
System.Private.Windows.Core.Tests (15)
System\Private\Windows\Ole\DataObjectProxy.cs (15)
10
using Lifetime = Windows.Win32.System.Com.
Lifetime
<Windows.Win32.System.Com.IDataObject.Vtbl, System.Private.Windows.Ole.DataObjectProxy>;
103
(IDataObject*)
Lifetime
.Allocate(@object, s_vtable);
116
Lifetime
.AddRef(@this);
121
DataObjectProxy? proxy =
Lifetime
.GetObject(@this);
133
private static uint AddRef(IDataObject* @this) =>
Lifetime
.AddRef(@this);
136
private static uint Release(IDataObject* @this) =>
Lifetime
.Release(@this);
140
Lifetime
.GetObject(@this)?.GetData(pFormatetc, pMedium) ?? HRESULT.COR_E_OBJECTDISPOSED;
144
Lifetime
.GetObject(@this)?.GetDataHere(pFormatetc, pMedium) ?? HRESULT.COR_E_OBJECTDISPOSED;
148
Lifetime
.GetObject(@this)?.QueryGetData(pFormatetc) ?? HRESULT.COR_E_OBJECTDISPOSED;
152
Lifetime
.GetObject(@this)?.GetCanonicalFormatEtc(pFormatetcIn, pFormatetcOut) ?? HRESULT.COR_E_OBJECTDISPOSED;
156
Lifetime
.GetObject(@this)?.SetData(pFormatetc, pMedium, fRelease) ?? HRESULT.COR_E_OBJECTDISPOSED;
160
Lifetime
.GetObject(@this)?.EnumFormatEtc(dwDirection, ppEnumFormatEtc) ?? HRESULT.COR_E_OBJECTDISPOSED;
164
Lifetime
.GetObject(@this)?.DAdvise(pFormatetc, advf, pAdvSink, pdwConnection) ?? HRESULT.COR_E_OBJECTDISPOSED;
168
Lifetime
.GetObject(@this)?.DUnadvise(dwConnection) ?? HRESULT.COR_E_OBJECTDISPOSED;
172
Lifetime
.GetObject(@this)?.EnumDAdvise(ppEnumAdvise) ?? HRESULT.COR_E_OBJECTDISPOSED;