windows

A way to ensure that a system tray icon is removed... guaranteed

Is there a way to guarantee that your system tray icon is removed? To add the system tray icon you do: Shell_NotifyIcon(NIM_ADD, &m_tnd); To remove the system tray icon you do: Shell_NotifyIcon(NIM_DELETE, &m_tnd); What I want to know: what if you application crashes? The icon stays in your system tray until you mouse over. Is th...

Windows internet shortcuts: starting with IE maximized?

I have an internet shortcut on my desktop, with the contents looking like this: [InternetShortcut] URL=http://www.microsoft.com/isapi/redir.dll?prd=ie&pver=6&ar=IStart Modified=D03458CE7738C801A2 I was wondering if there are any tweaks I can do to guarantee that the browser starts maximized after someone loads the link. Thank...

XulRunner: hide xul-window taskbar button

Hello there! Is there any way to hide taskbar button on xul window opened by window.open or something? In Ms Windows. hidechrome, etc does not do the trick - taskbar buttons are still present for such a windows If there is no direct way, may be there\a some extensions out there that can be used programatically to archive such goal? Tha...

scripting Audacity

Is there any scripting library for Audacity? Specifically, I'm looking for a way to give it a long mp3 file podcast.mp3 and have it split into files of, say, 10 minutes each: podcast0.mp3, podcast1.mp3 etc... I don't want to do this manually, since I want to run all the podcasts I listen to through this script. Some background: ...

How do I manually install an old cygwin package?

A project I am working on requires an old version of SLAPD (the LDAP server) and must run on Windows, hence I am using cygwin packages: I've found a binary package of slapd version I need 2.2.x here: http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/release/... How do I manually install it in cygwin? It does not seem to ...

Text to speech

I am improving a small alarm/reminder application that I build years ago, and I would like to do an hourly beep, but instead of beeping it would be much nicer it would tell time. Is there any simple way to do this in DELPHI D2007 or later? Thanks ...

Where can I find the default icons used for folders and applications?

I'm trying to load the default HICON that explorer displays for: An open folder An exe that has no embedded default icon of its own. This can also be seen in 'Add/Remove Programs' or 'Programs and Features' as it's called on Vista. Do you know where these can be found? I think the folder icon might be in the resources of explorer.e...

What is WP_FRAMELEFT theme part used for?

Does anybody know what the theme parts WP_FRAMELEFT, WP_SMALLFRAMERIGHT etc are used for? Google doesn't deliver anything useful. I had a look with Windows XP Theme Explorer at them and they look like the caption of dock panels. Edit: I forgot to mention that I also searched MSDN and got only one result (Parts and States) which isn't ex...

Acquiring drive names (as opposed to drive letters) in Java

Hi, On my Windows machine, my main hard drive has the letter C: and the name "Local disk". To list the drive letters in Java on Windows, the File object has the static listRoots() method. But I can't find a way to acquire the drive names (as opposed to the drive letters) on Windows. Has anyone tried this before? Thanks, Mattijs ...

Restarting Windows from within a .NET application

How could I restart or shutdown Windows using the .NET framework? ...

Encryption of passwords on disk for open source desktop applications

Is it possible to store passwords on the local system (Windows XP) that can only be accessed by the application itself? My instinctive answer would be "no". Even if some kind of hashing or encyption is used I would think that as long as the source code is available then the determined seeker could always use this to retrieve the passwo...

Clojure IDE on Windows?

How do you develop in Clojure on Windows systems? ...

Using DPAPI with Python?

Is there a way to use the DPAPI (Data Protection Application Programming Interface) on Windows XP with Python? I would prefer to use an existing module if there is one that can do it. Unfortunately I haven't been able to find a way with Google or Stack Overflow. EDIT: I've taken the example code pointed to by "dF" and tweaked it into ...

How do I create a (32-bit) .NET application to use 3 GB RAM?

I am creating a .NET application (C#) that needs to use a lot of RAM. I recently knew that on 32-bit versions of Windows XP I can only use 2 GB, unless I use the /3Gb switch, and set the IMAGE_FILE_LARGE_ADDRESS_AWARE flag in the executable header. But since I'm developing a .NET application, I guess I cannot modify the executable direct...

What's the equivalent of Windows' QueryPerformanceCounter on OSX?

I'm porting a library from Windows to *NIX (currently OSX), does anyone now what function can I use instead of Microsoft's QueryPerformanceCounter and QueryPerformanceFrequency? ...

Monitor memory usage inside your own process

Let's put Heisenberg aside for a brief moment. How would I go about to, from within my own process, monitor how much memory this process is using? (I might have under-specified the question on purpose, dreaming of creative answers...) ...

"Access is denied" by executing .hta file with JScript on Windows XP x64

I have a simple HTML (as HTA) application that shows strange behavior on Windows XP x64 machine. I getting periodically (not every time) error message "Access is denied." when i start the application. The same application on Windows XP 32bit runs just fine... Does somebody has any idea or explanation? Error message: Line: 18 Char: 6 Er...

passing args (arguments) into a window form application

Hi guys, I have my Windows Application that accepts args and I use this in order to set up the Window behaviour problem is that I need to pass text in some of this arguments but my application is looking at it as multiple args, so, this: "http://www.google.com/" contact 450 300 false "Contact Info" true "Stay Visible" true has actua...

How can I print over the current line in a command line application?

On Unix, I can either use \r (carriage return) or \b (backspace) to print over text already visible in the shell (i.e. overwrite the current line again). Can I achieve the same effect in a Windows command line from a Python script? I tried the curses module but it doesn't seem to be available on Windows. ...

Program to view Shared Memory in Windows?

I'm looking for a program to view and browse the (local) shared memory in Windows x32/x64. I know this exists because I've seen it in action before. For some reason Google and MSDN fail me on this one. ...