deep-wine-runner/demo/CheckDLL/Check.cpp
2022-11-18 17:18:24 +08:00

25 lines
662 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**********************************
* 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢
* 版本2.5.0
* 更新时间2022年11月18日
* 只能在 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;
}