Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?

C#
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/[^]
Posted

1 solution

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 . . .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900