Vista Late Binding Security Problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 );
.



Relevant Pages

  • Re: No wonder Borland Technical Documentation stinks
    ... invoke it, it takes about a minute for the Help browser window to open. ... During this time the IDE is completely unresponsive, ... The best way to bug Borland about bugs. ...
    (borland.public.delphi.non-technical)
  • Re: Beginner Starting Borland C
    ... Gerry wrote: ... >Could some kind person please tell me how to invoke the program? ... If you asked in a Borland C group, ...
    (alt.comp.lang.borland-delphi)
  • Beginner Starting Borland C
    ... I have Borland C++ on 11 diskettes from years ago - I never used them. ... tell me how to invoke the program? ... Gerry ...
    (alt.comp.lang.borland-delphi)