How much of the Native API can be faked from userspace?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
GJones
Newbie
Newbie
Posts: 1
Joined: Mon Jun 23, 2014 9:02 pm

How much of the Native API can be faked from userspace?

Post by GJones »

From what I've heard, Wine doesn't implement much (or perhaps any) of the NT Native API, i.e. Nt/ZwBlahBlahWhatEver functions.

I know Longene (or Linux Unified Kernel, or whatever it's called now) provides some of this stuff, but slapping an implementation of the Windows APIs on top of the Linux kernel as a driver seems utterly insane to me from a security standpoint.

So I wonder, how much of the Native API could be implemented in userspace alone, with wrappers for Linux/UNIX syscalls? Could the API be faked well enough to fool desktop applications that make occasional use of it, without providing complete support for Windows drivers?

Would this be acceptable from a legal viewpoint, in terms of licensing stuff?

... And if Wine developers were considering such an effort, where would be a good place to start if I wanted to help out?
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: How much of the Native API can be faked from userspace?

Post by olivierfrdierick »

From what I've heard, Wine doesn't implement much (or perhaps any) of the NT Native API, i.e. Nt/ZwBlahBlahWhatEver functions.
74% total and 78% ntdll specific implementation is the current estimated state of the Wine API.
how much of the Native API could be implemented in userspace alone, with wrappers for Linux/UNIX syscalls? Could the API be faked well enough to fool desktop applications that make occasional use of it, without providing complete support for Windows drivers?
I think this is exactly what Wine does.
Would this be acceptable from a legal viewpoint, in terms of licensing stuff
Wine code is written by Wine developers. There's no legal issue or licencing involved as no code from other parties is used.
And if Wine developers were considering such an effort, where would be a good place to start if I wanted to help out?
If you want to help Wine development, the Wine Development Links page is a good place to start.

This is an end-user forum to help using Wine, not a developer discussion board.
This is my humble Wine end-user opinion.

Source: WineHQ - Win API Stats, WineHQ - Development Links
Locked