deep-wine-runner/demo/CheckDLL/Check.cpp

25 lines
617 B
C++
Raw Permalink Normal View History

2022-11-18 17:18:24 +08:00
/**********************************
2023-04-24 22:00:17 +08:00
* gfdgd xi
2022-11-18 17:18:24 +08:00
* 2.5.0
* 20221118
* Wine/Windows
**********************************/
#include <iostream>
#include <Windows.h>
using namespace std;
int main(int argc, char* argv[]){
HINSTANCE hdll;
hdll = LoadLibrary(argv[1]);
if(argv[1] == ""){
cout << "Don't have full parameter" << endl;
return 2;
}
cout << "Checking " << argv[1] << " ......" << endl;
if(hdll == NULL){
cout << "Error, can't load this library." << endl;
return 1;
}
cout << "No Problem!" << endl;
return 0;
}