Einzelnen Beitrag anzeigen

t.roller
(Gast)

n/a Beiträge
 
#11

AW: Problem mit GetProcessAffinityMask [wie verwenden?]

  Alt 26. Sep 2017, 22:28
Delphi's Winapi.Windows unit:

function GetProcessAffinityMask(hProcess: THandle;
var lpProcessAffinityMask, lpSystemAffinityMask: DWORD_PTR): BOOL; stdcall;

DWORD and DWORD_PTR are different data types. DWORD_PTR is not a "pointer to a DWORD", it is actually a "pointer-sized DWORD" (4 bytes on a 32bit system, 8 bytes on a 64bit system). Whereas DWORD is always 4 bytes on both 32bit and 64bit systems. Microsoft uses the P prefix to indicate a pointer to a type, and uses the _PTR suffix to indicate the type itself is dependent on the byte size of a pointer.
  Mit Zitat antworten Zitat