From: K. G. <kim...@gm...> - 2008-09-02 20:15:36
|
Hi Divye, On Tue, Sep 2, 2008 at 20:41, Divye Kapoor <div...@gm...> wrote: > Hello all, > I've just added a dispatch_table example to the repository. Please have a > look at the code and suggest any improvements. > > While testing this example, I came across an oddity. I am using the same > functions as the http_client example. However, when I try to run > dispatch_table.exe, I need to provide it elevated privileges on Vista. The > same is not needed for http_client.exe. Why so? Any ideas? The .exe name is probably triggering one of the UAC heuristics; the OS checks the filename of every launched executable, looking for keywords that give it away as an installer. Apparently "patch" is one of the trigger words [1], so "dis*patch*_table.exe" is incorrectly classified as requiring elevation. Best bet is probably to change the name of the .cpp file and/or .exe. The only alternative I know of is to add a UAC manifest either embedded or side-by-side, but that complicates build and deployment significantly, compared to the current... - Kim [1] http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1613234&SiteID=1 |