SChannel does not support SSL Fragmentation

Hi all, When connecting to an SSL-enabled web site with Internet Explorer, the client and server must negotiate an SSL session. The server sends its list of trusted root certificates to the client in the form of a non-encrypted record. The server requires that the client have a digital certificate for authentication, the client is…

2

How to disable the pop up that Windows shows when an app crashes

Hi all, The other day a customer of mine was trying to disable the pop up dialog that Windows shows after an application crashes. On Windows XP, they could get rid of it by going to “Control Panel > System Properties > Advanced > Error reporting”, clicking on “Disable error reporting” and disabling “But notify…

5

How to set sound volume programmatically

Hi all, From time to time I like to post about other issues which are not related to crypto stuff, but I consider useful because of the number of request I get on them. And this is one common question I’ve seen: how do I set sound volume programmatically on Windows? On Windows XP we can manipulate audio settings…

2

Do CNG certificates work on Windows XP?

Hi all, I posted some time ago about some issues that .NET 2.0/3.0/3.5 had with CNG certificates: “Invalid provider type specified” error when accessing X509Certificate2.PrivateKey on CNG certificates. This issue happened to us on Windows Vista/Server 2008 and later. But the weird thing is that if we tried the very same .NET code with the very same…

1

WinHttpCertCfg tool cannot access private key of a certificate

Hi all, I faced the following issue some time ago: a customer of mine got a certificate in a .p12 file (PKCS#12 format), and he tried to access its private key with a .NET code like the following: X509Certificate2 clientCert = new X509Certificate2(certPath, certPassword, X509KeyStorageFlags.MachineKeySet); … = clientCert.PrivateKey This code worked fine on Vista or Windows 7, but failed…

2

SubAuthentication package gets Zero LogonId

Hi all, The other day I worked on an issue related to a SubAuthentication package that one of my customers had developed. One of the things that package was doing was getting the LogonId field of the LogonInformation struct being passed to Msv1_0SubAuthenticationFilter method by the Authentication package. This SubAuth package had been working fine…

2

Controls won’t get resized once the nesting hierarchy of windows exceeds a certain depth (x64)

Hi all, welcome back, I’ve been working on an issue where WM_SIZE events are not properly generated once the nesting hierarchy of windows exceeds a certain depth. This issue only occurs on current x64 Windows: like XP, Server 2008 or the latest Windows 7. For ilustration purposes, let’s imagine we have a C# application which creates…

33

NdrClientCall2 fails with RPC_S_ALREADY_LISTENING when using pipes over ncalrpc

Hi all, I’ve been working on a Microsoft Remote Procedure Call (RPC) issue recently, where the first call to a specific remote method fails because the call to NdrClientCall2 function in the client stub returns RPC_S_ALREADY_LISTENING (“The server is already listening”) error. But subsequent calls to the very same method succeed. The following CONDITIONS are required to reproduce the…

1

SHA-2 support on Windows XP

Hi all, If you try to use any SHA-2 algorithm (SHA-256, SHA-384 and SHA-512) on Windows XP, you may get the following error when using i.e. CryptCreateHash: NTE_BAD_ALGID or -2146893816 or 0x80090008 or “Invalid algorithm specified”. Same algorithms are supported on Vista, though. Can we use SHA-2 algorithms in Windows XP at all? The answer is yes, but…

16

How to change Windows Theme programmatically in XP

Hi all, You may know already that there is no i.e. COM object or .NET class we can use to change the Windows Theme programmatically on Windows XP. You may also know the following VBScript which can be used to do this change without user intervention:Set OSHApp = CreateObject(“Shell.Application”) Set oShell = CreateObject(“Wscript.Shell”) ‘ Set…

2