windows

Multidimensional array and dllhijacking

I'am currently working on a tool which checks if your apps are vulnerable to dllhijacking. Anyway, there's a section in my code which doesn't look very elegant. Now there are just two sets, but I want to add some more. Is there another way instead of just adding for loops for each set? LPSTR szFileExtWireShark[] = {"airpcap.dll", ".bfr"...

How to wait forever for at least one byte using COMMTIMEOUTS?

How can I configure COMMTIMEOUTS to wait forever for at least one byte to be read? ...

Python + webkit + gtk on windows

hello there i am trying to do this script: PY WYSIWYG and it says i need gtk and webkit. i think i got the right stuff is this what i need: gtk WEBKIT so i downloaded the webkit but i got a folder but installer or install information do i move it into the python folder or what do i do Thanks ...

PHP hash_hmac() OS difference

I need to sign my Amazon Product API request, the accepted code to do this is the following. base64_encode(hash_hmac('sha256', $request, $key, true)); This works great when I'm on 64bit Linux but fail when I'm on 64bit Windows 7. Has anyone got any ideas how to debug why hash_hmac provides different output between 64bit Linux and 64bi...

Script or program to read RAW data

Ok, I had a usb flash drive which had data and was using FAT32 file table, till yesterday!! I had been using it only in Windows. Now when I plugin the usb flash drive, Windows XP reports the file system as RAW and trying to access the drive asks to format the drive. I desperately need to get some data out from there (the backup is a few...

Why does this batch variable never change even when set?

@echo off SET first=0 FOR %%N IN (hello bye) DO ( SET first=1 echo %first% echo %%N ) It seems that the variable "first" is always 0. Why? ...

Python save as/open

hello there i am making a text editor in Tkinter (python) and so i made a menu and wanted to know how i can call a function that will display the windows Save-as or open boxes that every program uses. For example in notepad you can click file-save and then it opens the windows save box. I already have the menu but how can i open the sav...

Not able to type Persian in MS Word in a new win7 account

After creating a new account in Windows 7, I can't type Persian in MS Word. When I press the keys, no letter appears in screen. I have checked all setting of Regional and Languages in control panel but to no avail. Also, in MS PowerPoint, when I type, the letters are detached. The mentioned problems do not occur when logged in to the mai...

Wrote to a file using std::wofstream. The file remained empty...

I wrote the following program using VS2008: #include <fstream> int main() { std::wofstream fout("myfile"); fout << L"Հայաստան Россия Österreich Ελλάδα भारत" << std::endl; } When I tried to compile it the IDE asked me whether I wanted to save my source file in unicode, I said "yes, please". Then I run the program, and myfile ap...

Boot Camp partition + paralles desktop + coherence mode

I would like to run virtual machine on parallels desktop 6 from boot camp partition. Is it possible to run virtual machine in coherence mode ? I mean run windows application in separate window like its native OS X application. ...

TNetSharingManager access violation problem

I'm trying to compile this project in Delphi 2010, which uses TNetSharingManager. I have imported the type library and tried compiling it, but unfortunately I'm getting an Access Violation in this function: function TNetSharingManager.GetDefaultInterface: INetSharingManager; begin if FIntf = nil then Connect; Assert(FIntf nil,...

JavaScript file not updating no matter what I do

I have an external JavaScript file and whether in FireFox or Chrome, whether all browsing data is cleared, it will NOT update no matter what. I believe something happened when I made a backup of my file, which I simply added "_thedate" to the end of the name. Then Save As back to the original name. Now I cannot seem to get rid of the ol...

How can one ensure that an application starts after Windows startup always at the same time?

In other words, Windows starts up, and my application xyz.exe, is started at exactly 5 minutes after boot up. Is this possible to guarantee, within a margin of error of say 10-15 seconds? ...

MS future .net P/InVoke Android Delphi c++ price compertition

Today C# and a modern copy of Delphi is getting very expressive for a student /hobbyist to start out on with a $2,000 price tag to get started. I remember when you could get started at a 10th of the price with Delphi. And a very large array of small programs came about in all sorts of fields. The ones that come through that hobby level a...

How to get a precise ping measurment

Currently the windows ping command returns a value of milliseconds that is an integer. I would like to get a very accurate measurement lets say 4 digits after the point. Are there any tools that do that? ...

How do you add a windows service to an existing application installer?

Hi, We've created a windows service to detect the insertion of a particular usb device. That service is then supposed to launch an application we have written. We initially made a setup project for our application and a separate one for the windows service. Now, we are trying to get the service and the application installed in the sa...

Eclipse Android SDK slow performance

Im running eclipse on my windows 7 machine, 6bit with 6gb ram and core 2 duo. Im currently running Eclipse 3.6 and android 2.2 SDK Im running jdk 1.6 Im noticing that when coding and the context popups to list methods of a class, it hangs Eclipse for up to 15 seconds. This is very frustrating. One thing to note, when Eclipse hangs, my ...

Embedding Python on Windows: why does it have to be a DLL?

I'm trying to write a software plug-in that embeds Python. On Windows the plug-in is technically a DLL (this may be relevant). The Python Windows FAQ says: 1.Do not build Python into your .exe file directly. On Windows, Python must be a DLL to handle importing modules that are themselves DLL’s. (This is the first key undocumented fac...

dummynet driver for windows server 2008 64bit

Where I can find dummynet (ipfw) driver for 64bit windows machine? ...

Detecting if the screensaver is active and/or the user has locked the screen in Windows

I'm writing an app that at times will send notifications to the user in the form of toaster messages. If the user is not there, he can't see the notification. So what I wanna do is be able to check if the user has locked the screen or if the screensaver happens to be activated. Any notification that is triggered while the user cannot s...