windows-vista

Windows XP vs Vista: NTFS Junction points

廉价感情. 提交于 2019-12-03 06:57:56
问题 Problem: I relied heavily on NTFS Junction points in Windows XP, even though they apparently were not an "official" feature of the operating system. Now MSFT has generously made NTFS Junction points an official part of Vista, but apparently they also intentionally broke them. Now my WinXP-created junction points on portable USB drive don't work when I plug that drive into a Vista box. Questions: Does anyone have a script that will force NTFS junctions created on XP to work correctly within

chcp 65001 and a .bat file

瘦欲@ 提交于 2019-12-03 06:49:08
I have a problem with chcp 65001 command in Windows shell. I need to generate a list of files in a folder. So I ran cmd.exe, typed cd folder dir /B /O:N > list_of_files.txt It worked, but I had a problem with special, non-ASCII characters which are in some file names. So I added chcp 65001 Everything worked, but when I put these commands into a .bat file, the script doesn't work. So cd folder chcp 65001 dir /B /O:N > list_of_files.txt doesn't generate the list. and cd folder chcp 65001 && dir /B /O:N > list_of_files.txt as well as cd folder chcp 65001 > nul && dir /B /O:N > list_of_files.txt

Reason for ~100x slowdown with heap memory functions using HEAP_NO_SERIALIZE on Windows Vista and Windows 7

我的未来我决定 提交于 2019-12-03 06:02:56
问题 I'm trying to tracedown a huge slowdown in the heap memory functions in Windows Vista and Windows 7 (I didn't test on any server editions). It doesn't happen on Windows XP at all, only on Microsoft's newer operating systems. I originally ran into this problem with PHP complied on Windows. The scripts themselves seemed to run at the expected speed, but after script execution I was experiencing 1-2 seconds of delay in the internal PHP shutdown functions. After firing up the debugging I saw that

How to detect if a Windows version is legal or not? [closed]

*爱你&永不变心* 提交于 2019-12-03 05:42:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm not interested in getting version information. All I want to do is to make sure my application will only run on a legal version of Windows and not on a pirated version. Windows uses some trick to determine this but still allows pirated versions to continue to run, although with some limits. So, is there a

Batchfile to create backup and rename with timestamp

风流意气都作罢 提交于 2019-12-03 05:07:01
问题 I have the following network path to copy the file to an archive folder. It copies File 1 from Folder to Archive but I would like to add these 2 adjustments that won't work. Rename File 1-1 to File 1 - date + time Running it now displays a cmd box with the copy code, is it possible to run it in the background or have a loading screen to show the progress? For my code I followed this example to change the name to a date. copy "F:\Folder\File 1.xlsx" "F:\Folder\Archive\File 1-1.xlsx" /f "tokens

Installing Exuberant Ctags on Windows (Vista and XP)

北城余情 提交于 2019-12-03 04:48:25
问题 I want to use Exuberant Ctags on Vista (and probably the XP laptop) at work; no choice about the OS. I'm use GVim instead of the Flex Builder recommended by my co-worker, because the FB is buggy and doesn't do what GVim does, anyway. I got the zip file here. The Ctags install file says, among other things: mk_bc3.mak For MSDOS using Borland C/C++ 3.x mk_bc5.mak For Win32 using Borland C++ 5.5 mk_djg.mak For MSDOS using DJGPP Gnu GCC (better to follow Unix install) mk_ming.mak For Win32 using

Decrypt WEP wlan profile key using CryptUnprotectData

↘锁芯ラ 提交于 2019-12-03 04:11:23
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( &DataOut, NULL, NULL, NULL, NULL, 0, &DataVerify)) { printf("The decrypted data is: %s\n", DataVerify

What is the difference between the new TFileOpenDialog and the old TOpenDialog?

橙三吉。 提交于 2019-12-03 03:31:05
问题 What is the difference between the new TFileOpenDialog and the old TOpenDialog? In my computer (Win 7/DXE), when I run the code, the dialogs look the same. 回答1: TOpenDialog wraps the traditional GetOpenFileName . It works on all versions of Windows. TFileOpenDialog wraps the new COM based dialog that was introduced in Vista. It therefore only works on Vista or later. It has more functionality than the older dialogs, most notably the tight integration with search. Vista common dialog

How to detect whether Vista UAC is enabled?

只愿长相守 提交于 2019-12-03 03:13:43
问题 I need my application to behave differently depending on whether Vista UAC is enabled or not. How can my application detect the state of UAC on the user's computer? 回答1: This registry key should tell you: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System Value EnableLUA (DWORD) 1 enabled / 0 or missing disabled But that assumes you have the rights to read it. Programmatically you can try to read the user's token and guess if it's an admin running with UAC enabled (see here). Not

Troubleshooting DPI Virtualization and DPI-aware applications, in Windows Vista and Windows 7

∥☆過路亽.° 提交于 2019-12-03 02:26:06
问题 I have a problem where an application (written in Delphi) is behaving properly at default 96 DPI settings on all systems, but is behaving inconsistently at the "150% text size" (internally 144 dpi) setting, on different systems. It seems that on some systems, that certain text/font parts of my application are being stretched and on other systems, they aren't. I would have thought that my application, on a certain version of Windows (Win7), at a certain DPI, should behave the same way. Either