How to find out what process/service initiates a network connection
Hi, On Windows, how do I find out what service or process initiates a network connection to a known address? Thanks. ...
Hi, On Windows, how do I find out what service or process initiates a network connection to a known address? Thanks. ...
I am re designing a portion of my current software project, and want to use hyperlinks instead of buttons. I really didn't want to use a Text widget, but that is all I could find when I Googled the subject. Anyway, I found an example of this, but keep getting this error: TclError: bitmap "blue" not defined when I add this line of cod...
I tested this on windows xp. If I do Create a file. Write to the file. Close the file.(Then, the file's LastWriteTime is changed) But if I do Create a file. Set LastFileTime of the file. Examine the time by calling GetFileTime (Then, the file's LastWriteTime is changed) Sleep 20 seconds. Write to the file. Sleep 20 seconds. Close ...
Hi, I've created an application that loads data in from XML files locally, and with these files it finds images, videos, and EXE's that the player can run from dynamically created buttons. When loading files and images and running EXE's, I try/catch all over the place as to not crash. However, today a user crashed the program by trying...
How can I programatically trigger the tab key functionality in a VB.Net windows application? Currently in my application I am using one splitter when I press the tab key, and the focus is moving in the right order. However I need to use arrow keys to move the focus to next controls, in the same way that the focus is going when the user...
I would like to add licensing system to application. For example: user buys license for 1 month and after that program expires (Kinda Anti-Virus style?). Problem is that application is supposed to run in systems which may or may not be connected to internet, so how to protect from date-time changes? Storing app startup and close times ...
On Debug, when the POS has the default windows shell (explorer.exe) it prints sucessfully, but if we replace the default windows shell with our program or any other program (for example cmd.exe) and we print with the same functions, it sleeps on the EndDocPrinter call about 3 secs. Is unnaceptable to print 3 tickets in 12 secs, and i h...
Please see the code: int main(int argc,LPTSTR argv[]) { HANDLE hinFile; BOOL check; PLARGE_INTEGER file_size; hinFile=CreateFile(argv[1],GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); if(hinFile==INVALID_HANDLE_VALUE) {printf("INVALID_HANDLE_VALUE\nFile Does Not Exist");exit(0);} else{ check=GetFileSize...
Hi I have a laptop with wireless and LAN card. I have a wired Internet connection. Can I use my wireless network card as wireless access point and then bridge the lan and wireless connection. So that I can access the internet in other wireless devices like Ipod Touch.My OS is Windows XP. Thanks ...
Hello everyone, I am using Windows Server 2008 Enterprise + .Net 3.5 + VSTS 2008 + C# to develop a console application. The application runs fine on my developer desktop. But when I run the same application on another machine (Windows Server 2008 Enterprise as well, but no VSTS 2008 installed), there is error says assembly Microsoft.Exp...
1) is it possible to gain admin privs (i.e. "Run as administrator") during runtime, or must the EXE launch this way from the start? 2) how do I request admin privs, so the user is given the prompt to allow or disallow it? Thank you -Carl ...
I'm using boost::filesystem to rename a file like this: boost::filesystem::rename(tmpFileName, targetFile); tmpFileName / targetFile are of type boost::filsystem::path. While doing this, I iterate over the directory using this code in another thread: directory_iterator end_itr; for (directory_iterator itr(dirInfoPath); itr != end_i...
I have a python program that is controlled via a web interface on localhost. This program needs to start applications and bring them to foreground - which is easy (using AttachThreadInput / SetForegroundWindow) until the app in question requires an UAC dialog. Since I cannot use the AttachThreadInput/SetForegroundWindow trick on the UA...
Does the Windows XP SP2 limit of 10 half-open connections refers only to embryonic connections or also to the other known type of half-open connection which happens when one side has crashed? Thanks.. ...
Is there a way to detect and store the location and size of all open windows, as well as their state (Minimized, Maximized etc) I've never developed anything that gets information from the actual operating system in this way. Does it require a call to a Windows API and involve unmanaged code? If this is not clear please comment and I w...
Coding in Visual Studio 2008 using Windows Audio Core APIs, I need access to devicetopology.h header file. After including it in my header file I have these errors: Ошибка 8 error C2011: _DDPIXELFORMAT: переопределение типа "struct" c:\program files\microsoft sdks\windows\v6.0a\include\ddraw.h 703 Player Ошибка 9 error C2079: "...
I am trying to use plink as an ssh alternative on windows, but I am finding that when plink connects to a remote linux machine, it does not source .bash_profile or .bashrc. Is there a different dot file I should create? Or is there another option? For example, my bashrc file adds a directory to my path. This directory contains extra p...
I'm creating a plugin for Outlook 2010 using VSTO 2010 and .NET 4. I am using the XML method to design my ribbon because I need the context-menu hooks. Unfortunately, though the ribbon is created before the Startup event handler of the addin is fired, I can't access the ribbon using Globals.Ribbons.MyRibbon in the handler! I have added t...
It has been recommended that I read Writing Secure Code: Practical Strategies and Proven Techniques for Building Secure Applications in a Networked World The book looks great, but seeing it was last updated in 2002 concerns me ... especially where security is involved. So my question is, is this book still relevant? Or should I read ...
The idea is that an existing project uses timeGetTime() (for windows targets) quite frequently. milliseconds = timeGetTime(); Now, this could be replaced with double tmp = (double) lpPerformanceCount.QuadPart/ lpFrequency.QuadPart; milliseconds = rint(tmp * 1000); with lpPerformanceCount.QuadPart and lpFrequency.QuadPart being...