Skip to content

Commit

Permalink
Update WindowsAPI.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jul 7, 2024
1 parent 14c2e14 commit ab9bf4d
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions source/meta/data/windows/WindowsAPI.hx
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,6 @@ class WindowsAPI
{
showMessageBox(caption, message, icon);
}

@:functionCode('
HWND window = getActiveWindow();
')
public static function getHWNDWindow(){
return null;
}

@:functionCode('
unsigned long long dedicatedRAM = 0;
GetPhysicallyInstalledSystemMemory(dedicatedRAM);
return dedicatedRAM / 1024;
')
public static function getRAM():UInt64 {
return 0;
}

@:functionCode('
srand((unsigned) time(NULL));
int random = rand();
return 1;
')
public static function randomNumber():UInt64 {
return 1;
}
}

@:enum abstract MessageBoxIcon(Int) {
Expand All @@ -78,4 +53,4 @@ class WindowsAPI
var MSG_WARNING:MessageBoxIcon = 0x00000030;
var MSG_INFORMATION:MessageBoxIcon = 0x00000040;
}
#end
#end

0 comments on commit ab9bf4d

Please sign in to comment.