windows-vista

Embedding icon in .exe with py2exe, visible in Vista?

老子叫甜甜 提交于 2019-12-20 08:39:17
问题 I've been trying to embed an icon (.ico) into my "compyled" .exe with py2exe. Py2Exe does have a way to embed an icon: windows=[{ 'script':'MyScript.py', 'icon_resources':[(1,'MyIcon.ico')] }] And that's what I am using. The icon shows up fine on Windows XP or lower, but doesn't show at all on Vista. I suppose this is because of the new Vista icon format, which can be in PNG format, up to 256x256 pixels. So, how can I get py2exe to embed them into my executable, without breaking the icons on

WCF gets Access denied when the consumer try invoke a WCF service calls hosted on Virtual Machine

淺唱寂寞╮ 提交于 2019-12-20 02:32:52
问题 Problem System.ServiceModel.Security.SecurityAccessDeniedException : Access is denied. Relevant Stack lines (reduced) Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) Environment Developer Machine (host): Windows Vista,

Issue with .cab file (ActiveX) installation on Windows Vista and 7

无人久伴 提交于 2019-12-20 02:12:59
问题 I have made an ActiveX control and have made its .cab file for automatic installation on client machine using Internet Explorer.. It working fine of Windows XP, but on windows Vista and Windows 7 its installation is blocked by UAC (User account control), and when I disable it, all things works fine... I have signed my .cab file with a certificate for development enviornment... What is the way to over come this problem.. I don't want to tell users to disable their UAC module... 回答1: Most

How do we create an installer than doesn't require administrator permissions?

烂漫一生 提交于 2019-12-19 06:46:24
问题 When creating a setup/MSI with Visual Studio is it possible to make a setup for a simple application that doesn't require administrator permissions to install? If its not possible under Windows XP is it possible under Vista? For example a simple image manipulation application that allows you to paste photos on top of backgrounds. I believe installing to the Program Files folder requires administrator permissions? Can we install in the \AppData folder instead? The objective is to create an

Vista Speech Recognition in Delphi

陌路散爱 提交于 2019-12-19 03:20:43
问题 I would like to be able to dictate into my Delphi application using Microsoft Vista's speech recognition. However when attempting to dictate into a TMemo, it simply does not work. I noticed that Firefox 3.0 has the same issue and after they contacted Microsoft about the problem, they told them that they need to implement the Text Services Framework for their application. I am wondering if there is any way to implement this in Delphi so that I can dictate into a TMemo or a TRichEdit. Searching

Vista Speech Recognition in Delphi

♀尐吖头ヾ 提交于 2019-12-19 03:20:16
问题 I would like to be able to dictate into my Delphi application using Microsoft Vista's speech recognition. However when attempting to dictate into a TMemo, it simply does not work. I noticed that Firefox 3.0 has the same issue and after they contacted Microsoft about the problem, they told them that they need to implement the Text Services Framework for their application. I am wondering if there is any way to implement this in Delphi so that I can dictate into a TMemo or a TRichEdit. Searching

Can I get write access to raw disk sectors under Vista and Windows 7 in user mode?

流过昼夜 提交于 2019-12-18 16:59:32
问题 From the RawDisk website: The new security model of Windows Vista puts tight restrictions on applications executed in user mode. Even with elevated administrative rights, the application can’t get write access to raw disk sectors. Is this true? From the Microsoft doc: The changes to the file system and to the storage stack do not apply if the volume is not mounted or if the volume has no file system. Please give either a link to the official Microsoft doc confirming the RawDisk website or a

C# Windows7/Vista style ListView

て烟熏妆下的殇ゞ 提交于 2019-12-18 15:48:32
问题 when I create a ListView in details view in VS2008, it creates a rather old looking listview. It doesnt have any of the fancy hover effects and cool blue border that (for example) the file explorer in WinVista and Win7 has. See image for example: So to summarise, how can I get a ListView in C# VS2008 look like the one in the picture above? (VS2008 listview on the right for comparison) Thanks 回答1: Try calling SetWindowTheme Like this: [DllImport("uxtheme.dll", ExactSpelling=true, CharSet

Listing files in recycle bin

北城以北 提交于 2019-12-18 12:35:15
问题 I'm wanting to list the files that are in the recycle bin in Vista from the command line. So far I have this.. dir C:\$Recycle.Bin /s /b >> recyclebin.txt That does alright, the output I get is this.. C:\$Recycle.bin\S-1-5-21-931442927-344369455-2477061601-1000\$I2H8K48.zip C:\$Recycle.bin\S-1-5-21-931442927-344369455-2477061601-1000\$IE94UAG.exe C:\$Recycle.bin\S-1-5-21-931442927-344369455-2477061601-1000\$IR4P99W.rar C:\$Recycle.bin\S-1-5-21-931442927-344369455-2477061601-1000\$R2H8K48.zip

How do I use C# to get the Hard-disk serial number?

走远了吗. 提交于 2019-12-18 11:57:49
问题 How do i get the hard disk serial number without using dll and supported by VISTA 回答1: using System.Management; public string GetHDDSerial() { ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia"); foreach (ManagementObject wmi_HD in searcher.Get()) { // get the hardware serial no. if (wmi_HD["SerialNumber"] != null) return wmi_HD["SerialNumber"].ToString(); } return string.Empty; } 回答2: here is the code that work's for me :