Index: /trunk/include/VBox/hgcmsvc.h
===================================================================
--- /trunk/include/VBox/hgcmsvc.h	(revision 29865)
+++ /trunk/include/VBox/hgcmsvc.h	(revision 29866)
@@ -239,4 +239,12 @@
         u.pointer.addr = pv;
         u.pointer.size = cb;
+    }
+
+    /** Set a const string value to an HGCM parameter structure */
+    void setString(const char *psz)
+    {
+        type = VBOX_HGCM_SVC_PARM_PTR;
+        u.pointer.addr = (void *)psz;
+        u.pointer.size = strlen(psz) + 1;
     }
 
