mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional change to 8a58cb6
This commit is contained in:
parent
8a58cb682c
commit
5634333e60
@ -46,7 +46,7 @@ struct BinData
|
|||||||
bool isFAT;
|
bool isFAT;
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned int __stdcall QueryRecycleBinThreadProc(void* pParam);
|
DWORD WINAPI QueryRecycleBinThreadProc(void* pParam);
|
||||||
HRESULT GetFolderCLSID(LPCWSTR pszPath, CLSID* pathCLSID);
|
HRESULT GetFolderCLSID(LPCWSTR pszPath, CLSID* pathCLSID);
|
||||||
LPWSTR GetCurrentUserSid();
|
LPWSTR GetCurrentUserSid();
|
||||||
CRawString GetRecycleBinDirectory(WCHAR drive, bool& isFAT);
|
CRawString GetRecycleBinDirectory(WCHAR drive, bool& isFAT);
|
||||||
@ -242,7 +242,9 @@ PLUGIN_EXPORT double Update(void* data)
|
|||||||
if (changed && !g_Thread)
|
if (changed && !g_Thread)
|
||||||
{
|
{
|
||||||
g_UpdateCount = -8;
|
g_UpdateCount = -8;
|
||||||
HANDLE thread = (HANDLE)_beginthreadex(NULL, 0, QueryRecycleBinThreadProc, NULL, 0, NULL);
|
|
||||||
|
DWORD id;
|
||||||
|
HANDLE thread = CreateThread(NULL, 0, QueryRecycleBinThreadProc, NULL, 0, &id);
|
||||||
if (thread)
|
if (thread)
|
||||||
{
|
{
|
||||||
CloseHandle(thread);
|
CloseHandle(thread);
|
||||||
@ -296,7 +298,7 @@ PLUGIN_EXPORT void ExecuteBang(void* data, LPCWSTR args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int __stdcall QueryRecycleBinThreadProc(void* pParam)
|
DWORD WINAPI QueryRecycleBinThreadProc(void* pParam)
|
||||||
{
|
{
|
||||||
SHQUERYRBINFO rbi = {0};
|
SHQUERYRBINFO rbi = {0};
|
||||||
rbi.cbSize = sizeof(SHQUERYRBINFO);
|
rbi.cbSize = sizeof(SHQUERYRBINFO);
|
||||||
|
Loading…
Reference in New Issue
Block a user