Skip to content

DeviceControl Class

wtv-411 edited this page Mar 12, 2023 · 1 revision

Documentation for DeviceControl class from MSN TV TVShell ActiveX control.

Original DLL: DeviceControl.DLL (in NK.BIN XIP)

Methods

Reboot()

void Reboot();

Arguments: None

Type: void

Usage: Undocumented.

PlaySound(name, [mode, volumePercent])

void PlaySound(
                [in] BSTR __MIDL_0055, 
                [in, optional, defaultvalue(1)] int mode, 
                [in, optional, defaultvalue(100)] int volumePercent);

Arguments:

  • name: Name of local sound to play. Sounds are loaded from the windows folder in the MSN TV's CompressFS web filesystem.
  • mode: Flag value that specifies how the sound is played. (ADD INFO ON FLAGS)
  • volumePercent: Likely is meant to set the volume the sound plays at. This parameter isn't used in the MSN TV 2 application code.

Returns: Nothing

Description: Plays a system sound from a given name

StopPlayingSound()

void StopPlayingSound();

Arguments: None

Returns: Nothing

Usage: Undocumented.

SetClock(hh, mm, ss, mo, dd, yyyy)

void SetClock(
                [in] long hh, 
                [in] long mm, 
                [in] long ss, 
                [in] long mo, 
                [in] long dd, 
                [in] long yyyy);

Arguments:

  • hh: Hour value in 24-hour format
  • mm: Minute value
  • ss: Seconds value
  • mo: Numerical value of the month from the Gregorian calendar
  • dd: Day value
  • yyyy: Year value

Returns: Nothing

Usage: Sets the time and date in UTC on the MSN TV 2 box. This is meant to be executed from an Anduril service script sent to the box when it is logging in, with the values set by the server.

SetTimeZone(standardOffset, standardName, daylightOffset, daylightName)

[id(0x0000000a)]
void SetTimeZone(
                [in] long standardOffset, 
                [in] BSTR standardName, 
                [in] long daylightOffset, 
                [in] BSTR daylightName);

Arguments:

  • standardOffset: Integer. Standard time zone offset in minutes
  • standardName: String. Standard time zone name
  • daylightOffset: Integer. Daylight time zone offset in minutes
  • daylightName: String. Standard time zone name

Returns: Nothing

Usage: Sets the time zone on the MSN TV 2 box. This is meant to be executed from an Anduril service script sent to the box when logging in, with values determined from the user's preferences.

PowerOff()

void PowerOff();

Arguments: None

Returns: Nothing

Usage: Undocumented.

Clear()

void Clear();

Arguments: None

Returns: Nothing

Usage: Undocumented.

Save()

void Save();

Arguments: None

Returns: Nothing

Usage: Saves some settings (Message LED light) as a file on the box (\hd3\Shell\DeviceControl\Device.dat). Undocumented.

Restore()

void Restore();

Arguments: None

Returns: Nothing

Usage: Undocumented.

SetStorageBase(baseName)

void SetStorageBase([in] BSTR BaseName);

Arguments:

  • baseName: Unknown

Returns: Nothing

Usage: Undocumented.

TODO

Properties

TODO