Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
482 Beiträge
 
Delphi XE6 Professional
 
#1

AdjustTokenPrivileges on XE5

  Alt 1. Feb 2014, 16:22
Delphi-Version: XE5
Delphi-Quellcode:
var
  TokenPrivileges: TTokenPrivileges;
  Handle, ReturnLength: NativeUint; // For XE5, normally I'm using Cardinal

// ...........

Result := AdjustTokenPrivileges(Handle, False, TokenPrivileges, 0, PTokenPrivileges(nil)^, ReturnLength); // [dcc32 Error] MainFrm.pas(422): E2250 There is no overloaded version of 'AdjustTokenPrivileges' that can be called with these arguments
On 2010 is oke, on XE5 as above. Please advice.
  Mit Zitat antworten Zitat