C language function:GetProcessAffinityMask sample codes

Search sample code in the internet.It is the result.


TITLE : Setting process affinity for your application.
GetProcessAffinityMask(vHandle, vMaskProcess, vMaskSystem);.......
http://edn.embarcadero.com/article/27267


TITLE : [FFmpeg-user] Minimal ffmpeg build
long check_GetProcessAffinityMask(void) { return (long) GetProcessAffinityMask; }.......
http://lists.ffmpeg.org/pipermail/ffmpeg-user/2015-August/027963.html
TITLE : SetThreadIdealProcessor function (Windows)
BOOL WINAPI GetProcessAffinityMask(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683213(v=vs.85).aspx
TITLE : Win32::Process - search.cpan.org
$ProcessObj->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask).......
http://search.cpan.org/perldoc/Win32%3A%3AProcess
TITLE : Hyperthreading on Sandy Bridge
bRc = ( RTBOOL )::GetProcessAffinityMask( hProcess, &dwProcessMask, &dwSystemMask );.......
http://software.intel.com/en-us/forums/intel-moderncode-for-parallel-architectures/topic/281287
TITLE : windows - Example usage of SetProcessAffinityMask in C++? - Stack Overflow
if (!GetProcessAffinityMask(process, &processAffinityMask, &systemAffinityMask)).......
http://stackoverflow.com/questions/12803585/example-usage-of-setprocessaffinitymask-in-c
TITLE : windows - How to limit a process to a single CPU core? - Super User
# processAffinityMask, systemAffinityMask = win32process.GetProcessAffinityMask(handle).......
http://superuser.com/questions/309617/how-to-limit-a-process-to-a-single-cpu-core
TITLE : windows - How to limit a process to a single CPU core? - Super User
processAffinityMask, systemAffinityMask = win32process.GetProcessAffinityMask(handle).......
http://superuser.com/questions/309617/how-to-limit-a-process-to-a-single-cpu-core
TITLE : Example of multi-threaded application: array of threads - Lazarus wiki
if GetProcessAffinityMask(GetCurrentProcess, ProcessAffinityMask, SystemAffinityMask).......
http://wiki.freepascal.org/Example_of_multi-threaded_application%3A_array_of_threads
TITLE : GetProcessAffinityMask • Win32 Programmer's Reference • WinAPI Reference
BOOL GetProcessAffinityMask(.......
http://winapi.freetechsecrets.com/win32/WIN32GetProcessAffinityMask.htm
TITLE : 【PB】PowerBuilder API Site
FUNCTION ulong GetProcessAffinityMask(ulong hProcess,ref ulong lpProcessAffinityMask,ref ulong SystemAffinityMask) LIBRARY "kernel32.dll".......
http://www.360doc.com/content/13/0216/20/11408198_266000549.shtml
TITLE : AuThread: Multi thread emulation (forking) for AutoIt - AutoIt Example Scripts - AutoIt Forums
Global $aProcessAffinityMask = GetProcessAffinityMask(_WinAPI_PathStripPath(@AutoItExe)).......
http://www.autoitscript.com/forum/topic/184096-authread-multi-thread-emulation-forking-for-autoit/
TITLE : AuThread: Multi thread emulation (forking) for AutoIt - AutoIt Example Scripts - AutoIt Forums
Local $affiity = _WinAPI_GetProcessAffinityMask($hCurrentProcess).......
http://www.autoitscript.com/forum/topic/184096-authread-multi-thread-emulation-forking-for-autoit/
TITLE : AuThread: Multi thread emulation (forking) for AutoIt - AutoIt Example Scripts - AutoIt Forums
Func GetProcessAffinityMask($sProgram = Default).......
http://www.autoitscript.com/forum/topic/184096-authread-multi-thread-emulation-forking-for-autoit/
TITLE : AuThread: Multi thread emulation (forking) for AutoIt - AutoIt Example Scripts - AutoIt Forums
$b = _WinAPI_GetProcessAffinityMask($hProcess).......
http://www.autoitscript.com/forum/topic/184096-authread-multi-thread-emulation-forking-for-autoit/
GetProcessAffinityMask($processAffinityMask, $systemAffinityMask) or die; $obj->SetProcessAffinityMask($processAffinityMask) or die; ------------------- I also experience strange behavior while using Win32::Daemon to make my perl scripts act as an NT service (under Windows 2003 my script unexpectedly says he receives SERVICE_STOP signals. And stops..). Am feeling I should abandon perl to do system tasks on Windows systems. Too bad cause I invested quite some time to get knowledgeable in perl... And I must also improve in Java for weblogic stuff. So am not willing to start learning yet another language like VB/.NET.. Rgds, Chacallot. [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => chacallot [ip] => chachallot@free [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask) > or die; > > $obj->SetProcessAffinityMask($processAffinityMask) or die; > -------------------[/quote] That works fine for me on Windows2000 using MinGW-built perl 5.8.8 and MinGW-built perl 5.6, but like you, I find it crashes with ActiveState perl when SetProcessAffinityMask() gets called. I don't know why it crashes with perl built using a Microsoft compiler (also crashes with my VC7-built perl), and yet causes no problem with MinGW-built perl. If you don't find the answer here I would try posting to comp.lang.perl.misc - and if that fails, try the perl-win32-users mailing list hosted by ActiveState. Cheers, Rob [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Sisyphus [ip] => sisyphus1@nomai [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask) > or die; > > $obj->SetProcessAffinityMask($processAffinityMask) or die; > ------------------- > > > > I also experience strange behavior while using Win32::Daemon to make my > perl scripts act as an NT service (under Windows 2003 my script > unexpectedly says he receives SERVICE_STOP signals. And stops..). > > Am feeling I should abandon perl to do system tasks on Windows systems. > Too bad cause I invested quite some time to get knowledgeable in perl... > And I must also improve in Java for weblogic stuff. So am not willing > to start learning yet another language like VB/.NET.. >[/quote] The Problem is in the C/C++ source code. It uses a pointer to the function defined in kernel32.dll. I changed the source to use the SetProcessAffinityMask API directly and now there is no crash. So I suggest to ask the owner of the module to change it. regards, Reinhard [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Reinhard Pagitsch [ip] => rprp@gmx.net [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->_SetProcessAffinityMask(processAffinityMask); OUTPUT: RETVAL Thats all, now I do not get a crash of my Perl v5.6.1. regards, Reinhard [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Reinhard Pagitsch [ip] => rprp@gmx.net [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 5 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> TITLE : Win32::Process, SetProcessAffinityMask for an existing process =perl crash - PERL Modules
$obj->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask).......
http://www.justskins.com/forums/win32-process-setprocessaffinitymask-for-101104.html
GetProcessAffinityMask($processAffinityMask, $systemAffinityMask) or die; $obj->SetProcessAffinityMask($processAffinityMask) or die; ------------------- I also experience strange behavior while using Win32::Daemon to make my perl scripts act as an NT service (under Windows 2003 my script unexpectedly says he receives SERVICE_STOP signals. And stops..). Am feeling I should abandon perl to do system tasks on Windows systems. Too bad cause I invested quite some time to get knowledgeable in perl... And I must also improve in Java for weblogic stuff. So am not willing to start learning yet another language like VB/.NET.. Rgds, Chacallot. [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => chacallot [ip] => chachallot@free [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask) > or die; > > $obj->SetProcessAffinityMask($processAffinityMask) or die; > -------------------[/quote] That works fine for me on Windows2000 using MinGW-built perl 5.8.8 and MinGW-built perl 5.6, but like you, I find it crashes with ActiveState perl when SetProcessAffinityMask() gets called. I don't know why it crashes with perl built using a Microsoft compiler (also crashes with my VC7-built perl), and yet causes no problem with MinGW-built perl. If you don't find the answer here I would try posting to comp.lang.perl.misc - and if that fails, try the perl-win32-users mailing list hosted by ActiveState. Cheers, Rob [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Sisyphus [ip] => sisyphus1@nomai [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask) > or die; > > $obj->SetProcessAffinityMask($processAffinityMask) or die; > ------------------- > > > > I also experience strange behavior while using Win32::Daemon to make my > perl scripts act as an NT service (under Windows 2003 my script > unexpectedly says he receives SERVICE_STOP signals. And stops..). > > Am feeling I should abandon perl to do system tasks on Windows systems. > Too bad cause I invested quite some time to get knowledgeable in perl... > And I must also improve in Java for weblogic stuff. So am not willing > to start learning yet another language like VB/.NET.. >[/quote] The Problem is in the C/C++ source code. It uses a pointer to the function defined in kernel32.dll. I changed the source to use the SetProcessAffinityMask API directly and now there is no crash. So I suggest to ask the owner of the module to change it. regards, Reinhard [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Reinhard Pagitsch [ip] => rprp@gmx.net [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->_SetProcessAffinityMask(processAffinityMask); OUTPUT: RETVAL Thats all, now I do not get a crash of my Perl v5.6.1. regards, Reinhard [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Reinhard Pagitsch [ip] => rprp@gmx.net [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 5 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> TITLE : Win32::Process, SetProcessAffinityMask for an existing process =perl crash - PERL Modules
> $obj->GetProcessAffinityMask($processAffinityMask, $systemAffinityMask).......
http://www.justskins.com/forums/win32-process-setprocessaffinitymask-for-101104.html
TITLE : Win32::Process - Create and manipulate processes.
$ProcessObj->GetProcessAffinitymask( $processAffinityMask, $systemAffinitymask).......
http://www.xav.com/perl/site/lib/Win32/Process.html
search Google

https://www.google.com/#q=GetProcessAffinityMask