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
package/lib/windows/version.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// version.dll 绑定(文件版本资源——exe/dll「属性 → 详细信息」的数据;品牌约定见
|
|
2
|
-
// lib/windows/user32.ts 头注释):
|
|
3
|
-
// - 读取三段式:Size 拿缓冲大小与句柄 → Info 读进缓冲 → VerQueryValue 在缓冲内
|
|
4
|
-
// 查询子块(lplpBuffer 回写的指针指向缓冲内部,跟进读用 ffi.readByte 拼值)
|
|
5
|
-
// - 位宽无关:句柄/指针出参槽一律 <BYTE>ptr 收 PAB(4/8) + DataView / os.arch 分支读回
|
|
6
|
-
import { bind, type CodecMap } from '../ffi/bind.js'
|
|
7
|
-
|
|
8
|
-
// dll 名部分应用(工厂转调保泛型 infer,见 lib/windows/user32.ts 头注释)
|
|
9
|
-
const b = <const S extends string, const LE extends CodecMap = {}>(name: string, sig: S, encoders?: LE) =>
|
|
10
|
-
bind('version.dll', name, sig, encoders)
|
|
11
|
-
|
|
12
|
-
/** 取文件版本资源大小
|
|
13
|
-
* @returns 字节数(0 = 文件无版本资源)
|
|
14
|
-
* @param args_0 lptstrFilename 文件路径(禁空)
|
|
15
|
-
* @param args_1 lpdwHandle 出参槽(Info 步的入参句柄,MSDN 恒 0 但仍须传),
|
|
16
|
-
* PtrArrayBuffer(4) + Uint32Array 读回 */
|
|
17
|
-
export const GetFileVersionInfoSize = /*@__PURE__*/ b('GetFileVersionInfoSizeW',
|
|
18
|
-
'<WCHAR>ptr! <BYTE>ptr -> u32')
|
|
19
|
-
/** 读版本资源进缓冲
|
|
20
|
-
* @returns 成功 → 非 0
|
|
21
|
-
* @param args_0 lptstrFilename 文件路径(禁空)
|
|
22
|
-
* @param args_1 dwHandle Size 步读回的句柄(恒 0)
|
|
23
|
-
* @param args_2 dwLen 缓冲字节数(= Size 返回值)
|
|
24
|
-
* @param args_3 lpData 接收缓冲(PtrArrayBuffer(dwLen)) */
|
|
25
|
-
export const GetFileVersionInfo = /*@__PURE__*/ b('GetFileVersionInfoW',
|
|
26
|
-
'<WCHAR>ptr! u32 u32 <BYTE>ptr -> i32')
|
|
27
|
-
/** 在版本资源缓冲内查询子块
|
|
28
|
-
* @returns 成功 → 非 0
|
|
29
|
-
* @param args_0 pBlock Info 步的资源缓冲(PtrArrayBuffer 直传)
|
|
30
|
-
* @param args_1 lpszSubBlock 子块路径(禁空):'\\' = 根块 VS_FIXEDFILEINFO、
|
|
31
|
-
* '\\StringFileInfo\\040904B0\\FileVersion' 等字符串表项
|
|
32
|
-
* @param args_2 lplpBuffer 出参槽(块内偏移指针写回),PtrArrayBuffer(8)
|
|
33
|
-
* @param args_3 puLen 出参槽(块字节数,VS_FIXEDFILEINFO = 52),PtrArrayBuffer(4) */
|
|
34
|
-
export const VerQueryValue = /*@__PURE__*/ b('VerQueryValueW',
|
|
35
|
-
'<BYTE>ptr <WCHAR>ptr! <BYTE>ptr <BYTE>ptr -> i32')
|