307 references to HRESULT
System.Private.Windows.Core (297)
System\IO\StreamExtensions.cs (6)
26
/// <returns><see cref="
HRESULT
.S_OK"/> if successful.</returns>
27
internal static unsafe
HRESULT
SaveStreamToHGLOBAL(this Stream stream, ref HGLOBAL hglobal)
34
return
HRESULT
.E_OUTOFMEMORY;
42
return
HRESULT
.E_OUTOFMEMORY;
48
return
HRESULT
.E_OUTOFMEMORY;
62
return
HRESULT
.S_OK;
System\Private\Windows\Ole\ClipboardCore.cs (16)
28
/// <returns>An <see cref="
HRESULT
"/> indicating the success or failure of the operation.</returns>
29
internal static
HRESULT
Clear(
35
HRESULT
result;
54
/// <returns>An <see cref="
HRESULT
"/> indicating the success or failure of the operation.</returns>
55
internal static
HRESULT
Flush(
61
HRESULT
result;
84
/// <returns>An <see cref="
HRESULT
"/> indicating the success or failure of the operation.</returns>
85
internal static
HRESULT
SetData(
98
HRESULT
result;
132
/// <returns>An <see cref="
HRESULT
"/> indicating the success or failure of the operation.</returns>
134
internal static
HRESULT
TryGetData(
146
HRESULT
result;
166
using ComScope<IComCallableWrapper> realDataObject = proxyDataObject.TryQuery<IComCallableWrapper>(out
HRESULT
wrapperResult);
195
HRESULT
result = TryGetData(
211
internal static
HRESULT
GetDataObject<TDataObject, TIDataObject>(
220
HRESULT
result = TryGetData(
System\Private\Windows\Ole\Composition.cs (9)
181
public
HRESULT
DAdvise(FORMATETC* pformatetc, uint advf, IAdviseSink* pAdvSink, uint* pdwConnection) => _nativeDataObject.DAdvise(pformatetc, advf, pAdvSink, pdwConnection);
182
public
HRESULT
DUnadvise(uint dwConnection) => _nativeDataObject.DUnadvise(dwConnection);
183
public
HRESULT
EnumDAdvise(IEnumSTATDATA** ppenumAdvise) => _nativeDataObject.EnumDAdvise(ppenumAdvise);
184
public
HRESULT
EnumFormatEtc(uint dwDirection, IEnumFORMATETC** ppenumFormatEtc) => _nativeDataObject.EnumFormatEtc(dwDirection, ppenumFormatEtc);
185
public
HRESULT
GetCanonicalFormatEtc(FORMATETC* pformatectIn, FORMATETC* pformatetcOut) => _nativeDataObject.GetCanonicalFormatEtc(pformatectIn, pformatetcOut);
186
public
HRESULT
GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) => _nativeDataObject.GetData(pformatetcIn, pmedium);
187
public
HRESULT
GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) => _nativeDataObject.GetDataHere(pformatetc, pmedium);
188
public
HRESULT
QueryGetData(FORMATETC* pformatetc) => _nativeDataObject.QueryGetData(pformatetc);
189
public
HRESULT
SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _nativeDataObject.SetData(pformatetc, pmedium, fRelease);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (56)
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)
291
_ =>
HRESULT
.E_UNEXPECTED
294
static
HRESULT
SaveObjectToHGLOBAL(ref HGLOBAL hglobal, object data, string format)
306
static
HRESULT
SaveFileListToHGLOBAL(HGLOBAL hglobal, string[] files)
310
return
HRESULT
.S_OK;
315
return
HRESULT
.E_INVALIDARG;
364
return
HRESULT
.S_OK;
367
static
HRESULT
SaveDbcsToHGLOBAL(HGLOBAL hglobal, string value)
382
return
HRESULT
.S_OK;
385
static
HRESULT
SaveUtf16ToHGLOBAL(HGLOBAL hglobal, string value)
401
return
HRESULT
.S_OK;
404
static
HRESULT
SaveUtf8ToHGLOBAL(HGLOBAL hglobal, string value)
420
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)
144
throw new ExternalException(SR.ExternalException, (int)
HRESULT
.E_OUTOFMEMORY);
306
HRESULT
hr = dataObject->GetData(formatetc, out Com.STGMEDIUM medium);
312
Debug.WriteLineIf(hr ==
HRESULT
.CLIPBRD_E_BAD_DATA, "CLIPBRD_E_BAD_DATA returned when trying to get clipboard data.");
313
Debug.WriteLineIf(hr ==
HRESULT
.DV_E_TYMED, "DV_E_TYMED returned when trying to get clipboard data.");
315
Debug.WriteLineIf(hr ==
HRESULT
.E_UNEXPECTED, "E_UNEXPECTED returned when trying to get clipboard data.");
316
Debug.WriteLineIf(hr ==
HRESULT
.COR_E_SERIALIZATION,
322
if (medium.tymed == Com.TYMED.TYMED_HGLOBAL && !medium.hGlobal.IsNull && hr !=
HRESULT
.COR_E_SERIALIZATION)
564
while (enumFORMATETC.Value->Next(1, &formatEtc) ==
HRESULT
.S_OK)
645
HRESULT
hr = nativeDataObject.Value->QueryGetData(formatEtc);
648
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)
64
return (int)
HRESULT
.S_FALSE;
83
return (int)
HRESULT
.S_OK;
90
return (int)
HRESULT
.S_FALSE;
94
return (int)
HRESULT
.S_OK;
100
return (int)
HRESULT
.S_OK;
108
HRESULT
IEnumFORMATETC.Interface.Next(uint celt, FORMATETC* rgelt, uint* pceltFetched)
112
return
HRESULT
.E_POINTER;
131
return (
HRESULT
)result;
134
HRESULT
IEnumFORMATETC.Interface.Skip(uint celt) => (
HRESULT
)Skip((int)celt);
136
HRESULT
IEnumFORMATETC.Interface.Reset() => (
HRESULT
)Reset();
138
HRESULT
IEnumFORMATETC.Interface.Clone(IEnumFORMATETC** ppenum)
142
return
HRESULT
.E_POINTER;
147
return
HRESULT
.S_OK;
System\Private\Windows\Ole\IOleServices.cs (4)
30
static abstract
HRESULT
GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium);
79
static abstract
HRESULT
OleGetClipboard(IDataObject** dataObject);
82
static abstract
HRESULT
OleSetClipboard(IDataObject* dataObject);
85
static abstract
HRESULT
OleFlushClipboard();
Windows\Win32\Foundation\GlobalBuffer.cs (5)
22
Status =
HRESULT
.E_INVALIDARG;
33
Status =
HRESULT
.E_OUTOFMEMORY;
40
Status =
HRESULT
.E_OUTOFMEMORY;
46
public
HRESULT
Status { get; private set; } =
HRESULT
.S_OK;
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)
46
HRESULT
IStream.Interface.Clone(IStream** ppstm)
50
return
HRESULT
.E_POINTER;
57
return
HRESULT
.S_OK;
60
HRESULT
IStream.Interface.Commit(uint grfCommitFlags)
66
return
HRESULT
.S_OK;
69
HRESULT
IStream.Interface.CopyTo(IStream* pstm, ulong cb, ulong* pcbRead, ulong* pcbWritten)
73
return
HRESULT
.STG_E_INVALIDPOINTER;
109
return
HRESULT
.S_OK;
112
HRESULT
ISequentialStream.Interface.Read(void* pv, uint cb, uint* pcbRead)
116
return
HRESULT
.STG_E_INVALIDPOINTER;
127
return
HRESULT
.S_OK;
130
HRESULT
IStream.Interface.Read(void* pv, uint cb, uint* pcbRead)
133
HRESULT
IStream.Interface.Seek(long dlibMove, SeekOrigin dwOrigin, ulong* plibNewPosition)
179
return
HRESULT
.S_OK;
182
return
HRESULT
.S_OK;
185
HRESULT
IStream.Interface.SetSize(ulong libNewSize)
188
return
HRESULT
.S_OK;
191
HRESULT
IStream.Interface.Stat(STATSTG* pstatstg, uint grfStatFlag)
195
return
HRESULT
.STG_E_INVALIDPOINTER;
217
return
HRESULT
.S_OK;
221
HRESULT
IStream.Interface.LockRegion(ulong libOffset, ulong cb, uint dwLockType) =>
HRESULT
.STG_E_INVALIDFUNCTION;
224
HRESULT
IStream.Interface.Revert() =>
HRESULT
.S_OK;
227
HRESULT
IStream.Interface.UnlockRegion(ulong libOffset, ulong cb, uint dwLockType) =>
HRESULT
.STG_E_INVALIDFUNCTION;
229
HRESULT
ISequentialStream.Interface.Write(void* pv, uint cb, uint* pcbWritten)
233
return
HRESULT
.STG_E_INVALIDPOINTER;
244
return
HRESULT
.S_OK;
247
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