Programmatic access to UAC. Kinda.

by Matt 5. June 2007 05:28

I kinda like this web site. It offers a C++ source file with various functions to help in install time situations; functions like IsVista() and IsWow64(). And it also gives some functions to deal with User Account Control. GetElevationType(), IsElevated() and RunElevated() are going to be very useful.

The killer function, though is RunNonElevated(). This is a doozy.

Picture this - I run my installer. It needs to write to C:\Program Files, so gets elevated. Trying to be as nice as I can to my user, I offer them a chance to run my program at the end of the installer, as is common. Unfortunately, since the installer is now running elevated, my newly installed program will run elevated, which is not what I want.

So this function could be very useful. The downside is that Microsoft haven't actually provided any means of running a program non-elevated, so this function has to hack around it by injecting itself into the shell, which it knows is not elevated and getting explorer to spawn the process.

Is it just mean that sees the irony in having to inject code into one process to run another process securely?

Tags:

Vista

Comments (22) -

suv reviews
suv reviews
7/20/2011 10:22:13 PM #

Is it ok if I quote your article in my monthly newsletter? I would think this article suits my topic perfectly. Well ya, thanks for posting this article.

Reply

best hybrid cars 2011
best hybrid cars 2011
7/22/2011 4:52:37 AM #

I wonder if he cheated on her? I remember he cheated on his previous wife with JLO so it wouldn’t be surprising.

Reply

ipad features
ipad features
7/24/2011 5:10:28 AM #

Hi,what an excellent article this is,I found it on bing and I like it very much,I agree with what you have said, lots of things will be learned form your site,but I still have some questions with the last part,can you explain it for me ?I will appreciate your answer,and I will be back again!

Reply

getting study your write-up, I believe the details created are quite strong and interesting and need to agree within the most part along with your thoughts. <a href=\"www.floridatoday.com/.../section\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">melbourne cup live stream tips</a>

Reply

Mitzi Towers
Mitzi Towers United States
1/6/2016 2:10:05 PM #

Congrats! This is such a great website, I know it will translate well into book form. Which is AWESOME!

Reply

Brandon Penhallurick
Brandon Penhallurick United States
1/15/2016 8:55:37 AM #

Congrats! This is such a great website, I know it will translate well into book form. Which is AWESOME!

Reply

James Fly
James Fly United States
7/30/2016 3:52:29 AM #

This is such a great site come check out our new free Dating web site would wide fined your true love at http://youllfindlove.com/

Reply

Alicia Amarillas
Alicia Amarillas United States
8/25/2016 4:03:19 AM #

Nice informative blog. Hopefully you can also discuss some green home designs with nice architectural layouts

Reply

Ayako Newville
Ayako Newville United States
7/13/2017 5:32:49 AM #

Get an in-depth look at Logic Pro X. Dive deep into a vast array of tools for composing, recording, editing, mixing, and more.

Reply

Onie Corrington
Onie Corrington United States
9/14/2018 3:42:42 AM #

Generally I do not review post upon blogs, however <a href="http://google.coo"; target="_blank" >google.coo</a> would choose to claim that this specific review extremely required me personally to have a look from and also accomplish this! A person's way of composing might be surprised myself. Many thanks, quite great short article. lunch

Reply

Sherrill Colehour
Sherrill Colehour United States
9/22/2018 10:44:52 AM #

Usually I don't review post upon blog sites, however <a href="www.wattpad.com/634295386-paysafecard-pin-code-generator-free-pin-hack"; target="_blank" >Paysafecard free credits</a> would decide to declare that this particular write-up incredibly needed me personally to take a look from as well as accomplish this! An individual's method of writing may be astonished myself. Many thanks, quite nice short article. lunch

Reply

Pamela Sykes
Pamela Sykes United States
10/4/2018 8:56:28 AM #

How can you use a custom blog design if you are using ftp publishing for your blogger blog?. . How do I install the design?.

Reply

提升生意效能
提升生意效能 United States
10/8/2018 4:53:22 AM #

行為定向

Reply

有型
有型 United States
10/9/2018 7:54:16 AM #

添加多種油脂與精華,締造細嫩緊緻而有光澤的肌膚,全身都可使用的精華油。

Reply

醫學美容 免費 cosmetic.wiki
醫學美容 免費 cosmetic.wiki United States
10/12/2018 2:26:17 AM #

遮瑕-美妝知識大集合  UrCosme (@cosme TAIWAN) 美妝知識庫  提供所有網友最新最精準的「遮瑕」相關美妝知識,包含:使用流程、用法特性、選購建議、Q&A...等等的精彩內容,由UrCosme (@cosme TAIWAN) 提供。        

Reply

Imaad Buckner
Imaad Buckner United States
10/14/2018 5:03:00 AM #

I want to start a website for my Roller derby team, all we have is a myspace right now. How can I start a website that has a dot com, or html, etc, that I can design on my own, and keep up on my own so that we can actually have a website for fans to go to???? Thanks any and all help appreciated..

Reply

醫學美容 活膚 cosmetic.wiki
醫學美容 活膚 cosmetic.wiki United States
10/14/2018 8:23:19 PM #

玻尿酸改善眼周 慎選診所 @ 察爾斯大夫 美麗殿堂 Dr. Charles Meridien Palace :: 痞客邦 ::  玻尿酸改善眼周慎選診所 作者: 簡立宗  中時電子報 &amp;ndash; 2015年6月3日 工商時報【簡立宗】 最近網路上最紅火的年齡測試app,有些人因為被測出來是「未老先衰」而跳腳,這個ap      

Reply

BVLGARI 寶格麗 【女性香水】玫瑰花香女性淡香精 Rose Essentielle的商品介紹   BVLGARI 寶格麗,女性香水,玫瑰花香女性淡香精 Rose Essentielle       

Reply

韓線
韓線 United States
10/18/2018 12:49:00 PM #

豐盈泡沫締造柔軟的肌膚。高效精華的潔面泡沫,清潔皮膚的同時,從肌底打造更剔透亮白柔滑肌膚,提升美白功效。

Reply

醫學美容 減磅 cosmetic.wiki
醫學美容 減磅 cosmetic.wiki United States
10/20/2018 12:39:23 PM #

GUERLAIN 嬌蘭 【蘭鑽精萃再造系列】蘭鑽黃金生命力面膜乳的商品介紹   GUERLAIN 嬌蘭,蘭鑽精萃再造系列,蘭鑽黃金生命力面膜乳       

Reply

stella raee pics
stella raee pics United States
11/2/2018 5:58:33 PM #

I have been blogging since last month, my blog was indexed already in google but during the test i conducted, i search for a certain keyword related on my blog but it only shows the blog title and it directs me to the homepage not on the actual post. Need help!!!.

Reply

Roberto Di Matteo may not be a candidate to replace Andre Villas-Boas on a permanent basis but he has reinforced his status as Chelsea's FA Cup legend. Birmingham 0 Chelsea 2: AVB who? Roberto the Cup legend leads Blues revival

Reply

Add comment

biuquote
  • Comment
  • Preview
Loading

Rel=Me

Month List

RecentComments

Comment RSS