mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
19 lines
350 B
C++
19 lines
350 B
C++
#include "StdAfx.h"
|
|
#include <cstdint>
|
|
#include "Meter.h"
|
|
#include "HandleManager.h"
|
|
#include "Exports_Common.h"
|
|
|
|
EXPORT int Meter_Destroy(int handle)
|
|
{
|
|
Meter* meter = (Meter*) handle_get_resource(handle);
|
|
|
|
if (meter != nullptr)
|
|
{
|
|
handle_free(handle);
|
|
delete meter;
|
|
return Results::Ok;
|
|
}
|
|
|
|
return Results::InvalidHandle;
|
|
} |