Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to register an ActiveX ocx file Pin
rahul.kulshreshtha9-Mar-10 20:29
rahul.kulshreshtha9-Mar-10 20:29 
GeneralRe: How to register an ActiveX ocx file Pin
«_Superman_»9-Mar-10 20:28
professional«_Superman_»9-Mar-10 20:28 
GeneralRe: How to register an ActiveX ocx file Pin
rahul.kulshreshtha9-Mar-10 21:05
rahul.kulshreshtha9-Mar-10 21:05 
GeneralRe: How to register an ActiveX ocx file Pin
rahul.kulshreshtha9-Mar-10 21:22
rahul.kulshreshtha9-Mar-10 21:22 
AnswerRe: How to register an ActiveX ocx file Pin
Rajesh R Subramanian9-Mar-10 20:26
professionalRajesh R Subramanian9-Mar-10 20:26 
QuestionRe: How to register an ActiveX ocx file Pin
rahul.kulshreshtha9-Mar-10 21:15
rahul.kulshreshtha9-Mar-10 21:15 
AnswerRe: How to register an ActiveX ocx file Pin
Rajesh R Subramanian9-Mar-10 21:59
professionalRajesh R Subramanian9-Mar-10 21:59 
GeneralRe: How to register an ActiveX ocx file Pin
rahul.kulshreshtha10-Mar-10 21:56
rahul.kulshreshtha10-Mar-10 21:56 
Thanks Rajesh,
I studied that example and I used ShellExecuteEx() API and that worked. But still I am surprised why MS does not have UAC at statement level.. they are setting access level at process level. ShellExecuteEx delegate execution to Shell extensions. There may be requirements like "copying some file to restricted area" then how we can handle that only read/write should have a Elevated access and other parts of code should run as a limited access.

After reading Riding the Vista UAC elevator, up and down[^], I found that to change access level, developer was again restarting the application with different verbs in function "RunMyself" and hence changing the access level of whole process. But this can not be a practical scenario because practically we don't want to restart application again and again while we were in middle of some process. For example, I may want to read some registry values from HKLM from a non-admin account. So what can be the solution, I can not use ShellExecuteEx or "runas" verb here. Also I don't want to restart the exe/process in admin mode because other threads may be doing some other work. Please reply me if you know any way for this. I am hungry for more & more knowledge.

Anyways! my work was done in Win7. Now I am going to check if it works for a non-admin user in xp.
GeneralRe: How to register an ActiveX ocx file Pin
rahul.kulshreshtha12-Mar-10 1:58
rahul.kulshreshtha12-Mar-10 1:58 
GeneralRe: How to register an ActiveX ocx file Pin
Rajesh R Subramanian12-Mar-10 5:41
professionalRajesh R Subramanian12-Mar-10 5:41 
AnswerRe: How to register an ActiveX ocx file Pin
Steve Thresher10-Mar-10 2:32
Steve Thresher10-Mar-10 2:32 
Questionwinsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo989-Mar-10 20:07
wk_leo989-Mar-10 20:07 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
KarstenK9-Mar-10 21:05
mveKarstenK9-Mar-10 21:05 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Moak9-Mar-10 22:47
Moak9-Mar-10 22:47 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo9814-Mar-10 5:50
wk_leo9814-Mar-10 5:50 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Moak14-Mar-10 5:59
Moak14-Mar-10 5:59 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo9815-Mar-10 4:22
wk_leo9815-Mar-10 4:22 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo9817-Mar-10 4:11
wk_leo9817-Mar-10 4:11 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Spawn@Melmac10-Mar-10 6:32
Spawn@Melmac10-Mar-10 6:32 
Questionopen application in hidden mode Pin
JM22519-Mar-10 19:53
JM22519-Mar-10 19:53 
AnswerRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:09
professional«_Superman_»9-Mar-10 20:09 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:18
JM22519-Mar-10 20:18 
GeneralRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:22
professional«_Superman_»9-Mar-10 20:22 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:24
JM22519-Mar-10 20:24 
GeneralRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:32
professional«_Superman_»9-Mar-10 20:32 

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.