mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
添加一些东西
This commit is contained in:
15
demo/checkruninwine/main.cpp
Normal file
15
demo/checkruninwine/main.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <windows.h>
|
||||
#include <iostream>
|
||||
//#include <stdlib.h>
|
||||
//#include <stdio.h>
|
||||
using namespace std;
|
||||
int main(void)
|
||||
{
|
||||
HKEY hKey;
|
||||
if(RegOpenKey(HKEY_LOCAL_MACHINE, TEXT("Software/Wine"), &hKey == ERROR_SUCCESS)){
|
||||
cout << "Run In Wine" << endl;
|
||||
return 0;
|
||||
}
|
||||
cout << "Don't 'Run In Wine" << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user