More terse Q&A on Tweak UI 2.10

Date:July 24, 2003 / year-entry #4
Tags:other
Orig Link:https://blogs.msdn.microsoft.com/oldnewthing/20030724-00/?p=43063
Comments:    2
Summary:I'm going to try to alternate between programming entries (where I actually try to teach something) and random entries (where I get to spout off or go into storytelling mode). So here's another random entry. Why does Tweak UI put up a totally incomprehensible error message ("Cannot locate entrypoint GetDllDirectoryW in Kernel32.dll") when I try...

I'm going to try to alternate between programming entries (where I actually try to teach something) and random entries (where I get to spout off or go into storytelling mode). So here's another random entry.

Why does Tweak UI put up a totally incomprehensible error message ("Cannot locate entrypoint GetDllDirectoryW in Kernel32.dll") when I try to run it on an unsupported OS?

To make sure there is absolutely no way of running it on an unsupported OS.  From experience, I've learned that people would run Tweak UI on a toaster if they could. If I used a simple runtime check, somebody would just override it. So instead I made the dependency on Windows XP SP1 and Windows Server 2003 so strong that no amount of patching would get it to work, because the block is being done by the OS program loader.  Not a single byte of Tweak UI has even run at this point, so you can NOP out anything you like, it won't get the program to run.

Tweak UI has a bad default for the X-Mouse autoraise delay.

Remember, Tweak UI merely provides an interface to existing functionality. I can't go changing the defaults; the defaults aren't mine to change. (In this case, the default comes from SystemParametersInfo(SPI_GETACTIVEWNDTRKTIMEOUT).)


Comments (2)
  1. Mike Dimmick says:

    There’s always the ‘change the name of the imported DLL’ trick, and supply a DLL which simply passes through onto the system DLLs.

    Didn’t CAP do this (change KERNEL32.DLL to FERNEL32.DLL in the import directory)? Or am I thinking of a different tool?

  2. I ran TweakUI once on my blender… I never could get it to load on my Toaster. :(

    Oh, and I really like reading your trivia. Thanks for the laughs :)

Comments are closed.


*DISCLAIMER: I DO NOT OWN THIS CONTENT. If you are the owner and would like it removed, please contact me. The content herein is an archived reproduction of entries from Raymond Chen's "Old New Thing" Blog (most recent link is here). It may have slight formatting modifications for consistency and to improve readability.

WHY DID I DUPLICATE THIS CONTENT HERE? Let me first say this site has never had anything to sell and has never shown ads of any kind. I have nothing monetarily to gain by duplicating content here. Because I had made my own local copy of this content throughout the years, for ease of using tools like grep, I decided to put it online after I discovered some of the original content previously and publicly available, had disappeared approximately early to mid 2019. At the same time, I present the content in an easily accessible theme-agnostic way.

The information provided by Raymond's blog is, for all practical purposes, more authoritative on Windows Development than Microsoft's own MSDN documentation and should be considered supplemental reading to that documentation. The wealth of missing details provided by this blog that Microsoft could not or did not document about Windows over the years is vital enough, many would agree an online "backup" of these details is a necessary endeavor. Specifics include:

<-- Back to Old New Thing Archive Index