SpawnCommon.pas 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. unit 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. $jrsoftware: issrc/Projects/SpawnCommon.pas,v 1.2 2007/09/04 00:51:58 jr Exp $
  9. }
  10. interface
  11. uses
  12. Messages;
  13. const
  14. { Spawn client -> spawn server messages }
  15. WM_SpawnServer_Query = WM_USER + $1550;
  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. implementation
  40. end.