Marshalling
Option Strict On Imports System.Runtime.InteropServices Module Program Declare Unicode Sub BeginTest Lib ".\..\..\..\..\..\x64\Debug\Dll_ForMarshalling.dll" ( str As String, FunSelector As Int32) Declare Unicode Sub Get_TestData Lib ".\..\..\..\..\..\x64\Debug\Dll_ForMarshalling.dll" ( <InAttribute(), OutAttribute(), MarshalAs(UnmanagedType.LPWStr)> ByRef str As Text.StringBuilder, nMAxCount As Int32) Sub Main(args As String()) For ii As Int32 = 1 To 1 Known_Folder_Desktop() If (ii <= 1) Then Console.ReadKey() Dim stringbuilder As New Text.StringBuilder(4 << 20) BeginTest(" Desktop ", 1) Get_Test...