ReactOS  0.4.12-dev-43-g63b00d8
affinity.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ProcessPage_OnSetAffinity (void)
 

Function Documentation

◆ ProcessPage_OnSetAffinity()

void ProcessPage_OnSetAffinity ( void  )

Definition at line 41 of file affinity.c.

Referenced by TaskManagerWndProc().

42 {
43  DWORD dwProcessId;
44  WCHAR strErrorText[260];
45  WCHAR szTitle[256];
46 
47  dwProcessId = GetSelectedProcessId();
48 
49  if (dwProcessId == 0)
50  return;
51 
54  GetLastErrorText(strErrorText, sizeof(strErrorText) / sizeof(WCHAR));
55  LoadStringW(hInst, IDS_MSG_ACCESSPROCESSAFF, szTitle, sizeof(szTitle) / sizeof(WCHAR));
56  MessageBoxW(hMainWnd, strErrorText, szTitle, MB_OK|MB_ICONSTOP);
57  return;
58  }
63  }
64 }
DWORD GetSelectedProcessId(void)
Definition: procpage.c:99
#define CloseHandle
Definition: compat.h:398
#define IDD_AFFINITY_DIALOG
Definition: resource.h:23
#define PROCESS_QUERY_INFORMATION
Definition: pstypes.h:158
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MB_ICONSTOP
Definition: winuser.h:797
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define IDS_MSG_ACCESSPROCESSAFF
Definition: resource.h:241
smooth NULL
Definition: ftsmooth.c:416
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4268
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
unsigned long DWORD
Definition: ntddk_ex.h:95
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:36
HWND hMainWnd
Definition: magnifier.c:33
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
Definition: proc.c:1257
HINSTANCE hInst
Definition: dxdiag.c:13
static INT_PTR CALLBACK AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: affinity.c:67
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
Definition: taskmgr.c:1152
#define MB_OK
Definition: winuser.h:784
HANDLE hProcessAffinityHandle
Definition: affinity.c:26
#define PROCESS_SET_INFORMATION
Definition: pstypes.h:157
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582