Skip to content

Unclear timestamp type returned from AcceptSecurityContext #3413

Closed
@2ndDerivative

Description

@2ndDerivative

Summary

Hello!
AcceptSecurityContext returns an expiry time in i64 format and between the documentation and the actual implementation it's not clear how you would have to transmute or interpret that. I assume you just have to transmute it, but it should probably just return FILETIME directly.

On that front, I noticed that SystemTime from the Rust standard library (!) uses a FILETIME handle internally, so you could actually transmute to that directly from this library to return a safe SystemTime instance for Rust. That might be worth looking into directly with the std guys, as now these types from windows_sys and std are incompatible but implemented pretty much the same.

Using windows crate version 0.58

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions