X
habs jetzt soweit, dass ich weiß, dass man die winbase.h brauch, und die hab ich.
aaaber
Procedure KillDll:
Inline
FreeLibraryAndExitThread_( irgendwas.dll , lExitCode.l )
EndInline
End Procedure
eventuell noch mit
extern "C" {
}
aber wie mach ich es, dass das auch aus der winbase.h geladen wird?
habs so probiert:
compilieren geht, aber stürzt bei verwendung ab....why?
INLINE
#define _winbase_h_
DECLARE(FreeLibraryAndExitThread,"winbase.h",(const char*, int),void);
DECLARE(GetModuleHandleA,"winbase.h",(const char*),const char*);
extern "C"
using namespace std;
int main()
{
const char* hMod = GetModuleHandleA("Xors3d.dll");
FreeLibraryAndExitThread(hMod,0);
}
ENDINLINE