From 24847064291da47c10f5c2d93323829614f8cb3f Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Wed, 20 Jul 2022 22:14:40 +0800 Subject: [PATCH] docs: update README.md --- FUN.md | 28 ---------------------------- README.md | 5 ++++- README.zh-CN.md | 5 ++++- packages/win32-api/FUN.md | 28 ---------------------------- packages/win32-api/README.md | 5 ++++- packages/win32-api/README.zh-CN.md | 5 ++++- 6 files changed, 16 insertions(+), 60 deletions(-) delete mode 100644 FUN.md delete mode 100644 packages/win32-api/FUN.md diff --git a/FUN.md b/FUN.md deleted file mode 100644 index 1ceec814..00000000 --- a/FUN.md +++ /dev/null @@ -1,28 +0,0 @@ -# DLL Wrapper - -## Usage - -```ts -import { - user32FindWindowEx, - winspoolGetDefaultPrinter, -} from 'win32-api/fun' - - -const printerName = await winspoolGetDefaultPrinter() - -const child = spawn('notepad.exe') -const hWnd = await user32FindWindowEx(0, 0, 'Notepad', null) -``` - -## List - -### User32 - -- [`user32FindWindowEx`](./packages//win32-api/src/lib/user32/api.ts) - -### Winspool - -- [`winspoolGetDefaultPrinter`](./packages//win32-api/src/lib/winspool/api.ts) -- [`winspoolOpenPrinter`](./packages//win32-api/src/lib/winspool/api.ts) - diff --git a/README.md b/README.md index ff8c9443..9abbf9c1 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,10 @@ npm install win32-api ## Usage -### [DLL Wrapper](./FUN.md) +### DLL Wrapper + +- [User32](./packages/win32-api/src/func/user32/index.user32.ts) +- [Winspool](./packages/win32-api/src/func/winspool/index.winspool.ts) ```ts import { diff --git a/README.zh-CN.md b/README.zh-CN.md index 7c4c00e7..81568135 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -42,7 +42,10 @@ npm install win32-api ## 使用 -### [DLL 包装器](./FUN.md) +### DLL Wrapper + +- [User32](./packages/win32-api/src/func/user32/index.user32.ts) +- [Winspool](./packages/win32-api/src/func/winspool/index.winspool.ts) ```ts import { diff --git a/packages/win32-api/FUN.md b/packages/win32-api/FUN.md deleted file mode 100644 index 3f8df774..00000000 --- a/packages/win32-api/FUN.md +++ /dev/null @@ -1,28 +0,0 @@ -# DLL Wrapper - -## Usage - -```ts -import { - user32FindWindowEx, - winspoolGetDefaultPrinter, -} from 'win32-api/fun' - -const printerName = await winspoolGetDefaultPrinter() - -const child = spawn('notepad.exe') -const hWnd = await user32FindWindowEx(0, 0, 'Notepad', null) -``` - -## List - - -### User32 - -- [`user32FindWindowEx`](./src/lib/user32/api.ts) - -### Winspool - -- [`winspoolGetDefaultPrinter`](./src/lib/winspool/api.ts) -- [`winspoolOpenPrinter`](./src/lib/winspool/api.ts) - diff --git a/packages/win32-api/README.md b/packages/win32-api/README.md index ff8c9443..9abbf9c1 100644 --- a/packages/win32-api/README.md +++ b/packages/win32-api/README.md @@ -43,7 +43,10 @@ npm install win32-api ## Usage -### [DLL Wrapper](./FUN.md) +### DLL Wrapper + +- [User32](./packages/win32-api/src/func/user32/index.user32.ts) +- [Winspool](./packages/win32-api/src/func/winspool/index.winspool.ts) ```ts import { diff --git a/packages/win32-api/README.zh-CN.md b/packages/win32-api/README.zh-CN.md index 7c4c00e7..81568135 100644 --- a/packages/win32-api/README.zh-CN.md +++ b/packages/win32-api/README.zh-CN.md @@ -42,7 +42,10 @@ npm install win32-api ## 使用 -### [DLL 包装器](./FUN.md) +### DLL Wrapper + +- [User32](./packages/win32-api/src/func/user32/index.user32.ts) +- [Winspool](./packages/win32-api/src/func/winspool/index.winspool.ts) ```ts import {