Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi.

I'm now making my own editor(named it MET below) using open source of Notepad ++.

For protection, I logged on Users's privilege and ran MET with "Run As Administrator" on Track Popup Menu of MET in Windows 7. Whenever I dragged files from explorer, I can not drop down files to MET because mouse cursor becomes "Unavailable" shape.

So I did same at NPP as a result NPP was the same.

But whenever I ran NPP without "Run As Adminstrator" on User's privilege, I can drag and drop files to NPP and MET is the same.

What's wrong?

Is NPP right or is it errors? If it is error, how can I fix it?

Thank you.
Posted
Updated 24-Oct-13 0:09am
v2
Comments
Sergey Alexandrovich Kryukov 23-Oct-13 0:33am    
How is that related to C++/CLI? From what you are writing here, it looks like this is not a programming question, just about using of software. Even if you use the editor for writing code, the question is off-topic.
—SA
WuRunZhe 24-Oct-13 6:05am    
Oh, Sorrry.
I've made mistakes. According to my questions, you said right. I'll improve my question. Thank you.
Richard MacCutchan 24-Oct-13 6:25am    
I don't see any improvement in your question. There is nothing in there that shows what your code is trying to do.

This isn't an error in your code: it's a Windows design feature.
A lower privilege task cannot drop onto higher privilege tasks from Vista on. This is by design: http://blogs.msdn.com/b/patricka/archive/2010/01/28/q-why-doesn-t-drag-and-drop-work-when-my-application-is-running-elevated-a-mandatory-integrity-control-and-uipi.aspx[^]
 
Share this answer
 
Comments
WuRunZhe 24-Oct-13 8:26am    
Ya, thank you.

Then, how can I access higher privilege tasks from lower privilege? Is it possible?
OriginalGriff 24-Oct-13 8:34am    
You can't unless you elevate the lower task - this is deliberate, to prevent a low privilege from accessing potential elevation of privilege attacks, and getting access to higher privilege items than it should through a "back door".

This may sound like a silly question, but since when did a text editor need admin privileges anyway? :laugh:
WuRunZhe 24-Oct-13 8:39am    
Wahaha..... What a silly boy.
Cann't you access higher privilege tasks from lower privilege?

If you apologize, I could teach you how to access....
Well, I've solved this problem myself. Thank you for your replies.
 
Share this answer
 

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



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