mnToggleAffinity

This command is used to specify which logical processor a thread can use. Processor IDs range from 1 to the number of logical processors.

If you use this command on a processor toggled off, it will be changed to on; if you use this command on a processor toggled on, it will be changed to off.

You can use mnGetAffinity to determine the toggled affinity of a processor.

You can use mnGetLogicalCPU to determine how many logical processors are on the system.

This command does not affect the threads; it merely sets the data to be used with mnSetAffinity which applies the affinity data to a specified thread.

By default all processors are toggled off, and the threads’ affinity is set by the operating system.

Parameters

unsigned int Processor: This is the processor to toggle.

Returns (Integer)

0 if no error occurred

-1 if an error occurred.

Present in

C++

DBP

.Net




This page is in the following sections:
(2) Networking Commands
(1) Networking
(0) DarkNet Help