[KERNEL] add CmdBatNotification stub

markus.amsler at oribi.org markus.amsler at oribi.org
Fri Jun 4 09:53:44 CDT 2004


Hi

CmdBatNotification is used by cmd.exe when executing a bat file.
Found no documentation about this function, so I dissassembled it:

 public CmdBatNotification
 CmdBatNotification :: ; proc near
  push ebp
  mov ebp , esp
  sub esp , 090h
  mov eax ,  dword ptr fs:[018h]
  mov  eax , dword ptr [ eax + 48 ]
  mov  eax , dword ptr [ eax + 16 ]
  mov  eax , dword ptr [ eax + 16 ]
  cmp eax , 0FFFFFFFFh
  mov  dword ptr [ ebp - 104 ] , eax
  je Label77e8885c
  mov  eax , dword ptr [ ebp + 8 ]
  pushd 08h
  mov  dword ptr [ ebp - 100 ] , eax
  pushd 010013h
  lea eax ,  dword ptr [ ebp + 0FFFFFF70h ]
  pushd 00h
  push eax
  call  dword ptr [ CsrClientCallServer ]

 Label77e8885c ::
  leave
  ret 04h

ret 04h => one argument
The value is 1, so I assume it's a handle, not a pointer.


Changelog
    Markus Amsler <markus.amsler att oribi.org>
    Added CmdBatNotification stub

Markus

Index: console.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/console.c,v
retrieving revision 1.32
diff -u -r1.32 console.c
--- console.c	19 May 2004 03:22:56 -0000	1.32
+++ console.c	4 Jun 2004 12:50:24 -0000
@@ -294,6 +294,20 @@
 }

 /******************************************************************
+ *		CmdBatNotification            (KERNEL32.@)
+ *
+ * Undocumented
+ *
+ * It's only used by cmd.exe.
+ * Makes a call to the undocumented CsrClientCallServer
+ */
+BOOL WINAPI CmdBatNotification(HANDLE handle)
+{
+    FIXME("(%p): stub\n", handle);
+    return TRUE;
+}
+
+/******************************************************************
  *		GetConsoleInputWaitHandle            (KERNEL32.@)
  *
  * Undocumented
Index: kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.134
diff -u -r1.134 kernel32.spec
--- kernel32.spec	2 Jun 2004 21:32:55 -0000	1.134
+++ kernel32.spec	4 Jun 2004 12:50:26 -0000
@@ -930,7 +930,7 @@
 @ stub BaseAttachCompleteThunk
 @ stub BasepDebugDump
 @ stdcall CloseConsoleHandle(long)
-@ stub CmdBatNotification
+@ stdcall CmdBatNotification(long)
 @ stub ConsoleMenuControl
 @ stub ConsoleSubst
 @ stub CreateVirtualBuffer



More information about the wine-patches mailing list