Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Server-side snapshots |
| 3 | * |
| 4 | * Copyright (C) 1999 Alexandre Julliard |
| 5 | * |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, write to the Free Software |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 19 | * |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 20 | * FIXME: heap snapshots not implemented |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 21 | */ |
| 22 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 23 | #include "config.h" |
| 24 | #include "wine/port.h" |
| 25 | |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 26 | #include <assert.h> |
| 27 | #include <stdio.h> |
| 28 | #include <stdlib.h> |
Vitaliy Margolen | 4fabe11 | 2006-01-03 12:06:03 +0100 | [diff] [blame] | 29 | #include <stdarg.h> |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 30 | |
Ge van Geldorp | 1a1583a | 2005-11-28 17:32:54 +0100 | [diff] [blame] | 31 | #include "ntstatus.h" |
| 32 | #define WIN32_NO_STATUS |
François Gouget | ecae926 | 2000-12-15 21:30:35 +0000 | [diff] [blame] | 33 | #include "windef.h" |
Ge van Geldorp | 1a1583a | 2005-11-28 17:32:54 +0100 | [diff] [blame] | 34 | #include "winternl.h" |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 35 | |
| 36 | #include "handle.h" |
| 37 | #include "process.h" |
| 38 | #include "thread.h" |
Alexandre Julliard | 5bc7808 | 1999-06-22 17:26:53 +0000 | [diff] [blame] | 39 | #include "request.h" |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 40 | |
| 41 | |
| 42 | struct snapshot |
| 43 | { |
| 44 | struct object obj; /* object header */ |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 45 | struct process *process; /* process of this snapshot (for modules and heaps) */ |
| 46 | struct process_snapshot *processes; /* processes snapshot */ |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 47 | int process_count; /* count of processes */ |
| 48 | int process_pos; /* current position in proc snapshot */ |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 49 | struct thread_snapshot *threads; /* threads snapshot */ |
| 50 | int thread_count; /* count of threads */ |
| 51 | int thread_pos; /* current position in thread snapshot */ |
| 52 | struct module_snapshot *modules; /* modules snapshot */ |
| 53 | int module_count; /* count of modules */ |
| 54 | int module_pos; /* current position in module snapshot */ |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 55 | }; |
| 56 | |
| 57 | static void snapshot_dump( struct object *obj, int verbose ); |
| 58 | static void snapshot_destroy( struct object *obj ); |
| 59 | |
| 60 | static const struct object_ops snapshot_ops = |
| 61 | { |
Alexandre Julliard | 1dca5e2 | 2000-01-01 00:56:27 +0000 | [diff] [blame] | 62 | sizeof(struct snapshot), /* size */ |
| 63 | snapshot_dump, /* dump */ |
| 64 | no_add_queue, /* add_queue */ |
| 65 | NULL, /* remove_queue */ |
| 66 | NULL, /* signaled */ |
| 67 | NULL, /* satisfied */ |
Mike McCormack | f92fff6 | 2005-04-24 17:35:52 +0000 | [diff] [blame] | 68 | no_signal, /* signal */ |
Alexandre Julliard | 1ab243b | 2000-12-19 02:12:45 +0000 | [diff] [blame] | 69 | no_get_fd, /* get_fd */ |
Alexandre Julliard | 28beba3 | 2005-12-12 14:57:40 +0100 | [diff] [blame] | 70 | no_map_access, /* map_access */ |
Vitaliy Margolen | baffcb9 | 2005-11-22 14:55:42 +0000 | [diff] [blame] | 71 | no_lookup_name, /* lookup_name */ |
Alexandre Julliard | 7e71c1d | 2007-03-22 11:44:29 +0100 | [diff] [blame^] | 72 | no_open_file, /* open_file */ |
Alexandre Julliard | b9b1ea9 | 2005-06-09 15:39:52 +0000 | [diff] [blame] | 73 | no_close_handle, /* close_handle */ |
Alexandre Julliard | 1dca5e2 | 2000-01-01 00:56:27 +0000 | [diff] [blame] | 74 | snapshot_destroy /* destroy */ |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | |
| 78 | /* create a new snapshot */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 79 | static struct snapshot *create_snapshot( process_id_t pid, int flags ) |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 80 | { |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 81 | struct process *process = NULL; |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 82 | struct snapshot *snapshot; |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 83 | |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 84 | /* need a process for modules and heaps */ |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 85 | if (flags & (SNAP_MODULE|SNAP_HEAPLIST)) |
Alexandre Julliard | 5bc7808 | 1999-06-22 17:26:53 +0000 | [diff] [blame] | 86 | { |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 87 | if (!pid) process = (struct process *)grab_object( current->process ); |
| 88 | else if (!(process = get_process_from_id( pid ))) return NULL; |
Alexandre Julliard | 5bc7808 | 1999-06-22 17:26:53 +0000 | [diff] [blame] | 89 | } |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 90 | |
Alexandre Julliard | e66207e | 2003-02-19 00:33:32 +0000 | [diff] [blame] | 91 | if (!(snapshot = alloc_object( &snapshot_ops ))) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 92 | { |
| 93 | if (process) release_object( process ); |
| 94 | return NULL; |
| 95 | } |
| 96 | |
| 97 | snapshot->process = process; |
| 98 | |
| 99 | snapshot->process_pos = 0; |
| 100 | snapshot->process_count = 0; |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 101 | if (flags & SNAP_PROCESS) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 102 | snapshot->processes = process_snap( &snapshot->process_count ); |
| 103 | |
| 104 | snapshot->thread_pos = 0; |
| 105 | snapshot->thread_count = 0; |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 106 | if (flags & SNAP_THREAD) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 107 | snapshot->threads = thread_snap( &snapshot->thread_count ); |
| 108 | |
| 109 | snapshot->module_pos = 0; |
| 110 | snapshot->module_count = 0; |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 111 | if (flags & SNAP_MODULE) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 112 | snapshot->modules = module_snap( process, &snapshot->module_count ); |
| 113 | |
Alexandre Julliard | 5bc7808 | 1999-06-22 17:26:53 +0000 | [diff] [blame] | 114 | return snapshot; |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 115 | } |
| 116 | |
| 117 | /* get the next process in the snapshot */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 118 | static int snapshot_next_process( struct snapshot *snapshot, struct next_process_reply *reply ) |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 119 | { |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 120 | struct process_snapshot *ptr; |
Alexandre Julliard | e6374cb | 2006-02-16 12:13:01 +0100 | [diff] [blame] | 121 | struct process_dll *exe_module; |
Alexandre Julliard | ebe29ef | 1999-06-26 08:43:26 +0000 | [diff] [blame] | 122 | |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 123 | if (!snapshot->process_count) |
| 124 | { |
Alexandre Julliard | cb1fc73 | 2000-01-24 21:58:06 +0000 | [diff] [blame] | 125 | set_error( STATUS_INVALID_PARAMETER ); /* FIXME */ |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 126 | return 0; |
| 127 | } |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 128 | if (snapshot->process_pos >= snapshot->process_count) |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 129 | { |
Alexandre Julliard | cb1fc73 | 2000-01-24 21:58:06 +0000 | [diff] [blame] | 130 | set_error( STATUS_NO_MORE_FILES ); |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 131 | return 0; |
| 132 | } |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 133 | ptr = &snapshot->processes[snapshot->process_pos++]; |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 134 | reply->count = ptr->count; |
| 135 | reply->pid = get_process_id( ptr->process ); |
Eric Pouech | 4ecc32a | 2003-02-14 23:31:10 +0000 | [diff] [blame] | 136 | reply->ppid = ptr->process->parent ? get_process_id( ptr->process->parent ) : 0; |
Robert Shearman | c516571 | 2005-05-25 18:41:09 +0000 | [diff] [blame] | 137 | reply->heap = NULL; /* FIXME */ |
| 138 | reply->module = NULL; /* FIXME */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 139 | reply->threads = ptr->threads; |
| 140 | reply->priority = ptr->priority; |
Eric Pouech | 9fd54b2 | 2003-09-16 01:07:21 +0000 | [diff] [blame] | 141 | reply->handles = ptr->handles; |
Alexandre Julliard | e6374cb | 2006-02-16 12:13:01 +0100 | [diff] [blame] | 142 | if ((exe_module = get_process_exe_module( ptr->process )) && exe_module->filename) |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 143 | { |
Alexandre Julliard | 0f273c1 | 2006-07-26 10:43:25 +0200 | [diff] [blame] | 144 | data_size_t len = min( exe_module->namelen, get_reply_max_size() ); |
Alexandre Julliard | e6374cb | 2006-02-16 12:13:01 +0100 | [diff] [blame] | 145 | set_reply_data( exe_module->filename, len ); |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 146 | } |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 147 | return 1; |
| 148 | } |
| 149 | |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 150 | /* get the next thread in the snapshot */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 151 | static int snapshot_next_thread( struct snapshot *snapshot, struct next_thread_reply *reply ) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 152 | { |
| 153 | struct thread_snapshot *ptr; |
| 154 | |
| 155 | if (!snapshot->thread_count) |
| 156 | { |
| 157 | set_error( STATUS_INVALID_PARAMETER ); /* FIXME */ |
| 158 | return 0; |
| 159 | } |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 160 | if (snapshot->thread_pos >= snapshot->thread_count) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 161 | { |
| 162 | set_error( STATUS_NO_MORE_FILES ); |
| 163 | return 0; |
| 164 | } |
| 165 | ptr = &snapshot->threads[snapshot->thread_pos++]; |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 166 | reply->count = ptr->count; |
| 167 | reply->pid = get_process_id( ptr->thread->process ); |
| 168 | reply->tid = get_thread_id( ptr->thread ); |
| 169 | reply->base_pri = ptr->priority; |
| 170 | reply->delta_pri = 0; /* FIXME */ |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 171 | return 1; |
| 172 | } |
| 173 | |
| 174 | /* get the next module in the snapshot */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 175 | static int snapshot_next_module( struct snapshot *snapshot, struct next_module_reply *reply ) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 176 | { |
| 177 | struct module_snapshot *ptr; |
| 178 | |
| 179 | if (!snapshot->module_count) |
| 180 | { |
| 181 | set_error( STATUS_INVALID_PARAMETER ); /* FIXME */ |
| 182 | return 0; |
| 183 | } |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 184 | if (snapshot->module_pos >= snapshot->module_count) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 185 | { |
| 186 | set_error( STATUS_NO_MORE_FILES ); |
| 187 | return 0; |
| 188 | } |
| 189 | ptr = &snapshot->modules[snapshot->module_pos++]; |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 190 | reply->pid = get_process_id( snapshot->process ); |
| 191 | reply->base = ptr->base; |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 192 | reply->size = ptr->size; |
| 193 | if (ptr->filename) |
| 194 | { |
Alexandre Julliard | 0f273c1 | 2006-07-26 10:43:25 +0200 | [diff] [blame] | 195 | data_size_t len = min( ptr->namelen, get_reply_max_size() ); |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 196 | set_reply_data( ptr->filename, len ); |
| 197 | } |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 198 | return 1; |
| 199 | } |
| 200 | |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 201 | static void snapshot_dump( struct object *obj, int verbose ) |
| 202 | { |
| 203 | struct snapshot *snapshot = (struct snapshot *)obj; |
| 204 | assert( obj->ops == &snapshot_ops ); |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 205 | fprintf( stderr, "Snapshot: %d procs %d threads %d modules\n", |
| 206 | snapshot->process_count, snapshot->thread_count, snapshot->module_count ); |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | static void snapshot_destroy( struct object *obj ) |
| 210 | { |
| 211 | int i; |
| 212 | struct snapshot *snapshot = (struct snapshot *)obj; |
| 213 | assert( obj->ops == &snapshot_ops ); |
| 214 | if (snapshot->process_count) |
| 215 | { |
| 216 | for (i = 0; i < snapshot->process_count; i++) |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 217 | release_object( snapshot->processes[i].process ); |
| 218 | free( snapshot->processes ); |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 219 | } |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 220 | if (snapshot->thread_count) |
| 221 | { |
| 222 | for (i = 0; i < snapshot->thread_count; i++) |
| 223 | release_object( snapshot->threads[i].thread ); |
| 224 | free( snapshot->threads ); |
| 225 | } |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 226 | if (snapshot->module_count) |
| 227 | { |
| 228 | for (i = 0; i < snapshot->module_count; i++) |
| 229 | free( snapshot->modules[i].filename ); |
| 230 | free( snapshot->modules ); |
| 231 | } |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 232 | if (snapshot->process) release_object( snapshot->process ); |
Alexandre Julliard | fdc92ba | 1999-02-14 18:03:15 +0000 | [diff] [blame] | 233 | } |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 234 | |
| 235 | /* create a snapshot */ |
| 236 | DECL_HANDLER(create_snapshot) |
| 237 | { |
Alexandre Julliard | 5bc7808 | 1999-06-22 17:26:53 +0000 | [diff] [blame] | 238 | struct snapshot *snapshot; |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 239 | |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 240 | reply->handle = 0; |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 241 | if ((snapshot = create_snapshot( req->pid, req->flags ))) |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 242 | { |
Alexandre Julliard | 24560e7 | 2005-12-09 13:58:25 +0100 | [diff] [blame] | 243 | reply->handle = alloc_handle( current->process, snapshot, 0, req->attributes ); |
Alexandre Julliard | 5bc7808 | 1999-06-22 17:26:53 +0000 | [diff] [blame] | 244 | release_object( snapshot ); |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 245 | } |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 246 | } |
| 247 | |
| 248 | /* get the next process from a snapshot */ |
| 249 | DECL_HANDLER(next_process) |
| 250 | { |
Alexandre Julliard | ebe29ef | 1999-06-26 08:43:26 +0000 | [diff] [blame] | 251 | struct snapshot *snapshot; |
| 252 | |
| 253 | if ((snapshot = (struct snapshot *)get_handle_obj( current->process, req->handle, |
| 254 | 0, &snapshot_ops ))) |
| 255 | { |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 256 | if (req->reset) snapshot->process_pos = 0; |
| 257 | snapshot_next_process( snapshot, reply ); |
Alexandre Julliard | ebe29ef | 1999-06-26 08:43:26 +0000 | [diff] [blame] | 258 | release_object( snapshot ); |
| 259 | } |
Alexandre Julliard | 43c190e | 1999-05-15 10:48:19 +0000 | [diff] [blame] | 260 | } |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 261 | |
| 262 | /* get the next thread from a snapshot */ |
| 263 | DECL_HANDLER(next_thread) |
| 264 | { |
| 265 | struct snapshot *snapshot; |
| 266 | |
| 267 | if ((snapshot = (struct snapshot *)get_handle_obj( current->process, req->handle, |
| 268 | 0, &snapshot_ops ))) |
| 269 | { |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 270 | if (req->reset) snapshot->thread_pos = 0; |
| 271 | snapshot_next_thread( snapshot, reply ); |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 272 | release_object( snapshot ); |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | /* get the next module from a snapshot */ |
| 277 | DECL_HANDLER(next_module) |
| 278 | { |
| 279 | struct snapshot *snapshot; |
| 280 | |
| 281 | if ((snapshot = (struct snapshot *)get_handle_obj( current->process, req->handle, |
| 282 | 0, &snapshot_ops ))) |
| 283 | { |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 284 | if (req->reset) snapshot->module_pos = 0; |
| 285 | snapshot_next_module( snapshot, reply ); |
Alexandre Julliard | 07d8446 | 2000-04-16 19:45:05 +0000 | [diff] [blame] | 286 | release_object( snapshot ); |
| 287 | } |
| 288 | } |