ReactOS  0.4.14-dev-50-g13bb5e2
priority.c File Reference
#include "precomp.h"
Include dependency graph for priority.c:

Go to the source code of this file.

Functions

void DoSetPriority (DWORD priority)
 

Function Documentation

◆ DoSetPriority()

void DoSetPriority ( DWORD  priority)

Definition at line 26 of file priority.c.

27 {
28  DWORD dwProcessId;
30  WCHAR szText[260];
31  WCHAR szTitle[256];
32 
33  dwProcessId = GetSelectedProcessId();
34 
35  if (dwProcessId == 0)
36  return;
37 
41  return;
42 
44 
45  if (!hProcess)
46  {
50  return;
51  }
52 
54  {
58  }
59 
61 }
DWORD GetSelectedProcessId(void)
Definition: procpage.c:99
#define CloseHandle
Definition: compat.h:398
#define IDYES
Definition: winuser.h:829
BOOL WINAPI SetPriorityClass(IN HANDLE hProcess, IN DWORD dwPriorityClass)
Definition: proc.c:1692
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
#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_UNABLECHANGEPRIORITY
Definition: resource.h:249
#define MB_ICONWARNING
Definition: winuser.h:780
#define MB_YESNO
Definition: winuser.h:811
static const WCHAR szText[]
Definition: dialog.c:139
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned long DWORD
Definition: ntddk_ex.h:95
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
HWND hMainWnd
Definition: magnifier.c:32
#define IDS_MSG_TASKMGRWARNING
Definition: resource.h:246
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
Definition: proc.c:1227
HINSTANCE hInst
Definition: dxdiag.c:13
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
Definition: taskmgr.c:1152
#define MB_OK
Definition: winuser.h:784
#define IDS_MSG_WARNINGCHANGEPRIORITY
Definition: resource.h:250
static int priority
Definition: timer.c:163
#define PROCESS_SET_INFORMATION
Definition: pstypes.h:157

Referenced by TaskManagerWndProc().