Vista Late Binding Security Problem
- From: Yusuf Incekara <donteventhink@xxxxxxxx>
- Date: Thu, 12 Jun 2008 09:53:12 +0300
I am using an old 3'rd party dll written by using Borland C++.
It is vital for my application and there 's no newer version.
When it 's fired it is writing some files to Windows\System32 folder.
I am using late binding, loading this dll and invoke it.
It works fine on XP. It also works fine on Vista when UAC is turned
off. But if UAC is turned on it fails. Returned error code is
insufficient privileges ...
It is somehow possible me to elevate this process or give appropriate
rights before i invoke ? And if this is possible i also don 't want
any user interaction.
IntPtr pDll = LoadLibrary(path + @"\" + "xxx.dll");
IntPtr pAddressOfFunctionToCall = GetProcAddress(pDll, "methodindll");
MD md =
(MD)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall,
typeof(MD));
int anint=3;
short result = md(anint );
.
- Follow-Ups:
- Re: Vista Late Binding Security Problem
- From: Mr. Arnold
- Re: Vista Late Binding Security Problem
- From: Yusuf Incekara
- Re: Vista Late Binding Security Problem
- Prev by Date: RE: Visual Studio Unit Test in large Solution - Layout
- Next by Date: Re: Creating and Deleting files from Virtual Directory
- Previous by thread: How to set ScaleTransform.CenterX in code?
- Next by thread: Re: Vista Late Binding Security Problem
- Index(es):
Relevant Pages
|