Hi Guys,
I've been having problems programatically assigning permissions to Folders / Registry entries. I have managed to assign inheriting permissions using the following code:
FileSystemAccessRule rule = new FileSystemAccessRule(LOGON_USER_NAME, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit | InheritanceFlags.Object...
Could you people tell me how to zip specified files into same Zip file. Let me tell how my folders are filled :
A task scheduler have backups of my databases and save them into a file daily. It creates 4 database backup daily which means there will be 4 more files daily. So I need to zip newly created backups into same zip file (of cou...
Hello,
Hopefully is this question not too far away from the topic of this page!
Yesterday I installed Eclipse Galileo and after trouble with the JDK, its starting well. But I have big problems with performance. Every third second, Eclipse is hanging for a while. It runs not smoothly. I need a efficient IDE as Eclipse for work. So, it w...
Is there any command line tool for Linux (FreeBSD, etc) which can modify like Resource Hacker versioninfo in exe file?
There are some utils for that purpose under Windows, but I'm doing cross-building of Windows Tcl Starpacks on FreeBSD.
Of cource it is possible to recompile TclKit with my versioninfo and icons but I don't want to do i...
Hello all,
I have an application and I want to be able to check if (for instance) two instances of it used the same arguments on execution. To make it clearer:
myapp 1 2
myapp 1 3
This isn't a Singleton design pattern problem as I can have more than one instance running. I though about checking the running processes, but it s...
I have an application that requires an outgoing HTPPS connection to run, and allows for proxy settings to be automatically detected, manually set and used.
Is there an easy way to create a test environment that will emulate desktops in corporations that have forced web proxies (i.e. without them, connections will fail).
I find it hard ...
NOTE: This is a complete re-write of this question. I'd previously conflated some ACL issues with the problem I'm hunting, which is probably why there were no answers.
I have a windows service that uses the standard open/close/write routines to write a log file (it reads stuff from a pipe and stuffs it into the log). A new log file is o...
How would I go about getting the Windows user credentials from a Swing application?
I am working on an internal (corporate) Swing application. Currently the user has to login to the application using a login screen, which then connects to an app server which authenticates the user against the company LDAP server.
Since the user has alr...
Howdy, I'm writing a batch script that will run on a Windows XP machine. This script needs to be able to reliably validate that a directory, passed as a command-line parameter, does in fact exist.
Assuming my script is named script.bat, it needs to support the following as legal command-line parameters:
C:\> script.bat C:
C:\> script.b...
I have a dynamically created tabpage for windows forms. the tabpage is split into two horizontal panels. The top panel should be able to hold up to 4 textboxes like this
TextBox1
TextBox2
TextBox3
TextBox4
There WILL be atleast one TextBox. Maximum is 4. How do I create a TabPage with two panels where the top panel only takes up the...
I'm trying to send a keystroke to another application. I can successfully find the window handle since using SendMessage worked exactly as intended.
However, when I switched the SendMessage over to PostMessage, the application no longer received the messages.
I did, however, find a workaround by using HWND_BROADCAST as the window handl...
At work (a mostly Unix development shop), I've had an OS X box for the past 1.5 years and a Linux box before that. Due to various circumstances, I'll be getting a Windows XP laptop in the next few weeks. I'm of mixed feelings about this - it's good in that, as a manager, I'm used to running a Windows install (via Parallels) for Excel, Ou...
What tools You're using ? I don't mean the text editor, but tools, libraries, debuggers, emulators and so on...
...
I'm trying to get the ipaddress that a process is connected to in c#. Is there an easy way to do this?
...
Using Process Explorer (procexp.exe), especially with Google Chrome, child processes are called a Job. Same with Internet Explorer 8, but I noticed it first with Chrome.
What is a Job
What should I know about these things?
Why would (you|one) use them?
What scenarios should they be used?
What APIs are used.
I know the questions is a ...
I'm new to native c++. Right now, I made it so when I press the left mouse button, it has a for loop that does InvalidateRect and draws a rectangle, and increments X by the box size each time it iterates. But, C++ is so much faster and efficient at drawing than C# that, it draws all this instantly. What I would like is for it to invalida...
Im using SendKey and those functions to send keystrokes to a window located by its Window Name
[DllImport("user32.dll")]
public static extern int FindWindow(
string lpClassName, // class name
string lpWindowName // window name
);
[DllImport("user32.dll")]
public static extern int SetForegroundWindow(
int hWnd // ...
I have a program that was built in C++ (MFC, Visual Studio 6.0) several years ago and has been running on a certain Windows machine for quite some time (more than 5 years). The PC was replaced a month ago (the old one died), and since then the program's timing behavior changed. I need help understanding why.
The main functionality of th...
Hello,
I am trying to create a class that implements the IUnknown interface. I have the following code in the header file.
#pragma once
#include "stdafx.h"
#include "Unknwn.h"
class Vmr9Presenter : IVMRImagePresenter9, IVMRSurfaceAllocator9
{
public:
Vmr9Presenter(void);
HRESULT Initialize(void);
~Vmr9Presenter(void);
STDMETHODIMP ...
I'm looking for a free webmail client (like Squirrelmail for instance) that will act as a front-end to my IMAP-based mail solution. Anything that will integrate well with Windows Server 2008 32-bit / IIS 7.
Any suggestions?
...