Interop.AccessibilityCplAdminL ... [英] Interop.AccessibilityCplAdminL...
问题描述
我找到了这个COM库,并且,我试图找出如何以编程方式与它进行交互。有修复和修复DLL的工具,但是,我认为这不会解决理解图书馆提供的问题。
我觉得奇怪的是我试图访问名为ApplyToLogonDesktop()的方法,但是有一些错误表明无法访问该方法。我不知道传递给这种方法的参数是什么,这似乎没有记录。
我在哪里可以找到文档和示例?
使用系统;
使用 System.Collections.Generic;
使用 System.Linq;
使用 System.Text;
使用 AccessibilityCplAdminLib;
命名空间测试
{
class 程序
{
静态 void Main( string [] args)
{
AccessibilityCplAdmin a = new AccessibilityCplAdmin();
a.ApplyToLogonDesktop( logon, 0 跨度>);
Console.ReadKey();
}
}
}
参考
1. < a href =http://www.advancedpctweaker.com/> http://www.advancedpctweaker.com/ [ ^ ]
错误
未处理的异常:System.UnauthorizedAccessException:访问被拒绝。 (例如:来自HRESULT的
:来自0x80070005(E_ACCESSDENIED))
在AccessibilityCplAdminLib.IAccessibilityCplAdmin.ApplyToLogonDesktop(字符串
配置,Int32 fHardwareButtonLaunchSave)
在test.Program.Main(String [] args)中的c:\users \slyth_000 \documents \ visual st
udio 2010 \Projects\Test \测试\Program.cs:第14行
按任意键继续。 。
I found this COM library, and, I am trying to figure out how I can interact programmatically with it. There are tools to repair and fix DLLs, however, I don't think this will resolve the problem of understanding what the library provides.
What seems weird to me is that I am trying to access a methods named ApplyToLogonDesktop(), however there is some error indicating that the method cannot be accessed. I do not know what parameters to pass to this method either, this does not seem to be documented.
Where do I find documentation and example please?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AccessibilityCplAdminLib;
namespace Test
{
class Program
{
static void Main(string[] args)
{
AccessibilityCplAdmin a = new AccessibilityCplAdmin();
a.ApplyToLogonDesktop("logon", 0);
Console.ReadKey();
}
}
}
References
1. http://www.advancedpctweaker.com/[^]
Error
Unhandled Exception: System.UnauthorizedAccessException: Access is denied. (Exce
ption from HRESULT: 0x80070005 (E_ACCESSDENIED))
at AccessibilityCplAdminLib.IAccessibilityCplAdmin.ApplyToLogonDesktop(String
configuration, Int32 fHardwareButtonLaunchSave)
at Test.Program.Main(String[] args) in c:\users\slyth_000\documents\visual st
udio 2010\Projects\Test\Test\Program.cs:line 14
Press any key to continue . . .
这篇关于Interop.AccessibilityCplAdminL ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!