Quantcast
Channel: WishMesh » Windows API
Browsing all 5 articles
Browse latest View live

Windows API Function SetFileAttributes silently ignores compressed and...

When you call Windows API function SetFileAttributes, it ignores FILE_ATTRIBUTE_COMPRESSED (0×800) and FILE_ATTRIBUTE_ENCRYPTED (0×4000) values passed as parameters. Most likely it is implemented in...

View Article


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...

View Article


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...

View Article

CreateProcessAsUser fails on Windows XP with System error 233

Today I fixed one bug that was very hard to reproduce. Many hours were spent to figure out what combination caused it: It happens only on Windows XP (not on Vista, Server 2003, 2008, Win 7); It does...

View Article

RegCopyTree fails with Access denied error (5) on Windows 7

MSDN documentation for RegCopyTree states that ‘The calling process must have KEY_CREATE_SUB_KEY access to the destination key’, however call fails on some keys with Access denied error (5) on Windows...

View Article

Browsing all 5 articles
Browse latest View live