Setup.SpawnCommon.pas 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. unit Setup.SpawnCommon;
  2. {
  3. Inno Setup
  4. Copyright (C) 1997-2025 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. WM_SpawnServer_ExitNow = WM_USER + $1551;
  16. { Spawn client -> spawn server WM_COPYDATA messages }
  17. CD_SpawnServer_Exec = $4A73E9C0;
  18. CD_SpawnServer_ShellExec = $4A73E9C1;
  19. { Possible wParam values in a WM_SpawnServer_Query message }
  20. SPAWN_QUERY_STATUS = 1;
  21. SPAWN_QUERY_RESULTCODE_LO = 2;
  22. SPAWN_QUERY_RESULTCODE_HI = 3;
  23. { Bits set in high word of every response }
  24. SPAWN_MSGRESULT_SUCCESS_BITS = $6C830000;
  25. SPAWN_MSGRESULT_FAILURE_BITS = $6C840000;
  26. { Possible error codes returned by WM_COPYDATA handler }
  27. SPAWN_MSGRESULT_OUT_OF_MEMORY = SPAWN_MSGRESULT_FAILURE_BITS or 1;
  28. SPAWN_MSGRESULT_UNEXPECTED_EXCEPTION = SPAWN_MSGRESULT_FAILURE_BITS or 2;
  29. SPAWN_MSGRESULT_ALREADY_IN_CALL = SPAWN_MSGRESULT_FAILURE_BITS or 3;
  30. SPAWN_MSGRESULT_INVALID_DATA = SPAWN_MSGRESULT_FAILURE_BITS or 4;
  31. { Possible error codes returned by WM_SpawnServer_Query handler }
  32. SPAWN_MSGRESULT_INVALID_SEQUENCE_NUMBER = SPAWN_MSGRESULT_FAILURE_BITS or 5;
  33. SPAWN_MSGRESULT_INVALID_QUERY_OPERATION = SPAWN_MSGRESULT_FAILURE_BITS or 6;
  34. { Low word of response to SPAWN_QUERY_STATUS query }
  35. SPAWN_STATUS_EXCEPTION = 1;
  36. SPAWN_STATUS_RUNNING = 2;
  37. SPAWN_STATUS_RETURNED_TRUE = 3;
  38. SPAWN_STATUS_RETURNED_FALSE = 4;
  39. { lParam value passed in WM_SpawnServer_ExitNow message }
  40. SPAWN_EXITNOW_LPARAM_MAGIC = $5B1C6AF9;
  41. implementation
  42. end.