예제 #1
0
 public static void WinSqmAddToStream(uint dataPointID, string stringData)
 {
     WinSQMWrapper.SqmStreamEntry[] streamEntries = new WinSQMWrapper.SqmStreamEntry[1]
     {
         WinSQMWrapper.SqmStreamEntry.CreateStringSqmStreamEntry(stringData)
     };
     WinSQMWrapper.WinSqmAddToStream(WinSQMWrapper.HGLOBALSESSION, dataPointID, streamEntries.Length, streamEntries);
 }
예제 #2
0
 public static void WinSqmAddToStream(uint dataPointID, string stringData, uint numericalData)
 {
     WinSQMWrapper.SqmStreamEntry[] streamEntries = new WinSQMWrapper.SqmStreamEntry[2]
     {
         WinSQMWrapper.SqmStreamEntry.CreateStringSqmStreamEntry(stringData),
         WinSQMWrapper.SqmStreamEntry.CreateStringSqmStreamEntry(numericalData.ToString((IFormatProvider)CultureInfo.InvariantCulture))
     };
     WinSQMWrapper.WinSqmAddToStream(WinSQMWrapper.HGLOBALSESSION, dataPointID, streamEntries.Length, streamEntries);
 }