16 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.VisualStudio.LanguageServices (1)
Venus\ContainedLanguage.IVsContainedLanguageCodeSupport.cs (1)
246
Marshal.WriteIntPtr(current, Marshal.
StringToBSTR
(s));
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\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)
298
variant._typeUnion._unionTypes._bstr = Marshal.
StringToBSTR
(((BStrWrapper)(object)value).WrappedObject);
308
variant._typeUnion._unionTypes._bstr = Marshal.
StringToBSTR
((string)(object)value);
System.Private.Windows.Core (1)
Windows\Win32\Foundation\BSTR.cs (1)
13
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);