I let the box boot until the error msg saying it couldnt connect or whatever..
Then I used visual studio to connect to the box.. attach to process (tv2client)... then kill all.
If i use remote process viewer then kill it .. it seems to reset the box, that above way doesnt.
Then i used the http interface to execute.
Here is my code...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace Devicetest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
TV2Engine_SetLED(TV2LED.Recording, TV2LEDmode.Blink);
TV2Engine_SetLED(TV2LED.IrReceive, TV2LEDmode.On);
TV2Engine_SetLED(TV2LED.On, TV2LEDmode.Blink);
TV2Engine_SetLED(TV2LED.Messages, TV2LEDmode.On);
TV2Engine_SetVolume(65535, false);
TV2Engine_PlayUISound(@"\Hard Disk\test.wav");
while (true)
{
}
}
public enum TV2LED : uint
{
Connected = 0,
HiDef = 4,
IrReceive = 5,
Max = 6,
Messages = 6,
On = 3,
Recording = 2,
Standby = 1
}
public enum TV2LEDmode : uint
{
Blink = 2,
Off = 0,
On = 1
}
[DllImport("TV2Engine.dll", CharSet=CharSet.Auto)]
public static extern bool TV2Engine_PlayUISound(string fileName);
[DllImport("TV2Engine.dll")]
private static extern void TV2Engine_SetLED(TV2LED led, TV2LEDmode mode);
[DllImport("TV2Engine.dll")]
private static extern void TV2Engine_SetVolume(int volume, [MarshalAs(UnmanagedType.U1)] bool mute);
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Mick