mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
Move desk.cpl shell extension interface definition to shared header file
svn path=/trunk/; revision=29215
This commit is contained in:
parent
432625614e
commit
04931ef194
|
@ -123,8 +123,8 @@ BuildAdvPropTitle(IDataObject *pdo, LPTSTR lpBuffer, DWORD dwBufferLen)
|
||||||
szFormatBuff[0] = _T('\0');
|
szFormatBuff[0] = _T('\0');
|
||||||
}
|
}
|
||||||
|
|
||||||
uiMonitorName = RegisterClipboardFormat(TEXT("Monitor Name"));
|
uiMonitorName = RegisterClipboardFormat(DESK_EXT_MONITORNAME);
|
||||||
uiDisplayName = RegisterClipboardFormat(TEXT("Display Name"));
|
uiDisplayName = RegisterClipboardFormat(DESK_EXT_DISPLAYNAME);
|
||||||
|
|
||||||
lpMonitorName = QueryDevSettingsString(pdo, uiMonitorName);
|
lpMonitorName = QueryDevSettingsString(pdo, uiMonitorName);
|
||||||
lpDisplayName = QueryDevSettingsString(pdo, uiDisplayName);
|
lpDisplayName = QueryDevSettingsString(pdo, uiDisplayName);
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <regstr.h>
|
#include <regstr.h>
|
||||||
#include <cplext.h>
|
#include <cplext.h>
|
||||||
|
#include <dll/desk/deskcplx.h>
|
||||||
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
|
|
|
@ -12,37 +12,6 @@
|
||||||
|
|
||||||
#define DEBUG_DEVSETTINGS
|
#define DEBUG_DEVSETTINGS
|
||||||
|
|
||||||
#define DESK_EXT_CALLBACK CALLBACK
|
|
||||||
|
|
||||||
typedef PDEVMODEW (DESK_EXT_CALLBACK *PDESK_EXT_ENUMALLMODES)(PVOID Context, DWORD Index);
|
|
||||||
typedef PDEVMODEW (DESK_EXT_CALLBACK *PDESK_EXT_GETCURRENTMODE)(PVOID Context);
|
|
||||||
typedef BOOL (DESK_EXT_CALLBACK *PDESK_EXT_SETCURRENTMODE)(PVOID Context, const DEVMODEW *pDevMode);
|
|
||||||
typedef VOID (DESK_EXT_CALLBACK *PDESK_EXT_GETPRUNINGMODE)(PVOID Context, PBOOL pbModesPruned, PBOOL pbKeyIsReadOnly, PBOOL pbPruningOn);
|
|
||||||
typedef VOID (DESK_EXT_CALLBACK *PDESK_EXT_SETPRUNINGMODE)(PVOID Context, BOOL PruningOn);
|
|
||||||
|
|
||||||
typedef struct _DESK_EXT_INTERFACE
|
|
||||||
{
|
|
||||||
/* NOTE: This structure is binary compatible to XP. The windows shell
|
|
||||||
extensions rely on this structure to be properly filled! */
|
|
||||||
DWORD cbSize;
|
|
||||||
|
|
||||||
PVOID Context; /* This value is passed on to the callback routines */
|
|
||||||
|
|
||||||
/* Callback routines called by the shell extensions */
|
|
||||||
PDESK_EXT_ENUMALLMODES EnumAllModes;
|
|
||||||
PDESK_EXT_SETCURRENTMODE SetCurrentMode;
|
|
||||||
PDESK_EXT_GETCURRENTMODE GetCurrentMode;
|
|
||||||
PDESK_EXT_SETPRUNINGMODE SetPruningMode;
|
|
||||||
PDESK_EXT_GETPRUNINGMODE GetPruningMode;
|
|
||||||
|
|
||||||
/* HardwareInformation.* values provided in the device registry key */
|
|
||||||
WCHAR MemorySize[128];
|
|
||||||
WCHAR ChipType[128];
|
|
||||||
WCHAR DacType[128];
|
|
||||||
WCHAR AdapterString[128];
|
|
||||||
WCHAR BiosString[128];
|
|
||||||
} DESK_EXT_INTERFACE, *PDESK_EXT_INTERFACE;
|
|
||||||
|
|
||||||
typedef struct _CDevSettings
|
typedef struct _CDevSettings
|
||||||
{
|
{
|
||||||
const struct IDataObjectVtbl *lpIDataObjectVtbl;
|
const struct IDataObjectVtbl *lpIDataObjectVtbl;
|
||||||
|
@ -424,16 +393,16 @@ pCDevSettings_Initialize(PCDevSettings This,
|
||||||
DPRINT1("This->StateFlags: %x\n", This->StateFlags);
|
DPRINT1("This->StateFlags: %x\n", This->StateFlags);
|
||||||
|
|
||||||
/* Register clipboard formats */
|
/* Register clipboard formats */
|
||||||
This->cfExtInterface = RegisterClipboardFormat(TEXT("Desk.cpl extension interface"));
|
This->cfExtInterface = RegisterClipboardFormat(DESK_EXT_EXTINTERFACE);
|
||||||
This->cfDisplayDevice = RegisterClipboardFormat(TEXT("Display Device"));
|
This->cfDisplayDevice = RegisterClipboardFormat(DESK_EXT_DISPLAYDEVICE);
|
||||||
This->cfDisplayName = RegisterClipboardFormat(TEXT("Display Name"));
|
This->cfDisplayName = RegisterClipboardFormat(DESK_EXT_DISPLAYNAME);
|
||||||
This->cfDisplayId = RegisterClipboardFormat(TEXT("Display ID"));
|
This->cfDisplayId = RegisterClipboardFormat(DESK_EXT_DISPLAYID);
|
||||||
This->cfDisplayKey = RegisterClipboardFormat(TEXT("Display Key"));
|
This->cfDisplayKey = RegisterClipboardFormat(DESK_EXT_DISPLAYKEY);
|
||||||
This->cfDisplayStateFlags = RegisterClipboardFormat(TEXT("Display State Flags"));
|
This->cfDisplayStateFlags = RegisterClipboardFormat(DESK_EXT_DISPLAYSTATEFLAGS);
|
||||||
This->cfMonitorName = RegisterClipboardFormat(TEXT("Monitor Name"));
|
This->cfMonitorName = RegisterClipboardFormat(DESK_EXT_MONITORNAME);
|
||||||
This->cfMonitorDevice = RegisterClipboardFormat(TEXT("Monitor Device"));
|
This->cfMonitorDevice = RegisterClipboardFormat(DESK_EXT_MONITORDEVICE);
|
||||||
This->cfMonitorId = RegisterClipboardFormat(TEXT("Monitor ID"));
|
This->cfMonitorId = RegisterClipboardFormat(DESK_EXT_MONITORID);
|
||||||
This->cfPruningMode = RegisterClipboardFormat(TEXT("Pruning Mode"));
|
This->cfPruningMode = RegisterClipboardFormat(DESK_EXT_PRUNINGMODE);
|
||||||
|
|
||||||
/* Copy the device name */
|
/* Copy the device name */
|
||||||
This->pDisplayDevice = pCDevSettings_AllocAndCopyString(DisplayDeviceInfo->DeviceName);
|
This->pDisplayDevice = pCDevSettings_AllocAndCopyString(DisplayDeviceInfo->DeviceName);
|
||||||
|
|
46
reactos/include/reactos/dll/desk/deskcplx.h
Normal file
46
reactos/include/reactos/dll/desk/deskcplx.h
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
#ifndef __DESKCPLX__H
|
||||||
|
#define __DESKCPLX__H
|
||||||
|
|
||||||
|
#define DESK_EXT_CALLBACK CALLBACK
|
||||||
|
|
||||||
|
#define DESK_EXT_EXTINTERFACE TEXT("Desk.cpl extension interface")
|
||||||
|
#define DESK_EXT_PRUNINGMODE TEXT("Pruning Mode")
|
||||||
|
#define DESK_EXT_DISPLAYDEVICE TEXT("Display Device")
|
||||||
|
#define DESK_EXT_DISPLAYNAME TEXT("Display Name")
|
||||||
|
#define DESK_EXT_DISPLAYID TEXT("Display ID")
|
||||||
|
#define DESK_EXT_DISPLAYKEY TEXT("Display Key")
|
||||||
|
#define DESK_EXT_DISPLAYSTATEFLAGS TEXT("Display State Flags")
|
||||||
|
#define DESK_EXT_MONITORNAME TEXT("Monitor Name")
|
||||||
|
#define DESK_EXT_MONITORDEVICE TEXT("Monitor Device")
|
||||||
|
#define DESK_EXT_MONITORID TEXT("Monitor ID")
|
||||||
|
|
||||||
|
typedef PDEVMODEW (DESK_EXT_CALLBACK *PDESK_EXT_ENUMALLMODES)(PVOID Context, DWORD Index);
|
||||||
|
typedef PDEVMODEW (DESK_EXT_CALLBACK *PDESK_EXT_GETCURRENTMODE)(PVOID Context);
|
||||||
|
typedef BOOL (DESK_EXT_CALLBACK *PDESK_EXT_SETCURRENTMODE)(PVOID Context, const DEVMODEW *pDevMode);
|
||||||
|
typedef VOID (DESK_EXT_CALLBACK *PDESK_EXT_GETPRUNINGMODE)(PVOID Context, PBOOL pbModesPruned, PBOOL pbKeyIsReadOnly, PBOOL pbPruningOn);
|
||||||
|
typedef VOID (DESK_EXT_CALLBACK *PDESK_EXT_SETPRUNINGMODE)(PVOID Context, BOOL PruningOn);
|
||||||
|
|
||||||
|
typedef struct _DESK_EXT_INTERFACE
|
||||||
|
{
|
||||||
|
/* NOTE: This structure is binary compatible to XP. The windows shell
|
||||||
|
extensions rely on this structure to be properly filled! */
|
||||||
|
DWORD cbSize;
|
||||||
|
|
||||||
|
PVOID Context; /* This value is passed on to the callback routines */
|
||||||
|
|
||||||
|
/* Callback routines called by the shell extensions */
|
||||||
|
PDESK_EXT_ENUMALLMODES EnumAllModes;
|
||||||
|
PDESK_EXT_SETCURRENTMODE SetCurrentMode;
|
||||||
|
PDESK_EXT_GETCURRENTMODE GetCurrentMode;
|
||||||
|
PDESK_EXT_SETPRUNINGMODE SetPruningMode;
|
||||||
|
PDESK_EXT_GETPRUNINGMODE GetPruningMode;
|
||||||
|
|
||||||
|
/* HardwareInformation.* values provided in the device registry key */
|
||||||
|
WCHAR MemorySize[128];
|
||||||
|
WCHAR ChipType[128];
|
||||||
|
WCHAR DacType[128];
|
||||||
|
WCHAR AdapterString[128];
|
||||||
|
WCHAR BiosString[128];
|
||||||
|
} DESK_EXT_INTERFACE, *PDESK_EXT_INTERFACE;
|
||||||
|
|
||||||
|
#endif /* __DESKCPLX__H */
|
Loading…
Reference in a new issue