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 create a memory mapped file with C# (Windows Vista / Windows 7)

Hi all,   The following C# sample shows how to create a memory mapped file and use private namespaces to allow access to specific groups of users:   FORM1.CS using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Security.Principal; using System.IO; namespace Alejacma { public…

0

SCardEstablishContext fails with SCARD_E_NO_SERVICE error

Hi all, If you call SCardEstablishContext API in a Windows service running under a specific user account (domain\user) or NETWORK SERVICE, you may get the following error on Vista/Server 2008 or Windows 7/Server 2008 R2: 0x8010001d – SCARD_E_NO_SERVICE – “The Smart card resource manager is not running.”. If the service runs as SYSTEM, the same…

3

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 "This Web site is attempting to perform a digital certificate operation on your behalf" message

Hi all, A customer of mine was using some web pages to enroll certificates. When using them on Windows 7 and IE8/IE9, they got a popup dialog with a message like the following: —————————Web Access Confirmation—————————This Web site is attempting to perform a digital certificate operation on your behalf: https://myserver/certsrv/certrqma.asp You should only allow known…

0

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

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