浏览代码

Added missing AttachConsole function required by Win32.WinTrace.Mod

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6487 8c9fc860-2736-0410-a75d-ab315db34111
felixf 9 年之前
父节点
当前提交
6d3c9906ef
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      source/Win32.Kernel32.Mod

+ 3 - 0
source/Win32.Kernel32.Mod

@@ -346,6 +346,8 @@ VAR
 
 	(** The AllocConsole function allocates a new console for the calling process. *)
 	AllocConsole-: PROCEDURE {WINAPI} ( ): BOOL;
+	(** The AttachConsole function attaches the calling process to the console of the specified process. *)
+	AttachConsole-: PROCEDURE {WINAPI} (in: LONGINT): BOOL;
 	(**The Beep function generates simple tones on the speaker. The function is synchronous; it does not return control to its caller until the sound finishes.*)
 	Beep-: PROCEDURE {WINAPI} ( dwFreq, dwDuration: LONGINT ): BOOL;
 	(** The ClearCommBreak function restores character transmission for a specified communications device and places the transmission line in a nonbreak state. *)
@@ -814,6 +816,7 @@ VAR
 		str := "Kernel32.DLL";
 		mod := LoadLibrary(str);
 		GetProcAddress(mod, "AllocConsole",SYSTEM.VAL(ADDRESS,AllocConsole));
+		GetProcAddress(mod, "AttachConsole",SYSTEM.VAL(ADDRESS,AttachConsole));
 		GetProcAddress(mod, "Beep",SYSTEM.VAL(ADDRESS,Beep));
 		GetProcAddress(mod, "ClearCommBreak",SYSTEM.VAL(ADDRESS,ClearCommBreak));
 		GetProcAddress(mod, "ClearCommError",SYSTEM.VAL(ADDRESS,ClearCommError));