Up |
  |
Author: Christian ASTORChristian ASTOR
Date: May 16, 2008 07:44
> I have tried picking up the WM_GETDLGCODE message. This is being send
> to my dialog procedure. The return value of a dialog procedure is a
> BOOL so how can I return the values that are indicated in the MS
> documentation like DLGC_WANTALLKEYS (which has a value of 4)?
>
WM_GETDLGCODE is handled by subclassing controls.
But I don't understand when you say "What does not work is text
entry..."
Nothing is needed to enter text into Edit controls (fortunately..)
|
| |
|
| |
no comments
|
|
  |
Author: k.bramhillk.bramhill
Date: May 16, 2008 07:13
Partly solved, the following bit works for an editable combo control
so I can now enter text to it:-
I found that by trapping the WM_LBUTTONDOWN to set the focus I could
then test not only the msg.hwnd to see if it was one of my controls
but, if that failed, test the result of ::GetParent(msg.hwnd) and if
that fails ::GetParent(::GetParent(msg.hwnd)) to look for a recognised
hwnd and then pass the recognised hwnd to IsDialogMessage() as normal.
The above solution does not work for the standard "edit" class of
control that I create with something like this:
|
| Show full article (1.28Kb) |
|
| |
no comments
|
|
  |
Author: vidishasharmavidishasharma
Date: May 16, 2008 06:36
Hi
I have a winproc defined as follows:
private IntPtr ReadingPaneProc(IntPtr hWnd, int msg, IntPtr wParam,
IntPtr lParam)
{
System.Windows.Forms.Message m =
System.Windows.Forms.Message.Create(hWnd, msg, wParam,
lParam);
switch (m.Msg)
{
case WM_SETCURSOR:
MessageBox.Show("Cursor changed");
break;
|
| Show full article (1.16Kb) |
|
no comments
|
|
  |
Author: shakuni.you.betshakuni.you.bet
Date: May 16, 2008 00:25
How can I access the files that are in-use by other processes. Say
there is this file called "locked.txt", which is in use by process A.
Now how can I copy this file to another location programmatically.
Normal methods will fail with the error "The process cannot access the
file because it is being used by another
process.".
Any ideas ?
|
| |
|
no comments
|
|
  |
Author: shakuni.you.betshakuni.you.bet
Date: May 16, 2008 00:25
I have a tool that scans(parses) the registry for invalid entries and
deletes them.
I looked for things that are considered as "invalid registry entries"
and found many things that comes in the criteria, like following-
Missing shared dlls
Unused file extensions
activex issues
COM issues
class (Invalid or empty class) issues
MUI cache
etc.
My question is that how can I determine wheather an entry in a
registry is invalid or not according to above criteria.
|
| |
|
1 Comment |
|
  |
Author: shakuni.you.betshakuni.you.bet
Date: May 16, 2008 00:24
There is this tool that fetches the list of all the running processes
and then flags all those processes that are dangerous. Now getting the
list of all the running processes is trivial and has been discussed on
the forums infinite times. What I ask is how does the tool decides
wheather a process is dangerous or not. My first thought was that this
tool monitors all the api calls of all the processes and then based on
that info it determines the dangerous processes but this can't be true
since system processes uses almost same apis that are used by
dangerous processes (like accessing registries and files on disk
etc.). Any ideas? (otherwise I would have to reverse the program
myself to find out how it does that)
|
| |
|
no comments
|
|
  |
Author: shakuni.you.betshakuni.you.bet
Date: May 16, 2008 00:24
How can I implement my own custom subsystem in windows ?
|
| |
|
no comments
|
|
  |
Author: shakuni.you.betshakuni.you.bet
Date: May 16, 2008 00:23
While deleting some files on windows XP, I get this message
"Deleting this File Will Make some Programs not Work"
I want to know weather I can produce a particular message, like above,
when a file gets deleted.
(May be I need to monitor certain files using hook, and when the hook
notifies me of their deletion, I show a messagebox like above. But I
want to know how "windows" do it).
|
| |
|
2 Comments |
|
  |
Author: krishkrish
Date: May 15, 2008 19:47
How can I find out the dependencies of an application inside my
program/driver? Say e.g If I want to find out the dependencies of
iexplorer.exe inside my program? What are the APIs? I knwo there is a
program something called dependency walker so I assume there must be
some way of doing this.
I want to provide a GUI which lists all the programs installed on the
computer and when user cselects one of them I lists all the files
(.dlls etc) on which it is dependent.
|
| |
|
1 Comment |
|
  |
|
  |
Author: Nuno MagalhaesNuno Magalhaes
Date: May 15, 2008 10:47
Hello,
I've done a small application that sometimes crashes on the free,
sometimes doesn't allocate memory correctly (malloc) and sometimes
crashes on printf flush procedure. What can I do to correct this
library?
The code follows below.
Thanks in advance.
/*! \file timerthread_win32.c
*/
#include
#include
#include
#include "timerthread.h"
/* Debug related definitions. */
#ifdef DEBUG_TIMERTHREAD
#define dprintf printf
#else
#define dprintf
#endif
|
| Show full article (5.01Kb) |
|
7 Comments |
|
|
|