windows

ERROR_BAD_INHERITANCE_ACL from SetNamedSecurityInfo?

What does ERROR_BAD_INHERITANCE_ACL returned from SetNamedSecurityInfo imply? In this case I'm adding a user to a directory's ACL. I've looked at the directory in question and its rights seem reasonable before the call. But the calls fails. Any thoughts? Here is the code snippet doing the work (and as I paste it here, I'm wonderin...

How to invoke the screen saver in Windows in C#?

I'd like to invoke the user's screen saver if such is defined, in a Windows environment. I know it can be done using pure C++ code (and then the wrapping in C# is pretty simple), as suggested here. Still, for curiosity, I'd like to know if such task can be accomplished by purely managed code using the dot net framework (version 2.0 and a...

Is there a way to for CVS (using Windows ) to Commit all subtending folders in different projects?

I've got several projects: P:\Projects\Common P:\Projects\App1 I originally added each of the folders (and their sub folders) to CVS (using Tortoise). Now I want to be able to just right clock Projects\ and "Commit" everytime I save anything in those folders. However, it seems that \Project is separate from \Common which is also sepe...

Iphone SDK on Windows (alternative solutions)

I know there is no official SDK for windows, which is very annoying. Is there any way to develop applications on a windows computer, other than somehow running a mac os in vmware? I know you can do it with Xcode, but that is also only for macs. Google searches have revealed absolutely nothing...... If I cannot use the SDK or Xcode, any ...

SQL like wrapper for Windows Registry?

The per key handling of updating the registry seems a bit poor when dealing with large volumes of data. Are there any libraries that would treat all keys as tables and allow INSERTS, UPDATES, or SELECTS in a more programmatic fasion? ...

Installing Java Manually on windows?

I have seen many products bundeled with jdk, I wonder if there is a way where one can install JDK by simply unzipping contents to a directory. so, there is no icon created in add/remove programs, no registry entries etc. Also in this case: How can we configure java plugin for browsers? And how can we configure settings as seen via cont...

Setting up windows for C++

To quote the FAQ, 'No question is [...] too "newbie"' What is the best way to set up an Windows system (vista, if that matters) to work with C++? Preferably with a nice IDE, easy compiling of software (support for make files, etc.), but suitable for a beginner. I would quite like the IDE to use a relatively portable format, such as ma...

Languages to generate single-EXE Windows apps?

Hi I was wondering what tools there are out there to generate single-EXE Windows apps, ie. with all the libraries compiled into a single EXE, without any dependencies whatsoever. I know these: Delphi PowerBasic and other non-OO compilers like FirstBasic, etc. RealBasic C/C++ Do you of other tools? Thank you. ...

C/C++ USB drive event

Regarding the Windows platform, is their an event I can look for to tell when a USB drive or any type of portable media us plugged in? ...

Best way to access client side devices from a web application.

I need to provide support for various scanners and printers to an Intranet web application. Basically the user needs to be able to take pictures using his webcam or camera, scan using his scanner and print through his printer. Because this is an Intranet application, compatibility is not an issue. I can ensure the user has all drivers in...

What directory should my installer install an app on Vista?

I've nearly completed developing a game for Windows and I'm curious where I should have the installer install it. I know it used to be in "Program Files" but has that changed under Vista? I know that World of Warcraft now installs under Users/Public/Games... what is the Microsoft-recommended location for games? ...

What's a good lightweight programming language that compiles to native windows code?

I'm a .Net developer but I have a situation where I can't guarantee that the .Net Framework will be installed on the target machine. I've seen a few questions (here and here) that suggest using NGen to compile to native code. Both point out that you still need the framework though. I want to write a fairly lightweight app (basic GUI, ...

windows mailslot max size on local computer

After researching windows mailsots for IPC within a local computer I'm a bit confused on what the max size the datagram can be. MSDN says "A mailslot is a pseudofile that resides in memory, and you use standard file functions to access it. The data in a mailslot message can be in any form, but cannot be larger than 424 bytes when sent ...

What is the equivalent (if any) to the C++/Windows SendMessage() on the Mac?

Is there an equivalent function to SendMessage in the Mac OS? ...

fastest way to check if memory is zeroed

Hi, i got a program that needs to check if a chunk of a file is zeroed or has data. This alg runs for the whole file for sizes upto a couple of gigs and takes a while to run. Is there a better way to check to see if its zeroed? Platform: Linux and windows bool WGTController::isBlockCompleted(wgBlock* block) { if (!block) retu...

how to invalidate parent window without sending wm_paint to child window?

the parent and the child window is in the same size. and the the parent listens to the child's repainting when child repainting, the parent repainting. so I cannot use invalidate to clean the parent window, cos this will send wm_paint to child window, then a endless cycle. how can i clean up parent widnow without use invalidateRect,inva...

How can i synthesize and output simple sound waves in C#?

If you have a lisp, please dont try and say my title. But yes, whats the easiest way to generate simple, or Bonus for more complex sawtooth and other waves. kthxbye ...

How to to terminate a windows batch file from within a 'call'ed routine?

Hi. I've got a windows batch file, with a few sub-routines in it something like this: call :a goto :eof :a call :b goto :eof :b :: How do I directly exit here from here? goto :eof I'm running this in a cmd window on Vista. If I detect an error somewhere in the batch file, I want it to exit with a non-zero errorlevel. Is there anyth...

Do you have a Rails development environment running under Windows you're happy with?

Hi, My current Rails development environment is Aptana + RadRails plugin on Windows XP and it's a little slow running tests, rake, and generators. If you've evolved and proven your Windows Ruby on Rails development environment into something you're happy with and is fast, please share the details below. Many thanks, Eliot ...

Custom Windows GINA authentication

In Windows, the GINA module can be extended to support different ways of authentication. For example, you can already see a support for Fingerprints, Smart Cards, or even Face Recognition (like what Lenovo did with their laptops). What I am trying to achieve is not something as complex as those methods. All what I want is to be able to p...