📄 shortcutsvr.idl
字号:
// ShortCutSvr.IDL : IDL source for ShortCutSvr.DLL
// This file will be processed by the MIDL tool to produce
// the type library (ShortCutSvr.tlb) and marshaling code.
[ uuid(DF547F22-FB3C-11CF-9A25-00AA00A48816),
object, dual, hidden,
helpstring("IShortCut Interface"),
pointer_default(unique)
]
interface IShortCut : IDispatch {
import "oaidl.idl";
// Properties
[propget, helpstring("Path of shortcut object")]
HRESULT Path([out, retval] BSTR * pbsRet);
[propput]
HRESULT Path([in] BSTR s);
[propget, helpstring("Location of shortcut file")]
HRESULT Location([out, retval] VARIANT * pvRet);
[propput]
HRESULT Location([in] VARIANT v);
[propget, helpstring("Working directory of target")]
HRESULT WorkingDirectory([out, retval] BSTR * pbsRet);
[propput]
HRESULT WorkingDirectory([in] BSTR s);
[propget, helpstring("Arguments for shortcut target")]
HRESULT Arguments([out, retval] BSTR * sRet);
[propput]
HRESULT Arguments([in] BSTR s);
[propget, helpstring("Display command for window")]
HRESULT ShowCommand([out, retval] long * i);
[propput]
HRESULT ShowCommand([in] long i);
// Methods
[helpstring("Save all properties")]
HRESULT Save([in] short fRemember);
[helpstring("Create from a shortcut file")]
HRESULT Resolve([in] long hWnd, [in] BSTR bsShortcut,
[out, retval] BSTR * pbsRet);
};
[ uuid(DF547F20-FB3C-11CF-9A25-00AA00A48816),
version(1.0),
// lcid(0x1), // Neutral
lcid(0x0207), // German, default
helpstring("ShortCut Server")
]
library SHORTCUTSVRLib {
importlib("stdole32.tlb");
[helpstring("Destination constants")]
typedef enum EDestination {
edstDesktop,
edstCurrent,
edstPath
} EDestination;
[helpstring("Show command constants")]
typedef enum EShowCommand {
eswNormal = 1, // Actually SW_NORMAL
eswMinimized = 7, // Actually SW_SHOWMINNOACTIVE
eswMaximized = 3 // Actually SW_MAXIMIZED
} EShowCommand;
[ uuid(DF547F26-FB3C-11CF-9A25-00AA00A48816),
helpstring("ShortCut Class")
]
coclass CShortCut {
[default] interface IShortCut;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -