ReactOS 0.4.15-dev-7953-g1f49173
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 26 of file affinity.c.

27{
28 DWORD dwProcessId;
29 WCHAR strErrorText[260];
30 WCHAR szTitle[256];
31
32 dwProcessId = GetSelectedProcessId();
33
34 if (dwProcessId == 0)
35 return;
36
39 GetLastErrorText(strErrorText, _countof(strErrorText));
42 return;
43 }
48 }
49}
static INT_PTR CALLBACK AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: affinity.c:52
HANDLE hProcessAffinityHandle
Definition: affinity.c:11
#define IDD_AFFINITY_DIALOG
Definition: resource.h:30
#define IDS_MSG_ACCESSPROCESSAFF
Definition: resource.h:247
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define CloseHandle
Definition: compat.h:739
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
Definition: proc.c:1227
HINSTANCE hInst
Definition: dxdiag.c:13
unsigned long DWORD
Definition: ntddk_ex.h:95
#define PROCESS_QUERY_INFORMATION
Definition: pstypes.h:166
#define PROCESS_SET_INFORMATION
Definition: pstypes.h:165
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
HWND hMainWnd
Definition: magnifier.c:32
DWORD GetSelectedProcessId(void)
Definition: procpage.c:88
#define _countof(array)
Definition: sndvol32.h:68
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
Definition: taskmgr.c:1083
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)
Definition: winuser.h:4399
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_OK
Definition: winuser.h:790
#define MB_ICONSTOP
Definition: winuser.h:803
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by TaskManagerWndProc().