Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Winamp/AppRefCount.h

35 lines
684 B
C
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
#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