forked from NTDLS/NSWFL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNSWFL_System.H
31 lines (27 loc) · 1.51 KB
/
NSWFL_System.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright © NetworkDLS 2023, All rights reserved
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef _NSWFL_SYSTEM_H_
#define _NSWFL_SYSTEM_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
namespace NSWFL {
namespace System {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SetApplicationPriority(HANDLE hProcess, HANDLE hThread,
int iPriorityClass, short iThreadPriority,
bool bProcessBoost, bool bThreadBoost);
bool Get_MachineName(char *sOutVal, int iMaxSz);
bool Get_UserName(char *sOutVal, int iMaxSz);
bool Get_OsVersion(char *sOutVal, int iMaxSz);
bool ResetWindowsSys(unsigned int iFlags);
void Hang(void);
bool CreateGenericSecurityDescriptor(SECURITY_DESCRIPTOR *pSD, SECURITY_ATTRIBUTES *pSA);
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
} //namespace::System
} //namespace::NSWFL
#endif