summaryrefslogtreecommitdiff
path: root/src/shared/inject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/inject.cpp')
-rw-r--r--src/shared/inject.cpp42
1 files changed, 23 insertions, 19 deletions
diff --git a/src/shared/inject.cpp b/src/shared/inject.cpp
index 8cedd247..9fea7fc8 100644
--- a/src/shared/inject.cpp
+++ b/src/shared/inject.cpp
@@ -1,22 +1,22 @@
-/*
-Copyright (C) 2012 Sebastian Herbord. All rights reserved.
-
-This file is part of Mod Organizer.
-
-Mod Organizer is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-Mod Organizer is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
-*/
-
+/*
+Copyright (C) 2012 Sebastian Herbord. All rights reserved.
+
+This file is part of Mod Organizer.
+
+Mod Organizer is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Mod Organizer is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include "inject.h"
/*#if defined UNICODE && !defined _UNICODE
#define _UNICODE 1
@@ -31,6 +31,8 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "windows_error.h"
#include "error_report.h"
+namespace MOShared {
+
struct TParameters {
char dllname[MAX_PATH];
@@ -140,3 +142,5 @@ void injectDLL(HANDLE processHandle, HANDLE threadHandle, const std::string &dll
throw windows_error("failed to overwrite thread context");
}
}
+
+} // namespace MOShared