The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘Windows 7’ Category

A couple DLL Locations that Windows uses to display Icons from

Posted by jpluimers on 2013/03/11

This one most people know of:

  • %SystemRoot%\system32\SHELL32.dll

But these files also provide icons:

  • %SystemRoot%\system32\filemgmt.dll
  • %SystemRoot%\system32\dsadmin.dll
  • %SystemRoot%\system32\els.dll

Various versions of Windows share the icon ID in those files, but have different visual content.

A tool like IconsExtract – Extract icon/cursor stored in EXE, DLL, OCX, CPL files can be used to view or extract those icons.

IconExtract works much better at finding the Index inside SHELL32.dll that is described at How Can I Change the Icon for an Existing Shortcut? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs.

Copyright issues might apply…

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

DropBox leaks suspended processes when it cannot poke through your HTTP Proxy

Posted by jpluimers on 2013/03/08

On Windows, when you have a HTTP Proxy Server and DropBox cannot poke through it, it pops up a window asking if you want to change the “Connection Settings”.

When you have a busy proxy that denies access when busy, but allows when not busy, the window disappears and DropBox continues.

So far so good you think?

Not! DropBox creates suspended process instances of itself when showing or removing the window.

And when DropBox exits, it doesn’t cleanup those suspended processes: you have to do that yourself.

They take up a couple of hundred kilobyte each.

You can use Taskkill. to clean them up like this:

C:\users\jeroenp>taskkill /F /IM Dropbox.exe

Which gave this result on my machine after about 15 minutes:

SUCCESS: The process "Dropbox.exe" with PID 22632 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 23680 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 21240 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 22312 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 22568 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 23116 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 23288 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 5328 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 16784 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 17248 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 15056 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 21508 has been terminated.
SUCCESS: The process "Dropbox.exe" with PID 16276 has been terminated.

I’ve seen this behaviour on Windows 7.

–jeroen

Posted in Power User, Windows, Windows 7 | Leave a Comment »

New Java update available: patch all your machines for yet another zero-day fix: Security Alert CVE-2013-1493

Posted by jpluimers on 2013/03/05

It starts to be not so funny any more: almost every week a new Java security update.

Time to update again, to stay secure and install the patch: Security Alert CVE-2013-1493.

On the funny side: Java 0day countdown.

–jeroen

via: Security Alert CVE-2013-1493.

Posted in *nix, Apple, Development, Java, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User, Software Development, Windows, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: , , , , | 2 Comments »

Most common error codes during Windows/Microsoft Update

Posted by jpluimers on 2013/02/25

Finally I found a good list of error codes that you might encounter when doing Windows/Microsoft Updates.

The page is for Windows XP SP3, but the error codes occur in many other update situations as well.

Error code that appears in the WindowsUpdate.log file Error Code description (as it may appear in the Svcpack.log file) Knowledge Base article that describes potential resolutions
0x8007F0F4 STATUS_PREREQUISITE_FAILED 949388
0x80246007 SUS_E_DM_NOTDOWNLOADED 949386
0x8007F003 STATUS_NOT_ENOUGH_SPACE 949385
0x80070005 ERROR_ACCESS_DENIED 949377
0x800706BE RPC_S_CALL_FAILED 950718
0x8007F02B STATUS_NOT_ENOUGH_WITH_UNINST 949375
0x87FF0004 Error_Too_Many_Open_Files 950718
0x8007054F Error_Internal_Error 949384
0x8007001F ERROR_GEN_FAILURE 950718
0x8007F070 STATUS_SETUP_ERROR 950718
0x8007F205 STR_UPDATE_ALREADY_RUNNING 949381
0x8007F004 STATUS_INSUFFICIENT_PRIVS 951244
0x80070001 ERROR_INVALID_FUNCTION 950718
0x80070002 ERROR_FILE_NOT_FOUND 950718
0x8007F0CC STATUS_KERNEL_NONSTD 327101
0x87FF054F n/a 950718
0x87FF36B7 n/a 950718

