Browse by Tags
Hi all, The other day I had to develop a small C++ sample which shows how to read the list of values of a REG_MULTI_SZ from the registry , and add a new value just after one of the values of the list. Additionally, I used methods and constants from tchar.h
Read More...
Hi all You may get an Access Violation exception when loading a certificate into a X509Certificate2 object, only after installing KB 938397 hotfix ( crypt32.dll v5.131.3790.4095 ) at Applications that use the Cryptography API cannot validate an X.509
Read More...
Hi all, CAPICOM has finally been deprecated , and it won't be supported on Windows 7 . This link is up to date and proposes alternatives to CAPICOM classes by using .NET classes and CryptoAPI : Alternatives to Using CAPICOM . The following article may
Read More...
Hi all, Do you want to work with CNG and .NET 3.5 and don't want to P/Invoke into CryptoAPI & CNG API ? Check out Security.Cryptography.dll library at CLR Security : " Security.Cryptography.dll provides a new set of algorithm implementations to augment
Read More...
Hi all, Some time ago a customer of mine was getting the following CryptographicException when calling EncryptedXml.DecryptDocument method to decrypt an XmlDocument in their .NET app: [System.Security.Cryptography.CryptographicException] = {" The data
Read More...
Hi all, When creating an X509Certificate object in your .NET application (" X509Certificate cert = new X509Certificate(certBytes); ") you may see that two 0kb files are created in the Temp folder of your Windows Server 2003 , and are never deleted . After
Read More...
Hi all, The other day a customer of mine was trying to add an Authenticode signature with timestamp to their PowerShell scripts with PowerShell itself and its Set-AuthenticodeSignature cmdlet . He was able to sign the scripts just fine, but when using
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2 . LOCKS · We can see threads waiting for managed locks : All managed objects have a syncblock (4 bytes) before their Method Table and properties. It
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1 . BREAKING ON AN EXCEPTION. Part 2 What happens if !PrintException doesn’t return anything, or when we break (i.e. with a breakpoint or manually – Ctrl+Break)
Read More...
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
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5 . BREAKING ON AN EXCEPTION. Part 1 We can only break on exceptions when doing live debugging, but many of the commands explained here can be used when doing dump
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4 . MANAGED HEAP. Part 5 · We can troubleshoot Loader Heap issues : An assembly can’t be unloaded while the AppDomain where it was created is still alive. We will
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3 . MANAGED HEAP. Part 4 · We can troubleshoot Heap issues : These are some of the important performance counters we can check with Performance Monitor when having
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2 . MANAGED HEAP. Part 3 · We can take a look to which objects reference which objects in the heap: We may see many objects in the heap that we think should have
Read More...
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 1 . MANAGED HEAP. Part 2 · We can take a look to the objects in the heap : We can see all objects in the heap: 0:004> !DumpHeap Address MT Size 7b463c40 790fd0f0
Read More...