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....
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 ...
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...
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!
...
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...
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?
...
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...
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...
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...
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 ...
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...
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)
...
Is there a good reason?
Are their internal functions (not exported) also stdcall convention?
...
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 ...
Hi, Where can i find those and learn about a modern way to start off a project from scratch or any other recommended book?
...
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?
...
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?
...
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...
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
...
Or do I have to use threads? (C++)
...