This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Removes as many pages as possible from the working set of the current process. | |
// Library: Psapi.h | |
// | |
if(EmptyWorkingSet(GetCurrentProcess())) | |
{ | |
// Cleared up some working set | |
} | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main Widget | |
QWidget *mainAppWindow = new QWidget; | |
mainAppWindow->setWindowTitle("Runtime GUI"); | |
mainAppWindow->setFixedSize(200, 300); | |
// Parent layout | |
QVBoxLayout *layoutParent= new QVBoxLayout(); | |
// List of items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Delete Registry (64bit machine - 64bit Registry) | |
// | |
HKEY hKey = NULL; | |
long lReturn = RegOpenKeyEx( HKEY_LOCAL_MACHINE,(L"SOFTWARE\\coderbox\\Boost"),0L,KEY_WRITE| KEY_WOW64_64KEY,&hKey ); | |
if (lReturn == ERROR_SUCCESS) | |
{ | |
lReturn = RegDeleteValueW(hKey, (L"OpenGL")); | |
RegCloseKey(hKey); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <qdatetime.h> | |
#include <windows.h> | |
// QT 5.4 - Console Application | |
// (RUN AS ADMINISTRATOR) | |
// | |
int main(int argc, char *argv[]) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder