Microsoft’s PowerShell hangs when output is captured using Windows API

I was debugging a program that uses Windows API (Creating a Child Process with Redirected Input and Output) to capture stdout of Microsoft’s Windows PowerShell. Script passed to PowerShell (-File switch) didn’t execute and PowerShell just hanged until killed by Task Manager. It turns out that you need to use undocumented parameter “-InputFormat none”: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe …

Urih.com has online resource viewer for executable files

One of very interesting online tool we launched in urih.com is online resource viewer for executable files. We call it – Portable executable online viewer. This new (online) tool can be used like any old (offline) tool to view images embedded into executable (PE format) file. Also, many properties of executable file are shown, like …

Windows API PlaySound error / silence

Today stumbled at strange behavior of Windows API function PlaySound in combination with SND_FILENAME flag. There are two scenarios: No sound is played, and PlaySound returns success (TRUE) in combination with SND_ASYNC; No sound is played, and PlaySound returns failure (FALSE) when using the same wav file, but without asynchronous flag. The cause is, that …