windows-vista

Best place to save user information for Windows XP and Vista applications

◇◆丶佛笑我妖孽 提交于 2019-12-04 11:58:59
I need to save a user's login information in encrypted form for this application I'm building, but I'm not sure of the best place to save the file. I don't want to save it into the program application folder as I want it per user. So what is the best folder (or way) to save it into? Edit: Using C++. Seems like C:\Documents and Settings\%username%\Local Settings\Application Data may be the appropriate place according to Wikipedia . The article says this location is used for "User-specific and computer-specific application settings". Edit: Cruizer pointed out in the comments (I'd reply there but

Why Virtualization on ProgramData folder in MS Vista?

这一生的挚爱 提交于 2019-12-04 11:50:28
问题 I have an app modified to take into account the UAC in VISTA. So, now, the .mdb (JET or Access file) is located in ProgramData\MyApp\ I realized that when my app reads the database for the first time it is doing it from that location... but when my app is writting to the database... the file is virtualized and goes to Users\MyUser\AppData\Local\VirtualStore\ProgramData\MyApp . From this moment on my app always go to the Virtualized location in disk. My app is working, but if I continue this

Vista 64-bit Development Caveats

自古美人都是妖i 提交于 2019-12-04 11:01:07
I'm migrating my development workstation from 32-bit Vista to 64-bit Vista. The production platform is 32-bit Windows Server and SQL Server 2008. Does anyone know of any issues with migrating the code base? EDIT: the system consists of web forms, c# code, stored procedures. there is also ajax.net, ssrs, ssis, and dynamic reports/graphs from dundas. however, i think other users might appreciate any lessons learned or feedback in general regarding this move. FINDINGS: As of Jan 24, 2009 Checkpoint VPN does not support Vista 64 (actually it seems that very few do) Cropper utility required special

How can I make the progress bar update fast enough?

烂漫一生 提交于 2019-12-04 10:56:41
问题 I'm using a progress bar to show the user how far along the process is. It has 17 steps, and it can take anywhere from ~5 seconds to two or three minutes depending on the weather (well, database) I had no problem with this in XP, the progress bar went fine, but when testing it in vista I found that it is no longer the case. For example: if it takes closer to 5 seconds, it might make it a 1/3 of the way through before disappearing because it's completed. Even though it's progress is at 17 of

Windows form rotation

Deadly 提交于 2019-12-04 10:42:38
When you create a form in .Net it appears as a dialog box in a portrait layout. No one normally likes to read sideways, or upside down, but I have a very valid reason to rotate the form. Anyone knows how to do it on Windows Vista with C#? Does it have to be in WinForms? This is very easy to do in WPF, using rotation transforms. Unfortunately, the WindowsFormsHost integration with WPF does not allow rotation transforms. EDIT I understand, now, that the form in question is out of the control of the poster. Writing the control in WPF won't fix the problem. This would be a bit of extra work, but

How does Vista generate the icon for documents associated to my application?

耗尽温柔 提交于 2019-12-04 10:11:48
Can I affect the process? I have an application built in .NET 3.5 / VS2008. I have embedded multiple icons into the app with a win32 .res file. This is done in the Properties box for the Project in VS2008 - instead of specifying an .ico file, tick the box to specify a .res file. In the .res file you can have multiple icons. See here for what I mean. Each icon includes a 256x256xRGB (PNG Cmopressed) "Vista grade" image, a 256x256x32bit image, and the usual cascade of 48x48, 32x32, and 16x16 images in various color combos. If I view the resulting exe in Explorer, I see the big beautiful 256x256

Decrypt WEP wlan profile key using CryptUnprotectData

試著忘記壹切 提交于 2019-12-04 09:45:27
问题 I am trying to decrypt WEP profile's key using CryptUnprotectData. The way I fetched the profile key is by exporting the profile using netsh. netsh wlan export profile name="MyWEP" folder="./" For now, I manually copied the key material from the .xml file generated by the netsh command to my program. And the way, I am decrypting is - DATA_BLOB DataOut, DataVerify; DataOut.cbData = encryptData.length(); DataOut.pbData = (BYTE*)("I_Manually_Copy_The_WEP_Key_Here"); if (CryptUnprotectData(

How do you configure Firefox to allow Javascript to intercept a value pasted from the clipboard?

流过昼夜 提交于 2019-12-04 08:40:22
问题 I need to filter out certain characters when a user pastes from the clipboard. (I don't actually want to modify what's in the clipboard.) I already have this working in IE. Sigh ... tl;dr: capability.policy items in user.js make it into prefs.js but aren't taking effect. FYI, I can reasonably have all users install user.js . But none of us have admin access to our machines, so that's about all I can do regarding configuration. Thanks for any help! Note: For the purposes of this question, I do

Coerce Windows to show a thumbnail for my custom file type

五迷三道 提交于 2019-12-04 08:30:41
问题 I want to use the windows OpenFileDialog class in C# to browse files for my application. I would then like the files to show up with previews in Windows' "thumbnails" view. Is there a simple way to make this happen? I'm thinking there should be a way to encode the files so that Windows simply reads and displays the thumbnail information, even though it's an unsupported file type? I know Windows Vista has a different interface (IThumbnailProvider as opposed to IExtractImage) than Windows XP,

Vista BEX error

被刻印的时光 ゝ 提交于 2019-12-04 07:49:08
Recently I got IE7 crashed on Vista on jar loading (presumably) with the following error: Problem signature: Problem Event Name: BEX Application Name: iexplore.exe Application Version: 7.0.6001.18000 Application Timestamp: 47918f11 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a7a6 Exception Offset: 00087ba6 Exception Code: c000000d Exception Data: 00000000 OS Version: 6.0.6001.2.1.0.768.3 Locale ID: 1037 Additional Information 1: fd00 Additional Information 2: ea6f5fe8924aaa756324d57f87834160 Additional Information 3: fd00 Additional Information