windows-vista

Reading and writing DEVMODE.dmColor

旧巷老猫 提交于 2019-12-11 00:15:14
问题 I'm having trouble with the dmColor field fo the DEVMODE structure. My default printer is a color printer, if I default output color of the printer properties through the control panel to black and white the DEVMODE.dmColor field always returns DMCOLOR_COLOR instead of DMCOLOR_MONOCHROME. Even if I default my printer to a black and white only printer, DEVMODE.dmColor still always returns DMCOLOR_COLOR All of the other DEVMODE fields such as dmDeviceName, dmCopies, dmDuplex, etc work fine. I

How to make your MFC application bypass UAC in windows7 and Vista

假装没事ソ 提交于 2019-12-10 19:47:35
问题 I have an MFC application developed in VS Studio 2008 which reads and writes to a JSON file in its installation folder. It works perfectly in vista(administrator) BUT ONLY when UAC is turned off. When UAC is ON, the application isn't able to write to its JSON file. I figured I had to create a manifest file but I haven't really tried creating one. Questions: reference: http://msdn.microsoft.com/en-us/library/bb384691.aspx. It says here that you can simply set the linker options in the Visual

Missing windows authentication IIS component because of Windows Vista Home Premium edition… any fixes out there?

寵の児 提交于 2019-12-10 18:54:53
问题 Apparently Windows Vista Home Basic and Premium both do not ship with integrated windows authentication for IIS (You need Business edition)... so does anyone know how to get windows authentication installed for IIS? I went into Programs and Features > Turn Windows Features on or off . Then in the Windows Features popup I navigated to... Internet Information Serivces > World Wide Web Services > Security > ??? Under security the only options that were there are: Basic Authentication IP Security

MS Word opens documents hosted on WebDav share read-only on Windows Vista and 7 but only if no other webdav connections are open

南笙酒味 提交于 2019-12-10 17:45:19
问题 We have a WebDav server with some Word documents on it. (We are using PHP's HTTP_WebDAV_Server but get the same issue on tests with Apache mod_dav - both use digest authentication, basic auth doesn't work on Vista or later) We have a web page that opens the word documents using javascript like: Doc = new ActiveXObject("Sharepoint.OpenDocuments.3"); Doc.EditDocument(url, 'Word.Document'); which causes word to connect to the webdav server and open the document, bypassing IE and most of windows

How to disable automatic appending of wildcard pattern in Vista file open dialog

喜夏-厌秋 提交于 2019-12-10 17:05:47
问题 I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats. Since Vista automatically appends the wildcard patterns in the filter combobox, the expanded combobox is too wide to fit completely on the screen. Besides that it doesn't look very well. So is it possible to disable this behaviour and let Vista display the original filter string? Regards, Daniel 回答1: Vista only appends

Does Event logger in C# needs admin privileges to write logs into Windows Event Viewer?

[亡魂溺海] 提交于 2019-12-10 12:48:24
问题 In my C# application I am using EventLog class to log messages. It works perfectly fine on my machine but doesnt really works on client machine. Client machine configuration is different than my machine. My machine has Vista OS whereas client has Windows 2003 OS. I have admin rights on my machine whereas on client machine my application runs under non-admin user previleges. On client machine I get error as Faulting application , version ,faulting module kernel32.dll My application stopped

Problem in hosting ActiveX on Vista (in a Visual Studio 6 C++ application)

可紊 提交于 2019-12-10 12:04:33
问题 I just installed Visual Studio 6 (SP5) on a Vista Enterprise machine. Had some problems but I think it’s set up alright. The problem is my VC++ 6 application fails when trying to host an ActiveX. I was able to compile it ok, though got a warning message from Vista about the rc.exe (“This program has known compatibility issues” ). When I debugged it I saw that my class that derives from CAxDialogImpl fails on its Create() method. The same application worked just fine on XP! Is there a known

Closing Process of a Delphi App under Vista

纵然是瞬间 提交于 2019-12-10 11:56:36
问题 When we created our program, it closed properly under XP, but under Vista, even though the program is closed, the process is often still running until I open task manager and manually kill the process. Any suggestions on how to make sure this is closed when we close the program? What a pain. Mark Gundy www.magchat.com 回答1: The debugger will be your friend here. Step through the shutdown until you get stuck. That'll be the best bet. But... assuming for some reason the debugger is affecting the

How to cope with Install error 1920 about winsxs merge modules in Vista and 7?

半腔热情 提交于 2019-12-10 11:50:17
问题 When I try to install my msi package I get an error only in Vista and 7. "Error 1920. Service ... (...) failed to start. Verify that you have sufficent privileges to start system services" I get this error in Vista or 7 if I build my setup with C++ 9 CRT Winsxs MSM merge module If I use C and C++ 7 runtime libraries it doesn't have this problem, but I must build my exe with old versions of MS Visual Studio. Does anyone have idea how can I cope with that? 回答1: As a general rule of thumb, you

UAC: Manifest file is ignored

有些话、适合烂在心里 提交于 2019-12-10 10:58:01
问题 One of my Executables writes some configuration into a XML file to C:\Program Files\MyApp\config.xml. It needs to run as Administrator on Vista / Server 2008, otherwise the OS won't let it write to that location. I included a manifest file named config.exe.manifest, to automatically request administration rights at launch. Here's my manifest file: <?xml version="1.0" encoding="utf-8"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas