Co-Authored-By: Abnormal <86753001+AbnormalPoof@users.noreply.github.com> Co-Authored-By: Karim Akra <144803230+KarimAkra@users.noreply.github.com>
32 lines
931 B
Haxe
32 lines
931 B
Haxe
package funkin.external.windows;
|
|
|
|
#if (windows && cpp)
|
|
/**
|
|
* This class provides handling for Windows API-related functions.
|
|
*/
|
|
@:build(funkin.util.macro.LinkerMacro.xml('project/Build.xml'))
|
|
@:include('winapi.hpp')
|
|
extern class WinAPI
|
|
{
|
|
/**
|
|
* Disables the "Report to Microsoft" dialog that appears when the application crashes.
|
|
*/
|
|
@:native('WINAPI_DisableErrorReporting')
|
|
static function disableErrorReporting():Void;
|
|
|
|
/**
|
|
* Disables Windows ghosting, which prevents the system from marking unresponsive windows as "Not Responding."
|
|
*/
|
|
@:native('WINAPI_DisableWindowsGhosting')
|
|
static function disableWindowsGhosting():Void;
|
|
|
|
/**
|
|
* Retrieves the current working set size (in bytes) of the process.
|
|
*
|
|
* @return The size of the working set memory used by the process.
|
|
*/
|
|
@:native('WINAPI_GetProcessMemoryWorkingSetSize')
|
|
static function getProcessMemoryWorkingSetSize():cpp.SizeT;
|
|
}
|
|
#end
|