1 // Licensed under the Apache License, Version 2.0 2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. 4 // All files in the project carrying such notice may not be copied, modified, or distributed 5 // except according to those terms. 6 use shared::minwindef::{BOOL, PUSHORT}; 7 use um::winnt::{GROUP_AFFINITY, HANDLE, PGROUP_AFFINITY}; 8 extern "system" { GetProcessGroupAffinity( hProcess: HANDLE, GroupCount: PUSHORT, GroupArray: PUSHORT, ) -> BOOL9 pub fn GetProcessGroupAffinity( 10 hProcess: HANDLE, 11 GroupCount: PUSHORT, 12 GroupArray: PUSHORT, 13 ) -> BOOL; GetThreadGroupAffinity( hThread: HANDLE, GroupAffinity: PGROUP_AFFINITY, ) -> BOOL14 pub fn GetThreadGroupAffinity( 15 hThread: HANDLE, 16 GroupAffinity: PGROUP_AFFINITY, 17 ) -> BOOL; SetThreadGroupAffinity( hThread: HANDLE, GroupAffinity: *const GROUP_AFFINITY, PreviousGroupAffinity: PGROUP_AFFINITY, ) -> BOOL18 pub fn SetThreadGroupAffinity( 19 hThread: HANDLE, 20 GroupAffinity: *const GROUP_AFFINITY, 21 PreviousGroupAffinity: PGROUP_AFFINITY, 22 ) -> BOOL; 23 } 24