Skip to content

Commit 83b564f

Browse files
committed
implement more functions for windyn
1 parent 394a351 commit 83b564f

5 files changed

Lines changed: 327 additions & 68 deletions

File tree

project/windll_winhook/src/libwinhook.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ winhook_getprocess
33
winhook_iathookpe
44
winhook_injectdll
55
winhook_installconsole
6+
winhook_printversion
67
winhook_patchmemoryex
78
winhook_patchmemorysex
89
winhook_patchmemorypattern

project/windll_winhook/src/libwinhook_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <assert.h>
44
#if defined (_MSC_VER)
55
#define WINHOOK_IMPLEMENTATION
6+
#define WINHOOK_USEDYNBIND
67
#define WINHOOK_USESHELLCODE
78
#endif
89
#include "winhook.h"
@@ -131,6 +132,7 @@ void test_startexeinject()
131132
void test_windyn()
132133
{
133134
#ifdef WINDYN_IMPLEMENTATION
135+
// todo
134136
#endif
135137
}
136138

src/commdef.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static INLINE size_t inl_hexifya(char *dst, size_t dstlen, const uint8_t *src, s
246246
}
247247
if(dstpos + sepsize < dstlen)
248248
{
249-
for(int j=0; j < sepsize; j++)
249+
for(size_t j=0; j < sepsize; j++)
250250
{
251251
dst[dstpos++] = sep[j];
252252
}
@@ -282,7 +282,7 @@ static INLINE size_t inl_hexifyw(wchar_t *dst, size_t dstlen, const uint8_t *src
282282
}
283283
if(dstpos + sepsize < dstlen)
284284
{
285-
for(int j=0; j < sepsize; j++)
285+
for(size_t j=0; j < sepsize; j++)
286286
{
287287
dst[dstpos++] = sep[j];
288288
}

0 commit comments

Comments
 (0)