[DllImport("GUIDDll.dll")]
public static extern void CreateGUID(String bstrGUID,Uint ID);
Bstr can be replace with string Bstr is a pointer to a array of character (which is equivalent to string).
The above mentioned is a C# code can be used with some modification in Vb.net too
Hope this helps :)