Merged THDB and TEB structures.
Made SetLastError(), GetCurrentThreadId() and PROCESS_Current() inline.

diff --git a/miscemu/main.c b/miscemu/main.c
index 84f94ff..3df2983 100644
--- a/miscemu/main.c
+++ b/miscemu/main.c
@@ -168,15 +168,14 @@
 
     /* Create initial task */
     if ( !(pModule = NE_GetPtr( GetModuleHandle16( "KERNEL" ) )) ) return 1;
-    if ( !TASK_Create( THREAD_Current(), pModule, 0, 0, FALSE ) ) return 1;
+    if ( !TASK_Create( pModule, 0, 0, FALSE ) ) return 1;
 
     /* Switch to initial task */
     PostEvent16( PROCESS_Current()->task );
     TASK_Reschedule();
 
     /* Switch stacks and jump to MAIN_EmulatorRun */
-    CALL32_Init( &IF1632_CallLargeStack, MAIN_EmulatorRun,
-                 THREAD_Current()->teb.stack_top );
+    CALL32_Init( &IF1632_CallLargeStack, MAIN_EmulatorRun, NtCurrentTeb()->stack_top );
 
     MSG( "main: Should never happen: returned from CALL32_Init()\n" );
     return 0;