I got this idea a long time ago when i saw an app do this for a game.
i want to catch certain keystrokes. Something like /s myCommand. I had ppl msg me and mess me up through msn so my first command would be something like killmsn. I looked up the resource on msdn and got this far. This doesnt work, why doesnt it? is it BC of sleep? how...
so i am trying to create a util keystroke app so i can do things like kill or launch something. I am thinking i should hold cmd in any app, then type in a 4 digi cmd key so i can launch or kill anything quickly while programming, debugging watching a vid, etc.
I figured out how to get the keyboard callback but for whatever reason once i...
Hi,
I've written explorer bars (band object) before and AFAIK vertical explorer bars can only be on the left side. However, I was amazed when I saw this explorer bar by HP that is docked on the right hand side instead:
I've searched up google for a bit and I can't find any resources on this. Does anyone know how to build a vertical r...
Like most laptops, mine (a Dell Inspiron 1420) has a small button which can be used to turn the wifi card on and off. Is there any way to detect that the radio has been turned off in a Win32 C program or service? I'm looking for a better way than to get the list of the visible access points, something that only depends on the state of th...
I need to add the "Run when Windows starts" option to my program CintaNotes, but do not want to sacrifice the "cleanness" of it: it is a 100% portable freeware and should not leave traces in the system.
I've come up with the idea to autodetect running from the Startup shortcut and automatically minimizing to the system tray. Is there a w...
I am trying to figure out how to print in C++. I want to get the device context using the PrintDlgEx function, which needs a PRINTDLGEX structure. However, I cannot create a PRINTDLGEX because it says it's undeclared. I have included the Commdlg.h and Windows.h and linked the Comdlg32.lib, but all to no avail. Is there something I'm miss...
Trying to create a small monitor application that displays current internet usage as percentage in system tray in C using win32 API.
Also wanting to use colour background or colour text based on how much is used relative to days left in month.
EDIT: To clarify I am wanting the system tray icon to be dynamic. As the percentage changes ...
How do I get the current mouse cursor type? In Windows.
I mean - if it's a hourglass, an arrow, etc? I need it even if the mouse is ouside of my application or even if my program is windlowless.
In C#, Delphi or pure winapi, nevermind...
Thank you very much in advance!!
...
I'm trying to use VDMEnumProcessWOW to find all 16 bit host processes on Vista. I call it, and it appears to not find any results even though I do have a 16 bit app running.
I've also tried calling VDMEnumTaskWOWEx with the process id I got for ntvdm.exe from Windows Task Manager, and that also returns no results.
ntvdm.exe has user na...
How do you check the windows version in Win32 at runtime?
...
I am working an application in C#/WPF and wanted to get the list of all attached display monitors. I used the Screen class and successfully got the list but now the list is having each monitor name as ".\Display1\XXXXXXXX" etc . which is not readable. However, My Nividia control panel list them as proper names. So can any one tell me how...
Say I have some windows method and a struct:
struct SomeStruct{
int foo;
int bar;
int baz;
int bat;
}
SomeMethod(int a,int wParam, int lParam)
{
SomeStruct s;
// get lParam into SomeStruct
}
How to I get the lParam into a SomeStruct variable? I'm thinking that I need something like this (but feel free to point out my ignorance...
On Microsoft Windows, is it possible to have a click through window (where all mouse clicks will go straight through), similar to WS_EX_TRANSPARENT, without the redrawing issues that WS_EX_TRANSPARENT has?
I am not talking about a layered window, but a fully opaque window where all clicks just go through to the item beneath.
Thanks!
...
I was wondering, how would you go about writing an application that basically houses other applications inside of it?
The reason I ask is that I'd love to build an app that 'conquers' my current explosion of open windows. I've used virtual window managers before and they're nice and all, but I could do so many things with an app like I...
Is there a way to guarantee that your system tray icon is removed?
To add the system tray icon you do:
Shell_NotifyIcon(NIM_ADD, &m_tnd);
To remove the system tray icon you do:
Shell_NotifyIcon(NIM_DELETE, &m_tnd);
What I want to know: what if you application crashes? The icon stays in your system tray until you mouse over. Is th...
I'm trying to load the default HICON that explorer displays for:
An open folder
An exe that has no embedded default icon of its own. This can also be seen in 'Add/Remove Programs' or 'Programs and Features' as it's called on Vista.
Do you know where these can be found? I think the folder icon might be in the resources of explorer.e...
What is the easiest way to convert a RECT struct (tagRECT) or a CRect to a Gdiplus::Rect?
Gdiplus::Rect tmpRect(rect.top, rect.left, rect.Width(), rect.Height());
works but is a lot of typing.
...
I'm writing a DLL that is automatically injected on load in a specific application. Because I'd like to run the program while working on it, and my users might want to load the program without it in specific cases (e.g. bug hunting), I sometimes want to prevent loading the DLL.
Currently I do this by checking GetKeyState for VK_LCONTROL,...
Is there a recommended way to prevent the Windows screensaver from starting? The closest thing I've found is this article, but what I would really like to do is just tell Windows that the computer isn't idle rather than fooling with the currently set screensaver values.
...
Let's put Heisenberg aside for a brief moment.
How would I go about to, from within my own process, monitor how much memory this process is using?
(I might have under-specified the question on purpose, dreaming of creative answers...)
...