public static void WinSqmAddToStream(int dataPointID, string stringData) { SqmStreamEntry entry = SqmStreamEntry.CreateStringSqmStreamEntry(stringData); SqmStreamEntry[] streamEntries = new SqmStreamEntry[] { entry }; WinSqmAddToStream(HGLOBALSESSION, dataPointID, streamEntries.Length, streamEntries); }
public static void WinSqmAddToStream(int dataPointID, string stringData, int numericalData) { SqmStreamEntry entry = SqmStreamEntry.CreateStringSqmStreamEntry(stringData); SqmStreamEntry entry2 = SqmStreamEntry.CreateStringSqmStreamEntry(numericalData.ToString(CultureInfo.InvariantCulture)); SqmStreamEntry[] streamEntries = new SqmStreamEntry[] { entry, entry2 }; WinSqmAddToStream(HGLOBALSESSION, dataPointID, streamEntries.Length, streamEntries); }