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.