DllImportAttribute.cs 657 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // System.Runtime.InteropServices/DllImportAttribute.cs
  3. //
  4. // Author:
  5. // Paolo Molaro ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. namespace System.Runtime.InteropServices {
  11. [AttributeUsage (AttributeTargets.Method)]
  12. public sealed class DllImportAttribute: Attribute {
  13. public CallingConvention CallingConvention;
  14. public CharSet CharSet;
  15. public string EntryPoint;
  16. public bool ExactSpelling;
  17. public bool PreserveSig;
  18. public bool SetLastError;
  19. private string Dll;
  20. public string Value {
  21. get {return Dll;}
  22. }
  23. public DllImportAttribute (string dllName) {
  24. Dll = dllName;
  25. }
  26. }
  27. }