Skip to main content

sogen 1.0.1 copy "sogen: ^1.0.1" to clipboard
sogen: ^1.0.1 copied to clipboard

Native Dart FFI bindings for the Sogen userspace emulator.

example/main.dart

import 'package:sogen/ctypes.dart' show uint32;
import 'package:sogen/windows.dart' show apiCall, createApplication;

main() {
  final app = createApplication(r'c:/test-sample.exe', emulationRoot: './root');

  final onSleep = apiCall(
    cc: .stdcall,
    params: const [uint32],
    cb: (call, params) {
      final milliseconds = params[0];
      print('Sleep($milliseconds)');
    },
  );

  app.hooks.apis['Sleep'] = onSleep;

  app.start();
}
0
likes
130
points
18
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Native Dart FFI bindings for the Sogen userspace emulator.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

code_assets, ffi, hooks

More

Packages that depend on sogen