Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

32 righe
945 B

  1. //
  2. // libpipi Pathetic image processing interface library
  3. // Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
  4. // All Rights Reserved
  5. //
  6. // $Id$
  7. //
  8. // This library is free software. It comes without any warranty, to
  9. // the extent permitted by applicable law. You can redistribute it
  10. // and/or modify it under the terms of the Do What The Fuck You Want
  11. // To Public License, Version 2, as published by Sam Hocevar. See
  12. // http://sam.zoy.org/wtfpl/COPYING for more details.
  13. //
  14. using System;
  15. using System.Runtime.InteropServices;
  16. using System.Security;
  17. namespace Pipi
  18. {
  19. public static class Libpipi
  20. {
  21. [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl),
  22. SuppressUnmanagedCodeSecurity]
  23. private static extern IntPtr pipi_get_version();
  24. public static string getVersion()
  25. {
  26. return Marshal.PtrToStringAnsi(pipi_get_version());
  27. }
  28. }
  29. }