fuck off stoopid errors

This commit is contained in:
lhodges1 2024-01-23 00:08:59 +11:00
parent 2a316ff33d
commit 4dc55a4592
7 changed files with 1 additions and 34 deletions

View file

@ -8,7 +8,6 @@
#include <vector> #include <vector>
#define LOG_INFO(fmt, ...) printf("[+] " fmt "\n", ##__VA_ARGS__) #define LOG_INFO(fmt, ...) printf("[+] " fmt "\n", ##__VA_ARGS__)
um-rewrite-final
#define LOG_ERROR(fmt, ...) printf("[-] " fmt "\n", ##__VA_ARGS__) #define LOG_ERROR(fmt, ...) printf("[-] " fmt "\n", ##__VA_ARGS__)
#define ABSOLUTE(wait) (wait) #define ABSOLUTE(wait) (wait)
@ -18,6 +17,4 @@ um-rewrite-final
#define MICROSECONDS(micros) (((signed __int64)(micros)) * NANOSECONDS(1000L)) #define MICROSECONDS(micros) (((signed __int64)(micros)) * NANOSECONDS(1000L))
#define MILLISECONDS(milli) (((signed __int64)(milli)) * MICROSECONDS(1000L)) #define MILLISECONDS(milli) (((signed __int64)(milli)) * MICROSECONDS(1000L))
#define SECONDS(seconds) (((signed __int64)(seconds)) * MILLISECONDS(1000L)) #define SECONDS(seconds) (((signed __int64)(seconds)) * MILLISECONDS(1000L))
=======
#define LOG_ERROR(fmt, ...) printf("[-] " fmt "\n", ##__VA_ARGS__) #define LOG_ERROR(fmt, ...) printf("[-] " fmt "\n", ##__VA_ARGS__)
master

View file

@ -10,7 +10,6 @@ dispatcher::dispatcher::dispatcher(LPCWSTR driver_name,
: thread_pool(DISPATCHER_THREAD_COUNT), : thread_pool(DISPATCHER_THREAD_COUNT),
k_interface(driver_name, message_queue) {} k_interface(driver_name, message_queue) {}
um-rewrite-final
void dispatcher::dispatcher::timer_test_callback() { void dispatcher::dispatcher::timer_test_callback() {
LOG_INFO("Timer callback invoked from dispatcher class!!"); LOG_INFO("Timer callback invoked from dispatcher class!!");
} }
@ -33,11 +32,7 @@ void dispatcher::dispatcher::run() {
this->init_timer_callbacks(); this->init_timer_callbacks();
this->run_timer_thread(); this->run_timer_thread();
this->run_io_port_thread(); this->run_io_port_thread();
=======
void dispatcher::dispatcher::run() {
helper::generate_rand_seed();
thread_pool.queue_job([this]() { k_interface.run_completion_port(); }); thread_pool.queue_job([this]() { k_interface.run_completion_port(); });
master
while (true) { while (true) {
this->issue_kernel_job(); this->issue_kernel_job();
helper::sleep_thread(DISPATCH_LOOP_SLEEP_TIME); helper::sleep_thread(DISPATCH_LOOP_SLEEP_TIME);

View file

@ -2,10 +2,7 @@
#include "threadpool.h" #include "threadpool.h"
um-rewrite-final
#include "timer.h" #include "timer.h"
=======
master
#include "../kernel_interface/kernel_interface.h" #include "../kernel_interface/kernel_interface.h"
namespace dispatcher { namespace dispatcher {
@ -15,21 +12,15 @@ static const int KERNEL_DISPATCH_FUNCTION_COUNT = 11;
static const int DISPATCHER_THREAD_COUNT = 4; static const int DISPATCHER_THREAD_COUNT = 4;
class dispatcher { class dispatcher {
um-rewrite-final
timer timers; timer timers;
=======
master
thread_pool thread_pool; thread_pool thread_pool;
kernel_interface::kernel_interface k_interface; kernel_interface::kernel_interface k_interface;
void issue_kernel_job(); void issue_kernel_job();
um-rewrite-final
void timer_test_callback(); void timer_test_callback();
void init_timer_callbacks(); void init_timer_callbacks();
void run_timer_thread(); void run_timer_thread();
void run_io_port_thread(); void run_io_port_thread();
=======
master
public: public:
dispatcher(LPCWSTR driver_name, client::message_queue &queue); dispatcher(LPCWSTR driver_name, client::message_queue &queue);

View file

@ -166,7 +166,6 @@ void helper::print_kernel_report(void *buffer) {
LOG_INFO("Invalid report type."); LOG_INFO("Invalid report type.");
break; break;
} }
um-rewrite-final
} }
unsigned __int64 helper::seconds_to_nanoseconds(int seconds) { unsigned __int64 helper::seconds_to_nanoseconds(int seconds) {
@ -175,7 +174,4 @@ unsigned __int64 helper::seconds_to_nanoseconds(int seconds) {
unsigned __int32 helper::seconds_to_milliseconds(int seconds) { unsigned __int32 helper::seconds_to_milliseconds(int seconds) {
return seconds * 1000; return seconds * 1000;
} }
=======
}
master

View file

@ -9,9 +9,6 @@ void sleep_thread(int seconds);
kernel_interface::report_id get_kernel_report_type(void *buffer); kernel_interface::report_id get_kernel_report_type(void *buffer);
int get_report_id_from_buffer(void *buffer); int get_report_id_from_buffer(void *buffer);
void print_kernel_report(void *buffer); void print_kernel_report(void *buffer);
um-rewrite-final
unsigned __int64 seconds_to_nanoseconds(int seconds); unsigned __int64 seconds_to_nanoseconds(int seconds);
unsigned __int32 seconds_to_milliseconds(int seconds); unsigned __int32 seconds_to_milliseconds(int seconds);
=======
master
} // namespace helper } // namespace helper

View file

@ -216,9 +216,6 @@ public:
void verify_process_module_executable_regions(); void verify_process_module_executable_regions();
void initiate_apc_stackwalk(); void initiate_apc_stackwalk();
void send_pending_irp(); void send_pending_irp();
um-rewrite-final
=======
void query_deferred_reports(); void query_deferred_reports();
master
}; };
} // namespace kernel_interface } // namespace kernel_interface

View file

@ -140,10 +140,7 @@
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
um-rewrite-final
<ClCompile Include="dispatcher\timer.cpp" /> <ClCompile Include="dispatcher\timer.cpp" />
=======
master
<ClCompile Include="helper.cpp" /> <ClCompile Include="helper.cpp" />
<ClCompile Include="imports.cpp" /> <ClCompile Include="imports.cpp" />
<ClCompile Include="module.cpp" /> <ClCompile Include="module.cpp" />
@ -160,10 +157,7 @@ master
<ClInclude Include="dispatcher\dispatcher.h" /> <ClInclude Include="dispatcher\dispatcher.h" />
<ClInclude Include="dispatcher\threadpool.h" /> <ClInclude Include="dispatcher\threadpool.h" />
<ClInclude Include="common.h" /> <ClInclude Include="common.h" />
um-rewrite-final
<ClInclude Include="dispatcher\timer.h" /> <ClInclude Include="dispatcher\timer.h" />
=======
master
<ClInclude Include="helper.h" /> <ClInclude Include="helper.h" />
<ClInclude Include="imports.h" /> <ClInclude Include="imports.h" />
<ClInclude Include="kernel_interface\kernel_interface.h" /> <ClInclude Include="kernel_interface\kernel_interface.h" />