Oh and this didn’t solve my problem:

  • REGSVR32 WUAPI.DLL
  • REGSVR32 WUAUENG1.DLL
  • REGSVR32 ATL.DLL
  • REGSVR32 WUPS2.DLL
  • REGSVR32 WUCLTUI.DLL
  • REGSVR32 WUPS.DLL
  • REGSVR32 WUWEB.DLL
  • REGSVR32 WUAUENG.DLL

–jeroen

via:

Posted in Power User, Windows, Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

How to make a disallowed-by-default Software Restriction Policy

Posted by jpluimers on 2013/02/22

Locking down your Windows system even further than the standard restricted user: How to make a disallowed-by-default Software Restriction Policy.

–jeroen

Posted in Power User, Security, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | 1 Comment »

Map WebDAV Drive tool: works in Windows 8 and Windows 7

Posted by jpluimers on 2013/02/15

Wow, I wish I had found this tool a lot earlier: Map WebDAV Drive.

–jeroen

via: windows – Mapping a Network Drive with Delphi WITHOUT WNetAddConnection2 – Stack Overflow.

Posted in Power User, Windows, Windows 7, Windows 8 | Tagged: , , , , | Leave a Comment »

Disabling the Microsoft Security Essentials service by commandline: MsMpSvc

Posted by jpluimers on 2013/02/01

There are (rare and offline) occasions where you want to want to stop/start the service that provides Microsoft Security Essentials.

A few notes first:

  • Only do this when you are off-line
  • Be sure to enable the Microsoft Security Essentials by starting its service as soon as possible
  • You need to be Admin (and on Vista and up with UAC using elevated security)

This is how: Read the rest of this entry »

Posted in Power User, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Leave a Comment »

START: Start a program, **even if it is not on the PATH** ideal to start various versions of apps from DOS

Posted by jpluimers on 2013/01/29

A while ago, I had to adapt a DOS app that used one specific version of Excel to do some batch processing so it would support multiple versions of Excel on multiple versions of Windows.

One of the big drawbacks of DOS applications is that the command lines you can use are even shorter than Windows applications, which depending you how you call an application are:

This is how the DOS app written in Clipper (those were the days, it was even linked with Blinker :) started Excel:

c:\progra~1\micros~2\office11\excel.exe parameters
01234567890123456789012345678901234567890
          1         2         3         4

The above depends on 8.3 short file names that in turn depend on the order in which similar named files and directories have been created.

The trick around this, and around different locations/versions of an application, is to use START to find the right version of Excel.

The reason it works is because in addition to PATH, it checks the App Paths portions in the registry in this order to find an executable: Read the rest of this entry »

Posted in Batch-Files, Development, Encoding, Power User, Scripting, Software Development, Unicode, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

AkelPad Editor: tiny, and functional. Too bad it steals the Alt-letter keyboard shortcuts

Posted by jpluimers on 2013/01/25

Just found out about the AkelPad Editor.

It is tiny, has a lot of functionality.

Too bad that Alt+V does not go to the View menu, but is bound to a kind-of-past functionality.

Similar for other Alt+letter combinations in their keyboard shortcuts.

They should have used Ctrl+Alt+letter combinations for it.

So I continue my search for a good, tiny, syntax highlighting and multi-encoding capable NotePad alternative.

–jeroen

Posted in Keyboards and Keyboard Shortcuts, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Microsoft Office Communicator: error message with ID 504 means “you think the other party is on-line, but it is off-line”

Posted by jpluimers on 2013/01/17

Every once in a while, Office Communicator indicates a contact is not off-line and allows me to send messages to him/her, but then gives an error 504.

The reason is that the off-line status replicates slowly, so you were not aware your contact went off-line while typing the message.

The Error ID 504 is just an unfrienly way of saying “your contact went off-line, but you didn’t know that when sending the message, and I don’t have a friendly way of telling you this”.

–jeroen

via: Communicator 2007 R2 Help on Error ID 504.

Posted in Communicator, Office, Power User, Windows, Windows 7, Windows XP | Leave a Comment »