windows

How best to synchronize memory access shared between kernel and user space, in Windows.

I can't find any function to acquire spinlock in Win32 Apis. Is there a reason? When I need to use spinlock, what do I do? I know there is an CriticalSectionAndSpinCount funtion. But that's not what I want. Edit: I want to synchronize a memory which will be shared between kernel space and user space. -The memory will be mapped. I shou...

Create DFS folder with particular permisson ?

How to create DFS Folder with particular permisison using powershell script ...

Block website without forcing user to restart browser?

I know blocking a website is a popular question but none of the answers I've seen address my particular situation: I want to block a website (to be selected by the user, which must also have Admin rights, on Windows XP), without forcing her to restart her browser. The well known technique of modifying the hosts file requires some brow...

Windows Named Pipe Support in Linux

I'm looking at a project which will require inter-process communication between a legacy Windows application using named pipes, and a new service running on a Linux server. The windows application cannot be changed. Does anyone know if there is a Linux library available that supports Windows named pipes? Or even better, can anyone recomm...

Would a scheduled Java app run when Windows is in sleep mode ?

If I start a Java app, it initiates and does some work then goes to thread sleep for an hour, then wake up after an hour and does some more work ... But my PC is running Win7 and after 15 minutes of inactivity, it will go into sleep mode, so my question is : an hour from I started the Java app, if I don't touch the PC, and it goes into ...

How to use Java to register a task with the Windows task scheduler ?

I have a Java app runs on Win7, it does something at start and goes to sleep for an hour, then wakes up to do more things after the hour, but Win7 goes into sleep mode after 15 minutes of inactivity, so I wonder if I can register a task with the Windows task scheduler in my Java app before it goes into thread sleep, so that Win7 will wak...

How can I learn WinDbg? (re: seemingly simple hung process)

I'm trying to determine why a process is hanging and am learning about various tools such as Process Explorer, Process Monitor, and WinDbg. Anyways, I'm trying to use WinDbg and after attaching to my process the debugger says this: (1e9c.1128): Break instruction exception - code 80000003 (first chance) eax=7ffda000 ebx=00000000 ecx=000...

Trying to edit the registry in Windows with a batch file

I am supporting a few offices across the country running Windows XP. They are stand alone, no Windows Server or Active Directory, anything like that. I just switched them over to Google Apps, and in the process replaced Windows Live Messenger with Google Talk. I really want to stop Windows Live from being used, the platform sends so much...

How to digitally sign Inno Setup generated uninstallation file?

WSLK requires that the unins000.exe, generated by Inno, is signed. The only way I devised to do that is by unpacking the installer, signing and then repacking it again. Isn't there an easier way? I have found an Inno Unpacker, but I'm not sure about how to repack it. ...

Enable / Disable Aero in C#/VB.NET or C++ Win32

How to disable aero effects in C# .NET or C++ Win32 ??? This is my test code in C/C++, but only works if my app is runnig #include <dwmapi.h> int main() { DwmEnableComposition(DWM_EC_DISABLECOMPOSITION); while(true); //... return 0; } //LINK dwmapi.lib Thanks Edit: i figured it out #include <Windows.h> #include ...

How does one inject resources into an already built executable

I am working on a windows application that will need to be branded. The client will be selling this to other businesses, and needs a customized logo and name for each sale. The client does not know how to use visual studio! I think I need to write a packager app to inject custom logo and string resources into the executable. I am plann...

troubling anonymous Logon events in Windows Security event log

I have a dedicated server hosted on Rackspace Cloud, and this morning as I was casually checking the Security event log, I saw a series of successful Logon events that are troubling. It appears random IPs are successfully "logging in" to my server somehow. How is this possible? I have a very strong Administrator password. Am I overre...

windows mobile phone 7 - C# only?

I've heard that app development on the new windows phone 7 is C# only. Is that true? I haven't been able to verify that on my own. Can you please provide a link to this? If true, is there any rumors about allowing VB.Net to create apps as well? ...

Any way to check if a windows computer is running from ssh?

Is there any way to do that? Thanks ...

How to get the %AppData% folder in C?

As above, how do I get the AppData folder in Windows using C? I know that for C# you use Environment.SpecialFolder.ApplicationData ...

How do I create a "custom protocol" and map it to an application?

How would one go about creating a "custom protocol?" I know you can create a URL protocol by adding a number of registry entries to HKEY_CLASSES_ROOT, but that seems to only work in a browser. I need for it to work in Windows Explorer also. I know that I can write a client/server sort of interface, but I think that is overkill for my c...

Capturing the graphical output of microsoft word (or other windows app) programmatically

Hello, I would like to write a program that "captures the visual output" of Microsoft word and then save it as, for example, a bitmap. I am mainly interest in the capturing problem. I do not simply want to take a screenshot of the entire screen (and then trim it according to word's size) because there might be another window overlapping...

SqlDependency & OnChangeEventHandler discovering what data has changed?

When using SqlDependency & OnChangeEventHandler in .Net with SQL Server, is it possible (simple?) to discover what data has changed? ...

How can I backup a remote dedicated Server 2008 to my own computer at home?

My server 2008 has mysql databases, SQL Server databases, and multiple websites. How do I back this information up? I have setup the dedicated server to have two 300GB hard drives and they are both mirrored. I want to make sure that I have a backup somewhere else as well. If it's not my home server, I don't mind backing up somewhere el...

C++ XML library for use under Windows

Under Windows to parse XML one can use the COM based XML API but I wondered if there is any C++ XML libraries out there I can use for this purpose, without needing to get into the intricacies of COM? ...