@skurk
Piru has already gone through the issues. The direct access to structures is going to be a pain because you'll somehow have to synchronize these structures with the OS' own structures.
BTW, I wouldn't call it an emulator; it's really an implementation of the Amiga OS API on another system. The Wine project is called a "compatibility layer," and "an Open Source implementation of the Windows API on top of X, OpenGL, and Unix."
Hans