1
0

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
This commit is contained in:
2025-10-18 23:11:33 +08:00
parent 6e9f91d0e6
commit 4f0f9670cb
4 changed files with 137 additions and 45 deletions

View File

@ -76,6 +76,22 @@ fn clear_last_error() {
// endregion
#[unsafe(no_mangle)]
pub extern "C" fn WFAdd(left: u32, right: u32) -> u32 {
left + right
pub extern "C" fn WFStartup() -> bool {
false
}
#[unsafe(no_mangle)]
pub extern "C" fn WFShutdown() -> bool {
false
}
#[unsafe(no_mangle)]
pub extern "C" fn WFGetLastError() -> *const c_char {
get_last_error()
}
#[unsafe(no_mangle)]
pub extern "C" fn WFAdd(left: u32, right: u32, rv: *mut u32) -> bool {
unsafe { *rv = left + right; }
return true;
}