Hi guys, I'm having a problem with the following command:
PowerShell "Add-Type -TypeDefinition """"using System;`n using System.Runtime.InteropServices;`n public class PInvoke { [DllImport(`"""user32.dll`""")] public static extern bool SetSysColors(int cElements, int[] lpaElements, int[] lpaRgbValues); }""""; [PInvoke]::SetSysColors(1, @(1), @(0x000000))" >NUL
Under CMD Prompt it works without error, while in TCC it gives the error "no closing quote".
Have you any idea? Thank you!
PowerShell "Add-Type -TypeDefinition """"using System;`n using System.Runtime.InteropServices;`n public class PInvoke { [DllImport(`"""user32.dll`""")] public static extern bool SetSysColors(int cElements, int[] lpaElements, int[] lpaRgbValues); }""""; [PInvoke]::SetSysColors(1, @(1), @(0x000000))" >NUL
Under CMD Prompt it works without error, while in TCC it gives the error "no closing quote".
Have you any idea? Thank you!