mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
28 lines
397 B
C++
28 lines
397 B
C++
#include "Rainmeter.h"
|
|
#include "HandleManager.h"
|
|
|
|
/*
|
|
** Initializes Rainmeter.
|
|
**
|
|
*/
|
|
bool Rainmeter_Initialize()
|
|
{
|
|
int res = GetRainmeter().Initialize();
|
|
|
|
// Success?
|
|
if (res == 0)
|
|
return &GetRainmeter();
|
|
|
|
return nullptr;
|
|
}
|
|
|
|
/*
|
|
** Finalizes Rainmeter.
|
|
**
|
|
*/
|
|
void Rainmeter_Finalize(void* ptr)
|
|
{
|
|
Rainmeter* rainmeter = (Rainmeter*) ptr;
|
|
rainmeter->Finalize();
|
|
}
|