GetTestID(TESTTYPES TestType)
{
const CHAR GetTestIDAction[] = "gettestid";
+ const CHAR CommentProp[] = "&comment=";
DWORD DataLength;
PCHAR Data;
/* Build the full request string */
DataLength = sizeof(ActionProp) - 1 + sizeof(GetTestIDAction) - 1;
DataLength += strlen(AuthenticationRequestString) + strlen(SystemInfoRequestString);
+
+ if(AppOptions.Comment)
+ DataLength += sizeof(CommentProp) - 1 + strlen(AppOptions.Comment);
+
DataLength += sizeof(TestTypeProp) - 1;
switch(TestType)
strcat(Data, GetTestIDAction);
strcat(Data, AuthenticationRequestString);
strcat(Data, SystemInfoRequestString);
+
+ if(AppOptions.Comment)
+ {
+ strcat(Data, CommentProp);
+ strcat(Data, AppOptions.Comment);
+ }
+
strcat(Data, TestTypeProp);
switch(TestType)