AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

AdjustTokenPrivileges on XE5

Ein Thema von WojTec · begonnen am 1. Feb 2014 · letzter Beitrag vom 2. Feb 2014
Antwort Antwort
WojTec

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

AdjustTokenPrivileges on XE5

  Alt 1. Feb 2014, 15: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
Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#2

AW: AdjustTokenPrivileges on XE5

  Alt 2. Feb 2014, 00:01
The answer is just a CTRL+[Left mouse click] away from you ...
or AdjustTokenPrivileges( {inside the round brackets press SHIFT+CTRL+SPACE} ) ,
or move the mouse pointer over AdjustTokenPrivileges and watch the funny symbols appearing on the screen,
or MSDN-Library durchsuchenAdjustTokenPrivileges,
or maybe a lot more ...

(my delphi is talking to me while typing [CnPack, IDE FixPack] and presenting me also the parameters and types - ok, I keep my eyes open to watch the screen)
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: AdjustTokenPrivileges on XE5

  Alt 2. Feb 2014, 15:02
Delphi-Quellcode:
Handle: THandle;
ReturnLength: Cardinal;
This newer Delphis are non logical as olders...
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:36 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz