windows

How to map HKEY_USERS subkeys and Windows usernames?

I thought the key names immediately below HKEY_USERS were supposed to be the usernames of whoever logged in at this machine at some time. But in my machine what appears is: S-1-5-18 S-1-5-19 S-1-5-20 S-1-5-21-NNNNNNNNN-NNNNNNNNN-NNNNNNNNNN-NNNNN S-1-5-21-NNNNNNNNN-NNNNNNNNN-NNNNNNNNNN-NNNNN_Classes I'd like to be able to determine whi...

How to create F1 help in windows forms using c#

How do you create the keyboard shortcut(F1) in a windows form using c#. WinChm ...

Is there a way to get SendInput to work with an application using GDK?

I have an application that can successfully inject keyboard input using the SendInput API with the UNICODE flag set. This causes WM_KEYUP and WM_KEYDOWN messages to be generated with the VK code of E7 (VK_PACKET), which gets appropriately translated into the correct WM_CHAR message. This works in all the applications I have tried except ...

java, System.loadlibrary("someDLLFile") gets unstatisfied link error

Hello, I have written some JNI hooks into a C++ library and created some DLL files for my java server project. Lets say the DLL and jar files are in the same folder under "C:/server" I am accessing these DLL files using: System.loadLibrary("someDLLFile"); in the class that needs the C++ code. The problem I am running into is when I...

A WPF App fails when coming out of hibernate mode

I have a WPF application that fails to come out of the timed sleep, followed by hibernate. The render thread seems to be failing during initialization. I tried removing hardware acceleration to check that it's not graphics card related, but that did not help. Here is an exception along with the stacktrace: ERROR An unspecified error oc...

FTP Batch file moving remote files

Hello, I have an FTP batch file that uses DOS commands to pull down some files. After I'm done pulling the files down, I would like to move the files to an archive directory on the remote server. What FTP DOS commands do I use to accomplish this? *I wasn't clear at first but this move has to take place on the remote server. ...

Looking for a tabbed terminal emulator for windows. Any suggestions?

I've used Hummingbird Exceed as my Xserver on my windows box for years. I've almost always worked out of xterms, but at times the number of open windows can get a bit out of control and hard to manage. Wondering if there is a terminal emulator that runs on WinXP that supports tabbed windows, similar to Konsole on KDE. ...

coming from bash, what windows scripting language to learn?

For work I am moving over to windows after being on linux for quite a while. I want to get some scripting skills going for administrative tasks in windows. I am quite good with bash, but bash's "libraries/tools" are missing a lot when it comes to windows. I see vbscript, wsh, powershell, cmd, jscript, etc and wondering what to learn, or ...

Need a free Programmer's Keylogger

Whats a general purpose key logger that I can use to detect keys for debugging and testing purposes? Preferably, I can hit a record button and a stop button and it will display a text file with all keys pressed during that time. Obviously, it doesn't have to be a super stealthy logger which secretly emails a anonymous account every wee...

how to remove NTFS security from a folder ?

how to remove NTFS security from a folder ? ...

Is it good idea to shift from Web Development to Windows Development

What do you think Is it good idea to shift from Web Development to Windows Development ...

a question regarding NTFS filter driver

hi, does anyone have an article regarding writing filter drivers for the NTFS ? another question - when im writing a filter driver for NTFS, can I just pass down my IRP using IoSkipCurrentIrpStackLocation(...) and IoCallDriver(...) when I get MajorFunction I dont want to take care of ? ofcourse the call to IoCallDriver will include a ...

How do i write over the last line in the console?

I want to show a progress bar (like wget) how do i keep writing to the last line in the console? Windows 7 vis 2005 c++ ...

An error occured while registering ocx files?

Hi everyone, I created an ActiveX control ocx file using Visual Studio 2008. Then tried registering the ocx file from command prompt "regsvr32 filename.ocx" It gave an error saying "Load Library(filename.ocx) failed- The application has failed to start because configuration is incorrect. Reinstalling the application may fix this proble...

wxWidgets wont update till mouse moves

Hi, I got a wxWidgets form with a progress bar on it and i update the progress from a thread using my own custom wxWidget event. This works fine except the fact is the form only shows the progress update when i move the mouse. I have tried adding Refresh() and Update() after the new progress value is set but with no luck. Am i doing so...

Direct control of ATA commands

I am working on hard drive analysis, and wanted to know if there is a way to directly control an ATA hard drive under windows. In short I want to do something like a packet sniffer, but for the ATA commands sent to/from the hard drive. After that, I'd like to be able to write ATA commands directly the drive. If this is not possible unde...

ADSI query to return an object's parent

Does anyone know what property I can query for in an ADSI query that would return the object's parent OU? I know I can bind to the AD object and then use object.Parent to return it's parent OU, but if I ask for "parent" in a ADSI query it returns back as a invalid query I would rather not do bind unless absolutely necessary. (i.e. "SEL...

Enumerate all window handles on desktop

Is there a Win32 API way to get an enumeration of all the open windows? Seems like there must be just not sure where to start looking. ...

What is a good way to find the latest created file in a folder in c#?

I have a network folder which can contain up to 10,000 files (usually around 5000). What is the fatest way I can get the filepath of the most recently created file in that folder using c#? Currently I am using the below, but wondered if there was a quicker way. Thanks. DirectoryInfo di = new DirectoryInfo(xmlFileLocation); var feedFi...

How to programmatically figure out if a user account is a member of a particular group in Windows?

Given a group name and a user account, I would like to know if the supplied user belongs to a particular group. The user can be a local user or a domain user and the group could be a local group or a domain group and the group could also be nested inside other groups. In short I am looking for a function like bool IsUserMemberOf(User, Gr...