Will Windows 7 appear when an application needs administrator privileges?

What happens when I write an application that needs to be done “administered”?

How to write files on C:\Program Files- when the application tries to do this, what will happen? Will a message appear asking for the password from the user? Will there be an exception? Will the program be completed and the computer explode? All of the above?:)

On the other hand: are Windows 7 users logging in as administrators by default?

+5
source share
1 answer

, Windows Vista Windows 7 , , . Microsoft . - ​​ .

, . UAC , , . , , .

: Windows 7/Vista - , , , . , , ; API- - , GetLastError() ERROR_ACCESS_DENIED. , API , , , - API- Windows.

+7

All Articles