5 instantiations of BSTR
Microsoft.Private.Windows.Core (5)
Windows.Win32.BSTR.g.cs (3)
37
public static explicit operator BSTR(char* value) => new
BSTR
(value);
54
public static explicit operator BSTR(IntPtr value) => new
BSTR
((char*)value.ToPointer());
56
public static explicit operator BSTR(UIntPtr value) => new
BSTR
((char*)value.ToPointer());
Windows\Win32\System\Com\SafeArrayScope.cs (1)
189
using BSTR bstrText =
new
(s);
Windows\Win32\System\Variant\VARIANT.cs (1)
935
data = new() { bstrVal =
new
(value) }
134 references to BSTR
Microsoft.Private.Windows.Core (134)
Windows.Win32.BSTR.g.cs (13)
25
: IEquatable<
BSTR
>
35
public static implicit operator char*(
BSTR
value) => value.Value;
37
public static explicit operator
BSTR
(char* value) => new BSTR(value);
39
public static bool operator ==(
BSTR
left,
BSTR
right) => left.Value == right.Value;
41
public static bool operator !=(
BSTR
left,
BSTR
right) => !(left == right);
43
public bool Equals(
BSTR
other) => this.Value == other.Value;
45
public override bool Equals(object obj) => obj is
BSTR
other && this.Equals(other);
52
public static implicit operator IntPtr(
BSTR
value) => new IntPtr(value.Value);
54
public static explicit operator
BSTR
(IntPtr value) => new BSTR((char*)value.ToPointer());
56
public static explicit operator
BSTR
(UIntPtr value) => new BSTR((char*)value.ToPointer());
64
public static unsafe implicit operator ReadOnlySpan<char>(
BSTR
bstr) => bstr.Value != null ? new ReadOnlySpan<char>(bstr.Value, *((int*)bstr.Value - 1) / 2) : default(ReadOnlySpan<char>);
Windows.Win32.CABSTR.g.cs (1)
27
internal unsafe winmdroot.Foundation.
BSTR
* pElems;
Windows.Win32.EXCEPINFO.g.cs (3)
37
internal winmdroot.Foundation.
BSTR
bstrSource;
40
internal winmdroot.Foundation.
BSTR
bstrDescription;
43
internal winmdroot.Foundation.
BSTR
bstrHelpFile;
Windows.Win32.IDispatchEx.g.cs (14)
114
/// <inheritdoc cref="GetDispID(winmdroot.Foundation.
BSTR
, uint, int*)"/>
115
internal unsafe winmdroot.Foundation.HRESULT GetDispID(winmdroot.Foundation.
BSTR
bstrName, uint grfdex, out int pid)
124
public unsafe winmdroot.Foundation.HRESULT GetDispID(winmdroot.Foundation.
BSTR
bstrName, uint grfdex, int* pid)
126
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.
BSTR
,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IDispatchEx*)Unsafe.AsPointer(ref this), bstrName, grfdex, pid);
144
public winmdroot.Foundation.HRESULT DeleteMemberByName(winmdroot.Foundation.
BSTR
bstrName, uint grfdex)
146
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.
BSTR
,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IDispatchEx*)Unsafe.AsPointer(ref this), bstrName, grfdex);
169
public unsafe winmdroot.Foundation.HRESULT GetMemberName(int id, winmdroot.Foundation.
BSTR
* pbstrName)
171
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IDispatchEx*)Unsafe.AsPointer(ref this), id, pbstrName);
229
internal delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.
BSTR
,uint ,int* ,winmdroot.Foundation.HRESULT> GetDispID_8;
233
internal delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.
BSTR
,uint ,winmdroot.Foundation.HRESULT> DeleteMemberByName_10;
239
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT> GetMemberName_13;
254
unsafe winmdroot.Foundation.HRESULT GetDispID(winmdroot.Foundation.
BSTR
bstrName, uint grfdex, int* pid);
260
winmdroot.Foundation.HRESULT DeleteMemberByName(winmdroot.Foundation.
BSTR
bstrName, uint grfdex);
269
unsafe winmdroot.Foundation.HRESULT GetMemberName(int id, winmdroot.Foundation.
BSTR
* pbstrName);
Windows.Win32.IRecordInfo.g.cs (10)
125
public unsafe winmdroot.Foundation.HRESULT GetName(winmdroot.Foundation.
BSTR
* pbstrName)
127
return ((delegate *unmanaged [Stdcall]<IRecordInfo*,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IRecordInfo*)Unsafe.AsPointer(ref this), pbstrName);
293
/// <inheritdoc cref="GetFieldNames(uint*, winmdroot.Foundation.
BSTR
*)"/>
294
internal unsafe winmdroot.Foundation.HRESULT GetFieldNames(ref uint pcNames, winmdroot.Foundation.
BSTR
* rgBstrNames)
317
public unsafe winmdroot.Foundation.HRESULT GetFieldNames(uint* pcNames, winmdroot.Foundation.
BSTR
* rgBstrNames)
319
return ((delegate *unmanaged [Stdcall]<IRecordInfo*,uint* ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IRecordInfo*)Unsafe.AsPointer(ref this), pcNames, rgBstrNames);
420
internal delegate *unmanaged [Stdcall]<IRecordInfo*,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT> GetName_8;
434
internal delegate *unmanaged [Stdcall]<IRecordInfo*,uint* ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT> GetFieldNames_15;
465
unsafe winmdroot.Foundation.HRESULT GetName(winmdroot.Foundation.
BSTR
* pbstrName);
486
unsafe winmdroot.Foundation.HRESULT GetFieldNames(uint* pcNames, winmdroot.Foundation.
BSTR
* rgBstrNames);
Windows.Win32.ITypeInfo.g.cs (40)
134
/// <inheritdoc cref="GetNames(int, winmdroot.Foundation.
BSTR
*, uint, uint*)"/>
135
internal unsafe winmdroot.Foundation.HRESULT GetNames(int memid, winmdroot.Foundation.
BSTR
* rgBstrNames, uint cMaxNames, out uint pcNames)
160
public unsafe winmdroot.Foundation.HRESULT GetNames(int memid, winmdroot.Foundation.
BSTR
* rgBstrNames, uint cMaxNames, uint* pcNames)
162
return ((delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.Foundation.
BSTR
* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ITypeInfo*)Unsafe.AsPointer(ref this), memid, rgBstrNames, cMaxNames, pcNames);
290
/// <inheritdoc cref="GetDocumentation(int, winmdroot.Foundation.
BSTR
*, winmdroot.Foundation.
BSTR
*, uint*, winmdroot.Foundation.
BSTR
*)"/>
291
internal unsafe winmdroot.Foundation.HRESULT GetDocumentation(int memid, winmdroot.Foundation.
BSTR
* pBstrName, winmdroot.Foundation.
BSTR
* pBstrDocString, out uint pdwHelpContext, winmdroot.Foundation.
BSTR
* pBstrHelpFile)
316
public unsafe winmdroot.Foundation.HRESULT GetDocumentation(int memid, [Optional] winmdroot.Foundation.
BSTR
* pBstrName, [Optional] winmdroot.Foundation.
BSTR
* pBstrDocString, uint* pdwHelpContext, [Optional] winmdroot.Foundation.
BSTR
* pBstrHelpFile)
318
return ((delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.
BSTR
* ,uint* ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((ITypeInfo*)Unsafe.AsPointer(ref this), memid, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile);
321
/// <inheritdoc cref="GetDllEntry(int, winmdroot.System.Com.INVOKEKIND, winmdroot.Foundation.
BSTR
*, winmdroot.Foundation.
BSTR
*, ushort*)"/>
322
internal unsafe winmdroot.Foundation.HRESULT GetDllEntry(int memid, winmdroot.System.Com.INVOKEKIND invKind, winmdroot.Foundation.
BSTR
* pBstrDllName, winmdroot.Foundation.
BSTR
* pBstrName, out ushort pwOrdinal)
347
public unsafe winmdroot.Foundation.HRESULT GetDllEntry(int memid, winmdroot.System.Com.INVOKEKIND invKind, [Optional] winmdroot.Foundation.
BSTR
* pBstrDllName, [Optional] winmdroot.Foundation.
BSTR
* pBstrName, ushort* pwOrdinal)
349
return ((delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.System.Com.INVOKEKIND ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.
BSTR
* ,ushort* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((ITypeInfo*)Unsafe.AsPointer(ref this), memid, invKind, pBstrDllName, pBstrName, pwOrdinal);
431
public unsafe winmdroot.Foundation.HRESULT GetMops(int memid, winmdroot.Foundation.
BSTR
* pBstrMops)
433
return ((delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((ITypeInfo*)Unsafe.AsPointer(ref this), memid, pBstrMops);
553
internal delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.Foundation.
BSTR
* ,uint ,uint* ,winmdroot.Foundation.HRESULT> GetNames_8;
563
internal delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.
BSTR
* ,uint* ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT> GetDocumentation_13;
565
internal delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.System.Com.INVOKEKIND ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.
BSTR
* ,ushort* ,winmdroot.Foundation.HRESULT> GetDllEntry_14;
573
internal delegate *unmanaged [Stdcall]<ITypeInfo*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT> GetMops_18;
604
unsafe winmdroot.Foundation.HRESULT GetNames(int memid, winmdroot.Foundation.
BSTR
* rgBstrNames, uint cMaxNames, uint* pcNames);
619
unsafe winmdroot.Foundation.HRESULT GetDocumentation(int memid, [Optional] winmdroot.Foundation.
BSTR
* pBstrName, [Optional] winmdroot.Foundation.
BSTR
* pBstrDocString, uint* pdwHelpContext, [Optional] winmdroot.Foundation.
BSTR
* pBstrHelpFile);
622
unsafe winmdroot.Foundation.HRESULT GetDllEntry(int memid, winmdroot.System.Com.INVOKEKIND invKind, [Optional] winmdroot.Foundation.
BSTR
* pBstrDllName, [Optional] winmdroot.Foundation.
BSTR
* pBstrName, ushort* pwOrdinal);
634
unsafe winmdroot.Foundation.HRESULT GetMops(int memid, winmdroot.Foundation.
BSTR
* pBstrMops);
Windows.Win32.ITypeLib.g.cs (18)
165
/// <inheritdoc cref="GetDocumentation(int, winmdroot.Foundation.
BSTR
*, winmdroot.Foundation.
BSTR
*, uint*, winmdroot.Foundation.
BSTR
*)"/>
166
internal unsafe winmdroot.Foundation.HRESULT GetDocumentation(int index, winmdroot.Foundation.
BSTR
* pBstrName, winmdroot.Foundation.
BSTR
* pBstrDocString, out uint pdwHelpContext, winmdroot.Foundation.
BSTR
* pBstrHelpFile)
186
public unsafe winmdroot.Foundation.HRESULT GetDocumentation(int index, [Optional] winmdroot.Foundation.
BSTR
* pBstrName, [Optional] winmdroot.Foundation.
BSTR
* pBstrDocString, uint* pdwHelpContext, [Optional] winmdroot.Foundation.
BSTR
* pBstrHelpFile)
188
return ((delegate *unmanaged [Stdcall]<ITypeLib*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.
BSTR
* ,uint* ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((ITypeLib*)Unsafe.AsPointer(ref this), index, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile);
316
internal delegate *unmanaged [Stdcall]<ITypeLib*,int ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.
BSTR
* ,uint* ,winmdroot.Foundation.
BSTR
* ,winmdroot.Foundation.HRESULT> GetDocumentation_10;
351
unsafe winmdroot.Foundation.HRESULT GetDocumentation(int index, [Optional] winmdroot.Foundation.
BSTR
* pBstrName, [Optional] winmdroot.Foundation.
BSTR
* pBstrDocString, uint* pdwHelpContext, [Optional] winmdroot.Foundation.
BSTR
* pBstrHelpFile);
Windows.Win32.PInvokeCore.OLEAUT32.dll.g.cs (1)
32
internal static extern void SysFreeString(winmdroot.Foundation.
BSTR
bstrString);
Windows.Win32.PROPVARIANT.g.cs (2)
122
internal winmdroot.Foundation.
BSTR
bstrVal;
266
internal unsafe winmdroot.Foundation.
BSTR
* pbstrVal;
Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (12)
53
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetNames(int, winmdroot.Foundation.
BSTR
*, uint, uint*)"/>
54
internal static unsafe winmdroot.Foundation.HRESULT GetNames(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.Foundation.
BSTR
* rgBstrNames, uint cMaxNames, out uint pcNames)
116
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetDocumentation(int, winmdroot.Foundation.
BSTR
*, winmdroot.Foundation.
BSTR
*, uint*, winmdroot.Foundation.
BSTR
*)"/>
117
internal static unsafe winmdroot.Foundation.HRESULT GetDocumentation(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.Foundation.
BSTR
* pBstrName, winmdroot.Foundation.
BSTR
* pBstrDocString, out uint pdwHelpContext, winmdroot.Foundation.
BSTR
* pBstrHelpFile)
126
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetDllEntry(int, winmdroot.System.Com.INVOKEKIND, winmdroot.Foundation.
BSTR
*, winmdroot.Foundation.
BSTR
*, ushort*)"/>
127
internal static unsafe winmdroot.Foundation.HRESULT GetDllEntry(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.System.Com.INVOKEKIND invKind, winmdroot.Foundation.
BSTR
* pBstrDllName, winmdroot.Foundation.
BSTR
* pBstrName, out ushort pwOrdinal)
Windows.Win32.System_Com_ITypeLib_Extensions.g.cs (6)
53
/// <inheritdoc cref="winmdroot.System.Com.ITypeLib.Interface.GetDocumentation(int, winmdroot.Foundation.
BSTR
*, winmdroot.Foundation.
BSTR
*, uint*, winmdroot.Foundation.
BSTR
*)"/>
54
internal static unsafe winmdroot.Foundation.HRESULT GetDocumentation(this winmdroot.System.Com.ITypeLib.Interface @this, int index, winmdroot.Foundation.
BSTR
* pBstrName, winmdroot.Foundation.
BSTR
* pBstrDocString, out uint pdwHelpContext, winmdroot.Foundation.
BSTR
* pBstrHelpFile)
Windows.Win32.System_Ole_IDispatchEx_Extensions.g.cs (2)
23
/// <inheritdoc cref="winmdroot.System.Ole.IDispatchEx.Interface.GetDispID(winmdroot.Foundation.
BSTR
, uint, int*)"/>
24
internal static unsafe winmdroot.Foundation.HRESULT GetDispID(this winmdroot.System.Ole.IDispatchEx.Interface @this, winmdroot.Foundation.
BSTR
bstrName, uint grfdex, out int pid)
Windows.Win32.System_Ole_IRecordInfo_Extensions.g.cs (2)
98
/// <inheritdoc cref="winmdroot.System.Ole.IRecordInfo.Interface.GetFieldNames(uint*, winmdroot.Foundation.
BSTR
*)"/>
99
internal static unsafe winmdroot.Foundation.HRESULT GetFieldNames(this winmdroot.System.Ole.IRecordInfo.Interface @this, ref uint pcNames, winmdroot.Foundation.
BSTR
* rgBstrNames)
Windows.Win32.VARIANT.g.cs (2)
92
internal winmdroot.Foundation.
BSTR
bstrVal;
137
internal unsafe winmdroot.Foundation.
BSTR
* pbstrVal;
Windows\Win32\Foundation\BSTR.cs (2)
24
/// Converts the <see cref="
BSTR
"/> to string and frees it.
34
/// Converts the <see cref="
BSTR
"/> to a nullable string and frees it.
Windows\Win32\System\Com\SafeArrayScope.cs (3)
155
using
BSTR
result = GetElement<
BSTR
>(i);
189
using
BSTR
bstrText = new(s);
Windows\Win32\System\Variant\VARIANT.cs (3)
926
public static explicit operator
BSTR
(VARIANT value)
927
=> value.vt == VT_BSTR ? value.data.bstrVal : ThrowInvalidCast<
BSTR
>();
939
public static explicit operator VARIANT(
BSTR
value)