windows

How do the threads get created inside a COM component?

I have one COM component which is instantiated inside a COM service (this .exe is running). I have ten clients. Each client is getting an interface (IXyz) pointer from ROT and calling a method IXyz::abc() at the same time. From my traces I see that IXyz::abc() is gettting called 10 times at the same time, but in 10 different threads. ...

What all can I download\use a MSDN License for ?

My Employer gave me a MSDN License, not that I asked for it. I have been programming in the Java world all these years and on C++ in Linux. I am wondering what all I can do with this License, considering that I don't work on Dot Net ?? :-( ...

Why does COM+ ignore the apartment threading model?

I have an STA COM component which is put into a COM+ application. The client creates several instances of the class in that component and calls their methods in parallel. The class is registered properly - the "ThreadingModel" for the corresponding class id is "Apartment". I see several calls of the same method of the same class being e...

File system testing tools

Hello, We are developing file system filters and we need to automate the testing on all platforms we are targeting (Windows, OS X, Linux). What tools would you recommend that will check if a particular mounted file system behaves properly. Here the word "properly" probably needs some clarification: Since we are developing filters (not ...

Running Ruby without a traditional operating system?

In the world of Java, BEA (now Oracle) has created LiquidVM which doesn't require an OS. Likewise, there are a variety of open source projects including SANOS, JNODE OS, Project Guest VM, JavaOS, etc. Is there an equivalent being created for Ruby? ...

Why is SvcTraceViewer included into Windows SDK and NOT to .NET Framework tools?

It is a WCF tool and why it is located within Windows SDK and not inside the .NET Framework? ...

how can I get the path of a context menu selection ?

I have a custom entry on the Internet Explorer's context menu. I would like to do something with the selected item, for example, run a program that receives that selection as ARGV[1]. For example, if I right click on a file named whatever.zip that is located on my desktop, the following thing should run : my_binary path\to\desktop\w...

How do I determine if a computer is running XP Service pack 3

Using either the registry or the file system. The reason for the restriction is that I am doing this as an MSI conditional statement. Cheers! ...

Why does ReadDirectoryChangesW omit events?

Hi! I use ReadDirectoryChangesW to watch a specified directory and update indexing structures whenever a change is detected. I use the following code (roughly) var InfoPointer : PFileNotifyInformation; NextOffset : DWORD; ... while (not Terminated) do begin if ReadDirectoryChangesW (FDirHandle, FBuffer, FBufferLength, True, ...

Cross-Platform Objective-C / C++ Development

I work in a team of developers, one of us works specifically under Windows, and I work primarily in Mac OS X. We're wanting to develop C-based applications either in C++ or Objective-C however I'm not really knowledgeable in how to go about a cross-platform development project. Is it viable to work in C++ using Mac OS X? Obviously the...

how to get wireless encryption status in windows?

Hello, I need to get the encryption status for a given wireless adapter (WEP, WPA or WPA2). I know about ndisuio and OID_802_11_ENCRYPTION_STATUS, but this method is not supported on all adapters. Is there a better method? Thanks. ...

In a batch file, how do I delete all files NOT of a certain type...

I'm writing a batch file that needs to delete all the files in a certain dir and all of it's subdirectories except those of a specific type. How can I do this? ...

Using nibbles (4 bits variables) in windows C/C++

I'm programming network headers and a lot of protocols use 4 bits fields. Is there a convenient type I can use to represent this information? The smallest type I've found is a BYTE. I must then use a lot of binary operations to reference only a few bits inside that variable. ...

Windows will not shutdown programmatically when logged off

I have an application that is launched from within a service using a local administrator account. This application is accessible by a web browser and the host PC can be shut down through this interface. If a user is logged into the host PC and I browse to it and shut it down, the application exits and shuts down the PC as I would expect...

Windows Callgrind results browser, alternative to KCacheGrind

Is there any tool, other than KCacheGrind, being able to view callgrind results? Preferably for Windows platform? ...

Browser Window Size during Visual Studio Debugging

How can I force the window that opens when I run a website from Visual Studio to be maximized? Everytime I run my site VS automatically resizes the window to something that seems arbitrary. ...

Using C++ to edit the registry

I have a limited c++ background and I would like to edit the registry. For example, I want to grab the value of HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun and check to see if 0x20 is in it, and then if it is, subtract 0x20 from it's value and write it back (and kill and restart explor...

What is the closest thing to grep that comes standard on a Windows install?

I'd like to do something like "dsquery * | grep asdf" on a Windows machine that I can't install anything on. Any ideas? Thank you. ...

Interrupt an active screensaver programatically?

REASON: I'm working on an emergency alert application that needs to display information on a desktop. When the client receives an alert, it pops up a window. If a screensaver is active or the monitor is in standby the alert will not be visible. I'm wondering if it's possible to wake the computer up via some sort of programatic mouse m...

Wrap files in one executable package

Hi I'd like to wrap a bunch of files (an .exe a .xml, some images) in 1 executable package. When the user launches this executable package the .exe included in this executable package should run. Is this possible in the first place on the windows platform? What I'm not looking for is a self extracting zip or an installer because both o...