Skip to content
/ opr Public

Single C/C++ header only that supports reducing process RAM usage.

Notifications You must be signed in to change notification settings

nomi-san/opr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 

Repository files navigation

opr

Single C/C++ header only that supports reducing process RAM usage.

platform

  • Windows x86 & x64
  • Linux

example

#include "opr.h"

int processId = 1024; // -1 for current process
int ret = opr_Clean(processId);
printf("process [%d]: %s\n",
    processId,
    ret == 1 ? "ok" : (ret == -1 ? "cannot access or does not exist" : "fail")
);

multiple languages

Bindings languages:

FFI supports

  • Create a new C source and add: #include "opr.h" (add DllMain if necessary)
  • Build as dynamic library/DLL with preprocessor: OPR_EXPORTS or BUILD_DLL
$ gcc -w -shared -O2 -o opr.dll -DBUILD_DLL src.c -lpsapi

About

Single C/C++ header only that supports reducing process RAM usage.

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published