(wince) Reboot 6410 programmatically / external program

Analyzer
Hi, 
Do you know how to reboot/restart mini6410 programmatically (c#) or by
calling external program. Will I find a example application written by
friendlyarm to restart board. (I saw somewhere such a thing)
Thank you,

Miguel
I hope this helps, the support for almost anything is terrible, so I'm glad
if some of this can help...

DWORD WATCHDOG;

int InitializeWDT()
{
    WATCHDOG = CreateFile(TEXT("WDT1:"),GENERIC_READ ||
GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,0);
    if WATCHDOG == INVALID_HANDLE_VALUE 
    {
       return 1;
    }
    else
    {
       return 0;
    }
}

void FeedWatchDog()
{
  byte BufferWDT = 1;
  DWORD nbw;
  nbw := 0;
  WriteFile(WATCHDOG,BufferWDT,1,nbw,nil);
}

void main()
{
  if (InitializeWDT()== 0)
  {
    DeviceIoControl(WATCHDOG,5,NULL,0,NULL,bReturn,bReturn,NULL);
    //The "DOG" waits Five seconds to be feeded, if not restarts the system
  }
  for(;;)
  {
     sleep(1000);
     FeedWatchDog();//Keeps Feeding the "dog", YOU MUST keep feeding the
//"dog", if something happens in the loop, the "dog" restarts the system

  } 
}

Hope this helps to anyone,

Miguel
//I made a mistake in the main function, sorry...

void main()
{
  if (InitializeWDT()== 0)
  {
    DeviceIoControl(WATCHDOG,5,NULL,0,NULL,bReturn,bReturn,NULL);
    //The "DOG" waits Five seconds to be feeded, if not restarts the system
    for(;;)
    {
       sleep(1000);
       FeedWatchDog();//Keeps Feeding the "dog", YOU MUST keep feeding the
  //"dog", if something happens in the loop, the "dog" restarts the system

    } 
  }
}