Earlier today I released version 1.0.0 of RegTlb which is a command line tool for registering and unregistering type libraries. COM Servers usually register their own type libraries, but this is not always the case and it may be convenient to register just the library without installing the actual COM servers. For example, a developer … Continue reading RegTlb released
Using C++ Templates to Implement Dynamic Memory Objects with Custom Allocator
I just published a new article about Using C++ Templates to Implement Dynamic Memory Objects with Custom Allocator. By using these techniques you can separate functionality that uses custom memory management from the underlying memory semantics (heap, stack, shared memory, mapped memory, ...) as well as play with behavior of the allocation process itself.
New article about Win32 cryptography / C++20 templates and concepts
I just posted a new article up on CodeProject, talking about the Win32 Cryptography Next Generation API (CNG) with a detour into C++ template programming involving the new concepts feature that was introduced with C++20. https://www.codeproject.com/Articles/5340250/Using-the-Win32-cryptographic-api-to-hash-data
New article on Win32 Transactions
I just posted a new article online about using Win32 transactions for registry updates in a real-world scenario. You can check it out here.
Deleting your part of the registry
Something I learned recently after making a copy / paste error: If you execute RegDeleteTree on HKEY_CURRENT_USER, there is no safeguard and as soon as you log off and the last reference to its subkeys are released, you won't be logging on to that account again 🙂 That's all.
Site name change
I finally found a good name for my site. Life has taken me in many directions: passionate C++ developer, Japanese language student, Bladesmith, Active Directory admin, and many others. Recently I've been pulled back strongly in the direction of platform development involving COM, win32, and C++. And that's when it hit me. In COM programming, … Continue reading Site name change
Powershell folly
Home renovation kept me from doing much IT related things in my free time, but this is something I needed to share. If you do this in powershell: $array = @(1,2,3,4,5,6,7,8,9,10)$array[0..-1] The result is really not what any programmer would expect. Rather than throw an exception, powershell simply decides to roll over to the end … Continue reading Powershell folly
Configuration options for the Local Security Authority
Windows allows a large amount of security settings to be configured, either through Group Policy, or Local Security Policy: With improved focus on cyber security in the entier ICT industry there may be a requirement to tighten these settings. This can be tricky. It's one thing to implement a high security scheme when you start … Continue reading Configuration options for the Local Security Authority
Alternate computernames
One of the neat little things that ahs been around for a while is that computers in a Windows network can have multiple names. This is especially convenient when dealing with lifecycle management, where clients may be configured to use fixed names. Even if you could change that manually at the client level, that could … Continue reading Alternate computernames
Redirecting the default Users and Computers containers
I mentioned earlier that I prefer to not define policies at the domain root level unless they need to apply to everything in the domain, which means applying them at OU level. The problem is that by default, newly created users or computers are not in an OU but in the default users or computers … Continue reading Redirecting the default Users and Computers containers