Click here to Skip to main content
15,909,645 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerQuickest/Best way to get lots of data into SQL/Acess etc... Pin
DrTip7-Jan-08 22:31
DrTip7-Jan-08 22:31 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... Pin
Dave Kreskowiak10-Jan-08 8:53
mveDave Kreskowiak10-Jan-08 8:53 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... Pin
DrTip10-Jan-08 10:04
DrTip10-Jan-08 10:04 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... [modified] Pin
Dave Kreskowiak10-Jan-08 10:11
mveDave Kreskowiak10-Jan-08 10:11 
GeneralRunning .NET applications on Vista without admin privileges [modified] Pin
Patrick Etc.7-Jan-08 9:51
Patrick Etc.7-Jan-08 9:51 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Mark Salsbery7-Jan-08 10:25
Mark Salsbery7-Jan-08 10:25 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Patrick Etc.7-Jan-08 11:13
Patrick Etc.7-Jan-08 11:13 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Mike Dimmick7-Jan-08 11:17
Mike Dimmick7-Jan-08 11:17 
Don't think of what to avoid, think of what the minimum you should do is. It's safe to write to the user's profile. That's pretty much it. Anything that changes the system configuration is likely to fail for a standard/non-elevated user.

No APIs force elevated privileges. UAC will automatically apply elevation if it thinks that you're a legacy setup program (if your program name or resources contain the words 'setup' or 'install') or if there's a compatibility shim detecting the program that requires it to run elevated. Otherwise, your program does not prompt, and runs in a 'virtualized' environment, where writes to certain registry keys and protected disk locations are redirected to shadow folders under the user profile.

A manifest is necessary to tell Windows Vista that you are aware of the presence of UAC. If you never want it to prompt, set the requestedExecutionLevel to asInvoker. This means 'never ask for administrative rights even if the user is an admin'. The other available settings are requireAdministrator, which always prompts (for confirmation for administrators, for admin credentials for non-admins), and highestAvailable, which prompts administrators for confirmation but runs without admin privileges, without prompting, for non-administrators. The latter is a bit of a compromise and you're recommended to strip the administrative functions out into a separate program.

As soon as you install a manifest containing one of these settings, Windows Vista will disable the legacy redirection. You'll then get exceptions as appropriate as you use APIs for which you don't have permission.

Another simple way to test is to run your program under Windows XP as a standard user. That'll blow up all over the place.

The Windows security model is so much more sophisticated than a simple admins can/non-admins can't system. Most of Windows security is based on Access Control Lists, which define exactly what different security principals (users or groups) can or can't do. In addition there are a separate set of privileges which are again assigned to users or groups; these privileges largely allow you to override the ACLs (for example, the ability to change the ACL is normally a permission in the ACL, but the owner of the object can overwrite it even if this permission is denied to them in the ACL; administrators also have the right to Take Ownership of the object, then they can write to the ACL).


DoEvents: Generating unexpected recursion since 1991

GeneralRe: Running .NET applications on Vista without admin privileges Pin
Patrick Etc.8-Jan-08 8:08
Patrick Etc.8-Jan-08 8:08 
QuestionUse of .Net 2.0 class in MSVS 2003 project Pin
boemie7-Jan-08 4:36
boemie7-Jan-08 4:36 
GeneralRe: Use of .Net 2.0 class in MSVS 2003 project Pin
Luc Pattyn7-Jan-08 6:44
sitebuilderLuc Pattyn7-Jan-08 6:44 
GeneralRe: Use of .Net 2.0 class in MSVS 2003 project Pin
boemie7-Jan-08 19:49
boemie7-Jan-08 19:49 
GeneralApplication/Configuration Data Pin
Dave Moor (the real one)7-Jan-08 4:21
Dave Moor (the real one)7-Jan-08 4:21 
GeneralRe: Application/Configuration Data Pin
Mark Salsbery7-Jan-08 9:38
Mark Salsbery7-Jan-08 9:38 
GeneralBackward Compatibility in Visual Studio .NET 2003 Pin
Ashraf Tirawi6-Jan-08 23:40
Ashraf Tirawi6-Jan-08 23:40 
QuestionHow to copy a reference type ? Pin
devboycpp6-Jan-08 21:15
devboycpp6-Jan-08 21:15 
AnswerRe: How to copy a reference type ? Pin
Urs Enzler7-Jan-08 3:08
Urs Enzler7-Jan-08 3:08 
GeneralThreading in c# Pin
Prabhat0036-Jan-08 17:36
Prabhat0036-Jan-08 17:36 
GeneralRe: Threading in c# Pin
Steppo7-Jan-08 0:52
Steppo7-Jan-08 0:52 
GeneralRe: Threading in c# Pin
Prabhat0037-Jan-08 17:42
Prabhat0037-Jan-08 17:42 
GeneralRe: Threading in c# Pin
Luc Pattyn7-Jan-08 18:04
sitebuilderLuc Pattyn7-Jan-08 18:04 
GeneralRe: Threading in c# Pin
Prabhat0037-Jan-08 18:37
Prabhat0037-Jan-08 18:37 
GeneralRe: Threading in c# Pin
Luc Pattyn8-Jan-08 1:58
sitebuilderLuc Pattyn8-Jan-08 1:58 
GeneralProblem in uploading files using Mtom, Streamed transfered Pin
PavanPT5-Jan-08 14:29
PavanPT5-Jan-08 14:29 
GeneralRe: Problem in uploading files using Mtom, Streamed transfered Pin
Paul Conrad6-Jan-08 10:10
professionalPaul Conrad6-Jan-08 10:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.