You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sync.rs
    path of file: ./repos/wgpu/d3d12/src
    
    the code of the file until where you have to start completion: use crate::{com::ComPtr, HRESULT};
use std::ptr;
use winapi::um::{d3d12, synchapi, winnt};

#[derive(Copy, Clone)]
#[repr(transparent)]
pub struct Event(pub winnt::HANDLE);
impl Event {
    pub fn
    
    pub fn create(manual_reset: bool, initial_state: bool) -> Self {
        Event(unsafe {
            synchapi::CreateEventA(
                ptr::null_mut(),
                manual_reset as _,
                initial_state as _,
                ptr::null(),
            )
        })
    }