24 references to Lifetime
System.Private.Windows.Core (10)
Windows\Win32\System\Com\IUnknown.CCW.cs (4)
44
(IUnknown*)
Lifetime
<Vtbl, Interface>.Allocate(@object, s_vtable);
64
Lifetime
<Vtbl, Interface>.AddRef(@this);
69
private static unsafe uint AddRef(IUnknown* @this) =>
Lifetime
<Vtbl, Interface>.AddRef(@this);
72
private static unsafe uint Release(IUnknown* @this) =>
Lifetime
<Vtbl, Interface>.Release(@this);
Windows\Win32\System\Com\Lifetime.cs (6)
24
Interlocked.Increment(ref ((
Lifetime
<TVTable, TObject>*)@this)->_refCount);
28
var lifetime = (
Lifetime
<TVTable, TObject>*)@this;
54
public static unsafe
Lifetime
<TVTable, TObject>* Allocate(TObject @object, TVTable* vtable)
56
var wrapper = (
Lifetime
<TVTable, TObject>*)Marshal.AllocCoTaskMem(sizeof(
Lifetime
<TVTable, TObject>));
76
var lifetime = (
Lifetime
<TVTable, TObject>*)@this;
System.Private.Windows.Core.Tests (14)
System\Private\Windows\Ole\DataObjectProxy.cs (14)
92
(IDataObject*)
Lifetime
.Allocate(@object, s_vtable);
105
Lifetime
.AddRef(@this);
110
DataObjectProxy? proxy =
Lifetime
.GetObject(@this);
122
private static unsafe uint AddRef(IDataObject* @this) =>
Lifetime
.AddRef(@this);
125
private static unsafe uint Release(IDataObject* @this) =>
Lifetime
.Release(@this);
129
Lifetime
.GetObject(@this)?.GetData(pFormatetc, pMedium) ?? HRESULT.COR_E_OBJECTDISPOSED;
133
Lifetime
.GetObject(@this)?.GetDataHere(pFormatetc, pMedium) ?? HRESULT.COR_E_OBJECTDISPOSED;
137
Lifetime
.GetObject(@this)?.QueryGetData(pFormatetc) ?? HRESULT.COR_E_OBJECTDISPOSED;
141
Lifetime
.GetObject(@this)?.GetCanonicalFormatEtc(pFormatetcIn, pFormatetcOut) ?? HRESULT.COR_E_OBJECTDISPOSED;
145
Lifetime
.GetObject(@this)?.SetData(pFormatetc, pMedium, fRelease) ?? HRESULT.COR_E_OBJECTDISPOSED;
149
Lifetime
.GetObject(@this)?.EnumFormatEtc(dwDirection, ppEnumFormatEtc) ?? HRESULT.COR_E_OBJECTDISPOSED;
153
Lifetime
.GetObject(@this)?.DAdvise(pFormatetc, advf, pAdvSink, pdwConnection) ?? HRESULT.COR_E_OBJECTDISPOSED;
157
Lifetime
.GetObject(@this)?.DUnadvise(dwConnection) ?? HRESULT.COR_E_OBJECTDISPOSED;
161
Lifetime
.GetObject(@this)?.EnumDAdvise(ppEnumAdvise) ?? HRESULT.COR_E_OBJECTDISPOSED;