Subscribe here to be notified about updates to www.PretentiousName.com.

(Directory Opus stuff will generally not be mentioned here; see the Directory Opus news feed instead.)

Showing posts with label new. Show all posts
Showing posts with label new. Show all posts

Tuesday, 22 October 2019

Change Test 1.0.0.0

Change Test is for testing that the Windows filesystem change notification API (ReadDirectoryChangesW) is working correctly.

There are other tools for monitoring and recording filesystem events. This is not intended to replace those. The aim is to keep the source code (included) as simple as possible and just report the raw details of what the API says is happening.

Full detail on the main site:

https://www.pretentiousname.com/miscsoft/index.html#ChangeTest

Tuesday, 17 September 2019

ConnectOpenVPN 1.0.0.1

ConnectOpenVPN is a new tool, similar to my older ConnectVPN but this time for the OpenVPN client rather than the VPN client built in to Windows.

This small command-line tool acts as a wrapper around openvpn-gui.exe to help you run it from scripts. It can test whether the connection already exists or not, and can be asked to connect (or disconnect) and wait for the connection to succeed, then return a success or failure code.

See here for full details, download and C++ source code: ConnectOpenVPN

Saturday, 21 November 2015

New tool: RestartViaManager

RestartViaManager is a new command line tool for restarting processes via the Restart Manager API in Windows.

For this to work, the program you are restarting must have opted in to the Restart Manager. Most programs do not do this, but some of the more important ones do.

Using this is better than killing the process and re-running it:
  • Killing a process when you do not need to is a bad idea because it may be in the middle of writing data which is then corrupted.
  • The program you want to restart may do a better job of restoring its previous state (open windows, documents, etc.) than if you simply re-launched it normally. (Of course, this is up to the program, so it may not.)
Download, C++ source code and usage instructions can be found under Miscellaneous Software: RestartViaManager.

Tuesday, 9 December 2014

PDF thumbnail fix - new version coming soon

A new, improved version of the PDF thumbnail fix for 64-bit machines is coming soon.

If you have any ideas or requests for the new version, including but not limited to PDF files but for other types as well, please let us know your ideas.

Keep an eye out for the new version in the next few weeks. When the original version was made, we did not expect it to be needed for such a long time. Since it is still needed, we have decided to overhaul things, and make improvements so that the fix works instantly on more people's systems.

Fixes for additional file types may also come, as will the option of support for anyone still having problems getting their thumbnails to work.

Monday, 27 August 2012

Turn On Cursor Shadows

New miscellaneous util: Turn On Cursor Shadows

(Not to be confused with the older and similar, but not identical, Turn On Window Shadows.)

Running TurnOnCursorShadows.exe has the same effect as going to Start -> Control Panel -> Hardware and Sound -> Mouse -> Pointers and turning on Enable pointer shadow.

I wrote this little thing because 3D games keep turning off the pointer shadow when you run them and leave it off after you exit them. Presumably this was some kind of optimisation back in the days when hardware was so slow it would make the slightest difference, but I have no idea why it is still done today and why nobody has fixed the games (or GPU drivers or OS itself, whatever idiot thing is responsible :)) so it is put back when the game is exited or loses focus. Sigh.

Rather than go into the control panel every time I quit a game, I put this on my Directory Opus taskbar-style launcher toolbar to make the change in one click. It's on a button which also runs Turn On Window Shadows.

Tuesday, 14 February 2012

Logitech SetPoint WM_MOUSEHWHEEL bugs

Logitech's SetPoint mouse drivers have serious mistakes in their handling of horizontal scroll-wheel messages (WM_MOUSEHWHEEL).

The mistakes cause problems in many applications and I have personally wasted hours, if not days, battling them in my own code.

I share my findings to help other developers:
http://pretentiousname.com/setpoint_hwheel/index.html
 

Friday, 23 December 2011

Windows 7 Explorer bug that silently aborts large file copies

Just stumbled on a pretty awful bug in Explorer.

Figured I'd make a quick page about it in case other people run into it.

It's easy to avoid, and also only triggered by doing something fairly unusual (for most users at least), but if you run into it you'll be unlikely to trust Explorer to copy a lot of data until you understand what triggers the problem and what to avoid doing in order to stay safe.

Full details and a video are on my main website.

Friday, 9 September 2011

SetDllInheritance issue

This will only be of interest to Windows developers.

I've written about some problems we discovered with using SetDllDirectory to plug the 'binary planting' security issue.

