Skip to main content

Crate dolang_winterop

Crate dolang_winterop 

Source
Expand description

Portable representations and small utilities for interoperating with Windows APIs and wire formats.

The security and guid modules validate their native binary encodings and remain available on every target. This makes them suitable for RPC payloads and tools that inspect a Windows target from another operating system. Windows-only facilities, such as the APC reactor, are conditionally exported.

use dolang_winterop::security::{AccessMask, AceBuf, AceBuildOptions, AclBuf, Sid};

let sid: Sid = "S-1-5-32-544".parse()?;
let ace = AceBuf::allow(
    &sid,
    AccessMask::from_bits_retain(0x0012_0000),
    AceBuildOptions::new(),
)?;
let acl = AclBuf::from_aces([ace], None)?;
assert_eq!(acl.ace_count(), 1);

Modules§

apcWindows
Low-level async integration with Windows APCs
error
Win32 error code name/value lookup, generated from MS-ERREF.
guid
Globally unique identifiers (GUIDs).
process
Process command-line argument encoding and parsing.
security
Security identifiers, access masks, and security descriptors.

Functions§

is_wine
Returns whether the current process is running under Wine.