The DirectPlayMessage.WriteGUID method writes a GUID string to the message data and advances the write pointer.
object.WriteGUID(val As String)
If the method fails, an error is raised and Err.Number will be set.
Using GUIDs