Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAll xls files in directory to csv Pin
pswierq14-Nov-09 13:19
pswierq14-Nov-09 13:19 
QuestionRe: All xls files in directory to csv Pin
David Crow14-Nov-09 17:17
David Crow14-Nov-09 17:17 
QuestionUAC question Pin
Peter Weyzen14-Nov-09 9:51
Peter Weyzen14-Nov-09 9:51 
AnswerRe: UAC question Pin
Randor 14-Nov-09 12:58
professional Randor 14-Nov-09 12:58 
GeneralRe: UAC question Pin
Peter Weyzen14-Nov-09 16:16
Peter Weyzen14-Nov-09 16:16 
GeneralRe: UAC question Pin
SNI14-Nov-09 18:14
SNI14-Nov-09 18:14 
GeneralRe: UAC question Pin
Peter Weyzen14-Nov-09 18:33
Peter Weyzen14-Nov-09 18:33 
GeneralRe: UAC question Pin
Randor 14-Nov-09 18:43
professional Randor 14-Nov-09 18:43 
Peter Weyzen wrote:
I looked at autoElevate -- Microsoft looks quite restrictive on that, as most of their own apps aren't allowed to use it.


As it should be. Smile | :)

Peter Weyzen wrote:
Is my only recourse here to tell the user they "can't have it" unless they elevate it or disable UAC?


Correct. In my opinion the UAC changes are just as much a cultural change as a functional change. In my opinion both Windows users and developers have really bad habits. I have never hear any Unix/Linux develpers complain because they don't automatically have root access.

Peter Weyzen wrote:
Are there any runtime API's which I can call to request elevation of the process? Or, is it the case that the security mode cannot change once the app has started?


A process with a restricted token cannot impersonate a higher access level. You will have to deal with the UAC prompts if you continue to use functions which require administrative access. You could however use an elevated DCOM component or an out-of-process COM server with broker functions.

Some documentation:
Redesign for UAC Compatibility[^]
How Access Tokens Work[^]
The COM Elevation Moniker[^]

Best Wishes,
-David Delaune
GeneralRe: UAC question Pin
Peter Weyzen14-Nov-09 22:10
Peter Weyzen14-Nov-09 22:10 
QuestionTrapping the Active Page in a CPropertySheet in MFC using CStrings Pin
Larry Mills Sr14-Nov-09 7:15
Larry Mills Sr14-Nov-09 7:15 
AnswerRe: Trapping the Active Page in a CPropertySheet in MFC using CStrings Pin
«_Superman_»14-Nov-09 8:16
professional«_Superman_»14-Nov-09 8:16 
GeneralRe: Trapping the Active Page in a CPropertySheet in MFC using CStrings Pin
Larry Mills Sr14-Nov-09 8:39
Larry Mills Sr14-Nov-09 8:39 
GeneralRe: Trapping the Active Page in a CPropertySheet in MFC using CStrings Pin
«_Superman_»14-Nov-09 9:20
professional«_Superman_»14-Nov-09 9:20 
GeneralRe: Trapping the Active Page in a CPropertySheet in MFC using CStrings Pin
Peter Weyzen14-Nov-09 9:56
Peter Weyzen14-Nov-09 9:56 
GeneralRe: Trapping the Active Page in a CPropertySheet in MFC using CStrings Pin
Larry Mills Sr15-Nov-09 6:33
Larry Mills Sr15-Nov-09 6:33 
QuestionSearching table with log n complexity Pin
Cowork14-Nov-09 7:09
Cowork14-Nov-09 7:09 
AnswerRe: Searching table with log n complexity Pin
N a v a n e e t h14-Nov-09 8:17
N a v a n e e t h14-Nov-09 8:17 
GeneralRe: Searching table with log n complexity Pin
Cowork14-Nov-09 12:21
Cowork14-Nov-09 12:21 
GeneralRe: Searching table with log n complexity Pin
N a v a n e e t h14-Nov-09 17:37
N a v a n e e t h14-Nov-09 17:37 
QuestionHow my parent window class could be notified of its child's windows movement? Pin
A&Ms14-Nov-09 4:29
A&Ms14-Nov-09 4:29 
AnswerRe: How my parent window class could be notified of its child's windows movement? Pin
BobInNJ14-Nov-09 5:49
BobInNJ14-Nov-09 5:49 
GeneralRe: How my parent window class could be notified of its child's windows movement? Pin
A&Ms14-Nov-09 16:39
A&Ms14-Nov-09 16:39 
GeneralRe: How my parent window class could be notified of its child's windows movement? Pin
BobInNJ19-Nov-09 5:38
BobInNJ19-Nov-09 5:38 
Questionwhy execution time of program varies with identical initial settings? Pin
jianzhuhuai14-Nov-09 1:23
jianzhuhuai14-Nov-09 1:23 
AnswerRe: why execution time of program varies with identical initial settings? Pin
LunaticFringe14-Nov-09 2:41
LunaticFringe14-Nov-09 2:41 

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.