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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user