windows-vista

Any designers or libraries for creating "Vista-style" web pages?

I'm looking for a way to create websites with the cool stylings of Windows Vista, like what is shown in this screenshot (taken from one of Microsoft's websites): Any suggestions? I'd prefer an integrated designer / IDE, but libraries or templates might also help. ...

Launching a Application (.EXE) from C#?

How can I launch a application using C#? Requirements: MUST work on XP and VISTA? I have seen a sample from DinnerNow.net sampler that only works in vista? ...

app GUI similar to Control Panel in Vista

I was playing a bit with Windows Vista (still using XP) and I liked how the standard Control Panel worked. Do you think this design is good also for normal applications? I like the idea of showing main topics with large fonts + icons. Details within each main topic are displayed using a small font and are immediatelly accessible without...

Preserve mapped drive letter information during UAC elevation

We have an application that needs to know the path that it is executed from (which is always a network path). We set up part of our configuration based on the path that the application is launched from, and we really want that configuration to use mapped network drive paths instead of the UNC path to the resource. What we've found is t...

What's the best way to to automate the back up of a couple folders in windows?

I've got a couple folders of personal scripts and such I'd rather not lose if the hard drive on my dev machine goes out (all the source is in SVN, and all the other important stuff is backed up elsewhere as well). What's the easiest way to back up certain folders to another local HD at something like 2AM every morning? ...

Running as admin some times.

I have a program that needs to run as a normal user most of the time once in a while I need to stop and start a service. How do I go about making a program that runs as a normal user most of the time but elevates into administrator mode for some function. ...

Editing the Registry with VBScript on Vista

A VBScript cannot edit the registry by default on Vista. How do I get elevation (even if the user has to do something when they run the script) so that the script can edit the registry? The error is: --------------------------- Windows Script Host --------------------------- Script: blah blah blah.vbs Line: 6 Char: 1 Error: Permi...

Where can I write data to on Windows Vista using any account and be viewable from all other accounts?

I need to write some registration data (unique computer number, and corresponding activation code). The Computer Number needs to be visible from other programs and all accounts ({Admin|Non Admin} with User Access Control turned {On|Off} ) It's acceptable to write the Computer Number and Activation Code only from an Admin account, but i...

Turning on Presentation Mode in Windows?

Windows Vista has "Presentation Mode", which you can turn on with the Mobility Center. How can I turn it on programmatically? ...

Silverlight 2 Sidebar Gadget

How do you display a Silverlight 2.0 application in a Vista Sidebar gadget? Whenever I load a gadget with the standard Silverlight 2 object tag, I get the no-silverlight default content instead of the app. So, what's the trick to allowing it to run? This is how I am currently trying to pull it off: <html> <head> <meta http-equi...

Why is RegOpenKeyEx() returning error code 2 on Vista 64bit?

I was making the following call: result = RegOpenKeyEx(key, s, 0, KEY_READ, &key); (C++, Visual Studio 5, Vista 64bit). It is failing with error code 2 ("File not found") even though "regedit" shows that the key exists. This code has always worked on 32bit XP. Why is it "file not found" when it clearly is there? ...

Make UAC optional in Windows Installer on Vista

I'm have written an msi file that offers a choice of "per-user" or "for all" installation in the UI phase, and now find that the installer fails on Vista: if I just reuse the installer that works for XP, Vista will trigger a UAC prompt even for the "per-user" installation, making that installation pointless if I turn off UAC in bit 3 o...

Can the built in VPN client "Connect to Workplace" in Vista home connect to a Cisco router?

Can the built in VPN client "Connect to Workplace" in Vista home connect to a Cisco router? Are there any other Cisco compatible clients? I love vpnc, but it only runs under Linux or Cygrin on Windows. ...

Turn off power saving options via command line

On Windows XP, the following command in a script will prevent any power saving options from being enabled on the PC (monitor sleep, HD sleep, etc.). This is useful for kiosk applications. powercfg.exe /setactive presentation What is the equivalent on Vista? ...

msvcr71.dll file missing on Win Vista when trying to run my java swing application

I've done numerous searches and I realize that I can just download this file and install it either in windows/system32 or in the application's directory. My question is, how does this dll generally get installed on Vista? I tried installing the .net framework 3.5 and it didn't get installed with that. Background: I'm running a java.jar...

Why do some menus open to the left of the cursor and others to the right?

In some applications (notably Visual Studio 2008, Windows Explorer, Internet Explorer) all of the menus open to the left of the cursor. In other apps (Firefox, ACDSee) they open to the right. Then there's Foxit Reader, where the ones in the menu bar open to the left and the context menu opens to the right. This is very annoying. Is ther...

Request admin privileges for Java app on Windows Vista

When I try to create a new task in the task scheduler via the Java ProcessBuilder class I get an access denied error an Windows Vista. On XP it works just fine. When I use the "Run as adminstrator" option it runs on Vista as well.. However this is a additional step requeried an the users might not know about this. When the user just do...

SSIS: DTS Package Editor fails with: Attempted to read or write protected memory

Hello All I'm trying to migrate some DTS packages from SQL Server 2000 to 2008 to see how much pain is involved. I've got the Standard version of SQL Server 2008 installed on my local machine. I downloaded the Microsoft SQL Server 2000 DTS Designer Components and Microsoft SQL Server 2005 Backward Compatibility Components from msdn ...

Determine window visibility in Vista

I want to determine if a certain window is visible to the user or hidden/occluded. In Windows XP I would use the GetClipBox() function and check for a NULLREGION or empty RECT return value. This worked perfectly fine, but on Windows Vista it does not work if another window is occluding the window. In this case, GetClipBox() is returning ...

Maximum Filename Length in NTFS (XP and Vista)?

Quick and simple question which I need the answer to. I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS; aka Windows XP or Vista? Many Thanks ...