I
I
Ilya Volkov2019-12-13 01:40:54
Android
Ilya Volkov, 2019-12-13 01:40:54

How to redirect a function call?

There is a function declared in header.h
#ifndef BASSDEF
#define BASSDEF(f) WINAPI f
#else
#define NOBASSOVERLOADS
#endif
HSAMPLE BASSDEF(BASS_SampleLoad)(BOOL mem, const void *file, QWORD offset, DWORD length, DWORD max, DWORD flags );
How to redefine BASSDEF so that the functions are pointers referring to dlsym and I could easily call them (the same BASS_SampleLoad, pass arguments, etc. but only to dlsym)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question