290 references to HRESULT
System.Private.Windows.Core (280)
System\Private\Windows\Ole\Composition.cs (9)
108
public
HRESULT
DAdvise(FORMATETC* pformatetc, uint advf, IAdviseSink* pAdvSink, uint* pdwConnection) => _nativeDataObject.DAdvise(pformatetc, advf, pAdvSink, pdwConnection);
109
public
HRESULT
DUnadvise(uint dwConnection) => _nativeDataObject.DUnadvise(dwConnection);
110
public
HRESULT
EnumDAdvise(IEnumSTATDATA** ppenumAdvise) => _nativeDataObject.EnumDAdvise(ppenumAdvise);
111
public
HRESULT
EnumFormatEtc(uint dwDirection, IEnumFORMATETC** ppenumFormatEtc) => _nativeDataObject.EnumFormatEtc(dwDirection, ppenumFormatEtc);
112
public
HRESULT
GetCanonicalFormatEtc(FORMATETC* pformatectIn, FORMATETC* pformatetcOut) => _nativeDataObject.GetCanonicalFormatEtc(pformatectIn, pformatetcOut);
113
public
HRESULT
GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) => _nativeDataObject.GetData(pformatetcIn, pmedium);
114
public
HRESULT
GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) => _nativeDataObject.GetDataHere(pformatetc, pmedium);
115
public
HRESULT
QueryGetData(FORMATETC* pformatetc) => _nativeDataObject.QueryGetData(pformatetc);
116
public
HRESULT
SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _nativeDataObject.SetData(pformatetc, pmedium, fRelease);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (68)
36
public
HRESULT
GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium)
40
return
HRESULT
.DV_E_FORMATETC;
45
return
HRESULT
.E_POINTER;
54
return
HRESULT
.S_OK;
60
return
HRESULT
.S_OK;
68
return
HRESULT
.DV_E_TYMED;
82
return
HRESULT
.E_OUTOFMEMORY;
85
HRESULT
result = GetDataHere(pformatetcIn, pmedium);
95
public
HRESULT
GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium)
99
return
HRESULT
.DV_E_FORMATETC;
104
return
HRESULT
.E_POINTER;
109
return
HRESULT
.DV_E_TYMED;
116
return
HRESULT
.DV_E_FORMATETC;
121
return
HRESULT
.E_UNEXPECTED;
128
HRESULT
result = SaveDataToHGLOBAL(data, format, ref *pmedium);
129
if (result !=
HRESULT
.E_UNEXPECTED)
153
public
HRESULT
QueryGetData(FORMATETC* pformatetc)
157
return
HRESULT
.DV_E_FORMATETC;
162
return
HRESULT
.DV_E_DVASPECT;
167
return
HRESULT
.DV_E_TYMED;
172
return
HRESULT
.S_FALSE;
177
return
HRESULT
.DV_E_FORMATETC;
180
return
HRESULT
.S_OK;
183
public
HRESULT
GetCanonicalFormatEtc(FORMATETC* pformatectIn, FORMATETC* pformatetcOut)
187
return
HRESULT
.E_POINTER;
191
return (
HRESULT
)DATA_S_SAMEFORMATETC;
194
public
HRESULT
SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease)
198
return
HRESULT
.DV_E_FORMATETC;
203
return
HRESULT
.E_POINTER;
219
return
HRESULT
.S_OK;
222
return
HRESULT
.E_NOTIMPL;
225
public
HRESULT
EnumFormatEtc(uint dwDirection, IEnumFORMATETC** ppenumFormatEtc)
229
return
HRESULT
.E_POINTER;
238
return
HRESULT
.S_OK;
241
return
HRESULT
.E_NOTIMPL;
244
public
HRESULT
DAdvise(FORMATETC* pformatetc, uint advf, IAdviseSink* pAdvSink, uint* pdwConnection)
248
return
HRESULT
.E_POINTER;
252
return
HRESULT
.E_NOTIMPL;
255
public
HRESULT
DUnadvise(uint dwConnection) =>
HRESULT
.E_NOTIMPL;
257
public
HRESULT
EnumDAdvise(IEnumSTATDATA** ppenumAdvise)
261
return
HRESULT
.E_POINTER;
265
return
HRESULT
.OLE_E_ADVISENOTSUPPORTED;
269
private
HRESULT
SaveDataToHGLOBAL(object data, string format, ref STGMEDIUM medium) => format switch
289
_ =>
HRESULT
.E_UNEXPECTED
292
private static
HRESULT
SaveObjectToHGLOBAL(ref HGLOBAL hglobal, object data, bool restrictSerialization)
303
private static
HRESULT
SaveStreamToHGLOBAL(ref HGLOBAL hglobal, Stream stream)
314
return
HRESULT
.E_OUTOFMEMORY;
320
return
HRESULT
.E_OUTOFMEMORY;
334
return
HRESULT
.S_OK;
340
private
HRESULT
SaveFileListToHGLOBAL(HGLOBAL hglobal, string[] files)
344
return
HRESULT
.S_OK;
349
return
HRESULT
.E_INVALIDARG;
371
return
HRESULT
.E_OUTOFMEMORY;
377
return
HRESULT
.E_OUTOFMEMORY;
405
return
HRESULT
.S_OK;
411
private
HRESULT
SaveStringToHGLOBAL(HGLOBAL hglobal, string value, bool unicode)
415
return
HRESULT
.E_INVALIDARG;
425
return
HRESULT
.E_OUTOFMEMORY;
431
return
HRESULT
.E_OUTOFMEMORY;
452
return
HRESULT
.E_OUTOFMEMORY;
458
return
HRESULT
.E_OUTOFMEMORY;
469
return
HRESULT
.S_OK;
472
private static
HRESULT
SaveHtmlToHGLOBAL(HGLOBAL hglobal, string value)
476
return
HRESULT
.E_INVALIDARG;
483
return
HRESULT
.E_OUTOFMEMORY;
489
return
HRESULT
.E_OUTOFMEMORY;
505
return
HRESULT
.S_OK;
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (19)
34
public
HRESULT
DAdvise(Com.FORMATETC* pformatetc, uint advf, Com.IAdviseSink* pAdvSink, uint* pdwConnection)
40
public
HRESULT
DUnadvise(uint dwConnection)
46
public
HRESULT
EnumDAdvise(Com.IEnumSTATDATA** ppenumAdvise)
52
public
HRESULT
EnumFormatEtc(uint dwDirection, Com.IEnumFORMATETC** ppenumFormatEtc)
58
public
HRESULT
GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium)
64
public
HRESULT
GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium)
70
public
HRESULT
QueryGetData(Com.FORMATETC* pformatetc)
76
public
HRESULT
GetCanonicalFormatEtc(Com.FORMATETC* pformatectIn, Com.FORMATETC* pformatetcOut)
82
public
HRESULT
SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease)
142
throw new ExternalException(SR.ExternalException, (int)
HRESULT
.E_OUTOFMEMORY);
303
HRESULT
hr = dataObject->GetData(formatetc, out Com.STGMEDIUM medium);
309
Debug.WriteLineIf(hr ==
HRESULT
.CLIPBRD_E_BAD_DATA, "CLIPBRD_E_BAD_DATA returned when trying to get clipboard data.");
310
Debug.WriteLineIf(hr ==
HRESULT
.DV_E_TYMED, "DV_E_TYMED returned when trying to get clipboard data.");
312
Debug.WriteLineIf(hr ==
HRESULT
.E_UNEXPECTED, "E_UNEXPECTED returned when trying to get clipboard data.");
313
Debug.WriteLineIf(hr ==
HRESULT
.COR_E_SERIALIZATION,
319
if (medium.tymed == Com.TYMED.TYMED_HGLOBAL && !medium.hGlobal.IsNull && hr !=
HRESULT
.COR_E_SERIALIZATION)
559
while (enumFORMATETC.Value->Next(1, &formatEtc) ==
HRESULT
.S_OK)
637
HRESULT
hr = nativeDataObject.Value->QueryGetData(formatEtc);
640
return hr ==
HRESULT
.S_OK;
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (4)
50
HRESULT
result = nativeDataObject.Value->EnumDAdvise(nativeStatData);
61
throw new ExternalException(SR.ExternalException, (int)
HRESULT
.E_NOTIMPL);
70
HRESULT
result = nativeDataObject.Value->GetCanonicalFormatEtc(Unsafe.As<FORMATETC, Com.FORMATETC>(ref formatIn), out Com.FORMATETC nativeFormat);
106
HRESULT
result = nativeDataObject.Value->SetData(&nativeFormat, &nativeMedium, release);
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (31)
33
HRESULT
Com.IDataObject.Interface.DAdvise(Com.FORMATETC* pformatetc, uint advf, Com.IAdviseSink* pAdvSink, uint* pdwConnection)
36
return (
HRESULT
)DAdvise(ref *(FORMATETC*)pformatetc, (ADVF)advf, adviseSink, out *(int*)pdwConnection);
39
HRESULT
Com.IDataObject.Interface.DUnadvise(uint dwConnection)
47
return (
HRESULT
)e.HResult;
50
return
HRESULT
.S_OK;
53
HRESULT
Com.IDataObject.Interface.EnumDAdvise(Com.IEnumSTATDATA** ppenumAdvise)
57
return
HRESULT
.E_POINTER;
62
HRESULT
hr = (
HRESULT
)EnumDAdvise(out var enumAdvice);
69
return hr.Succeeded ? hr :
HRESULT
.E_NOINTERFACE;
72
HRESULT
Com.IDataObject.Interface.EnumFormatEtc(uint dwDirection, Com.IEnumFORMATETC** ppenumFormatEtc)
76
return
HRESULT
.E_POINTER;
80
*ppenumFormatEtc = ComHelpers.TryGetComPointer<Com.IEnumFORMATETC>(comTypeFormatEtc, out
HRESULT
hr);
81
return hr.Succeeded ?
HRESULT
.S_OK :
HRESULT
.E_NOINTERFACE;
84
HRESULT
Com.IDataObject.Interface.GetCanonicalFormatEtc(Com.FORMATETC* pformatectIn, Com.FORMATETC* pformatetcOut) =>
85
(
HRESULT
)GetCanonicalFormatEtc(ref *(FORMATETC*)pformatectIn, out *(FORMATETC*)pformatetcOut);
87
HRESULT
Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium)
91
return
HRESULT
.E_POINTER;
98
return
HRESULT
.S_OK;
102
return (
HRESULT
)e.HResult;
106
HRESULT
Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium)
110
return
HRESULT
.E_POINTER;
120
return (
HRESULT
)e.HResult;
124
return
HRESULT
.S_OK;
127
HRESULT
Com.IDataObject.Interface.QueryGetData(Com.FORMATETC* pformatetc) => (
HRESULT
)QueryGetData(ref *(FORMATETC*)pformatetc);
129
HRESULT
Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease)
133
return
HRESULT
.E_POINTER;
143
return (
HRESULT
)e.HResult;
146
return
HRESULT
.S_OK;
System\Private\Windows\Ole\DragDropHelper.cs (1)
447
HRESULT
hr = PInvokeCore.CoCreateInstance(
System\Private\Windows\Ole\FormatEnumerator.cs (15)
62
return (int)
HRESULT
.S_FALSE;
81
return (int)
HRESULT
.S_OK;
88
return (int)
HRESULT
.S_FALSE;
92
return (int)
HRESULT
.S_OK;
98
return (int)
HRESULT
.S_OK;
106
HRESULT
IEnumFORMATETC.Interface.Next(uint celt, FORMATETC* rgelt, uint* pceltFetched)
110
return
HRESULT
.E_POINTER;
129
return (
HRESULT
)result;
132
HRESULT
IEnumFORMATETC.Interface.Skip(uint celt) => (
HRESULT
)Skip((int)celt);
134
HRESULT
IEnumFORMATETC.Interface.Reset() => (
HRESULT
)Reset();
136
HRESULT
IEnumFORMATETC.Interface.Clone(IEnumFORMATETC** ppenum)
140
return
HRESULT
.E_POINTER;
145
return
HRESULT
.S_OK;
System\Private\Windows\Ole\IOleServices.cs (1)
20
static abstract
HRESULT
GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium);
System\Private\Windows\Runtime.cs (1)
25
static
HRESULT
IOleServices.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) =>
Windows\Win32\Foundation\HRESULT.cs (32)
45
public static
HRESULT
FromWin32(WIN32_ERROR error)
52
public static implicit operator
HRESULT
(Exception ex)
55
return (
HRESULT
)ex.HResult;
64
public static readonly
HRESULT
COR_E_ARGUMENT = (
HRESULT
)unchecked((int)0x80070057);
65
public static readonly
HRESULT
TLBX_E_LIBNOTREGISTERED = (
HRESULT
)unchecked((int)0x80131165);
66
public static readonly
HRESULT
COR_E_MISSINGFIELD = (
HRESULT
)unchecked((int)0x80131511);
67
public static readonly
HRESULT
COR_E_MISSINGMEMBER = (
HRESULT
)unchecked((int)0x80131512);
68
public static readonly
HRESULT
COR_E_MISSINGMETHOD = (
HRESULT
)unchecked((int)0x80131513);
69
public static readonly
HRESULT
COR_E_NOTSUPPORTED = (
HRESULT
)unchecked((int)0x80131515);
70
public static readonly
HRESULT
COR_E_OVERFLOW = (
HRESULT
)unchecked((int)0x80131516);
71
public static readonly
HRESULT
COR_E_INVALIDOLEVARIANTTYPE = (
HRESULT
)unchecked((int)0x80131531);
72
public static readonly
HRESULT
COR_E_SAFEARRAYTYPEMISMATCH = (
HRESULT
)unchecked((int)0x80131533);
73
public static readonly
HRESULT
COR_E_TARGETINVOCATION = (
HRESULT
)unchecked((int)0x80131604);
74
public static readonly
HRESULT
COR_E_OBJECTDISPOSED = (
HRESULT
)unchecked((int)0x80131622);
75
public static readonly
HRESULT
COR_E_SERIALIZATION = (
HRESULT
)unchecked((int)0x8013150c);
81
public static readonly
HRESULT
DESTS_E_NO_MATCHING_ASSOC_HANDLER = (
HRESULT
)unchecked((int)0x80040F03);
93
/// <see cref="FACILITY_CODE.FACILITY_CONTROL"/> is used for all VB errors raised as <see cref="
HRESULT
"/>s.
104
public static readonly
HRESULT
VB_E_NOTOBJECT = (
HRESULT
)unchecked((int)0x800A01A8);
Windows\Win32\PInvokeCore.PrintDlgEx.cs (1)
12
internal static extern unsafe
HRESULT
PrintDlgEx(PRINTDLGEXW* pPD);
Windows\Win32\PInvokeCore.RegisterDragDrop.cs (2)
11
public static unsafe
HRESULT
RegisterDragDrop<T>(T hwnd, IDropTarget.Interface pDropTarget)
14
using var dropTarget = ComHelpers.TryGetComScope<IDropTarget>(pDropTarget, out
HRESULT
hr);
Windows\Win32\PInvokeCore.RevokeDragDrop.cs (2)
9
public static
HRESULT
RevokeDragDrop<T>(T hwnd) where T : IHandle<HWND>
11
HRESULT
result = RevokeDragDrop(hwnd.Handle);
Windows\Win32\System\Com\AgileComPointer.cs (5)
84
var scope = GlobalInterfaceTable.GetInterface<TInterface>(_cookie, out
HRESULT
hr);
95
var scope = TryGetInterface<TAsInterface>(out
HRESULT
hr);
103
public ComScope<TInterface> TryGetInterface(out
HRESULT
hr)
109
public ComScope<TAsInterface> TryGetInterface<TAsInterface>(out
HRESULT
hr)
147
HRESULT
hr = GlobalInterfaceTable.RevokeInterface(cookie);
Windows\Win32\System\Com\ComHelpers.cs (11)
40
internal static ComScope<T> TryGetComScope<T>(object? @object, out
HRESULT
hr) where T : unmanaged, IComIID =>
49
T* result = TryGetComPointer<T>(@object, out
HRESULT
hr);
68
using var scope = TryGetComScope<T>(@object, out
HRESULT
hr);
76
/// Typically either <see cref="
HRESULT
.S_OK"/> or <see cref="
HRESULT
.E_POINTER"/>. Check for success, not
80
internal static T* TryGetComPointer<T>(object? @object, out
HRESULT
result) where T : unmanaged, IComIID
84
result =
HRESULT
.E_POINTER;
115
result =
HRESULT
.E_NOINTERFACE;
122
result =
HRESULT
.S_OK;
182
HRESULT
hr = unknown->QueryInterface(IID.Get<IUnknown>(), (void**)&unknown);
339
HRESULT
hr = PInvokeCore.LoadRegTypeLib(typeLibrary, majorVersion, minorVersion, 0, typelib);
Windows\Win32\System\Com\ComManagedStream.cs (30)
45
HRESULT
IStream.Interface.Clone(IStream** ppstm)
49
return
HRESULT
.E_POINTER;
56
return
HRESULT
.S_OK;
59
HRESULT
IStream.Interface.Commit(uint grfCommitFlags)
65
return
HRESULT
.S_OK;
68
HRESULT
IStream.Interface.CopyTo(IStream* pstm, ulong cb, ulong* pcbRead, ulong* pcbWritten)
72
return
HRESULT
.STG_E_INVALIDPOINTER;
108
return
HRESULT
.S_OK;
111
HRESULT
ISequentialStream.Interface.Read(void* pv, uint cb, uint* pcbRead)
115
return
HRESULT
.STG_E_INVALIDPOINTER;
126
return
HRESULT
.S_OK;
129
HRESULT
IStream.Interface.Read(void* pv, uint cb, uint* pcbRead)
132
HRESULT
IStream.Interface.Seek(long dlibMove, SeekOrigin dwOrigin, ulong* plibNewPosition)
178
return
HRESULT
.S_OK;
181
return
HRESULT
.S_OK;
184
HRESULT
IStream.Interface.SetSize(ulong libNewSize)
187
return
HRESULT
.S_OK;
190
HRESULT
IStream.Interface.Stat(STATSTG* pstatstg, uint grfStatFlag)
194
return
HRESULT
.STG_E_INVALIDPOINTER;
216
return
HRESULT
.S_OK;
220
HRESULT
IStream.Interface.LockRegion(ulong libOffset, ulong cb, uint dwLockType) =>
HRESULT
.STG_E_INVALIDFUNCTION;
223
HRESULT
IStream.Interface.Revert() =>
HRESULT
.S_OK;
226
HRESULT
IStream.Interface.UnlockRegion(ulong libOffset, ulong cb, uint dwLockType) =>
HRESULT
.STG_E_INVALIDFUNCTION;
228
HRESULT
ISequentialStream.Interface.Write(void* pv, uint cb, uint* pcbWritten)
232
return
HRESULT
.STG_E_INVALIDPOINTER;
243
return
HRESULT
.S_OK;
246
HRESULT
IStream.Interface.Write(void* pv, uint cb, uint* pcbWritten)
Windows\Win32\System\Com\ComScope.cs (6)
60
public ComScope<TTo> TryQuery<TTo>(out
HRESULT
hr) where TTo : unmanaged, IComIID
80
public static ComScope<T> TryQueryFrom<TFrom>(TFrom* from, out
HRESULT
hr) where TFrom : unmanaged, IComIID
83
hr = from is null ?
HRESULT
.E_POINTER : ((IUnknown*)from)->QueryInterface(IID.Get<T>(), scope);
94
HRESULT
.E_POINTER.ThrowOnFailure();
104
/// use the interface, otherwise use <see cref="TryQuery{TTo}(out
HRESULT
)"/>.
114
HRESULT
hr = AsUnknown->QueryInterface(IID.Get<TInterface>(), (void**)&unknown);
Windows\Win32\System\Com\GlobalInterfaceTable.cs (4)
40
HRESULT
hr = s_globalInterfaceTable->RegisterInterfaceInGlobal(
52
public static ComScope<TInterface> GetInterface<TInterface>(uint cookie, out
HRESULT
result)
64
public static
HRESULT
RevokeInterface(uint cookie)
66
HRESULT
hr = s_globalInterfaceTable->RevokeInterfaceFromGlobal(cookie);
Windows\Win32\System\Com\GlobalInterfaceTable.UnknownStrategy.cs (1)
31
return cookie != 0 ? (int)
HRESULT
.S_OK : (int)RevokeInterface(_cookie);
Windows\Win32\System\Com\IComCallableWrapper.cs (4)
32
public unsafe
HRESULT
QueryInterface(in Guid riid, out void* ppvObject)
41
public unsafe
HRESULT
QueryInterface(Guid* riid, void** ppvObject)
44
return ((delegate* unmanaged[Stdcall]<IComCallableWrapper*, Guid*, void**,
HRESULT
>)_vtbl[0])(pThis, riid, ppvObject);
62
internal delegate* unmanaged[Stdcall]<IEnumUnknown*, Guid*, void**,
HRESULT
> QueryInterface_1;
Windows\Win32\System\Com\IDispatch.cs (11)
15
internal
HRESULT
TryGetProperty(
23
internal
HRESULT
TryGetProperty(
33
HRESULT
hr = dispatch->Invoke(
43
if (hr ==
HRESULT
.DISP_E_EXCEPTION)
47
hr = (
HRESULT
)pExcepInfo.scode;
92
public
HRESULT
SetPropertyValue(int dispatchId, VARIANT value, out string? errorText)
110
HRESULT
hr = Invoke(
120
if (hr ==
HRESULT
.DISP_E_EXCEPTION)
124
hr = (
HRESULT
)pExcepInfo.scode;
135
internal
HRESULT
GetIDOfName(string name, out int dispId)
141
HRESULT
result = GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1u, PInvokeCore.GetThreadLocale(), &id);
Windows\Win32\System\Com\IDispatch.Interface.cs (8)
22
private static
HRESULT
GetTypeInfoCount(IDispatch* @this, uint* pctinfo)
26
private static
HRESULT
GetTypeInfo(IDispatch* @this, uint iTInfo, uint lcid, ITypeInfo** ppTInfo)
30
private static
HRESULT
GetIDsOfNames(IDispatch* @this, Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId)
34
private static
HRESULT
Invoke(
54
HRESULT
GetTypeInfoCount(
58
HRESULT
GetTypeInfo(
64
HRESULT
GetIDsOfNames(
72
HRESULT
Invoke(
Windows\Win32\System\Com\ITypeInfo.cs (2)
9
public
HRESULT
GetIDOfName(string name, out int memberId)
15
HRESULT
result = GetIDsOfNames((PWSTR*)&n, 1, &id);
Windows\Win32\System\Com\WinFormsComWrappers.cs (9)
20
unknown->QueryInterface_1 = (delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**,
HRESULT
>)fpQueryInterface;
56
/// Handles exceptions and converts to <see cref="
HRESULT
"/>.
59
internal static
HRESULT
UnwrapAndInvoke<TThis, TInterface>(TThis* @this, Func<TInterface,
HRESULT
> func)
66
return @object is null ?
HRESULT
.COR_E_OBJECTDISPOSED : func(@object);
95
/// <inheritdoc cref="UnwrapAndInvoke{TThis, TInterface}(TThis*, Func{TInterface,
HRESULT
})"/>
96
internal static
HRESULT
UnwrapAndInvoke<TThis, TInterface>(TThis* @this, Action<TInterface> action)
105
return
HRESULT
.COR_E_OBJECTDISPOSED;
109
return
HRESULT
.S_OK;
Windows\Win32\System\Variant\VARIANT.cs (3)
274
HRESULT
hr = PInvokeCore.SafeArrayLock(psa);
275
Debug.Assert(hr ==
HRESULT
.S_OK);
433
Debug.Assert(hr ==
HRESULT
.S_OK);
System.Windows.Forms (4)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (4)
114
/// always return <see cref="
HRESULT
.S_FALSE"/> to prevent the dialog from applying the
144
/// <see cref="
HRESULT
.S_OK"/> to cache the button instance,
150
/// returned <see cref="
HRESULT
.S_OK"/>, so that further
151
/// handles will return <see cref="
HRESULT
.S_FALSE"/> to
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
456
var
result = enumVariant.Next(1, &variantObject, &retreivedCount);
System.Windows.Forms.Primitives (5)
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (5)
144
/// result other than <see cref="
HRESULT
.S_OK"/> or false for <paramref name="pfDisplay"/> will suppress this feature.
153
/// <see cref="
HRESULT
.S_OK"/> return code will display the default values.
181
/// window selection combo. Returning any result other than <see cref="
HRESULT
.S_OK"/> will cause the default to
191
/// <see cref="
HRESULT
.S_OK"/> or false for <paramref name="pfCanReset"/> will not allow the value to be reset.
199
/// If the return value is <see cref="
HRESULT
.S_OK"/>, the property's value will then be refreshed to the