16 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.VisualStudio.LanguageServices (1)
Snippets\AbstractSnippetInfoService.cs (1)
237
str = Marshal.
PtrToStringBSTR
(ptr);
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.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\BStrStringMarshaller.cs (1)
36
return Marshal.
PtrToStringBSTR
((IntPtr)unmanaged);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (2)
488
return (T)(object)new BStrWrapper(Marshal.
PtrToStringBSTR
(_typeUnion._unionTypes._bstr));
499
return (T)(object)Marshal.
PtrToStringBSTR
(_typeUnion._unionTypes._bstr);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (1)
195
return Marshal.
PtrToStringBSTR
(*(IntPtr*)unmanaged.GetRawDataRef<nint>());