Initial community commit

This commit is contained in:
Jef 2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit fc06254474
16440 changed files with 4239995 additions and 2 deletions

35
Src/Winamp/AppRefCount.h Normal file
View file

@ -0,0 +1,35 @@
#pragma once
#ifdef __cplusplus
#include <unknwn.h>
class ThreadRefCount : public IUnknown
{
public:
ThreadRefCount();
STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
STDMETHOD_(ULONG, AddRef)(void);
STDMETHOD_(ULONG, Release)(void);
LONG refCount;
};
class AppRefCount : public IUnknown
{
public:
AppRefCount();
STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
STDMETHOD_(ULONG, AddRef)(void);
STDMETHOD_(ULONG, Release)(void);
LONG refCount;
DWORD m_dwThread;
};
extern "C" {
#endif
void *InitAppRefCounterObject(DWORD threadId);
void *GetAppRefCounterObject();
void AppRefCount_Release();
int AppRefCount_CanQuit();
#ifdef __cplusplus
}
#endif