21 references to PtrToStringBSTR
Microsoft.AspNetCore.Server.IIS (3)
Core\IISConfigurationData.cs (3)
72
pwzFullApplicationPath = native.pwzFullApplicationPath == IntPtr.Zero ? string.Empty : Marshal.
PtrToStringBSTR
(native.pwzFullApplicationPath),
73
pwzVirtualApplicationPath = native.pwzVirtualApplicationPath == IntPtr.Zero ? string.Empty : Marshal.
PtrToStringBSTR
(native.pwzVirtualApplicationPath),
77
pwzBindings = native.pwzBindings == IntPtr.Zero ? string.Empty : Marshal.
PtrToStringBSTR
(native.pwzBindings),
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\ComInterop\ExcepInfo.cs (1)
43
string result = Marshal.
PtrToStringBSTR
(bstr);
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\BuiltInVariantExtensions.cs (1)
157
VarEnum.VT_BSTR => variant.GetRawDataRef<nint>() is 0 ? null : Marshal.
PtrToStringBSTR
(variant.GetRawDataRef<nint>()),
Microsoft.Private.Windows.Core (1)
_generated\10\Windows.Win32.BSTR.g.cs (1)
50
public override string ToString() => this.Value != null ? Marshal.
PtrToStringBSTR
(new IntPtr(this.Value)) : null;
PresentationFramework (8)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (8)
227
return __retval != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(__retval) : string.Empty;
241
return __retval != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(__retval) : string.Empty;
255
return __retval != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(__retval) : string.Empty;
269
return __retval != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(__retval) : string.Empty;
420
description = _description != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(_description) : string.Empty;
421
restrictedDescription = _restrictedDescription != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(_restrictedDescription) : string.Empty;
422
capabilitySid = _capabilitySid != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(_capabilitySid) : string.Empty;
438
return __retval != IntPtr.Zero ? Marshal.
PtrToStringBSTR
(__retval) : string.Empty;
System.Data.OleDb (1)
ColumnBinding.cs (1)
638
value = Marshal.
PtrToStringBSTR
(ptr);
System.Private.CoreLib (4)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
220
return Marshal.
PtrToStringBSTR
((IntPtr)buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\BStrStringMarshaller.cs (1)
37
return Marshal.
PtrToStringBSTR
((IntPtr)unmanaged);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (2)
485
return (T)(object)new BStrWrapper(Marshal.
PtrToStringBSTR
(_typeUnion._unionTypes._bstr));
496
return (T)(object)Marshal.
PtrToStringBSTR
(_typeUnion._unionTypes._bstr);
System.Private.Windows.Core (1)
_generated\10\Windows.Win32.BSTR.g.cs (1)
50
public override string ToString() => this.Value != null ? Marshal.
PtrToStringBSTR
(new IntPtr(this.Value)) : null;
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (1)
195
return Marshal.
PtrToStringBSTR
(*(IntPtr*)unmanaged.GetRawDataRef<nint>());