Re: win32 or native NT windows API




Herbert Kleebauer wrote:


The call of OS functions is done by an INT or SYSCALL and not by
a call to a function in a DLL.

Says who?
BTW, ever hear of call gates?

Any code in the DLL is executed in
the context of the running program and there is no difference whether
you call this code in the DLL or you include the source of this
code in your own program.

And your point is?

And this is the reason why the old DOS
int21 (or the Linux int80) interface is much more appropriate for
learning assembly programming than the DLL calls in Windows.

Why does the OS calling mechanism have *anything* to do with assembly
programming? Indeed, by your own argument DOS calls are not true OS
calls because the code executes in the same environment as the user
program. It makes no difference whether you using the INT instruction
or call the code directly in memory (e.g., by obtaining the address
from the interrupt vector table). Indeed, many DOS programs include
their own INT handlers, hence such code is part of the user program
anyway. Your argument is *seriously* flawed here.
Cheers,
Randy Hyde

.



Relevant Pages

  • Re: am having a problem with pinvoke and StringBuilder[ ]
    ... If you don't have the source of the DLL then you are in a world of pain, that means you wont be able to use the interop marshaler, you need to "custom" marshal. ... public static extern int EnumerateBoards(ref int numBoards, ... Since the String class is immutable, I have used StringBuilder in my code ...
    (microsoft.public.dotnet.framework.clr)
  • Problem in performance of calling a dialog in DLL(Windows programm
    ... I use VC++ 2008 and have two part in my project(First part: my dll project ... “Select Reader” and then select one of these substrings and send it to the ... int nPtr=0; ... static buff* pad=new buff; ...
    (microsoft.public.vc.mfc)
  • Problem in correct performance of calling a dialog in a DLL(Window
    ... I use VC++ 2008 and have two part in my project(First part: my dll project ... “Select Reader” and then select one of these substrings and send it to the ... int nPtr=0; ... static buff* pad=new buff; ...
    (microsoft.public.dotnet.languages.vc)
  • Problem in correct performance of calling a dialog in a DLL(Window
    ... I use VC++ 2008 and have two part in my project(First part: my dll project ... “Select Reader” and then select one of these substrings and send it to the ... int nPtr=0; ... static buff* pad=new buff; ...
    (microsoft.public.vc.language)
  • Re: am having a problem with pinvoke and StringBuilder[ ]
    ... DLL: Hello from TestLib.dll ... Since the String class is immutable, I have used StringBuilder in my code ... public static extern int EnumerateBoards(ref int numBoards, ...
    (microsoft.public.dotnet.framework.clr)