11#define WIN32_LEAN_AND_MEAN
22#include "vfdmsg_lib.h"
36#define SHOP_FILEPATH 0x00000002
39#define SHOP_EXPORT_ORDINAL 178
66 { MSG_MENU_OPEN, MSG_HELP_OPEN,
"vfdopen",
L"vfdopen" },
67 { MSG_MENU_SAVE, MSG_HELP_SAVE,
"vfdsave",
L"vfdsave" },
68 { MSG_MENU_CLOSE, MSG_HELP_CLOSE,
"vfdclose",
L"vfdclose" },
69 { MSG_MENU_PROTECT, MSG_HELP_PROTECT,
"protect",
L"protect" },
70 { MSG_MENU_DROP, MSG_HELP_DROP,
"vfddrop",
L"vfddrop" },
71 { MSG_MENU_PROP, MSG_HELP_PROP,
"vfdprop",
L"vfdprop" },
114 VFDTRACE(0, (
"CVfdShExt::QueryContextMenu()\n"));
119 if ((CMF_DEFAULTONLY &
uFlags) ||
122 VFDTRACE(0, (
"Don't add any items.\n"));
131 VFDTRACE(0, (
"Invoked as the Drop handler.\n"));
136 VFDTRACE(0, (
"Dropped object is a directory.\n"));
155 VFDTRACE(0, (
"Invoked as the context menu handler.\n"));
163 VFDTRACE(0, (
"device open failed.\n"));
281 (
"CVfdShExt::GetCommandString(%u,...)\n", idCmd));
297 VFDTRACE(0, (
"HELPTEXTA: %s\n", pszName));
307 VFDTRACE(0, (
"HELPTEXTW: %ws\n", pszName));
335 VFDTRACE(0, (
"CVfdShExt::InvokeCommand()\n"));
344 (lpcmi->
fMask & CMIC_MASK_UNICODE);
347 (lpcmi->
fMask & CMIC_MASK_UNICODE)) {
384 VFDTRACE(0, (
"MenuItem: %u\n",
id));
431 if (!pSHObjectProperties) {
436 if (pSHObjectProperties) {
439 pSHObjectProperties(lpcmi->
hwnd,
505 VFDTRACE(0, (
"CVfdShExt::DoVfdProtect()\n"));
547 VFDTRACE(0, (
"CVfdShExt::DoVfdDropOpen()\n"));
STDMETHODIMP GetCommandString(UINT idCmd, UINT uFlags, UINT *reserved, LPSTR pszName, UINT cchMax)
DWORD DoVfdProtect(HWND hParent)
DWORD DoVfdDrop(HWND hParent)
STDMETHODIMP QueryContextMenu(HMENU hMenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags)
STDMETHODIMP InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi)
DWORD DoVfdOpen(HWND hParent)
DWORD DoVfdSave(HWND hParent)
DWORD DoVfdClose(HWND hParent)
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
#define MAKE_HRESULT(sev, fac, code)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static const WCHAR verbW[]
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
unsigned __int3264 UINT_PTR
#define FILE_ATTRIBUTE_READONLY
#define FILE_ATTRIBUTE_COMPRESSED
#define FILE_ATTRIBUTE_DIRECTORY
#define UNREFERENCED_PARAMETER(P)
#define FILE_ATTRIBUTE_ENCRYPTED
static unsigned int file_size
FD_TYPE file_type(FDSC **curr, char *fixed)
#define FIELD_OFFSET(t, f)
VFD_MEDIA WINAPI VfdLookupMedia(ULONG nSize)
DWORD WINAPI VfdWriteProtect(HANDLE hDevice, BOOL bProtect)
HANDLE WINAPI VfdOpenDevice(ULONG nTarget)
DWORD WINAPI VfdGuiClose(HWND hParent, ULONG nDevice)
void WINAPI VfdImageTip(HWND hParent, ULONG nDevice)
DWORD WINAPI VfdGetMediaState(HANDLE hDevice)
DWORD WINAPI VfdGuiOpen(HWND hParent, ULONG nDevice)
DWORD WINAPI VfdCheckImageFile(PCSTR sFileName, PDWORD pAttributes, PVFD_FILETYPE pFileType, PULONG pImageSize)
DWORD WINAPI VfdGuiSave(HWND hParent, ULONG nDevice)
#define VFDTRACE(LEVEL, STRING)
NTSTATUS VfdOpenImage(IN PDEVICE_EXTENSION DeviceExtension, IN PVFD_IMAGE_INFO ImageInfo)
PSTR ModuleMessage(DWORD nFormat,...)
PCSTR SystemMessage(DWORD nError)
DWORD WINAPI GetLastError(void)
#define GetFileAttributes
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_HMODULE
#define ERROR_WRITE_PROTECT
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)