[amd64] Fix an off-by-one in the dyn call code.
[mono.git] / support / supportw.c
index f1fa2d16ff7ab1946d5cbb1f0929d391e0ee3b69..51b49697152b36ac93cedb5ba9ea741231deedd7 100644 (file)
@@ -28,20 +28,6 @@ typedef struct {
 gpointer FindWindowExW        (gpointer hwndParent, gpointer hwndChildAfter,
                               const char *classw, const char *window);
 
-gpointer HeapAlloc            (gpointer unused1, gint32 unused2, gint32 nbytes);
-gpointer HeapCreate           (gint32 flags, gint32 initial_size, gint32 max_size);
-gboolean HeapSetInformation   (gpointer handle, gpointer heap_info_class,
-                              gpointer heap_info, gint32 head_info_length);
-
-gboolean HeapQueryInformation (gpointer handle, gpointer heap_info_class,
-                              gpointer heap_info, gint32 head_info_length, gint32 *ret_length);
-
-gpointer HeapAlloc            (gpointer handle, gint32 flags, gint32 nbytes);
-gpointer HeapReAlloc          (gpointer handle, gint32 flags, gpointer mem, gint32 nbytes);
-gint32   HeapSize             (gpointer handle, gint32 flags, gpointer mem);
-gboolean HeapFree             (gpointer handle, gint32 flags, gpointer mem);
-gboolean HeapValidate         (gpointer handle, gpointer mem);
-gboolean HeapDestroy          (gpointer handle);
 gpointer GetProcessHeap       (void);
 
 static FnPtr functions [] = {
@@ -172,4 +158,31 @@ FindWindowExW (gpointer hwndParent, gpointer hwndChildAfter, const char *classw,
        return func (hwndParent, hwndChildAfter, classw, window);
 }
 
+int
+SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags);
 
+int
+SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags)
+{
+       fprintf (stderr, "SetWindowPos %p %p to [%d,%dx%d,%d] %d\n", hwnd, hwndInsertAfter, x, y, cx, cy, flags);
+       return 1;
+}
+
+int
+SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam);
+
+int
+SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam)
+{
+       fprintf (stderr, "SendMessage (%d, 0x%x, %p, %p)\n", (int) GPOINTER_TO_INT (hwnd), msg, wparam, lparam);
+       return 0;
+}
+
+int
+GetWindowLongA (gpointer hwnd, int a);
+
+int
+GetWindowLongA (gpointer hwnd, int a)
+{
+       return 0;
+}