How to resolve a System.Security.Principal.IdentityNotMappedException?
The System.Security.Principal.IdenityNotMappedException seems to come up time to time and I thought I would write about what this exception means and how to resolve the issue.The first thing to...
View ArticleHow to launch a process as a different user without storing their credentials?
You may run into a situation where you need to create a token to be used at a later time since you can’t keep the credentials around in your application. The token representing the user is going to be...
View ArticleUnhandled System.IO.PathTooLongException when doing certifications with WACK...
Writing to cover an issue that has been occurring in the certifications recently. The basic issue is the certification tool will attempt to do checks on the setup packages that are compressed files...
View ArticleRegSaveKey() is failing with error ERROR_NO_SYSTEM_RESOURCES (1450)
One of our senior emea Windows SDK Engineer, Nitin Dhawan, got an interesting issue where an application was failing to save a registry key to a file on local disk using RegSaveKey(). Investigating...
View ArticleEncountering "The client and server cannot communicate, because they do not...
Typically when a Client and Server communicate via SSL/TLS, they must use a common cipher algorithm. If they are unable to find a common algorithm, the SSL/TLS connection will fail with the exception,...
View ArticleRejoice! We can now capture loopback traffic.
Hey guys, Jeff here.I work on a lot of networking cases, and the last thing Iever want to hear is that a customer’s application is using local networktraffic - either by using the loopback address,...
View ArticleWinsock server application not accepting new connections
Jeff here, from the Windows SDK team.Recently, I had a case involving a client server application. My customer writes software that is deployed to thousands of othercustomers and only 2 were having...
View ArticleWindows Firewall interfaces, INetFwProducts, and InetFwProduct.
Jeff here again. Today I have samples of the Windows Firewall interfaces, INetFwProducts, and InetFwProduct.#include "stdafx.h"#include <windows.h>#include <stdio.h>#include...
View ArticleHow to interoperate between SSPI and the .NET NegotiateStream Class
Win32 Desktop Applications can take advantage of SSPI to authenticate Windows Users. In .NET, Windows Authentication can be done using the NegotiateStream...
View ArticleHotfixes for September 2014
Here are some hotfixes that were published in September 2014.2990833 Downloading stops at 99 percent in Xbox Video in Windows 8.1 and Windows Server 2012 R22990830 The Psxss.exe process stops...
View ArticleHigh-resolution timestamps and hardware in Windows
Customer frequently have questions about QueryPerformanceCounter(), how it works and what hardware timers it uses on different hardware anddifferent versions of Windows. Here is a great article on...
View Articlegetnameinfo() WILL use NetBIOS for name resolution
Jeff here again from the Windows SDK team.A customer pointed out an inconsistency in some MSDN documentation and I wanted to mention it here while the documentation bug works its way through...
View ArticleJob Object Insanity
Job Objects were introduced to Windows in Windows XP/Windows Server 2003 to allow an application to manage a group of processes.One of the limitations of Job Objects is that a process can only belong...
View ArticleWindows 10 (Threshold) Changes To The Windows Command Prompt
Jeff here from the Windows SDK team.This blog isn’t network related, but something else that is close to my heart, the Windows Command Prompt. I have been using and supportingWindows NT since version...
View ArticleUnable to do Digest Authentication on Windows 8.1
Programmatic Digest Authentication can be done using the SSPI APIs with the WDigest Package. See the following:http://msdn.microsoft.com/en-us/library/windows/desktop/aa380500(v=vs.85).aspxOn Windows...
View ArticleOctober 2014 Hotfixes
Jeff here from the Windows SDK team. This week was October 2014 patch Tuesday, here are some of the hotfixes that we published.3000435 Virtual Machine Management Service memory leak triggers Windows...
View ArticleDisabling User Access Control (UAC) in Windows 8.X
I've recently come across several customers who were having issues with accessing a secured Windows Object as an Administrator. They mention that this worked fine on Windows 7. Before I continue, I...
View ArticleDebugging : The 9 Indispensable Rules for Finding Even the Most Elusive Bugs
Jeff from the SDK team here again. I debug both customer’s code and Windows on a daily basis with WinDBG and other tools. I recently cameacross a fantastic book by David J. Agans called Debugging : The...
View ArticleThe FileSystemWatcher Buffer Size
Jeff again from the Windows SDK group..NET offers something called the FileSystemWatcherthat monitors a folder for changes and updated in files.While the watcher itself is reliable, customers...
View ArticleProgrammatic Smartcard Logons in Windows
There are several ways for an application to generate a user's token via a programmatic Smartcard Logon in Windows. The simplest way is via a call to LogonUser() which typically takes credentials via...
View Article