Does it use Win32 API or bypasses it?
Printable View
Does it use Win32 API or bypasses it?
Bypasses. That's the whole point.
How it gets needed privillage?
By account of making direct calls to the public interface of the graphics card drivers. In theory, anyone can do that. It's just a really bad idea, because it ties you into the vendor-specific driver API. Oh, and no vendor publishes any documentation about their API - they only implement a low-level DirectX interface.
At least I'm pretty sure that's how it works. This is getting slightly into the realm of speculation.
So you mean all full trust programs have direct access to device driver APIs in Windows?
Don't misunderstand me. I mean the API exposed by device drivers, which is essentially just another set of syscalls. I don't mean the DDK, the API the Windows kernel exposes to device drivers.
Yes, every full trust app (which includes every app not written in a managed language) can access any syscall.
DirectX
Where can I found a code example of such sys calls?
You mean, "Where can I find the source code for DirectX (a Microsoft product)?" :)
As such sys calls is legal for programs (they are previlleged). Code from another coder should be found. Right?
Only if anyone who publishes their source actually issues such calls. But why should they?