Sometimes when I call RegisterEventSource(), it returns NULL. GetLastError() returns 0.
The event log is on a remote machine in the same domain, and the user is an admin in the domain. This happens several times in a row on different machines (but with the log on the same machine), then stops happening.
Why can this happen?
All machi...
I am wondering is there a way to refresh the HKLM registry key HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer - without restarting the shell.
I would like to be able to do this without restarting explorer. Is there any known way to do that ?
So far, I found only this thing:
RUNDLL32.EXE USER32.DLL,UpdatePerUserSyste...
I have this vendor-supplied TLB file, which I've used to generate a Ruby proxy class. However, the TLB in question describes 6 interfaces and 3 classes:
AcdAutomationServer (I)
AcdAutomationServerClass (C)
AcdEvent (I)
AcdEventClass (C)
AcdObject (I)
AcdObjectClass (C)
IAcdAutomationServer (I)
IA...
Do you know a smart way to hide or in any other way get rid of the root window (opened by Tk()) that appears (at least on Win32). I would like to use a normal dialog, but it looks like this:
(The window on the left is unwanted.) Should I skip the dialog and put all my components in the root window? Is it possible+desirable? Or is ther...
Very simple problem. I have a Delphi application and I want to restrict access to this by requiring users to log on using CardSpace. Basically, I need to extract the ID, name and address information from the cardspace card.
The use of CardSpace is a requirement from a customer and I just want to know if:
Can CardSpace be easily used f...
I'm sort of new to c++. I'm trying to send a key to another application, which I know the HWND of. I was thinking of doing ::SendMessage but I'm not sure what parameters to use. I'm trying to send the space key. Thanks.
...
I am trying to get the window handles to a Delphi application from an external application. I can see that there are a few windows created (TApplication, TFrmMain and a few others), and I know that TApplication is the "controller", but never visible. However, can I read what the value for the real window is? I know that it is TFrmMain (f...
I'm trying to enable PerlCritic support in Komodo.
The official word from ActiveState, the makers of Komodo IDE 5.1 (Win 32) is:
"To enable PerlCritic support, please install the 'Perl-Critic' and 'criticism' modules."
Well, installing Perl-Critic was a piece of cake:
ppm install Bundle-Perl-Critic
However, I've search every reposi...
I know that I can consume COM components but is there a way to directly call into the Win32 API's (user32.dll, advapi32.dll etc) from PHP or do I need to wrap in a PHP extension or COM object?
...
In the case of a sendto invocation, I would like to keep the application open, after it completes, so the user can look at it.
In the case of a dos window invocation, the user controls when the window closes.
The platform is XP using msvc 6
...
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 ...
this is my code..
set trayicon
.......
NOTIFYICONDATA data;//this is global variable.
case WM_CREATE :
data.cbSize = sizeof(NOTIFYICONDATA);
data.hWnd =hWnd;
data.uID = IDR_MAINFRAME;
data.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
data.uCallbackMessage = ID_TRAYICON_NOTIFY;
data.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_INFO));
w...
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...
Microsoft offers the InterlockedCompareExchange function for performing atomic compare-and-swap operations. There is also an _InterlockedCompareExchange intrinsic.
On x86 these are implemented using the cmpxchg instruction.
However, reading through the documentation on these three approaches, they don't seem to agree on the alignment r...
I'm using the WindowsAPICodePack for TaskDialog. When I try to show the dialog it says that it needs to load version 6 of comctl32.dll. So I added version 6 to the app.manifest and tried running it. Still no luck. I went to the Debug folder and ran the program without Visual Studio and it works fine. I'm guessing that Visual Studio isn't...
I'm new to c++ and I'm not sure how WM_KEYDOWN works. I want to have a case for each arrow key (UP,DOWN,LEFT,RIGHT)
Thanks
...
I'm sort of new to c++ and i'm trying to create a game.
I have a 2d array RECT_GRID of rectangles.
I have a 2d array GRID of unsigned short.
I fill the rectangle array during WM_CREATE
The WM_PAINT event paints rectangles for all the elements in the array. The color of the rectangle is based on the value of GRID[x][y]
I made it so when...
There's a problem with drawing gridlines in listview with common controls 6. It happens when I try to scroll the list page down or page up with mouse.
.
I was only able to find this discussion http://www.ureader.com/msg/1484143.aspx, but the solutions are not perfect
LVS_EX_DOUBLEBUFFER doesn't work for me
Disabling smooth scrolling...
I noticed that AccExplorer (accessibility explorer) shows when controls are visible or invisible. How does it determine this? The api for MSAA does not have a IsVisible function. Any ideas?
Edit: IsWindowVisible does not actually tell you if it has been drawn or not. Even if something is 100% obscuring the window, IsWindowVisible can st...
Hi all,
I'm trying to build a Win32 DLL from an audio-DSP related Linux library (http://breakfastquay.com/rubberband/). There are makefiles and config scripts for Linux, but no help for Windows. The author provides a Win32 binary of a sample app using the library, and I see a number of "#ifdef MSVC" and "#ifdef WIN32" scattered around, ...