hey guys, I've followed some tutorials online regarding creating and installing a windows service and seem to keep getting into a bind. I followed the tutorial here and it while it seems to be working, its not 100%. This is the code im using:
namespace SuperService
{
partial class Logger : ServiceBase
{
public Logger()
{
...
How do I get a list of software products which are installed on the system. My goal is to iterate through these, and get the installation path of a few of them.
PSEUDOCODE ( combining multiple languages :) )
foreach InstalledSoftwareProduct
if InstalledSoftwareProduct.DisplayName LIKE *Visual Studio*
print InstalledSoftware...
I can write a program by using wmi to monitor the space usage of a hard drive. What should I do about swap memory usage?
...
Hi!
I have the following code:
http://privatepaste.com/8364a2a7b8/12345
But it only writes "c" (supposedly, conversion to LPBYTE leaves one byte only).
What's the proper way to handle GetModuleFileName and registry edit?
...
I have a single pc with multiple keyboards, all the capslock lights turn on/off synchronously.
(so if one user/keyboard turns on the capslock, everybody types in caps)
I was thinking about saving each keyboard's capslock status in flags but I just realized that the lights won't correspond for each user/keyboard's capslock status.
I ju...
I'm trying to figure out how to find the entry point of a specific thread in Windows. I know of various ways to get the entry point of a process, but not of a thread. I've looked at a few different structures/methods (TIB, PEB, and GetThreadContext) that might be able to access it, but it doesn't seem that they do. I've also checked out ...
Right now I'm working on a program with PHP and Perl to read the computer's system data and we have been using SNMP to collect data (or rather, forced to). After retrieving the data, we were supposed to store the data in a database and then use the data to plot out a line graph.
At the moment, I'm using this perl script to retrieve the ...
We have just started using Git and GitHub at work on windows and whenever git is unable to access a file on checkout it will mark the files as deleted and lists them as changed but not updated. i.e.
error: git checkout-index: unable to create file XXXXX (Permission denied)
Checking out files: 100% (876/876), done.
D XXXXX
Switched...
netusergetinfo is returning 2221 error code for valid user . What is the reason? It is because of some security setting on active directory but I am not aware of it.
...
I have created a msi installer using Wise Installation Express 7.0
Recently one client has reported and issue after our new update on Win 7 32 bit:
He launch our update msi, which in turn ask him to remove the previous installation and it removes successfully. This should not happen as I have changed the product code of MSI and its a n...
I read few documents about Mutex and the only Idea I have got still is This helps preventing threads from accessing a resource that is already being used by another resource.
I got from Code snippet and executed Which Works fine:
#include <windows.h>
#include <process.h>
#include <iostream>
using namespace std;
BOOL FunctionToWriteT...
Hello,
I'm writing an application for a Pocket PC 2003 device. In it there is a dialog where various text information is shown. The information is separated so that each piece resides inside its own label, defined as LTEXT in the resource file.
Now my problem is that, at the moment, all text lables have the same font and style (normal ...
Hi there.
How To Programmatically Create a User's Profile from the NetworkServices account at
WinServer 2008 r2.
THX, Alex
...
Hi,
Im am currently coding an application for auto updating ccleaner. Everything worked well until I enabled UAC.. I am using this project: http://www.codeproject.com/KB/cs/tsnewlib.aspx
to schedule the updating process, but when uac is enabled I get every time a message if I would let ccleaner installer make changes to my computer. The...
I have enabled trace logging in .NET to output the network data going back and forth so I can see the SOAP requests being sent to a web service. This seems to be the best way on a site that I can't debug or add a proxy between itself and the web service.
Here are the lines I've added to the web.config to enable it:
<system.diagnostics...
I have made a TForm derivative that acts like the drop down part of a combo, or a hint window, or a popup menu - a temporary thing. It has no caption - its BorderStyle is set to bsNone. The form is displayed non-modally using Show, having set its position.
To make it stand out, it needs a drop shadow around its border. However, a conseq...
Hello,
I want to access the Windows mobile SQLCE database from the desktop application when device is connected to my PC. please suggest is it possible? how i do this?
Using .NET
...
On Windows I use PuTTY to log in a remote server via SSH. Is is possible to change the default directory entry point I get to after I connect and login? (That would be a nice time safer)
e.g. from server/home/ to server/home/subdir/subdir
forgot to add that the remote webserver is linux based
...
I get the following error when trying to push changes to github from the cygwin command promt on windows xp.
$ git push
Password: [my-password-here]
error: The requested URL returned error: 401 while accessing https://[username]:github.com/[username]/[repository-location]/info/refs
fatal: HTTP request failed
Searches from google seeme...
Hi,
Is there way that I can read the file from remote server using fopen or any other api.
Thanks
Avinash
...