Decode sys calls?
How do you find out what number each sys call is? Like on SP3 ZwCreateFile is ZwCreateFile: mov eax, 0x25 mov edx, 0x7ffe0300 call [edx] retn 0x2c How do you find out that ZwCreateFile is 0x25? ...
How do you find out what number each sys call is? Like on SP3 ZwCreateFile is ZwCreateFile: mov eax, 0x25 mov edx, 0x7ffe0300 call [edx] retn 0x2c How do you find out that ZwCreateFile is 0x25? ...
Hello. http://windows.php.net is currently down, it seems (gives me 404 error). Anyone knows where I can download php-5.3.1-Win32-VC9-x86.zip? When windows.php.net is expected to be up? Thanks. P.S. Isn't this a question for serverfault? Couldn't decide for sure... ...
I have a project written in Lazarus on Windows, but I want to cross-compile it for Linux on my Windows computer. How can I do this? ...
Okay, I am writing a program that is doing some pretty heavy analysis and I would like to be able to stop it quickly. I added signal(SIGINT, terminate); to the beginning of main and defined terminate like: void terminate(int param){ cout << endl << endl << "Exit [N]ow, or [A]fter this url?" << endl; std::string answer; cin >> ...
I have a Windows Service written in C# (.Net 3.5) and I need to store some state somewhere so that next time the service starts up, it knows where it left off. What is the recommended store for this type of thing? The registry? What if I just put some user settings in a Settings.settings file? Where would the user profile be for a servi...
when i install an application it should add an item to windows explorer context menu using system registry. but it gives an error that "SOME OR ALL IDENTITY REFERENCES COULD NOT BE RESOLVED" KINDLY HELP ...
I am generating a pdf output with pdflatex with the following command in gVim: :!pdflatex % This command in turns executes the following in the Command Prompt: cmd.exe /c pdflatex /testvim.tex Now, the problem I'm having with this is that the pdf is outputted to the system32 folder: C:\windows\system32\testvim.pdf How can I in...
I have a need to convert a utc system time to local time and find the corresponding utc offset. I wouldn't mind getting the time zone also. As far as I can tell, SystemTimeToTzSpecificLocalTime returns no information on these. Anyone have a good way of determining the UTC offset and time zone? ...
A client has a Windows based in-house server, on which they edit the contents of a CMS. The data are synchronized nightly with the live web server. This is a workaround for a slow Internet connection. There are two things to be synchronized: New files (already sorted) and a mySQL database. To do this, I am writing a script that exports ...
I have several clients/vendors that distribute reports to me via email. Some of these files are enormous, and need to be removed from email and saved on a file share for processing, as well as to control mailbox size. Can anyone provide guidance on their recommended method of automatically downloading and saving attachments. I am in a...
In a nutshell, I want to write my own device driver for windows, so that I can emulate a piece of hardware. I know very little about writing device drivers for windows, but I have a very firm understanding of the C and C++ languages, and I know enough x86(_64) assembly to get around. I'm not really sure how one would go about even compi...
Guys and Gals, a really stupid question: How do I run a PowerShell script? I have a script named myscript.ps1 I have all the necessary frameworks installed I set that execution policy thing I have followed the instructions on this MSDN help page and am trying to run it like so: powershell.exe 'C:\my_path\yada_yada\run_import_script.ps...
I have wrote some application. But when i run it on several operating systems we are getting those two files missing. When i add them to the windows\system32 folder the application works fine. I saw this solution how-to-install-msvcr71-dll-correctly but is there any way to make my application to use more updated version of the file...
I have set up a local Perl web environment on my Windows machine. The application I'm working on is originally from a Linux server, and so the shebang for source .pl files look like so: #!/usr/bin/perl This causes the following error on my Windows dev machine: (OS 2)The system cannot find the file specified. Is it possible to chang...
Hi, I would like to create a virtual drive for windows. I'm not looking to map a drive or something like that, I'm looking to map it to my dll functions or something of that sort. How can I get this accomplished? I read that I would have to develop a device driver, or a shell extension? I have a lot of experience with C++ and C#. Wher...
I'm looking for a make system, along the lines of CMake or Bakefile, that supports the generation of Visual Studio project files and makefiles (targetting Linux) dual targeting x86 and x64 (in the same project/make file). I've looked at CMake and Bakefile and they both appear to have limitations in this respect; they both appear to not ...
Hello! I'm currently learning C++ and there are some (basic) things which I don't really know about and where I didn't find anything useful over different search engines. Well as all operating systems have different "binary formats" for their executeables (Windows/Linux/Mac) - what are the differences? I mean all of them are binary bu...
I'm trying to write a unit test for my FileWatcher class. FileWatcher derives from a Thread class and uses WaitForMultipleObjects to wait on two handles in its thread procedure: The handle returned from FindFirstChangeNotification A handle for an Event that lets me cancel the above wait. So basically FileWatcher is waiting for whate...
I am running a PowerShell script from within a batch file. The script fetches a web page and checks whether the page's content is the string "OK". The PowerShell script returns an error level to the batch script. The batch script is executed by ScriptFTP, an FTP automation program. If an error occurs, I can have ScriptFTP send the full...
Is there any API/way to get the "distance" (called 'hops' in literature) between two NUMA nodes? I want to implement a memory allocation system that takes advantage of this (reuse memory from the nearest node, because the access is faster). Windows doesn't seem to have such a feature... and libnuma (under Linux) doesn't seem to have it t...