gxid_proto.inc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {%MainUnit ../gdk2x.pas}
  2. {$IFDEF read_interface_rest}
  3. const
  4. GXID_CLAIM_DEVICE = 1;
  5. GXID_RELEASE_DEVICE = 2;
  6. GXID_RETURN_OK = 0;
  7. GXID_RETURN_ERROR = -(1);
  8. type
  9. PGxidMessage = ^TGxidMessage;
  10. PGxidU32 = ^TGxidU32;
  11. TGxidU32 = dword;
  12. PGxidI32 = ^TGxidI32;
  13. TGxidI32 = longint;
  14. TGxidClaimDevice = record
  15. _type : TGxidU32;
  16. length : TGxidU32;
  17. device : TGxidU32;
  18. window : TGxidU32;
  19. exclusive : TGxidU32;
  20. end;
  21. TGxidReleaseDevice = record
  22. _type : TGxidU32;
  23. length : TGxidU32;
  24. device : TGxidU32;
  25. window : TGxidU32;
  26. end;
  27. TGxidMessageAny = record
  28. _type : TGxidU32;
  29. length : TGxidU32;
  30. end;
  31. TGxidMessage = record
  32. case longint of
  33. 0 : ( any : TGxidMessageAny );
  34. 1 : ( claim : TGxidClaimDevice );
  35. 2 : ( release : TGxidReleaseDevice );
  36. end;
  37. {$ENDIF read_interface_rest}
  38. //------------------------------------------------------------------------------
  39. {$IFDEF read_implementation}
  40. {$ENDIF read_implementation}