comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2007
motuwethfrsasuw
 123456 18
78910111213 19
14151617181920 20
21222324252627 21
28293031    22
2007
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  which function to hook in "ntdll.dll" for controlling process creation         


Author: yytg gold
Date: May 2, 2007 12:56

For controlling process creation in windows I can hook few function
in the "kernel32.dll"\"advapi32.dll"
I want to hook the "root" - I mean the function responsible of
creating process's in the "ntdll.dll"
I hooked the function "NtCreateProcess" - but windows uses a different
function
Which function\s I need to hook?

Thanks in advance
no comments
  Re: Serial programming in win 32         


Author:
Date: May 2, 2007 12:33

saran.jegan@gmail.com wrote:
>>Assuming that you're considering C++, as good a place to start as any is the
>>article in MSDN "Serial Communications in WIN32" by Allen Denver.
>>Be prepared for a signficant learning curve.
>
>
>
> oh..thanks Bruce...let me fallow your suggestion...will back with
> feedback

The referenced article is the seminal source of how to do serial comm in
Win32. But it is also rather dated. Use it for education. But check
out PJ Naughter's CSerialPort class here to make life easier:

http://www.naughter.com/

--
Scott McPhillips [VC++ MVP]
no comments
  Re: Serial programming in win 32         


Author: saran.jegan
Date: May 2, 2007 09:32

On May 2, 6:15 pm, "Bruce Varley" weastnet.com.au> wrote:
> gmail.com> wrote in message
>
> news:1178108281.808483.162510@h2g2000hsg.googlegroups.com...
>
>>i need to get an input from a external key pad through serial port and
>> need to operate the game functionality ,with respect to the external
>> keypad input,how should i do this, what steps i need to fallow , i
>> know how to open,read , write in serial port,but i need to know how
>> should i implement this functionality
>
>> thanks form your time
>
>> Regards
>
> Assuming that you're considering C++, as good a place to start as any is the
> article in MSDN "Serial Communications in WIN32" by Allen Denver.
> Be prepared for a signficant learning curve.
Show full article (0.88Kb)
no comments
  Serial programming in win 32         


Author: saran.jegan
Date: May 2, 2007 05:18

i need to get an input from a external key pad through serial port and
need to operate the game functionality ,with respect to the external
keypad input,how should i do this, what steps i need to fallow , i
know how to open,read , write in serial port,but i need to know how
should i implement this functionality

thanks form your time

Regards
1 Comment
  Re: line of code throwing exception         


Author: Ulrich Eckhardt
Date: May 2, 2007 03:52

Larry Lindstrom wrote:
> Is there any information that describes the cause of the exception,
> divide by zero, memory out of bounds, etc?

There were two exception mechanisms concerned here. I can't comment on win32
structured exceptions (SEH), as I haven't worked with it enough. As far as
C++ exceptions are concerned, you have two sources for information, one is
the type and the other any data carried by the exception object.

Example (using two yet-to-be-written exception classes for math overflow
errors and system errors):

try {
...
} catch( overflow_error const& e) {
handle_overflow();
} catch( system_exception const& e) {
log( "failure %%1 while calling %%2\n", e.what(), e.function());
} catch( std::exceptions const& e) {
log("caught other exception %%1", e.what());
throw;
}
Show full article (1.19Kb)
no comments
  Re: line of code throwing exception         


Author: Larry Lindstrom
Date: May 2, 2007 02:36

Ulrich Eckhardt wrote:
> mdk wrote:
>> When using structured exception handling or C++ exception handling how
>> can i find out which line of code is throwing the exception?
>
> If you don't catch it, typically abort() is invoked which then activated the
> debugger at that point. Other than that, there is no such information in
> the exception framework itself.
>
> Uli
>

Hi Timmy and Ulrich:

Is there any information that describes the cause of the exception,
divide by zero, memory out of bounds, etc?

Thanks
Larry
no comments