You can "convert" the name you want to a byte array like this:
Then write that byte array to the process using WriteProcessMemory.Code:Public Shared Function StrToByteArray(str As String) As Byte() Dim unicodeEncoding As UnicodeEncoding = New UnicodeEncoding() Return unicodeEncoding.GetBytes(str) End Function