> How to create Run as Administrator option of windows OS in c code..
Such a thing requires a direct call to the windows API. Refer to the MSDN documents in the Microsoft site. You'll also need a signed security certificate. Also the feature will differ from one OS version to another. Refer to the MSDN documentation.
Also if the OS stops you from running it, means your application is doing something illegal and might cause problems with the default OS calls/management.
Are you sure you absolutely need the Administrative privileges?