@@ -7,28 +7,34 @@ public class DriverHelper
77{
88 public static int InstallDriverProxyStub ( bool emulated )
99 {
10- return emulated ? Install00ProxyStub ( ) : InstallProxyStub ( ) ;
10+ return emulated ? Methods00 . InstallProxyStub ( ) : Methods . InstallProxyStub ( ) ;
1111 }
1212
1313 public static int UninstallDriverProxyStub ( bool emulated )
1414 {
15- return emulated ? Uninstall00ProxyStub ( ) : UninstallProxyStub ( ) ;
15+ return emulated ? Methods00 . UninstallProxyStub ( ) : Methods . UninstallProxyStub ( ) ;
1616 }
1717
18- [ DllImport ( "driver_Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
19- public static extern int InstallProxyStub ( ) ;
20-
21- [ DllImport ( "driver_Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
22- public static extern int UninstallProxyStub ( ) ;
23-
24- [ DllImport ( "driver_00Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
25- public static extern int Install00ProxyStub ( ) ;
26-
27- [ DllImport ( "driver_00Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
28- public static extern int Uninstall00ProxyStub ( ) ;
29-
3018 [ DllImport ( "oleaut32.dll" , PreserveSig = false ) ]
3119 public static extern void GetActiveObject ( ref Guid rclsid , IntPtr pvReserved ,
3220 [ MarshalAs ( UnmanagedType . IUnknown ) ] out object ppunk
3321 ) ;
22+
23+ internal static class Methods
24+ {
25+ [ DllImport ( "driver_Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
26+ public static extern int InstallProxyStub ( ) ;
27+
28+ [ DllImport ( "driver_Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
29+ public static extern int UninstallProxyStub ( ) ;
30+ }
31+
32+ internal static class Methods00
33+ {
34+ [ DllImport ( "driver_00Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
35+ public static extern int InstallProxyStub ( ) ;
36+
37+ [ DllImport ( "driver_00Amethyst.dll" , CallingConvention = CallingConvention . Cdecl ) ]
38+ public static extern int UninstallProxyStub ( ) ;
39+ }
3440}
0 commit comments