29 WCHAR strErrorText[260];
56 WCHAR strErrorText[260];
78 if (dwSystemAffinityMask & ((
ULONG_PTR)1 << nCpu))
84 if (dwProcessAffinityMask & ((
ULONG_PTR)1 << nCpu))
112 dwProcessAffinityMask |= ((
ULONG_PTR)1 << nCpu);
121 if (!dwProcessAffinityMask) {
static const DWORD dwCpuTable[]
static INT_PTR CALLBACK AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
void ProcessPage_OnSetAffinity(void)
HANDLE hProcessAffinityHandle
#define IDS_MSG_PROCESSONEPRO
#define IDS_MSG_INVALIDOPTION
#define IDD_AFFINITY_DIALOG
#define IDS_MSG_ACCESSPROCESSAFF
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
BOOL WINAPI SetProcessAffinityMask(IN HANDLE hProcess, IN DWORD_PTR dwProcessAffinityMask)
BOOL WINAPI GetProcessAffinityMask(IN HANDLE hProcess, OUT PDWORD_PTR lpProcessAffinityMask, OUT PDWORD_PTR lpSystemAffinityMask)
#define PROCESS_QUERY_INFORMATION
#define PROCESS_SET_INFORMATION
TCHAR szTitle[MAX_LOADSTRING]
DWORD GetSelectedProcessId(void)
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define DialogBoxW(i, t, p, f)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)