You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

  1. #if NETFX
  2. using System;
  3. using System.Collections;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.InteropServices;
  6. using System.Runtime.InteropServices.CustomMarshalers;
  7. namespace IWshRuntimeLibrary
  8. {
  9. // Token: 0x02000005 RID: 5
  10. [TypeLibType(4160)]
  11. [Guid("F935DC29-1CF0-11D0-ADB9-00C04FD58A0B")]
  12. [ComImport]
  13. internal interface IWshEnvironment : IEnumerable
  14. {
  15. // Token: 0x17000008 RID: 8
  16. [DispId(0)]
  17. string this[[MarshalAs(UnmanagedType.BStr)] [In] string Name]
  18. {
  19. [DispId(0)]
  20. [MethodImpl(MethodImplOptions.InternalCall)]
  21. [return: MarshalAs(UnmanagedType.BStr)]
  22. get;
  23. [DispId(0)]
  24. [MethodImpl(MethodImplOptions.InternalCall)]
  25. [param: MarshalAs(UnmanagedType.BStr)]
  26. set;
  27. }
  28. // Token: 0x0600001D RID: 29
  29. [DispId(1)]
  30. [MethodImpl(MethodImplOptions.InternalCall)]
  31. int Count();
  32. // Token: 0x17000009 RID: 9
  33. // (get) Token: 0x0600001E RID: 30
  34. [DispId(2)]
  35. int length { [DispId(2)] [MethodImpl(MethodImplOptions.InternalCall)] get; }
  36. // Token: 0x0600001F RID: 31
  37. [DispId(-4)]
  38. [MethodImpl(MethodImplOptions.InternalCall)]
  39. [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(EnumeratorToEnumVariantMarshaler))]
  40. IEnumerator GetEnumerator();
  41. // Token: 0x06000020 RID: 32
  42. [DispId(1001)]
  43. [MethodImpl(MethodImplOptions.InternalCall)]
  44. void Remove([MarshalAs(UnmanagedType.BStr)] [In] string Name);
  45. }
  46. }
  47. #endif