Escalating UAC privileges in C / C++ applications using Visual Studio


To set this linker option in the Visual Studio development environment

  1. Open the project’s Property Pages dialog box. For details, see How to: Open Project Property Pages.
  2. Expand the Configuration Properties node.
  3. Expand the Linker node.
  4. Select the Manifest File property page.
  5. Modify the Enable User Account Control (UAC), UAC Execution Level, and UAC Bypass UI Protection properties.

To set this linker option programmatically

Source: http://msdn.microsoft.com/en-us/library/bb384691.aspx

How User Account Control (UAC) Affects Your Application


There is a need for me recently to run applications with privileges for the registry hive and I came across an article on UAC by MSDN.  The image below depicts how UAC process flow works.

Article: http://msdn.microsoft.com/en-us/library/bb384608.aspx

Placing an image file in an executable in C


If you ever wanted to place an image file into the executable or store any resources in it, this post will be able to help you.  If you have previously read Builder & Stub | How to create your own builder and stub in C (using Resource), you will be able to understand this post easily.  We are using the similar method by placing the image in the resource data.  In this post, i am creating an application that extracts the image that has been placed in the resource data and place it in a file and execute the file.  Read the rest of this entry »

Reading and Writing registry in Windows using WinAPI


For those that are interested in contacting the windows registry via C, here’s a list of WinAPI functions that you need to know. Read the rest of this entry »