Dropping smartstreams (not fully cleared) and added get_pid()

This commit is contained in:
NaifBanana
2026-01-18 18:24:26 -06:00
parent c4ee778040
commit 847bf3a078
9 changed files with 114 additions and 296 deletions
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.26.0)
project(gtest_Graphics VERSION 0.1.0 LANGUAGES C CXX)
add_executable(ProcessTest main.cpp)
target_link_libraries(ProcessTest NBCore)
+17
View File
@@ -0,0 +1,17 @@
#define CODE_ERROR_LOCATIONS
#include <iostream>
#include "Processes.hpp"
#include <Windows.h>
int main() {
std::cout << "nb::get_pid() -> " << nb::get_pid() << std::endl;
#ifdef _TARGET_WINDOWS
std::cout << "GetCurrentProcessId() -> " << GetCurrentProcessId() << std::endl;
#endif // _TARGET_WINDOWS
return 0;
}