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

SignTool fails with error 0x80092006 on Windows Server 2008

Hi all,   The other day a customer of mine was trying to sign a binary with SignTool.exe using the following command line on Windows Server 2008 SP2:   Signtool.exe sign /a /f “c:\mycert.pfx” /p  “password” /t “http://timestamp.verisign.com/scripts/timstamp.dll” “c:\temp\myFile.exe”   And SignTool failed with the following error:   SignTool Error: ISignedCode::Sign returned error: 0x80092006 No…

3

How to update "Run only specified windows applications" GPO programmatically (VBScript)

Hi all,   A customer of mine had to add a list of thousands of applications to the “Run only specified windows applications” GPO on his Windows Server 2008. And obviously he wanted to automate this task to avoid adding them manually one at a time.  So I went the easy way and created the…

1

FileSystemWatcher class does not fire Change events when NotifyFilters.Size is used

Hi all,   A customer of mine was trying to monitor a .log file in a specific folder with .NET’s FileSystemWatcher class and a code like the following:     static void Main(string[] args) { FileSystemWatcher fsw = new FileSystemWatcher(@”C:\mypath”, “myfile.log”); fsw.NotifyFilter = NotifyFilters.Size | NotifyFilters.LastWrite; fsw.Changed += new FileSystemEventHandler(MyChangedMethod); fsw.Error += new ErrorEventHandler(MyErrorMethod); fsw.EnableRaisingEvents =…

1

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

Big delay when calling X509Certificate2 constructor

Hi all, The other day a customer of mine was experiencing big delays when making this kind of calls to X509Certificate2 constructor: X509Certificate2 cert = new X509Certificate2(byteArray); Sometimes this process was almost instant, sometimes it took up to 2 minutes to create the object!!! During the reproduction of the issue, CPU usage was very high….

2

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

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