"Darshan Tilak" <darshan_tilak@xxxxxx> wrote in message
news:e8JiZkaMIHA.5300@xxxxxx
Quote:
> Hi,
>
> I have written an application (win32 exe) that calls GetActiveObject() to
> get an object of Microsoft Excel. I use a batch file to launch this exe.
> This worked fine on XP, but the call returns a failure when used on
> Windows Vista. I found some answers for the same that suggest to elevate
> the process integrity level.
>
> So I have the following questions:
> -- How to elevate a processs integrity level? (where can i find the
> relevent information?)
> -- Will I have to change my application code to achieve this?
> -- Can a not simply make changes to the batch file, that calls the exe, to
> elevate the process integrity level?
>
>
> (I hope this is the right forum to ask this question. It will be really
> helpful if anyone can point me in the right direction.)
http://msdn2.microsoft.com/en-us/library/bb625964.aspx
I'm not sure that integrity levels are your problem though unless you are
running the batch file as another user or you are running it as a scheduled
task.
http://blogs.msdn.com/michael_howard...ows-vista.aspx
The above book is pretty good at explaining the basics, but there are many
details left out...
-Pete