windows

Splash screen in Windows

How can I display a splash screen using C or C++ in Windows? What libraries or Windows components would be applicable? ...

Network file transfer in Windows

I want to transfer files across the network using C or C++. What topics should I look up? How can I do this? ...

Auto-Update for a Windows application.

Is there an open source project that allows for an auto-update of windows binaries? The Luau update library is very similar to what I'm looking for but it was abandoned in 2005. ...

Batch : list all the subfiles with their absolute path

I want to generate a classpath automatically with all the *.jar files contained under my lib folder. I can't find a way to list all these files with their absolute path, so that I can build my classpath variable. It seems the dir command do not allow to get the absolute path, even when you go recursively with a /s. Basically what I h...

LsaCallAuthenticationPackage returns ERROR_INVALID_PARAMETER 87 (0x57) when trying to purge a specific ticket

Hi, I'm trying to purge a specific ticket from the cache,using LsaCallAuthenticationPackage. I always get ERROR_INVALID_PARAMETER 87 in the package status. What could be the reason? Here is my code (All other steps succeeded): KERB_QUERY_TKT_CACHE_REQUEST tktCacheRequest = { KerbQueryTicketCacheMessage}; void* pRep; DWORD ...

Capturing mouse events for specific dom/web elements in QT

Hi I would like to know if it is possible in QTWebKit to install an event filter or capture events that occur from specific Dom elements. For example, my webview is showing a webpage that has text, images and an edit box, I want to disable the right-clicking and highlighting functionality on the text and images but at the same time when...

Windows Impersonation

Can any one please provide a clear example of how can I implement this in my C# code? ...

MapViewOfFile shared between 32bit and 64bit processes

Hi, I'm trying to use MapViewOfFile in a 64 bit process on a file that is already mapped to memory of another 32 bit process. It fails and gives me an "access denied" error. Is this a known Windows limitation or am I doing something wrong? Same code works fine with 2 32bit processes. The code sort of looks like this: hMapFile = Open...

Windows PE - Where and how are strings stored if not in resources?

Usually strings (like content/titles of dialog boxes) in .exe files are stored in some sort of resources. But in some recent exes I disassembled/resource-inspected I couldn't find any resources containing the string but it was somehow hardcoded with db's into the program source code. How can I extract and modify strings directly locat...

Modifying .rdata unicode strings from windows PE files

I have been looking for a way of modifying static strings stored in Windows .exe files in the .rdata section, however I haven't found a real way to do so yet. The whole thing is too complicated to do by hand (in this case by a HEX editor) and so I wanted to know if you have a solution to do so. ...

How to solve concurrency problems in ASP.NET Windows-Workflow and ActiveRecord/NHibernate?

I have found that ActiveRecord uses the Session-Scope object within the ASP.NET application and that if the web-site is read-write we can have a tug-o-war between the Workflow's own Data-Access SessionScope and that of the ASP.NET site. I would really like to have the WindowsWorkflow Runtime use the same object session as the web-site h...

return value of main() in windows

In Linux, the return value of the main function is stored in $?, and can be shown using echo $?. Is there something equivalent in Windows? ...

emacs, tramp, rsync, MS Windows

Similar to http://stackoverflow.com/questions/148578/ but that question doesn't address MS Windows. Has anyone been able to use rsync instead of plink, either through cygwin or otherwise? ...

Get Child window using ProcessID or Window Handle?

Hi, My program A launched program B (both are separate exe's). Now my program B need to find if A have any modal/child window open using A's processID. Is there any way to do so? Thanks a lot for your help. ...

Unable to capture standard output of process using Boost.Process

Currently am using Boost.Process from the Boost sandbox, and am having issues getting it to capture my standard output properly; wondering if someone can give me a second pair of eyeballs into what I might be doing wrong. I'm trying to take thumbnails out of RAW camera images using DCRAW (latest version), and capture them for conversi...

Forking in PHP on Windows

We are running PHP on a Windows server (a source of many problems indeed, but migrating is not an option currently). There are a few points where a user-initiated action will need to kick off a few things that take a while and about which the user doesn't need to know if they succeed or fail, such as sending off an email or making sure ...

How do you do masked password entry on windows using character overwriting?

Currently I am using this implementation to hide user input during password entry: void setEcho(bool enable) { HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE); DWORD mode; GetConsoleMode(hStdin, &mode); if(enable) { mode |= ENABLE_ECHO_INPUT; } else { mode &= ~ENABLE_ECHO_INPUT; } SetConsoleMode(hStdin, mode); } ...

Reading binary data from serial port using Dejan TComport Delphi component

Apologies for this question but I am a bit of a noob with Delphi. I am using Dejan TComport component to get data from a serial port. A box of equipment connected to the port sends about 100 bytes of binary data to the serial port. What I want to do is extract the bytes as numerical values into an array so that I can perform calculations...

Adjust parameters of serial port reading

Hello. I'm facing a particular issue that regards serial communication under win32. I'm communicating with a device can only accept frames when it is not already communicating. So I must find a valid frame and then inmediatelly send my request. I developed a class named Serial that handles basic operations on serial port (open, close, r...

What does my project need to reference in order to use the Windows shell?

Specifically, I want to use IShellFolder, IExtractImage and ShellInterop in order to extract thumbnails from PDF and DOC files. Also, the namespace I need to import would be handy too Thanks so much for taking a look at this newbie question :) Iain ...