Skip to content

Instantly share code, notes, and snippets.

@Trumeet
Created April 21, 2020 06:17
Show Gist options
  • Save Trumeet/5b36d7af84c73160f110b27d4e759db0 to your computer and use it in GitHub Desktop.
Save Trumeet/5b36d7af84c73160f110b27d4e759db0 to your computer and use it in GitHub Desktop.
Maybe a winver.exe replacement? (DEMO)
$ShellAbout = @'
[DllImport("Shell32.dll")]
public static extern int ShellAbout(IntPtr hwnd, string szApp, string szOtherStuff, IntPtr hIcon);
'@
$Shell32 = Add-Type -MemberDefinition $ShellAbout -Name 'Shell32' -Namespace 'Shell32' -PassThru
$Shell32::ShellAbout(0, "Windows", "", 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment