1
0
Commit Graph

28 Commits

Author SHA1 Message Date
84a29c862b feat(windows): add ExpandString for environment variable expansion
Implement ExpandString struct to handle Windows environment variable expansion
with proper error handling. Also reorganize windows-sys dependencies and improve
icon loading error messages.
2025-10-20 14:41:50 +08:00
26d867d42f refactor(winreg): reorganize Windows registry utilities into extra module
Move winreg_extra functionality into new extra/winreg module and restructure project layout
Add Windows icon handling utilities in extra/windows module
Update dependencies and clean up unused wincmd module
2025-10-20 13:38:41 +08:00
d493285900 feat(cli): implement register and unregister commands with scope support
- Add Target enum to handle user/system scope selection
- Move scope argument from global CLI to register/unregister subcommands
- Implement actual registration logic including ProgId subkey creation
- Update Program::new to accept string path instead of Path
- Add proper error handling and success messages
2025-10-19 17:37:51 +08:00
f42c50ce10 feat(wfassoc): add query_ext method and improve CLI output
- Implement query_ext method to check default program associations
- Enhance CLI query command with tabular output showing associations
- Refactor program building into Composition struct for better organization
- Update documentation comments for clarity
2025-10-19 15:12:15 +08:00
d5fed1e580 feat(registry): add privilege check and improve ProgId handling
- Add WFHasPrivilege function to check user privileges
- Refactor ProgId structure to use standard format with optional version
- Improve registry operations with safer key/value handling
- Update dependencies to include Win32_System_Registry
2025-10-19 14:10:21 +08:00
f37b4b6652 feat(registry): implement file extension linking in Windows registry
- Add `link_ext` and `unlink_ext` methods to Program for managing file associations
- Introduce new error variants for invalid tokens
- Add utility function `capitalize_first_ascii` for ProgId generation
- Implement registry key operations for user and system scopes
2025-10-19 12:10:55 +08:00
4f0f9670cb feat: add Windows-specific modules and enhance program registration
- Add new modules for Windows command line handling (wincmd) and registry extensions (winreg_extra)
- Replace Manner struct with simple String and add identifier validation
- Update WFAdd function signature and add new WFStartup/WFShutdown functions
- Implement ExpandString wrapper for registry operations
2025-10-18 23:11:33 +08:00
6e9f91d0e6 feat: add error handling and thread-local last error tracking for wfassoc-dylib
Implement error handling with custom Error enum and thread-local storage
for tracking last error message to improve FFI interoperability.
2025-10-18 18:17:05 +08:00
bcd0d503d4 write shit 2025-10-18 09:55:08 +08:00
bdb6b4ceee write shit 2025-10-17 14:19:26 +08:00
dab91f1581 split into individual modules 2025-10-16 15:13:38 +08:00
4b1f85c2f3 update README 2025-10-15 13:22:53 +08:00
eee91d8498 write ext shit 2025-10-15 13:15:29 +08:00
c4b825f7f6 refactor wfassoc 2025-10-13 22:07:42 +08:00
034e9017be write shit 2025-10-13 15:50:48 +08:00
07a8c6a11d write shit 2025-10-10 20:54:44 +08:00
f7d92243c9 add decl for ProgId 2025-10-10 14:23:01 +08:00
3f23d6b549 write shit 2025-10-09 16:07:23 +08:00
2c8cb26ebf write shit 2025-10-09 15:32:22 +08:00
682be6ab58 add privilege checker 2025-10-09 13:53:31 +08:00
03a1796e07 write shit 2025-10-05 18:04:20 +08:00
f3c7f0905e write rust shit 2025-10-04 22:21:55 +08:00
e06fcdf53b refactor: migrate project from C++ to Rust
- establish basic Rust project layout.
- move all old code into independent directory.
2025-10-04 22:04:30 +08:00
d6c4c7687b upload files which idk when i write 2025-09-13 15:48:51 +08:00
3ab26925e0 add some utils funcs 2022-05-15 17:09:21 +08:00
357201d6c9 add install code WITHOUT safety check! 2022-02-28 14:40:27 +08:00
86864bbd09 add progId generator and example 2022-02-18 14:53:49 +08:00
b93e5eaf5d first commit 2022-02-01 10:54:27 +08:00