windows-7

rapi.dll problem in windows 7 - C#

hi i work with OpenNETCF.Desktop.Communication.dll (RAPI) to connect between PC and Windows mobile in my C# program. in Windows xp it work's excellent, but in windows 7 i get this error: Unable to load DLL 'rapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) in windows xp i install ActiveSync but...

Registry key for Install update and hotfix information on windows 7

Hi All, I am working on windows 7 support. In my application I want to gather installed updates and patches. Currently I am gathering it from WIn32_QuickFixEngineering. But it is not giving information for InstalledSDate , Description. I need to get this either from registry or API (C++ application). In other operating system like XP,...

Vista/Win7 Listview "View Slider"

In Vista and Windows 7 almost any time the system uses a standard Listview (ie: Explorer Windows) it's accompanied by a little split button that shows a slider when the split is clicked that allows you to switch between the different views available for that listview (Tile, Details, List, etc.) as well as sliding smoothly between icon si...

Does Visual Studio 2008 work well with Windows 7 pro 64bit

I am just about to buy a Dell Studio 15 Laptop with Windows 7 Pro 64bit Has anyone faced any issues in installing or working with Visual Studio 2008 on Windows 7 Pro. Or do I need to go for Windows 7 Pro 32 bit? [EDIT] Any issues with any other development tools, what about VS2008SP1, Azure Add ons, Sql Server 2008 express, Virtual Ser...

How Can I Check To See If the User Set His Clock Back?

In my desktop program, I want to check that to see if the user has set his clock back. To do so, I compare the timestamp of certain Operating System files to the current computer date. If any are after what the computer thinks is the current date, then he must have set his clock back. For Windows XP, I have been using such files as: ...

LoadLibrary on OCX file fails in Windows 7 x64

Hi, I need to open a html help file from within a legacy windows application written in old version of C++ Builder. HtmlHelp is loaded via HtmlHelp.ocx, which I am loading via LoadLibrary. This has worked fine for years, but it does not work anymore in Windows 7 x64. It might also fail under Windows7 x86, but I don't have any computer...

the element 'transport' cannot contain child element 'extendedProtectionPolicy' because the parent element's content model is empty

I inherited a web application that makes calls to a web service. It is being developed in VS2008 SP1 and deployed to IIS6 (2k3 Server R2). Since I upgraded to Windows 7 Enterprise RTM, the following line gets added to my Web.config: <extendedProtectionPolicy policyEnforcement="Never" /> The problem is that when I deploy this applicat...

ITaskbarList3 undeclared?

I'm trying to write some c++ code to use the ITaskbarList3, but I'm getting that error. I have confirmed that I am including shobjidl.h (but I checked and this file only defines up to ITaskbarList2). I have Visual Studios 2008 (SP1) and I have Microsoft Windows SDK for Windows Server 2008 installed. Does anyone know what I am missing? ...

How to recursively delete an entire directory with PowerShell V2

What is the simplest way to forcefully delete a directory and all its subdirectories in PowerShell? I am using PowerShell V2 in Windows 7. I have learned from several sources that the most obvious command, Remove-Item $targetDir -Recurse -Force, does not work correctly. This includes a statement in the PowerShell V2 online help (found u...

Slow network file copy on Windows 7

I wrote a program that uses xcopy to transfer files (usually between 1KB and 2MB) over our intranet. Usually, I am copying files from my host machine (Windows 7 x64) to a VMWare virtual machine running Windows Server 2008 (the VM is running on my host machine, if that matters). On Windows XP, the file transfers usually only require a fe...

Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to *%ProgramFilesFolder%\OurApplication\demo\* since restricted users will not be able to open and modify these projects. Is there a "correct" place to install these files now? The two alternatives that I am aware of would b...

Windows 7 Taskbar progress

Quick question, I've developed a Forum specific C# WPF WebBrowser, for Windows 7. I have completed so far for the Taskbar: Tabbed thumbnails Jumplists Icon Overlay Now as the WebBrowser uses the IE engine when a download is started the progress dialog is displayed, what i want is for the progress to be reflected in the Taskbar Butto...

How to detect OS of Win7 Home Premium, Win7 Professional, Win7 Enterprise or Win7 ultimate?

How to detect OS of Win7 Home Premium, Win7 Professional, Win7 Enterprise or Win7 ultimate? ...

Problem with copy in Windows 7 and my C# program

I do this in my C# program: File.copy(Application.StartupPath + "\Test.txt",@"c:\Test.txt"); But I get this error: Access to the path 'c\Test.txt' is denied It happens only in Windows 7, in Windows XP it works excellent. ...

How to clear IconCache in windows7 via NSIS

Hi folks! I have a problem with installing of my application via NSIS in windows 7. Application installs successfully, but instead of myApplicationsIcon windows shows generic icon. I know how to fix this problem manually(delete IconCache.db in AppData\Local), but how can I do this with NSIS-script? Regards, Dmitry. ...

Prevent undock computer in Windows

In Windows Vista SP2 and in Windows 7 there is a new item in the Start menu: Undock computer. In respons to the DBT_QUERYCHANGECONFIG event I return BROADCAST_QUERY_DENY but the undocking function proceeds anyway. What is wrong? Thanks in advance, Lars A simple WindowProc to illustrate the problem: LRESULT CMainWindow::WindowProc(UIN...

Windows 7 rendering web pages differently than XP or Vista

Since switching to Windows 7, we've noticed that several of our web pages have slight differences. It mostly shows when looking at form elements (text inputs & submit buttons). They are slightly larger/smaller by a few pixels. This seems to be browser independent - we get the same rendering issues using IE8, FF3.5, and Chrome in Windows ...

How can activate a glass effect (windows Vista/7) in a console application using Delphi

As I can activate the glass effect on my console applications. I am using Windows 7 and Delphi 2010. I found this application so it should be possible. Thanks. ...

Restricting tcp communication to specific ip's using C#

Hi, I want to make a simple program that can restrict any communication over the internet except for some specific ip's. So that the user can eliminate any unwanted traffic. It has to be simple and the user must be able to switch it on and off on the fly. My first thought was to use Windows Firewall and set it up using C#/WPF. And it ...

GetThreadLocale returns different value than GetUserDefaultLCID?

To get the locale settings, e.g. short date format, we've always used GetLocaleFormatSettings with GetThreadLocale. This has always worked without problem until now. A couple of our users are getting different values for GetThreadLocale that don't match what they've configured in the regional settings in Windows 7. We've been unable to ...