Jump to content

[c#] Drag&Drop to Privileged window

G'day techies,

 

I'm working on a checksum application and i added a drag&drop function, this all worked fine up untill i requested the application to be elevated.

At this point drag&drop stopped working, this is because of windows message system blablabla, long story short: you can't drop&drop to a higher elevated application only to equal or lower ones.

 

I've tried it within the app.manifest <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> and then changing uiAccess to true, but this can only be done when the program is installed in program files,

or by some sort of certificate.

 

So could someone help me out here?

It can be 2 things:

or i have to request admin privileges for just 1 function and then remove them somehow, i have already tried this with PrincipalPermission only this gave me an error that it failed.

or i need to be able to enable uiAccess

 

Link to the project: https://github.com/victorheld/checksum

 

Sincerely,

 

Onno

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×