windows

How can one manipulate the Start menu's "Recently Used Programs" list programmatically?

I'm looking for a way to make programs appear (frequently) used, so that they would appear in the Start menu's "Recently Used Programs" (after a zero touch install). I'm trying to figure out how Windows stores information related to program usage frequency. The only (maybe) related things I can see being changed when I run a program fr...

PHP mkdir(), chmod() and Windows

Hello, I am using the PHP function mkdir($path, 0777) to create a new directory on an Apache server (running on Windows). When I create this and view the folders, Windows has set the dir as read only. Is there a way of changing this without using exec() to cacls.exe? The PHP documentation states that chmod() doesn't work on Windows bu...

Is it possible to delete both ends of a large file without copying?

I would like to know if it is possible, using Windows and c++, to take a large video file (several gigabytes in length) and delete the first and last few hundred megabytes of it “in-place”. The traditional approach of copying the useful data to a new file often takes upwards of 20 minutes of seemingly needless copying. Is there anythin...

What is a good C++ IDE for Windows for compiling in Linux?

I know there are many IDE related questions already answered on StackOverflow, but I have a strange request. I'm looking for a C++ IDE for Windows that is designed with Linux as a destination compile point. I just want to use it for syntax highlight, code completion, basic error detection, etc. In the end all code will be sftped over ...

Determine if a menu is dropped down

Is there a way to determine if a menu is dropped down in the win32 api? Something that could be used like so: HMENU hMenu = GetMenu(hWnd); HMENU hSubMenu = GetSubMenu(hMenu); // Is hSubMenu dropped down? ...

Windows Version Identification [C/C++]

How would one programmaticly determine the version of windows currently installed? As in differentiate between vista and xp. ...

Whats a better way to write this function. Its gets a remote file and copys it localy, in php.

So yea, im working on a windows system and while this works locally, know it will break on other peoples servers. Whats a cross platform way to do the same as this function fetch($get,$put){ file_put_contents($put,file_get_contents($get)); } ...

How can I set a foreground window if SetForegroundWindow and ShowWindowAsync doesn't work ?

It a is a c# winform app. I've set ShowInTaskbar prop to false because I don't want the program to appear in taskbar, but like this SetForegroundWindow or ShowWindowAsync don't work. ...

How does Tortoise SVN store repository files?

I have been told that the best SVN client for Microsoft Windows is Tortoise SVN. However, when I install it, adds only items to my shell, i.e. the right-click options when I click on folders. When I try to check out a folder, it tries to create a repository inside the folder I am working on. I would prefer my repository to be outside...

Diagnosing Windows application manifests

Windows application manifests have a very loose grammar — unrecognized parts are ignored. How can I diagnose which parts are recognized and which are not? The problem leading to this question is with an application that has a side-by-side UAC manifest with a requestedExecutionLevel of highestAvailable specified. This should switch Vista...

Ethernet Types

There is a field in the ethernet header called the ethernet type. I am writing a communication library in windows using raw ethernet frames. What should I do to take the Ethernet type into consideration? The one I must use is 0xBEEF. Does this mean I can't use anything like NDIS? ...

Is there any material about makefile in Windows?

Is there any difference between makefile in Windows and Linux? If I know how to use it in Linux, is it necessary to learn something new when in Windows system? ...

Copy files with double credentials (windows)

Assume we have c:\DirA that can be read by User1 only, and c:\DirB that can be written by User2 only. Both credentials are know. How can I copy files from DirA to DirB directly? ...

Windows Scheme/Lisp Implementation

With the thousands of implementations of LISP and Scheme available I'm having a very hard time finding just the right one to use for Windows development. I learned these languages in school and found them to be very elegant, however, I don't seem to be able to find an implementation that would be suitable for developing code other than ...

Open a URL in a new browser process

I need to open a URL in a new browser process. I need to be notified when that browser process quits. The code I'm currently using is the following: Process browser = new Process(); browser.EnableRaisingEvents = true; browser.StartInfo.Arguments = url; browser.StartInfo.FileName = "iexplore"; bro...

Many multiple files versus few larger files hosted by IIS7 + Windows Server 2008

Can you point me to best practices for file hosting in IIS 7. The number of files can be very high > 500,000, 2-10KB each. A possible concern is the performance with such a large number of files. We could have a smaller number of larger files and have a HTTP handler to process the requests or just have the smaller files and use IIS7 to ...

Newly created modal window loses focus and become inacessible in Windows Vista

Sometimes when I open a modal window in my Delphi application it takes a while to show up, then I notice that the application is kind of blocked, and what happened was that the modal form was open with ShowModal but wasn't displayed and the application became locked as if the Modal Window was in the first layer. Usually when this happen...

How can I add a new option to the explorer right click context menu?

I would like to add a right click menu option to Windows explorer for all .sln files that says "Build." It just needs to call devenv to build the sln without opening it first. What is the easiest way to do this? Note that I am using Windows Vista, if that matters. Solution I found a simple solution. Create and run .Reg file with th...

How to programmatically detect a system hotkey?

I'm looking for a way to programmatically detect hotkeys in the system. My app supports configurable hotkeys to do different things, and I'd like to be able to tell if another app has snagged one already or it's a built-in Windows hotkey (like Win-L to lock the workstation). And if it is another app that owns the hotkey, I'd like to be ...

SharePoint deployment failure using VS2008 on the comannd line

I am trying to implement a nightly build environment for our SharePoint solution that includes VS 2008 and VS 2008 extensions for Windows SharePoint Services 3.0 (version 1.2). When I deploy via the VS 2008 GUI it works fine. When I use the command line: c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe SharePoint.sln...