In C# how do i query the list of running services on a windows server?
I want to query for a list of services running as a specific user on a remote machine and then check the health of each. I'm building a custom console. ...
I want to query for a list of services running as a specific user on a remote machine and then check the health of each. I'm building a custom console. ...
A customer is attempting to capture a minidump of a hang. He fires up WindDbg and successfully attaches to the process. WinDbg displays its header: Microsoft (R) Windows Debugger Version 6.11.0001.404 AMD64 Copyright (c) Microsoft Corporation. All rights reserved. and the loaded modules are enumerated. He enters a dump command: .d...
I mean this as a serious question. I have a chance at accepting a job offer with a company requiring skills in Unix (although they seem fine with my admittance of having only Windows experience, expecting me to be able to pick up Unix with the job). Java is multi-platform. Every piece of software I've ever had to use is available on...
How is it possible to add menu items to the system menu of a frame in wxPython/wxWidgets? (I'm talking about the menu that appears when clicking on the application icon in Windows - the one with Minimize, Maximize, Close, ...). I want to add a menu item of my own for a simple application that doesn't require a full blown top menu. A Wi...
Hello everyone, I am using the following code to leverage Windows Media Encoder to record screen. I am using Windows Vista, screen resolution 1024 × 768, 32-bit. My issue is, the video could be recorded successfully, but when I playback the recorded video, the quality of video is not very good -- e.g. characters are very obscure. I am w...
hi i created a dialogbox using MFC dialog.. using below url i displayed a bitmap picture in a dialog box. http://www.functionx.com/visualc/applications/displaybitmap.htm i have not write any code for that.i just added the bitmap Picture into import picture dialog box and used picture control and followed the tutorial... when i run my ...
I want to write a small program that given a time (in minutes) as input, sleeps in the background for that time, and then forces a return to the "switch user screen" (equivalent to the Winkey+L combination) or logs off a user (may be another user logged in on the same machine). What functions or libraries in Python could I use for this?...
Can one get the volume total size being a normal user ? GetDiskFreeSpaceEx does return the Total Number Of Free Bytes but not the Total Bytes. So the only Total Bytes i get are those of the quota using DeviceIoControl with IOCTL_DISK_GET_LENGTH_INFO doesn't seem to work with non admin rights. ...
I want to realize a simple confirmation/alert box which can be called using a Windows XP/Vista batch script by CLI. The standard alert box seems to be blocking which means that the whole batch script will stop at the time of the alert window call which is NOT what I want. If it needs to be coded, please supply an example or documentati...
Hi, I've noticed that the native C++ application I'm working on has quite a large memory footprint (20MB) even before it enters any of my code. (I'm referring to the "private bytes" measure in Windows, which as I understand it is the most useful metric). I've placed a break point on the first line of the "main()" function and sure en...
I want to intercept messages that are being sent to a window in a different process. What is the best way to do this? I can't see the messages when I use the WH_GETMESSAGE hook, and I'm not sure if I can subclass across processes? Any help would be much appreciated. ...
GetShortPathName() is not working as I expect on XP SP3 http://msdn.microsoft.com/en-us/library/aa364989(VS.85).aspx Is returning the input string for paths like: C:\Test\LongFolderNameToTestWith\BinarySearch.ini exactly as sent? Yet: C:\Documents and Settings\LocalService\NTUSER.DAT Does make short names for the path, so I kn...
I have a monitoring script that I'd like to pop up a "toast window" when it detects that something happens. Is there a simple executable available that I can just run to do this? I know it's relatively east to write such a thing, but I'd rather just use an existing program if there's one available. ...
I'm aware that some messages types are sent directly to window procedures, while others are posted to a thread's message queue, but I haven't found any way to determine if a message will be sent or posted. MSDN is half-helpful; it explained what's going on but the examples it gives are presumably not exhaustive. Is there a definitive l...
I am working on a Windows program which is completely single-threaded and has no protection to any data structure. However, the program use DirectShow API which open their own internal message-dispatching, IVideoWindow::put_Visible for example. So the event-handling function which invokes IVideoWindow::put_Visible Method give other event...
Hey guys, I'm working on a shell extension that is supposed to display extended properties of files (mostly .jpgs) stored on a virtual drive (think of it as an external harddrive). Is it possible to register the shell extension in a way that it only kicks in for files of a specific folder/drive (in my case the external harddrive) and l...
Question: I have a library contains a bunch of static *lib files, I wish to access them from JNA (a Java library that allows one to dynamically call `dll's from JAVA Code), so is there a way to magically change static lib to dll? Code was compiled using Visual studio (hope that is relevant), and I also have appropriate header files. ...
Hello everyone, I have a program written in C# and dependent on Windows Media Encoder 9 Series SDK. In order for my program to run on other target machines, I have to install the whole Windows Media Encoder on target machines. My question is, I want to reduce the overhead of installation the whole Windows Media Encoder on target mach...
I'm completely new to COBOL, but I'd like to take a look at the different options for GUI programming on Windows. I don't really like Tcl/Tk, though. Is there some resource for developing a Windows GUI in COBOL in the same manner that one would develop a GUI in C? Thanks! ...
I am going to be running an app(s) that require about 200MB of market data each time it runs. This is trivial amount of data to store in memory these days, so for speed thats what i want to do. Over the course of a days session I will probably run, re-run, re-write and re-run etc etc one or more applications over and over. SO, the ques...