Here's the page:

Friday, 5 August 2011

mIRC Tile plugin

This is a plugin DLL for mIRC which makes it automatically tile its windows, adjusting the layout whenever the main window is resized or child windows are opened & closed. It's a bit like converting mIRC into a "docking" user-interface.

It also lets you force certain windows to remain in a specified order, and to leave specified windows alone entirely.

The layout is such that the space used by the child-windows' resize borders is reclaimed, which IMO makes things look cleaner and also leaves more room for actual conversations.

I don't know if many other people will find this useful, especially as it is currently without any options for other layouts (e.g. two-columns etc.), but I've found it makes using mIRC much better and figured I might as well share it. I've always got mIRC open but often want to resize it to fit what I'm doing, or because I'm Remote Desktop'd in from a machine with a smaller display, and having to manually rearrange/resize the child windows is a pain.

Wednesday, 8 June 2011

Clipboard Owner Debug 1.0.0.1


ClipboardOwnerDebug is a tool for debugging problems with the Windows clipboard, specifically with apps that open the clipboard and do not close it in a timely manner so that you're unable to copy or paste anything.

The tool should be run from a command prompt, giving it an interval time (in milliseconds) to tell it how often to poll. It will then report changes to the clipboard and which apps it notices using the clipboard.

It is normal, especially if you set a very short interval time, to see reports of different programs using the clipboard for short periods of time (especially just after you change what's in it). There's only a problem if you see lots of "clipboard in use" lines in a row all mentioning the same exe, with no "clipboard not in use" lines in between.

The tool also periodically confirms that it can open the clipboard as well as which app last put data on the clipboard (if the data has an owner; simple text/bitmap data usually doesn't).

ClipboardOwnerDebug screenshot

Wednesday, 11 May 2011

Turn On Window Shadows

New miscellaneous util: Turn On Window Shadows

If another human on planet earth finds this useful I'll be amazed. :-)

Running TurnOnWindowShadows.exe has the same effect as going to Start -> Control Panel -> System and Security -> System -> Advanced system settings -> (UAC) Yes -> Advanced -> (Performance) Settings -> Visual Effects and turning on Show shadows under windows.

I wrote this little thing because I use Window Clippings v3 to take screenshots and whenever I take a screenshot while using Remote Desktop it turns off the system shadow setting. The shadow setting has no effect on Remote Desktop so it's not immediately clear anything is wrong but when I return to using the machine locally all the window shadows are gone, which is just weird with the Aero/glass theme. I got sick of going through the convoluted route above to turn shadows back on and made a program I could drop on my Directory Opus taskbar-style launcher toolbar to make the change in one click.

Monday, 2 May 2011

Clear Icon Cache 1.0.0.1

This is a tool I've written that helps with a bug in Windows Vista and Windows 7. The bug affects Windows and Explorer and can affect Opus by proxy.

For example, if you updated from Opus 9 to Opus 10 but still see the Opus 9 icon on your desktop or taskbar, this tool should fix it.

ClearIconCache will cleanly exit Explorer, delete the shell icon cache (IconCache.db) and then restart Explorer.

Windows is full of icon-caching bugs which mean it frequently shows incorrect, missing or out-of-date icons for programs and shortcuts on the desktop, taskbar, start menu, etc. When that happens, simply run this tool to fix things up.

There are lots of guides on the web about how to do this manually but many of them have the details wrong. Even the good guides almost never tell you how to cleanly exit Explorer and are too complex for many users. (As well as using Task Manager and/or Command Prompts, you have to exit explorer, delete the file, then restart explorer in the right order or nothing will happen.) On the other hand, you just double-click this EXE and it does the rest.

ClearIconCache is only for Windows Vista and Windows 7 (and presumably later versions). Users on earlier versions of Windows can use TweakUI instead.

To prevent message-boxes telling you if the program succeeded or failed, run ClearIconCache.exe /QUIET

Monday, 22 November 2010

Turn MSDN red for Windows CE

I've added a new, simple script for the Greasemonkey extension for Firefox.

When viewing Windows API documentation on the MSDN website, this script will turn the background red if it detects the documentation is for Windows CE, Windows Mobile or Windows Embedded.

WinCE API pages are highlighted with a red background

I wrote this script after years of frustration caused by web searches for Win32 API documentation (and the craptacularly broken F1 help in Visual Studio) landing me on pages for similar, but slightly different, WinCE APIs with the same names. The default page styles are identical and the APIs are so similar that it's easy too miss that you're on the wrong page. (If you realise at all it's usually after reading most of the page, at which point you have to find and re-read the real API's page in case it's different.) Turning the background red makes it obvious that you've wound up in the wrong place the moment the page loads.

Grab the script form my main site:
http://www.pretentiousname.com/gm/msdn_wince.html

Tuesday, 16 November 2010

How to find components (e.g. shell extensions) causing memory leaks

I wrote a guide which, while aimed at Directory Opus users, might be useful to others as well, so figured I'd mentioning it here:

Opus News Blog: New guide: How to find components causing memory leaks

When the SysInternals VMMap tool was first released it seemed neat but only useful in rare situations. Recently it has gained the ability to track memory allocations and show stack traces for them and that has made it very useful indeed. That's what the guide is about.

Wednesday, 22 September 2010

Flash standalone installer links

If Adobe won't keep links to the standalone Flash installers/updaters in a sensible, easy-to-find place, I will:

http://www.pretentiousname.com/flash_links/

Thursday, 16 September 2010

Find Error 1.0.0.1

Find Error is a small tool for looking up Win32 errors by name, number or description.

Looking-up errors by number can be useful when a program returns an error code without a description. (While other tools already do that, this one has the nice feature that you can type a number without knowing/caring if it's hex or decimal and get back matches for both possibilities.)

Looking-up errors by description can be useful when you're writing code and want to find an appropriate error value to return in a given situation. You can search for errors containing words/substrings, using basic AND/OR boolean logic. Double-click a line in the results to copy that error's name to the clipboard.

http://www.pretentiousname.com/finderror/

Monday, 14 June 2010

ConnectVPN 1.0.0.1

I wrote a new tool:.

http://www.pretentiousname.com/miscsoft/index.html#ConnectVPN

ConnectVPN is a tiny command-line tool which checks if a specified RAS or VPN connection is established and, if it isn't, displays the standard connection GUI and waits for the connection to finish (or fail). If the RAS/VPN is already connected then the program exits immediately.

(ConnectVPN is designed for standard Windows RAS and VPN connections. If you are using another type of VPN then it might not work.)

You can use ConnectVPN to ensure you are connected to your VPN before continuing with something else. For example, you can use ConnectVPN to make TortoiseSVN ensure you are connected to your VPN, prompting for password etc. in the usual way if not, before doing a commit or update. (To do that, create a .bat file which calls ConnectVPN with the name of your VPN and then tell TortoiseSVN to run it via the pre-commit and pre-update hook scripts.)

Using ConnectVPN is different to scripting RasDial.exe in a couple of ways: First, if you are not connected then you will see the standard Windows connection prompts and progress dialogs instead of command-line messages. Second, you will not be prompted or bothered at all if the VPN is already connected, even if the VPN configuration does not store credentials; that is, if you don't store the VPN login & password on your computer then you'll be asked for them when required to connect but not if already connected.

Saturday, 17 April 2010

Visual Studio 2010 binary corruption issue on exFAT drives

I ran into a nasty issue where Visual Studio 2010 (the RTM version which just came out) often corrupts the binaries it outputs if the project is on an exFAT partition.

I've written about the problem on my website and also filed a bug report on the Connect website.

Hopefully it only affects exFAT partitions, and it only seems to, but it's made me decide not to switch to VS2010 just yet. I do like a lot of the new features but I'm going to wait a bit longer.

Wednesday, 24 March 2010

Make Windows synchronize time more often

I've written a guide on how to make Windows (including Windows 7) synchronize its time more often than once per week (which is important if your PC clocks drift as much as mine do).

Note that you have to do more than just make the Synchronize Time task run more often (which it turns out has no real effect at all).

Here's the guide:

http://www.pretentiousname.com/timesync/index.html

Friday, 12 March 2010

phpBB3 Next/Prev Topic Links Greasemonkey script

Another Greasemonkey script which modifies phpBB3's default prosilver theme.

This one lets you add Next Topic and Previous Topic links to the top and bottom of each thread, like phpBB2's default them had. A couple of people on the Opus forum asked for this and it turned out to be pretty easy to do.

http://www.pretentiousname.com/gm/index.html#nextprev

BTW, the other phpBB3 GM script has also had some updates in the last couple of days. Didn't seem worth spamming the RSS feed about them, though.