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/Plugins/Portable/pmp_wifi/ConnectActivity.cpp
2024-09-24 14:54:57 +02:00

53 lines
1.0 KiB
C++

#include "ConnectActivity.h"
#include "resource.h"
#include "api.h"
#include <strsafe.h>
BOOL ConnectActivity::GetActive()
{
return TRUE;
}
BOOL ConnectActivity::GetCancelable()
{
return FALSE;
}
HRESULT ConnectActivity::GetProgress(unsigned int *percentCompleted)
{
return E_NOTIMPL;
}
HRESULT ConnectActivity::GetDisplayName(wchar_t *buffer, size_t bufferMax)
{
if (NULL == buffer)
return E_POINTER;
WASABI_API_LNGSTRINGW_BUF(IDS_ACTIVITY_CONNECT, buffer, bufferMax);
return S_OK;
}
HRESULT ConnectActivity::GetStatus(wchar_t *buffer, size_t bufferMax)
{
if (NULL == buffer)
return E_POINTER;
WASABI_API_LNGSTRINGW_BUF(IDS_ACTIVITY_CONNECT_DESC, buffer, bufferMax);
return S_OK;
}
HRESULT ConnectActivity::Cancel(HWND hostWindow)
{
return E_NOTIMPL;
}
#define CBCLASS ConnectActivity
START_DISPATCH;
CB(API_GETACTIVE, GetActive);
CB(API_GETCANCELABLE, GetCancelable);
CB(API_GETPROGRESS, GetProgress);
CB(API_GETDISPLAYNAME, GetDisplayName);
CB(API_GETSTATUS, GetStatus);
CB(API_CANCEL, Cancel);
END_DISPATCH;
#undef CBCLASS