mirror of
https://github.com/a0rtega/pafish
synced 2024-11-22 06:11:18 +03:00
Adding comments, some cleanup
This commit is contained in:
parent
144e204c65
commit
5fe5830875
@ -20,6 +20,9 @@ void ToUpper(unsigned char* Pstr) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* SCSI registry key check
|
||||
**/
|
||||
int vbox_reg_key1() {
|
||||
HKEY regkey;
|
||||
LONG retu;
|
||||
@ -51,6 +54,9 @@ int vbox_reg_key1() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SystemBiosVersion registry key check
|
||||
**/
|
||||
int vbox_reg_key2() {
|
||||
HKEY regkey;
|
||||
LONG retu;
|
||||
@ -82,6 +88,9 @@ int vbox_reg_key2() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GuestAdditions key check
|
||||
**/
|
||||
int vbox_reg_key3() {
|
||||
HKEY regkey;
|
||||
LONG retu;
|
||||
@ -94,6 +103,9 @@ int vbox_reg_key3() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* VideoBiosVersion key check
|
||||
**/
|
||||
int vbox_reg_key4() {
|
||||
HKEY regkey;
|
||||
LONG retu;
|
||||
@ -131,7 +143,6 @@ int vbox_reg_key4() {
|
||||
int vbox_reg_key5() {
|
||||
HKEY regkey;
|
||||
LONG retu;
|
||||
char value[1024];
|
||||
|
||||
retu = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "HARDWARE\\ACPI\\DSDT\\VBOX__", 0, KEY_READ, ®key);
|
||||
if (retu == ERROR_SUCCESS) {
|
||||
@ -379,10 +390,12 @@ int vbox_sysfile2() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* NIC MAC check
|
||||
**/
|
||||
int vbox_mac() {
|
||||
WSADATA WSD;
|
||||
int res=1;
|
||||
char * message[200];
|
||||
char mac[6]={0};
|
||||
|
||||
if(!WSAStartup(MAKEWORD(2,2),&WSD)){
|
||||
|
Loading…
Reference in New Issue
Block a user