Einzelnen Beitrag anzeigen

Fridolin Walther

Registriert seit: 11. Mai 2008
Ort: Kühlungsborn
446 Beiträge
 
Delphi 2009 Professional
 
#7

Re: SHGetFolderPath -> TOKEN_DEFAULTUSER -> Undef. Bez

  Alt 24. Jun 2009, 22:05
Zitat von toms:
Delphi-Quellcode:
const
  TOKEN_DEFAULTUSER = $FFFF;
Wenn dann schon
Delphi-Quellcode:
const
  TOKEN_DEFAULTUSER = $FFFFFFFF;
Da hToken als THandle (-> DWORD) übergeben wird, würde bei Dir dann aus dem Word $FFFF ein $0000FFFF werden, was nicht -1 ist. Kannst es gerne auch kurz selbst nachprüfen .
Fridolin Walther
"While Mr. Kim, by virtue of youth and naiveté, has fallen prey to the inexplicable need for human contact, let me step in and assure you that my research will go on uninterrupted, and that social relationships will continue to baffle and repulse me."
  Mit Zitat antworten Zitat