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