toggle_efficiency_mode

Function toggle_efficiency_mode 

Source
pub fn toggle_efficiency_mode(
    thread_id: u32,
    enable: Option<bool>,
) -> Result<(), Error>
Expand description

Toggle efficiency mode of a thread, by a thread_id.

WARN: Thread::id() is entirely unrelated to underlying thread ID.

To receive win32 thread id with ease, see retrieve_thread.rs