VNCController.Mod 635 B

123456789101112131415161718192021222324
  1. MODULE VNCController; (** AUTHOR "Timothée Martiel, 2014/11"; PURPOSE "Basic VNC Server configuration and startup"; *)
  2. IMPORT
  3. KernelLog := Trace,
  4. Commands, Streams,
  5. WMVNCView;
  6. VAR
  7. context: Commands.Context;
  8. r: Streams.StringReader;
  9. w: Streams.Writer;
  10. params: ARRAY 1024 OF CHAR;
  11. res: LONGINT;
  12. msg: ARRAY 1024 OF CHAR;
  13. BEGIN
  14. params := 'AOS "a" 5000 0 0 1024 768';
  15. NEW(r, 1024);
  16. r.Set(params);
  17. Streams.OpenWriter(w, KernelLog.Send);
  18. NEW(context, NIL, r, w, NIL, NIL);
  19. Commands.Activate('WMVNCView.Install', context, {}, res, msg);
  20. IF res # Commands.Ok THEN KernelLog.String(msg); KernelLog.Ln END;
  21. END VNCController.