12#pragma message(__FILE__": Compiled as C++ for testing purpose.")
15#define WIN32_LEAN_AND_MEAN
24#include "vfdmsg_lib.h"
30#define VFD_INFOTIP_WNDCLASS "VfdInfoTip"
99 track.
cbSize =
sizeof(track);
215 if (pos_x == -1 || pos_y == -1) {
223 pos_x =
pt.x - (sz.
cx / 2);
224 pos_y =
pt.y - (sz.
cy / 2);
227 pos_x = pos_x - (sz.
cx / 2);
239 if (pos_x + sz.
cx > scr_x) {
240 pos_x = scr_x - sz.
cx;
245 if (pos_y + sz.
cy > scr_y) {
246 pos_y = scr_y - sz.
cy;
355 type_str ? type_str :
"",
356 media_str ? media_str :
"",
357 prot_str ? prot_str :
"");
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
#define INVALID_HANDLE_VALUE
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static GLint image_size(GLint width, GLint height, GLenum format, GLenum type)
static const WCHAR desc[]
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
FD_TYPE file_type(FDSC **curr, char *fixed)
void WINAPI VfdMakeFileDesc(PSTR pBuffer, ULONG nBufSize, VFD_FILETYPE nFileType, ULONG nFileSize, DWORD nFileAttr)
DWORD WINAPI VfdGetImageInfo(HANDLE hDevice, PSTR sFileName, PVFD_DISKTYPE pDiskType, PVFD_MEDIA pMediaType, PVFD_FLAGS pMediaFlags, PVFD_FILETYPE pFileType, PULONG pImageSize)
HANDLE WINAPI VfdOpenDevice(ULONG nTarget)
PCSTR WINAPI VfdMediaTypeName(VFD_MEDIA nMediaType)
static LRESULT CALLBACK ToolTipProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
void WINAPI VfdImageTip(HWND hParent, ULONG nDevice)
void WINAPI VfdToolTip(HWND hParent, PCSTR sText, int pos_x, int pos_y, BOOL stick)
#define VFD_INFOTIP_WNDCLASS
PSTR ModuleMessage(DWORD nFormat,...)
PCSTR SystemMessage(DWORD nError)
#define VFD_FLAG_WRITE_PROTECTED
DWORD WINAPI GetLastError(void)
#define GetFileAttributes
#define GetTextExtentPoint32
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
#define CreateFontIndirect
HWND WINAPI SetCapture(_In_ HWND hWnd)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
HWND WINAPI GetCapture(void)
BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT)
#define SPI_GETICONTITLELOGFONT
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI GetDC(_In_opt_ HWND)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define SystemParametersInfo
BOOL WINAPI DestroyWindow(_In_ HWND)
int WINAPI GetSystemMetrics(_In_ int)