2 using System.Collections.Generic;
7 using System.Runtime.InteropServices;
17 object DOFLocker =
new object();
28 DOFType = Type.GetTypeFromProgID(
"DirectOutput.ComObject",
true);
34 throw new Exception(
"Could not find the DirectOutput.ComObject. Please check if the DirectOutputComObject is registered.", E);
40 DOF = Activator.CreateInstance(DOFType);
46 throw new Exception(
"Could not create a instance of the DirectOutput framework. " + E.Message);
78 return (
string)DOFType.InvokeMember(
"GetVersion", BindingFlags.InvokeMethod, null, DOF, null);
90 return (
string)DOFType.InvokeMember(
"GetDllPath", BindingFlags.InvokeMethod, null, DOF, null);
118 DOFType.InvokeMember(
"Finish", BindingFlags.InvokeMethod, null, DOF, null);
130 object[] Args =
new object[] { TableElementTypeChar, Number, Value };
131 DOFType.InvokeMember(
"UpdateTableElement", BindingFlags.InvokeMethod, null, DOF, Args);
142 object[] Args =
new object[] { TableElementName, Value };
143 DOFType.InvokeMember(
"UpdateNamedTableElement", BindingFlags.InvokeMethod, null, DOF, Args);
154 object[] Args =
new object[] { TableElementName, 1 };
155 DOFType.InvokeMember(
"UpdateNamedTableElement", BindingFlags.InvokeMethod, null, DOF, Args);
156 Args =
new object[] { TableElementName, 0 };
157 DOFType.InvokeMember(
"UpdateNamedTableElement", BindingFlags.InvokeMethod, null, DOF, Args);
170 object[] Args =
new object[] {
"PinballX",
"",
"PinballX" };
171 DOFType.InvokeMember(
"Init", BindingFlags.InvokeMethod, null, DOF, Args);
188 return (
string[])DOFType.InvokeMember(
"GetConfiguredTableElmentDescriptors", BindingFlags.InvokeMethod, null, DOF, null);
190 return new string[0];
202 return (
string)DOFType.InvokeMember(
"TableMappingFileName", BindingFlags.InvokeMethod, null, DOF, null);
void SignalNamedTableElement(string TableElementName)
string GetTableMappingFilename()
void UpdateTableElement(string TableElementTypeChar, int Number, int Value)
void UpdateNamedTableElement(string TableElementName, int Value)
string[] GetConfiguredTableElmentDescriptors()