mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Updated plugin API
- Added new option to RmGet(): RMG_SKINNAME, RMG_SKINWINDOWHANDLE
This commit is contained in:
@ -78,6 +78,20 @@ void* __stdcall RmGet(void* rm, int type)
|
||||
{
|
||||
return (void*)Rainmeter->GetDataFile().c_str();
|
||||
}
|
||||
|
||||
case RMG_SKINNAME:
|
||||
{
|
||||
CMeterWindow* window = measure->GetMeterWindow();
|
||||
if (!window) break;
|
||||
return (void*)window->GetFolderPath().c_str();
|
||||
}
|
||||
|
||||
case RMG_SKINWINDOWHANDLE:
|
||||
{
|
||||
CMeterWindow* window = measure->GetMeterWindow();
|
||||
if (!window) break;
|
||||
return (void*)window->GetWindow();
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user