6 #define CF_TCHAR CF_UNICODETEXT 8 #define CF_TCHAR CF_TEXT 13 HANDLE buffer = GlobalAlloc(GMEM_DDESHARE,size);
14 if (buffer == NULL)
throw std::bad_alloc();
17 PFC_ASSERT(lock.
GetSize() == size);
18 memcpy(lock.
GetPtr(),data,size);
20 GlobalFree(buffer);
throw;
23 WIN32_OP(SetClipboardData(format,buffer) != NULL);
32 if (!
GetRaw(CF_TCHAR,temp))
return false;
37 return IsClipboardFormatAvailable(CF_TCHAR) == TRUE;
const t_item * get_ptr() const
bool GetRaw(UINT format, TArray &out)
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
string_utf8_from_wide string_utf8_from_os
void SetString(const char *in)
const wchar_t * get_ptr() const
bool GetString(pfc::string_base &out)
void SetRaw(UINT format, const void *data, t_size size)