windows

Help with my keylogger

I'm working on a simple key logger. I'm having a problem though, when I try to run it as a .pyw the program shuts down before it can record anything. I believe it needs to loop, how would I go about this? import pythoncom, pyHook, sys, logging, time LOG_FILENAME = 'C:\KeyLog\log.out' def OnKeyboardEvent(event): keytime = time....

How to check dll's reference count? How to know where the dll was loaded?

As you know, if the call to LoadLibrary specifies a DLL module already mapped into the address space of the calling process, the function simply returns a handle of the DLL and increments the module's reference count. Somewhere, I need to get the reference count of a dll. How to get the dll's reference count? How to know where the dll ...

Embed Windows media player in flex

Hi all, I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in window...

Program/algorithm that creates a .PRN file of any file format for a specific printer! Please help!

I need an algorithm that converts any file format to its .PRN file equivalent which will be compatible for a specific printer (for example, only in CANON printers). Or I need a source code or way to know how printer drivers work. Printer drivers are the one who specifies or creates the .PRN file of any type. So please help me. Thanks! ...

Terminal Services

HI, Im using Delphi and I want to make an application that can do the following When started from within Terminal services (remote desktop), if another user logs into another terminal services session they should be able to see the application running in the desktop tray. However if a user sitting at the server logs in then they shoul...

How do I detect which version of Internet Explorer is installed?

Is the best way to look under the Uninstall key of the Windows Registry? Is there a Microsoft API call which provides this info and is it supported from XP onwards? What is the best way to detect which version of Internet Explorer is installed on the local machine? ...

C# Form Doesn't get minimized on microsoft windows when the workstation is locked

In my application I need to minizime to tray (doing stuff like visible=false, FormWindowState = minimized etc.) automatically after some time. The problem is, that when Windows is locked when this code executes, it doesn't happen (I'm guessing that while Windows is locked all form operations doesn't take place or something) Does anyone...

Why does a .NET application prevent Windows from shutting down?

One of my applications prevents windows from shutting down if it is running. The only spot where I suspect the cause may be is FormClosing event handler, which is however quite standard: EDIT: Removing this handler does not change the situation at all so the cause is somewhere else. private void MainForm_FormClosing(object sender, For...

Redirect cmd output to string in c++ or in memobox?

I have two objects in my form application. First is a listbox where i want to hold the cmd output, and the second is button who have command like, WinExec("cmd /c ipconfig -all", 0);, so question is how to redirect cmd output to the list box. For example, I'd prefer not to save output of ipconfig in file & load from file text to list box...

clear a given commandline string to match filepath

Hello, my application processes strings with commandlines. I need to get the string to the given executable that is called for example: "C:\windows\system32\notepad.exe bla.txt" => C:\windows\system32\notepad.exe "C:\windows\system32\ipconfig /all" => C:\windows\system32\ipconfig "D:\this is my path\thisismyexe.exe -l this -p are -m my ...

Perl: Issue command in new cmd.exe

Hi. I want to program in Perl a very basic program but I'm having some questions about how to do it. I'll keep it simple: I want a perl script that when number 1 is pressed a new "cmd.exe" is opened and the "dir" command is executed, and when 2 is pressed a new "cmd.exe" is opened and the command "cd" is executed. The place where I'm ha...

python win32 filename length workaround

Hi I have found out that you can't open(filepath) when filepath length is bigger that 255 even if the filename itself is 10 characters long( the remaining part is the directory path). Any idea to work around this issue? (python 2.6 on win32) ...

Why did Microsoft choose stdcall as their API convention?

Is there a good reason? Are their internal functions (not exported) also stdcall convention? ...

Is there an open source C# library for command line/console programs?

I often write consoles for various things (and I've made my own library - but it's quite limited), I do this mainly because the Windows command line sucks. Is there an open source library I can use for writing such command line applications? By console, I mean a command prompt with auto-complete (tab) and copy/paste. Update: Please do ...

Windows non-mfc open source projects

Hi, Where can i find those and learn about a modern way to start off a project from scratch or any other recommended book? ...

Microsoft Known DLL

HKML\SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs What is the purpose of the KnownDLLs?(To load some Dlls faster?) If I have a admin's token, I can control the registry values. Isn't there any security hole? Why did Microsoft support the feature? ...

Is it possible to do static initialization of mutexes in Windows?

pthread supports static initialization of pthread_mutex_t using PTHREAD_MUTEX_INITIALIZER. Is it possible to achieve a similar static mechanism for mutex initialization using Windows mutex? ...

How does Windows Explorer extract EXE file's icon.

It's my guess. We list a files and directory by Windows Explorer. If Windows Explorer meets a exe file, it does, LoadLibraryEx(ExefileName, LOAD_LIBRARY_AS_DATAFILE) Then extracts the icon, and represents it. But I'm not sure. Is there anyone who knows well about this? I'm finding a nice case with LOAD_LIBRARY_AS_DATAFILE Is th...

How to draw a character at a random place on the screen - c++

Hi, Sorry about the dumb question, but is there a way to draw a character at a random place on the screen without using any "heavy" graphics libraries? Thanks, Li ...

[WinAPI] Is there any way to have ASYNC MessageBox?

Or do I have to use threads? (C++) ...