mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Related-To: NEO-3982 Change-Id: Ie4797e0c83891d689dd8903716bce9292702938d Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
34 lines
903 B
C++
34 lines
903 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/os_interface/windows/sys_calls.h"
|
|
|
|
namespace NEO {
|
|
|
|
namespace SysCalls {
|
|
|
|
HANDLE createEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPCSTR lpName) {
|
|
return CreateEventA(lpEventAttributes, bManualReset, bInitialState, lpName);
|
|
}
|
|
|
|
BOOL closeHandle(HANDLE hObject) {
|
|
return CloseHandle(hObject);
|
|
}
|
|
|
|
BOOL getSystemPowerStatus(LPSYSTEM_POWER_STATUS systemPowerStatusPtr) {
|
|
return GetSystemPowerStatus(systemPowerStatusPtr);
|
|
}
|
|
BOOL getModuleHandle(DWORD dwFlags, LPCWSTR lpModuleName, HMODULE *phModule) {
|
|
return GetModuleHandleEx(dwFlags, lpModuleName, phModule);
|
|
}
|
|
DWORD getModuleFileName(HMODULE hModule, LPWSTR lpFilename, DWORD nSize) {
|
|
return GetModuleFileName(hModule, lpFilename, nSize);
|
|
}
|
|
} // namespace SysCalls
|
|
|
|
} // namespace NEO
|