Skip to content

Commit 61dca64

Browse files
committed
Renamed NativeHelper to NativeCore.
1 parent dedbf3a commit 61dca64

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+28
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bool __stdcall DisassembleCode(RC_Pointer address, RC_Size length, RC_Pointer vi
2424

2525
instruction->Length = disamLength;
2626
std::memcpy(instruction->Data, address, disamLength);
27-
MultiByteToWideChar(0, 0, disasm.CompleteInstr, -1, instruction->Instruction, 64);
27+
MultiByteToUnicode(disasm.CompleteInstr, instruction->Instruction, 64);
2828

2929
return true;
3030
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void __stdcall EnumerateProcesses(EnumerateProcessCallback callbackProcess)
7070
{
7171
EnumerateProcessData data;
7272
data.Id = pe32.th32ProcessID;
73-
GetModuleFileNameExW(process, nullptr, data.ModulePath, PATH_MAXIMUM_LENGTH);
73+
GetModuleFileNameExW(process, nullptr, (LPWSTR)data.ModulePath, PATH_MAXIMUM_LENGTH);
7474

7575
callbackProcess(&data);
7676
}

NativeHelper/EnumerateRemoteSectionsAndModules.cpp renamed to NativeCore/EnumerateRemoteSectionsAndModules.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ void __stdcall EnumerateRemoteSectionsAndModules(RC_Pointer process, EnumerateRe
129129
j->Category = SectionCategory::DATA;
130130
}
131131

132-
size_t convertedChars = 0;
133-
mbstowcs_s(&convertedChars, j->Name, IMAGE_SIZEOF_SHORT_NAME, buffer, _TRUNCATE);
132+
MultiByteToUnicode(buffer, j->Name, IMAGE_SIZEOF_SHORT_NAME);
134133
std::memcpy(j->ModulePath, me32.szExePath, std::min(MAX_PATH, PATH_MAXIMUM_LENGTH));
134+
135135
break;
136136
}
137137
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<PropertyGroup Label="Globals">
2222
<ProjectGuid>{22CA6FDB-7622-4F94-8FC2-2E7AB481C86F}</ProjectGuid>
2323
<Keyword>Win32Proj</Keyword>
24-
<RootNamespace>NativeHelper</RootNamespace>
24+
<RootNamespace>NativeCore</RootNamespace>
2525
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
2626
</PropertyGroup>
2727
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
@@ -99,7 +99,7 @@
9999
</PrecompiledHeader>
100100
<WarningLevel>Level3</WarningLevel>
101101
<Optimization>Disabled</Optimization>
102-
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NATIVEHELPER_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
102+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NATIVECORE_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103103
</ClCompile>
104104
<Link>
105105
<SubSystem>Windows</SubSystem>
@@ -113,7 +113,7 @@
113113
</PrecompiledHeader>
114114
<WarningLevel>Level3</WarningLevel>
115115
<Optimization>Disabled</Optimization>
116-
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;NATIVEHELPER_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
116+
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;NATIVECORE_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
117117
</ClCompile>
118118
<Link>
119119
<SubSystem>Windows</SubSystem>
@@ -129,7 +129,7 @@
129129
<Optimization>MaxSpeed</Optimization>
130130
<FunctionLevelLinking>true</FunctionLevelLinking>
131131
<IntrinsicFunctions>true</IntrinsicFunctions>
132-
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NATIVEHELPER_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
132+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NATIVECORE_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
133133
</ClCompile>
134134
<Link>
135135
<SubSystem>Windows</SubSystem>
@@ -147,7 +147,7 @@
147147
<Optimization>MaxSpeed</Optimization>
148148
<FunctionLevelLinking>true</FunctionLevelLinking>
149149
<IntrinsicFunctions>true</IntrinsicFunctions>
150-
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;NATIVEHELPER_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
150+
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;NATIVECORE_EXPORTS;BEA_ENGINE_STATIC;_CRT_SECURE_NO_WARNINGS;NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
151151
</ClCompile>
152152
<Link>
153153
<SubSystem>Windows</SubSystem>

0 commit comments

Comments
 (0)