quickwin 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/abort.d.ts +21 -0
- package/lib/assert.d.ts +2 -0
- package/lib/bitmap.d.ts +7 -0
- package/lib/cache-utils.d.ts +6 -0
- package/lib/certs.d.ts +1 -0
- package/lib/dpi.d.ts +9 -0
- package/lib/dumpRects.d.ts +2 -0
- package/lib/exec-log.d.ts +23 -0
- package/lib/fetch.d.ts +4 -0
- package/lib/ffi/bind.d.ts +70 -0
- package/lib/ffi/ctype.d.ts +117 -0
- package/lib/ffi/index.d.ts +2 -0
- package/lib/ffi/struct.d.ts +174 -0
- package/lib/http-common.d.ts +143 -0
- package/lib/http-server.d.ts +59 -0
- package/lib/polyfill.d.ts +22 -0
- package/lib/react-qw/components/Button.d.ts +9 -0
- package/lib/react-qw/components/CheckBox.d.ts +11 -0
- package/lib/react-qw/components/ComboBox.d.ts +11 -0
- package/lib/react-qw/components/DateTimePicker.d.ts +15 -0
- package/lib/react-qw/components/Input.d.ts +15 -0
- package/lib/react-qw/components/Link.d.ts +12 -0
- package/lib/react-qw/components/ListBox.d.ts +13 -0
- package/lib/react-qw/components/ListView.d.ts +37 -0
- package/lib/react-qw/components/PathPicker.d.ts +23 -0
- package/lib/react-qw/components/ProgressBar.d.ts +9 -0
- package/lib/react-qw/components/RadioButton.d.ts +11 -0
- package/lib/react-qw/components/ScrollView.d.ts +9 -0
- package/lib/react-qw/components/Slider.d.ts +12 -0
- package/lib/react-qw/components/Tab.d.ts +14 -0
- package/lib/react-qw/components/Tooltip.d.ts +7 -0
- package/lib/react-qw/components/TreeView.d.ts +18 -0
- package/lib/react-qw/components/index.d.ts +16 -0
- package/lib/react-qw/index.d.ts +24 -0
- package/lib/react-qw/layout.d.ts +29 -0
- package/lib/react-qw/nmhdr.d.ts +1 -0
- package/lib/react-qw/props.d.ts +2 -0
- package/lib/react-qw/reconciler.d.ts +21 -0
- package/lib/stream.d.ts +20 -0
- package/lib/text-codec.d.ts +39 -0
- package/lib/text-measure.d.ts +14 -0
- package/lib/url.d.ts +54 -0
- package/lib/websocket.d.ts +73 -0
- package/lib/windows/{advapi32.ts → advapi32.d.ts} +6 -21
- package/lib/windows/comctl32.d.ts +14 -0
- package/lib/windows/comdlg32.d.ts +4 -0
- package/lib/windows/{gdi32.ts → gdi32.d.ts} +161 -98
- package/lib/windows/{kernel32.ts → kernel32.d.ts} +138 -115
- package/lib/windows/{msimg32.ts → msimg32.d.ts} +11 -14
- package/lib/windows/ntdll.d.ts +5 -0
- package/lib/windows/ole32.d.ts +3 -0
- package/lib/windows/{psapi.ts → psapi.d.ts} +9 -18
- package/lib/windows/{shell32.ts → shell32.d.ts} +25 -24
- package/lib/windows/structs.d.ts +3141 -0
- package/lib/windows/{user32.ts → user32.d.ts} +196 -193
- package/lib/windows/version.d.ts +27 -0
- package/lib/windows/{winspool.ts → winspool.d.ts} +18 -32
- package/package.json +15 -6
- package/qwin-nowasm-x86.exe +0 -0
- package/qwin-nowasm.exe +0 -0
- package/qwin-x86.exe +0 -0
- package/qwin.exe +0 -0
- package/lib/abort.ts +0 -69
- package/lib/assert.ts +0 -7
- package/lib/bitmap.ts +0 -39
- package/lib/cache-utils.ts +0 -40
- package/lib/certs.ts +0 -258
- package/lib/dpi.ts +0 -31
- package/lib/dumpRects.ts +0 -34
- package/lib/exec-log.ts +0 -30
- package/lib/fetch.ts +0 -589
- package/lib/ffi/bind.ts +0 -540
- package/lib/ffi/ctype.ts +0 -371
- package/lib/ffi/index.ts +0 -6
- package/lib/ffi/struct.ts +0 -780
- package/lib/http-common.ts +0 -441
- package/lib/http-server.ts +0 -604
- package/lib/polyfill.ts +0 -171
- package/lib/react-qw/components/index.ts +0 -17
- package/lib/react-qw/index.ts +0 -96
- package/lib/react-qw/layout.ts +0 -111
- package/lib/react-qw/nmhdr.ts +0 -7
- package/lib/react-qw/props.ts +0 -41
- package/lib/react-qw/reconciler.ts +0 -379
- package/lib/stream.ts +0 -22
- package/lib/text-codec.ts +0 -171
- package/lib/text-measure.ts +0 -44
- package/lib/url.ts +0 -201
- package/lib/websocket.ts +0 -600
- package/lib/windows/comctl32.ts +0 -20
- package/lib/windows/comdlg32.ts +0 -10
- package/lib/windows/ntdll.ts +0 -11
- package/lib/windows/ole32.ts +0 -9
- package/lib/windows/structs.ts +0 -807
- package/lib/windows/version.ts +0 -35
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
// shell32 绑定(shell 对话框 / PIDL→路径 / 托盘图标增删与定位)
|
|
2
|
-
import { bind, type CodecMap } from '../ffi/bind.js'
|
|
3
|
-
import { NOTIFYICONIDENTIFIER, NOTIFYICONDATAW } from './structs.js'
|
|
4
|
-
|
|
5
|
-
// dll 名部分应用(工厂转调保泛型 infer,见 lib/windows/user32.ts 头注释);第三参透传
|
|
6
|
-
// encoders(结构入参位注册,方向约定见 lib/windows/user32.ts 头注释)
|
|
7
|
-
const b = <const S extends string, const LE extends CodecMap = {}>(name: string, sig: S, encoders?: LE) =>
|
|
8
|
-
bind('shell32.dll', name, sig, encoders)
|
|
9
|
-
|
|
10
1
|
/** 文件夹浏览对话框;PIDL 用 ole32.CoTaskMemFree 释放
|
|
11
2
|
* @returns PIDL,取消 → 0
|
|
12
3
|
* @param args_0 pbi BROWSEINFOW.encode(...).ptr(见 structs.ts) */
|
|
13
|
-
export const SHBrowseForFolder
|
|
14
|
-
|
|
4
|
+
export declare const SHBrowseForFolder: (args_0: import("../ffi/ctype.js").MaybePtr<"BROWSEINFOW">) => import("../ffi/ctype.js").MaybePtr<"">;
|
|
15
5
|
/** PIDL → 文件系统全路径
|
|
16
6
|
* @returns PIDL 在文件系统中 → 非 0,否则 0(缓冲内容未定义)
|
|
17
7
|
* @param args_0 pidl SHBrowseForFolder 等返回的 PIDL
|
|
18
8
|
* @param args_1 pszPath 出参缓冲,WCHAR.alloc(260)(MAX_PATH=260)、WCHAR.decode 读回 */
|
|
19
|
-
export const SHGetPathFromIDList
|
|
20
|
-
|
|
9
|
+
export declare const SHGetPathFromIDList: (args_0: import("../ffi/ctype.js").MaybePtr<"">, args_1: import("../ffi/ctype.js").PtrArrayBuffer<any> | import("../ffi/ctype.js").MaybePtr<"BYTE">) => number;
|
|
21
10
|
/** 取托盘通知图标的屏幕矩形(Shell_NotifyIconGetRect;**Win7+**——XP 无此导出,
|
|
22
11
|
* 故为**可选绑定**:老系统上本常量为 null(bind() 是模块顶层立即解析,缺符号 throw
|
|
23
12
|
* 会拖垮整个脚本启动),调用方必须判空)
|
|
@@ -29,15 +18,12 @@ export const SHGetPathFromIDList = /*@__PURE__*/ b('SHGetPathFromIDListW', '<>pt
|
|
|
29
18
|
* NOTIFYICONIDENTIFIER.size,guidItem 缺省 = GUID_NULL 走 hWnd+uID)
|
|
30
19
|
* @param args_1 iconLocation 出参槽,RECT.alloc().ptr(出参位不注册,方向约定同
|
|
31
20
|
* user32),RECT.decode 读回 */
|
|
32
|
-
export const Shell_NotifyIconGetRect
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
})()
|
|
40
|
-
|
|
21
|
+
export declare const Shell_NotifyIconGetRect: ((args_0: {
|
|
22
|
+
cbSize?: number | undefined;
|
|
23
|
+
guidItem?: [number, number, number, number] | undefined;
|
|
24
|
+
hWnd?: import("../ffi/ctype.js").MaybePtr<"HWND"> | undefined;
|
|
25
|
+
uID?: number | undefined;
|
|
26
|
+
} | import("../ffi/ctype.js").MaybePtr<"NOTIFYICONIDENTIFIER">, args_1: import("../ffi/ctype.js").MaybePtr<"RECT">) => number) | null;
|
|
41
27
|
/** 托盘通知图标增删改(Shell_NotifyIconW;XP 起即有)
|
|
42
28
|
* @returns 成功 → 非 0,失败 → 0
|
|
43
29
|
* @param args_0 dwMessage NotifyIconCmd(ADD / MODIFY / DELETE / SETVERSION…;DELETE 只需
|
|
@@ -46,5 +32,20 @@ export const Shell_NotifyIconGetRect = (() => {
|
|
|
46
32
|
* NOTIFYICONDATAW.size、uFlags 取 NotifyIconFlag.*(ICON/MESSAGE/TIP…,决定下面哪些字段
|
|
47
33
|
* 生效)、uCallbackMessage 常填自定义消息号、hIcon 接 LoadImage/LoadAppIcon 的结果、
|
|
48
34
|
* szTip 直接给 string(宽字符串糖,最长 127 字符) */
|
|
49
|
-
export const ShellNotifyIcon
|
|
50
|
-
|
|
35
|
+
export declare const ShellNotifyIcon: (args_0: number, args_1: {
|
|
36
|
+
cbSize?: number | undefined;
|
|
37
|
+
dwInfoFlags?: number | undefined;
|
|
38
|
+
dwState?: number | undefined;
|
|
39
|
+
dwStateMask?: number | undefined;
|
|
40
|
+
guidItem?: [number, number, number, number] | undefined;
|
|
41
|
+
hBalloonIcon?: import("../ffi/ctype.js").MaybePtr<""> | undefined;
|
|
42
|
+
hIcon?: import("../ffi/ctype.js").MaybePtr<""> | undefined;
|
|
43
|
+
hWnd?: import("../ffi/ctype.js").MaybePtr<"HWND"> | undefined;
|
|
44
|
+
szInfo?: string | undefined;
|
|
45
|
+
szInfoTitle?: string | undefined;
|
|
46
|
+
szTip?: string | undefined;
|
|
47
|
+
uCallbackMessage?: number | undefined;
|
|
48
|
+
uFlags?: number | undefined;
|
|
49
|
+
uID?: number | undefined;
|
|
50
|
+
uTimeout?: number | undefined;
|
|
51
|
+
} | import("../ffi/ctype.js").MaybePtr<"NOTIFYICONDATAW">) => number;
|