17 references to StringToBSTR
Microsoft.AspNetCore.Server.IIS (3)
Core\IISConfigurationData.cs (3)
41
native.pwzFullApplicationPath = managed.pwzFullApplicationPath is null ? IntPtr.Zero : Marshal.
StringToBSTR
(managed.pwzFullApplicationPath);
42
native.pwzVirtualApplicationPath = managed.pwzVirtualApplicationPath is null ? IntPtr.Zero : Marshal.
StringToBSTR
(managed.pwzVirtualApplicationPath);
46
native.pwzBindings = managed.pwzBindings is null ? IntPtr.Zero : Marshal.
StringToBSTR
(managed.pwzBindings);
Microsoft.CSharp (1)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\BuiltInVariantExtensions.cs (1)
110
variant.GetByRefDataRef<IntPtr>() = Marshal.
StringToBSTR
((string)value);
Microsoft.Private.Windows.Core (1)
Windows\Win32\Foundation\BSTR.cs (1)
10
public BSTR(string? value) : this((char*)Marshal.
StringToBSTR
(value))
PresentationFramework (6)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (4)
134
source = Marshal.
StringToBSTR
(_source);
152
description = Marshal.
StringToBSTR
(_description);
170
helpFile = Marshal.
StringToBSTR
(_helpFile);
188
helpFileContent = Marshal.
StringToBSTR
(_helpFileContent);
System\Windows\Documents\InputScopeAttribute.cs (1)
97
pbstr = Marshal.
StringToBSTR
(((InputScopePhrase)_inputScope.PhraseList[i]).Name);
System\Windows\Documents\TextStore.cs (1)
2806
attrval.val.data1 = Marshal.
StringToBSTR
(familyName);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\BStrStringMarshaller.cs (1)
25
=> (ushort*)Marshal.
StringToBSTR
(managed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (2)
297
variant._typeUnion._unionTypes._bstr = Marshal.
StringToBSTR
(((BStrWrapper)(object)value).WrappedObject);
307
variant._typeUnion._unionTypes._bstr = Marshal.
StringToBSTR
((string)(object)value);
System.Private.Windows.Core (1)
Windows\Win32\Foundation\BSTR.cs (1)
10
public BSTR(string? value) : this((char*)Marshal.
StringToBSTR
(value))
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (2)
307
bstrStorage = Marshal.
StringToBSTR
(str);
314
bstrStorage = Marshal.
StringToBSTR
(str.WrappedObject);