Setup.SpawnCommon.pas 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. unit Setup.SpawnCommon;
  2. {
  3. Inno Setup
  4. Copyright (C) 1997-2007 Jordan Russell
  5. Portions by Martijn Laan
  6. For conditions of distribution and use, see LICENSE.TXT.
  7. Constants and types shared by the SpawnServer and SpawnClient units
  8. }
  9. interface
  10. uses
  11. Messages;
  12. const
  13. { Spawn client -> spawn server messages }
  14. WM_SpawnServer_Query = WM_USER + $1550;
  15. { Spawn client -> spawn server WM_COPYDATA messages }
  16. CD_SpawnServer_Exec = $4A73E9C0;
  17. CD_SpawnServer_ShellExec = $4A73E9C1;
  18. { Possible wParam values in a WM_SpawnServer_Query message }
  19. SPAWN_QUERY_STATUS = 1;
  20. SPAWN_QUERY_RESULTCODE_LO = 2;
  21. SPAWN_QUERY_RESULTCODE_HI = 3;
  22. { Bits set in high word of every response }
  23. SPAWN_MSGRESULT_SUCCESS_BITS = $6C830000;
  24. SPAWN_MSGRESULT_FAILURE_BITS = $6C840000;
  25. { Possible error codes returned by WM_COPYDATA handler }
  26. SPAWN_MSGRESULT_OUT_OF_MEMORY = SPAWN_MSGRESULT_FAILURE_BITS or 1;
  27. SPAWN_MSGRESULT_UNEXPECTED_EXCEPTION = SPAWN_MSGRESULT_FAILURE_BITS or 2;
  28. SPAWN_MSGRESULT_ALREADY_IN_CALL = SPAWN_MSGRESULT_FAILURE_BITS or 3;
  29. SPAWN_MSGRESULT_INVALID_DATA = SPAWN_MSGRESULT_FAILURE_BITS or 4;
  30. { Possible error codes returned by WM_SpawnServer_Query handler }
  31. SPAWN_MSGRESULT_INVALID_SEQUENCE_NUMBER = SPAWN_MSGRESULT_FAILURE_BITS or 5;
  32. SPAWN_MSGRESULT_INVALID_QUERY_OPERATION = SPAWN_MSGRESULT_FAILURE_BITS or 6;
  33. { Low word of response to SPAWN_QUERY_STATUS query }
  34. SPAWN_STATUS_EXCEPTION = 1;
  35. SPAWN_STATUS_RUNNING = 2;
  36. SPAWN_STATUS_RETURNED_TRUE = 3;
  37. SPAWN_STATUS_RETURNED_FALSE = 4;
  38. implementation
  39. end.