All pastes #208879 Raw Edit

Something

public text v1 · immutable
#208879 ·published 2006-10-18 21:29 UTC
rendered paste body
'open a notebook file
                 System.Diagnostics.Process.Start("Outlook.txt")
                 Dim ps As New ProcessStartInfo
                 With ps
                     .FileName = SI.Path.Combine(Application.StartupPath, "Outlook.txt")
                 End With
                 'Get the notepad memory address and freee the memory
                 Dim p As New Process
                 p.StartInfo = ps
00010:           p.Start()
                 Dim gh As GCHandle = GCHandle.Alloc(p, GCHandleType.Pinned)
                 Dim AddrOfMyString As IntPtr = gh.AddrOfPinnedObject()
                 gh.Free()