1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#include "stdafx.h"
#include "windows.h"
int main(int argc, char* argv[])
{
typedef void (_stdcall *ProcDllPtr)(int ExportType, char* Listerefcon,
int DestinationType, bool MajStatuts,
bool choixRepertoire, char* RepertoireCible,
bool CreerUnitaire);
HINSTANCE hInstLibrary = LoadLibrary("ED_DLL.dll");
if (hInstLibrary == NULL) {
FreeLibrary(hInstLibrary);
return 1;
}
ProcDllPtr ProcExportDll = (ProcDllPtr) GetProcAddress(hInstLibrary, "ProcExportDll");
if (ProcExportDll == NULL) {
FreeLibrary(hInstLibrary);
return 2;
}
ProcExportDll(1, "4031589", 1, true, true, "G:\Nouveau dossier", false);
return 0;
} |
Partager