Ejemplo n.º 1
0
        public static void WinSqmAddToStream(int dataPointID, string stringData)
        {
            SqmStreamEntry entry = SqmStreamEntry.CreateStringSqmStreamEntry(stringData);

            SqmStreamEntry[] streamEntries = new SqmStreamEntry[] { entry };
            WinSqmAddToStream(HGLOBALSESSION, dataPointID, streamEntries.Length, streamEntries);
        }
Ejemplo n.º 2
0
        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);
        }