windows-vista

newline statment does not works in Log4Net under Vista Guest account

Hi I'm using Log4Net (1.2.10.0) for logging in my application. It's working fine - till I run it on Vista SP2 under Guest user. The log file does not contains a newline characters - all log is a single line. This is not happen when I run the application as regular or admin user. Only in case of built-in guest account. Any ideas? The ...

Windows Server 2008 R2 File Permissions

I’m having some problems understanding some particular file permissions behaviour. Here are the steps to reproduce: Log into the server using the default Administrator account Create a text file (testfile.txt) in C:\ProgramData containing some arbitrary text Create a new user account and make it a member of the Administrators group Log...

How to give 'Everybody' full rights to a file (programmatically)

I'm modifying an old C++ program to run on Vista. It does not require Admin privileges. I've changed the code to put logfiles in \ProgramData\MyApp\. These logfiles are written with the stdio functions (fopen, fprintf, fclose). Here's the problem: UserA runs the program first, it creates \ProgramData\MyApp\MyLogFile.txt using Create...

Could not load the following font issue in ireports

We have our own fonts for our application. We are using Windows Vista operating system to develop the Reports using iReport. We are using iReports 3.7.1. I kept all my fonts in a folder in C:\ drive. I gave fonts path in iReport. Still I am getting 'Could not load the font' error while generating the report. The same worked fine on Win...

How to program a bootloader..? Want a USB Flash Drive with Windows 7, XP, Vista, and perhaps 98 SE on it to use for installs

Hello again my fellow StackOverflow friends! What I would very much like to do is copy the contents of my Windows 7, Windows XP (Pro and Home SP3), Windows Vista, and assuming I have space left for it my most updated copy of 98 SE installation CDs onto a flash drive so that I can use that for any OS installs that I need to perform. Obv...

Can you use VISTA sized icons when you use 'Load icon' in Delphi 7 ?

I cannot load icons which contain Vista sized icons when using the 'Load icon' in the application tab of Delphi 7. Does someone knows how to display icons bigger than 48x48 in Vista and Windows 7 using an application developed in Delphi 7? ...

Which programs must have manifest resource?

New microsoft's IDEs like Visual Studio 2008 or 2010 creates exe files with manifest resource by default. But i still have some projects in Visual Studio 6 and i need to compile them to be maximum compatible with Win Vista and Win 7. So i have many questions about manifest resources: 1. Is manifest resource required to create well-formed...

Modifying a file from within an executable - permission denied in XP (but not Vista)

I have an application where I need to open an xml file, modify it, and close it again. When I test the code on a laptop running Windows Vista, it works perfectly, but under Windows XP I can't even open the file for read/write access: errno_t _wfopen_s(&inStream, m_fileName, L"r+, ccs = UTF-8"); ...without getting an error code 13, "Pe...

django-admin.py is not working properly

I have just spotted that something is wrong with my django-admin.py command. I checked similar SO posts on django-admin.py problems but nothing seems to be related to my problem. I use Windows Vista (yeah, I know...). I also have many versions of django in some folder on my disk and I switch to the version I need using junction command (...

Get windows serial for XP, Vista and Seven

I'm retrieving Windows XP license key with this function but it does not work for Vista and Seven. How can I get the license key at both of these Windows versions? Public Function sGetXPKey() As String Dim result As String = String.Empty Dim RegKey As RegistryKey = _ Registry.LocalMachine.OpenSubKey("Software\Microsoft\Wind...

Windows Vista Speech Recognition engine sampling rates

I need to recognize the speech from a set of WAV files that are not recorded on the computer doing the recognition. I know that if you recognize the speech from WAV files that are recorded at the same sampling rate as the recordings that the engine used for training, the results will be better. But my questions is: what's the sampling r...

How do I get battery information in windows?

I have two laptops here. One is running Vista, the other Windows 7. I need to get the specifications on the batteries in both, how do I go about that? The reason I'm asking is that I'd like to know if they're lithium ion or something else. Supposedly other types of batteries may have adversely affected charge capacities if left plugged...

Internet explorer 8 blue colored textboxes in my PC

Hello, I use Firefox in daily use. While testing own web-application in Internet Explorer, I've get bug like this(as example facebook.com page): As example I capture facebook.com website. Blue colored textboxes. This issue then I catch in other web-sites. How to fix this problem? I haven't installed any plugin to IE and haven't cust...

What is the registry location of windows vista search history?

Hi what is the search history location in vista? I need to get it programmaticaly. I know that in other windowses, its in: windows xp/2000 * HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru\5603 Windows 98 * HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU Windows 7 * HKEY_CURRENT_...

How to use SetWindowsHookEx in Vista and hook Admin apps with UAC?

I'm trying to figure out if there's a way to use SetWindowsHookEx and be able to affect apps that are run with Admin rights on Vista, with UAC enabled. This is an app that will need to add a small button to the caption bar of other windows to enable some multi-monitor-aware handling. I would have thought this couldn't be done, but I've...

Adjusting keyboard shortcuts on Windows

How to change default shortcuts? For example, I want to try Caps+S instead of Ctrl+C. ...

Run app from a service using CreateProcessAsUser

I'm still trying to run an app calling it from windows service. I tried to use the way described by Scott Allen. It works. But still I can't bring the app to the screen to interact with it. Help me pls. Even if I'm telling it to run the service using my credentials it doesn't bring the app on my desktop. tell me please how to get the cu...

Is it possible silently run something as Administrator

How to trick UAC in Vista and Windows 7? How can I run something that needs not just administrator rights, but especially must be told to run as Administrator. I've tried start a process with given admin credentials, and even tried to use win32 function CreateProcessAsUser, but still unless I tell it manually "run as Administrator" it d...

How can I open up Windows Firewall (VISTA) for outbound traffic to allow computer to see networked drives?

I have a computer (Vista) that has to have a firewall on it. Furthermore, it's imposed (from management) that under Firewall properties, the Outbond connections are blocked. The default is "Allow". I would, however, like this computer to be able to see networked drives. I have tried opening up various things by going to Outbound Rules...

EXE from Delphi 2006 : Buttons/Checkbox/Radios not visible until mouse is hovered (on Vista/Win7)

Under Windows Vista and Win7 there is a problem with applications created by Delphi (we use Delphi 2006, but it seems other versions have the same problem) which contain the XP manifest. All descendants of TButtonControl (TButton, TCheckBox, TRadioButton, but not TBitBtn) are not visible after a form is initially shown. The controls app...