Launching an interactive process from Windows Service in Windows Vista and later
The first thing you should do about it is that, don't do it. There are many limitations, bad implications and restrictions involved into it. In case, you are in a state that you cannot avoid launching...
View ArticleRDC and Custom Credential Providers
RDC and Custom Credential Providers Issue: When you have your own custom credential provider (CP) for multifactor authentication (such as Biometric, password, Smartcard). You do remote desktop...
View ArticleSetWindowHookEx API with WH_JOURNALRECORD. This API fails with access denied...
A while ago I came across a problem in which SetWindowHookEx API with WH_JOURNALRECORD was failing with Access denied on Windows Vista. If you have the same problem you can do what I tried.1)...
View ArticleCheck membership of a group from user’s process access token
Question may be, I need to check If the user belong to a particular group or not? There are NetUser* APIs available in NetApi32.lib to list the groups a user belong to a group. You can actually check...
View ArticleWhy does regedit.exe (or any other Microsoft program) crash when I try to...
Question:On Windows XP, I am starting regedit.exe in suspended mode and forcing it to call the LoadLibrary() API to load an external DLL by using the CreateRemoteThread() API. After loading the DLL,...
View ArticleSteps to sign a file using Signtool.exe
You may have a situation where you need to sign a file which may be ana. .exe b. .cabc. .catd. .ocxe. .dllf. .stlUsing the CryptoAPI “signtool.exe”, the files can be digitally signed. Digitally signing...
View ArticleOpps!!! System.Security.Cryptography.CryptographicException: The system...
If you are creating the cryptographic keys on the user's profile directory you may get a cryptographic exception saying: "CryptographicException: The system cannot find the file specified".The stack...
View ArticleWeb Service can’t start the Windows Service
Working with Windows Service and Web Service together is nothing less than fun, especially when you are not an ASP.NET expert. Like many native developers I have my own challenges with words like...
View ArticleI lost the “Security” tab of offline files synced by Sync Centre !!
In Windows Vista and later there is a cool feature of making network shared files available offline and maintaining the synchronization through a newly added component called Sync Centre. You may find...
View ArticleDealing with Administrator and standard user’s context
With introduction of UAC, I often get two questions for Windows Vista and later.1) How to launch an application in the Administrative context from an application which is running in standard...
View ArticleDon't forget Integrity Levels when troubleshooting "Access Denied" errors
Anyone who has used Windows has encountered the dreaded "Access Denied" error. (AKA error code 5 or 0x5). This error typically implies you can't do something like open or save a file. The error...
View ArticleWindows Hotfixes for October 2015
Jeff here from the Windows SDK team. Here is the list of October 2015 Hotfixes [Drum roll, please...]KB3030736 "550 The process cannot access the file" error when you try to download a file in...
View ArticleVirtual Desktop Switching in Windows 10
Windows 10 introduces a new concept (for Windows anyway) called Virtual Desktops. Currently, the guidance for this on MSDN states: The user can group a collection of windows together to create a...
View ArticleFileSystemWatcher Fencing(Part 2)
This post is a follow up to the FileSystemWatcher Follies post. I received a lot of feedback that it would be useful to highlight what would be appropriate to guide against some of the pitfalls that...
View ArticleWindows Hotfixes for October 2015
Jeff here from the Windows SDK team. Here is the list of October 2015 Hotfixes [Drum roll, please…] KB3030736 “550 The process cannot access the file” error when you try to download a file in Windows...
View ArticleHotfixes for November 2015
Jeff here from the SDK team. Here are the hotfixes for November 2015. KB3040017 XPS driver is slower than GDI driver to print files in Windows KB3063109 Virtual machine crashes and WAL consistency...
View ArticleUsing SHA256 with the SignedXml Class
With the industry moving away from SHA1 including Microsoft (see...
View ArticleSHA-1 Code Signing Deprecation in Windows beginning January 1, 2016
This post is to help the product team spread the word on Windows (version 7 and higher) and Windows Server will no longer trust any code that is signed with a SHA-1 code signing certificate and that...
View ArticleHotfixes for December 2015
Jeff here, from the SDK team with the Holiday Hotfixes. Happy patching. KB2920591 High CPU usage and performance issues occur when access-based enumeration is enabled in Windows 7 Service Pack 1 or...
View ArticleWhy CryptCATAdminCalcHashFromFileHandle fails with a seemingly unexpected...
CryptCATAdminCalcHashFromFileHandle can fail when evaluating a file path to an executable while setting the last error code to 0x800700c1. It’s an HRESULT instead of just an error code, but the...
View Article