Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: snapshot/api/module_annotations_win.h

Issue 1586433003: Adding an API to read module annotations in snapshot.gyp (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Last comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef CRASHPAD_SNAPSHOT_API_MODULE_ANNOTATIONS_WIN_H_
16 #define CRASHPAD_SNAPSHOT_API_MODULE_ANNOTATIONS_WIN_H_
17
18 #include <windows.h>
19
20 #include <map>
21 #include <string>
22
23 namespace crashpad {
24
25 //! \brief Reads the module annotations from another process.
26 //!
27 //! \param[in] process The handle to the process that hosts the \a module.
28 //! Requires PROCESS_QUERY_INFORMATION and PROCESS_VM_READ accesses.
29 //! \param[in] module The handle to the module from which the \a annotations
30 //! will be read. This module should be loaded in the target process.
31 //! \param[out] annotations The map that will be filled with the annotations.
32 //! Remains unchanged if the function returns 'false'.
33 //!
34 //! \return `true` if the annotations could be read succesfully, even if the
35 //! module doesn't contain any annotations.
36 bool ReadModuleAnnotations(HANDLE process,
37 HMODULE module,
38 std::map<std::string, std::string>* annotations);
39
40 } // namespace crashpad
41
42 #endif // CRASHPAD_SNAPSHOT_API_MODULE_ANNOTATIONS_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | snapshot/api/module_annotations_win.cc » ('j') | util/win/get_module_information.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698