It's quite easy, though I don't know how they are in defined in HLSL... It's the following way:

typedef struct NameOfTheStruct
{
int aMemberOfTheStruct
char* aCharArrayPointerOfTheStruct
float WhateverOtherMembers you want
} NameOfTheStruct;


Always learn from history, to be sure you make the same mistakes again...