[
  {
    "path": ".gitattributes",
    "content": "*.c diff\r\n*.cpp diff\r\n*.h diff\r\n*.rc diff\r\n*.ini diff\r\n*.txt diff\r\n*.xml diff\r\n*.lng diff\r\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "custom: [\"https://www.paypal.me/henrypp\", \"https://yoomoney.ru/to/4100115776040583\", \"https://www.blockchain.com/btc/address/1LrRTXPsvHcQWCNZotA9RcwjsGcRghG96c\", \"https://www.blockchain.com/eth/address/0xe2C84A62eb2a4EF154b19bec0c1c106734B95960\"]\r\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "content": "name: Bug report\ntitle: \"[Bug]\"\ndescription: Let me know about crash or existing functionality not working like it should.\nlabels: [ \"bug\" ]\nbody:\n  - type: markdown\n    attributes:\n      value: Thanks for taking the time to fill out this bug report!\n  - type: checkboxes\n    id: checklist\n    attributes:\n      label: Checklist\n      options:\n        - label: I have used the search function to see if someone else has already submitted the same bug report.\n          required: true\n        - label: I will describe the problem with as much detail as possible.\n          required: true\n  - type: input\n    id: version\n    attributes:\n      label: App version\n      description: What the application version do you use.\n      placeholder: x.y.z\n    validations:\n      required: true\n  - type: input\n    id: windows_version\n    attributes:\n      label: Windows version\n      description: What Windows version do you use.\n    validations:\n      required: true\n  - type: textarea\n    id: steps\n    attributes:\n      label: Steps to reproduce\n      placeholder: |\n        1. Go to '…'\n        2. Click on '…'\n        3. Scroll down to '…'\n        4. etc.\n    validations:\n      required: true\n  - type: textarea\n    id: expected\n    attributes:\n      label: Expected behavior\n      description: After following the steps, what did you think application would do?\n    validations:\n      required: false\n  - type: textarea\n    id: actual\n    attributes:\n      label: Actual behavior\n      description: What did application do instead? Screenshots might help.\n    validations:\n      required: true\n  - type: textarea\n    id: logs\n    attributes:\n      label: Logs\n      description: |\n        - If application have debug log insert it here.\n        - If application have crash dump please attach it here.\n\n        Tip: You can attach images, log files or crash dumps by clicking this area to highlight it and then dragging files in.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.yml",
    "content": "name: Feature request\ntitle: \"[Feature]\"\ndescription: Suggest an idea for this project.\nlabels: [ \"feature\" ]\nbody:\n  - type: checkboxes\n    id: checklist\n    attributes:\n      label: Checklist\n      options:\n        - label: I have used the search function to see if someone else has already submitted the same feature request.\n          required: true\n        - label: I will describe the problem with as much detail as possible.\n          required: true\n        - label: This issue only contains a request for one single feature, **not** multiple (related) features.\n          required: true\n  - type: input\n    id: version\n    attributes:\n      label: App version\n      description: What the application version do you use.\n      placeholder: x.y.z\n    validations:\n      required: true\n  - type: textarea\n    id: problem\n    attributes:\n      label: Problem you are trying to solve\n      description: Give a brief explanation of the problem you are trying to solve.\n    validations:\n      required: true\n  - type: textarea\n    id: solution\n    attributes:\n      label: Suggested solution\n      description: Describe how you would like the app to help you solve that problem. Try to be as specific as possible.\n    validations:\n      required: true\n  - type: textarea\n    id: screenshots\n    attributes:\n      label: Screenshots / Drawings / Technical details\n      description: |\n        If your request is about (or includes) changing or extending the user interface (UI), describe what the UI would look like and how the user would interact with it.\n\n        Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/question.md",
    "content": "---\nname: Question\nabout: Ask a question about application.\ntitle: '[Question]'\nlabels: [ \"question\" ]\nassignees: ''\n\n---\n\nDescribe the question with as much detail as possible.\n\n---\n\nApp version: <enter app version here>\nWindows version: <enter windows version here>"
  },
  {
    "path": ".gitignore",
    "content": ".vs/\r\n.vscode/\r\ntemp/\r\npackages/\r\nbin/32/\r\nbin/64/\r\nbin/arm64/\r\nx64/\r\nwin32/\r\narm64/\r\n__pycache__\r\n\r\nthumbs.db\r\nehthumbs.db\r\ndesktop.ini\r\n\r\n*.cab\r\n*.msi\r\n*.msm\r\n*.msp\r\n*.lnk\r\n*.jpg\r\n*.zip\r\n*.log\r\n*.pdb\r\n*.exp\r\n*.sdf\r\n*.opensdf\r\n*.db\r\n*.opendb\r\n*.suo\r\n*.exp\r\n*.iobj\r\n*.ipch\r\n*.ipdb\r\n*.ilk\r\n*.obj\r\n*.res\r\n*.tlog\r\n\r\n*PVS-Studio*\r\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"routine\"]\r\n\tpath = ../routine\r\n\turl = https://github.com/henrypp/routine.git\r\n\r\n[submodule \"builder\"]\r\n\tpath = ../builder\r\n\turl = https://github.com/henrypp/builder.git\r\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "v3.5.2 (1 April 2025)\r\n- added modified file cache clean\r\n- fixed pagefile displays wrong information (issue #262)\r\n- improved dark theme support\r\n- updated localization\r\n- updated project sdk\r\n\r\nv3.5.1 (27 December 2024)\r\n- now percentage displays as float numbers\r\n- fixed option for round window corners (issue #252)\r\n- fixed pagefile obtaining information (issue #243)\r\n\r\nv3.5 (17 December 2024)\r\n- added registry cache clean (win 8.1+)\r\n- added mitigations (win10+)\r\n- added dark theme support\r\n- stability improvements\r\n- updated translations\r\n- updated project sdk\r\n- fixed command line interface (issue #204)\r\n- fixed pagefile information display\r\n- fixed cosmetics bugs\r\n- fixed bugs\r\n\r\nv3.4 (25 January 2022)\r\n- security code improvements\r\n- improved windows 10 support\r\n- added arm64 binaries (portable only)\r\n- added option to opt-out cleanup standby list restriction (issue #92)\r\n- added dropdown menu for button to clean specified memory region\r\n- added log cleanup results into a file feature (issue #76)\r\n- added option to disable tray balloon sound\r\n- added command line support (issue #82)\r\n- added single-click tray icon option\r\n- added per-monitor dpi support\r\n- changed default ranges for up-down controls (issue #107)\r\n- fixed wrong unit in notification (issue #112)\r\n- fixed update installation in some cases\r\n- fixed winxp font selection\r\n- updated translations\r\n- updated project sdk\r\n- fixed cosmetics bugs\r\n- fixed bugs\r\n\r\nv3.3.5 (10 February 2019)\r\n- updated project sdk\r\n- fixed running as admin on every startup\r\n- fixed cosmetics bugs\r\n- fixed bugs\r\n\r\nv3.3.4 (20 October 2018)\r\n- fixed tray icon bug on windows xp\r\n\r\nv3.3.3 (19 October 2018)\r\n- updated project sdk\r\n- stability improvements\r\n- fixed saving autoreduct option in tray menu\r\n- fixed windows xp support\r\n- fixed bugs\r\n\r\nv3.3.2 (9 February 2018)\r\n- revert \"start minimized\" option (issue #39)\r\n- updated project sdk\r\n- cosmetic fixes\r\n\r\nv3.3.1 (5 January 2018)\r\n- disable auto-reduct by default\r\n- updated translations\r\n- updated project sdk\r\n- cosmetic fixes\r\n\r\nv3.3 (20 October 2017)\r\n- new settings dialog\r\n- added \"combine memory lists\" area (win10 and above)\r\n- added warning message for \"standby list\" & \"modified page list\" about freezes (issue #17)\r\n- updated translations\r\n- updated project sdk\r\n- fixed freezes after auto-reduct\r\n- fixed ui bugs\r\n- fixed bugs\r\n\r\nv3.2.2 (9 September 2017)\r\n- added set default language as in system\r\n- more precise cleaning result\r\n- fixed cleaning result crash\r\n- updated translations\r\n- updated project sdk\r\n\r\nv3.2.1 (9 May 2017)\r\n- show clean result even if it's empty\r\n- fixed settings window tabstop\r\n- updated project sdk\r\n\r\nv3.2 (30 October 2016)\r\n- fixed skip uac doesn't worked\r\n- fixed footer postition\r\n- updated translations\r\n\r\nv3.1.1454 (19 August 2016)\r\n- updated translations\r\n- updated project sdk\r\n\r\nv3.1.1453 (26 February 2016)\r\n- now locale applied without restart\r\n- fixed critical bug in locale engine\r\n- fixed muted messagebox\r\n\r\nv3.1.1452 (12 February 2016)\r\n- fixed uac incorrect checking when spaces in path\r\n- stability fixes (now compiled with \"treat warning as errors\" key)\r\n\r\nv3.1.1451 (11 February 2016)\r\n- fixed transparent background with antialiased font\r\n\r\nv3.1.1450 (10 February 2016)\r\n- added windows xp (64-bit) support\r\n- small ui fixes\r\n- fixed bugs\r\n\r\nv3.1.1310 (20 November 2015)\r\n- added tray menu for configure clean areas\r\n- fixed tray menu incorrect range calculation bug\r\n- returned the \"reductconfirmation\" config [issue #9]\r\n\r\nv3.1.1262 (31 October 2015)\r\n- added option to disable balloon tips\r\n- fixed hotkey settings\r\n- fixed windows xp support\r\n\r\nv3.1.1201 (28 October 2015)\r\n- added french localization\r\n- added hungarian localization\r\n- fixed cleaning by timeout doesn't triggered due optimizations\r\n\r\nv3.1.1186 (27 October 2015)\r\n- added antialiasing\r\n- added memory cleaning by timeout\r\n- added middle click tray icon action customization\r\n- new localization model (plain text)\r\n- changed default tray icon style\r\n- improved settings window\r\n- skip uac sometimes doesn't work\r\n- small ui fixes\r\n\r\nv3.0.436 (1 May 2015)\r\n- updated greek localization\r\n- updated polish localization\r\n- fixed tray icon incorrect memory value\r\n- fixed memory reduction behaviour under non-admin account (windows xp)\r\n- fixed main window footer incorrect size (windows xp)\r\n- fixed update checking request cached incorrect\r\n- fixed installer script\r\n- fixed bugs\r\n\r\nv3.0.377 (26 April 2015)\r\n- added spanish (argentina) localization\r\n- updated french localization\r\n- updated korean localization\r\n- updated russian localization\r\n- fixed bugs\r\n\r\nv3.0.305 (21 April 2015)\r\n- added french localization\r\n- added german localization\r\n- added cleaning confirmation switch\r\n- added cleaning on tray icon double click feature\r\n- fixed transparency & color indication compatibility\r\n- fixed bugs\r\n\r\nv3.0.277 (19 April 2015)\r\n- added icon animation\r\n- added greek localization\r\n- added slovak localization\r\n- added spanish localization\r\n- fixed critical bug in korean localization\r\n- fixed bug when application prevent restart (windows xp)\r\n\r\nv3.0.206 (17 April 2015)\r\n- added russian localization\r\n- added korean localization\r\n- fixed auto-reduct doesn't clean normally\r\n- fixed bugs\r\n\r\nv3.0.187 (14 April 2015)\r\n- windows 10 support\r\n- x64 support\r\n- added \"standby list without priority\" cleaning\r\n- added icon transparency\r\n- skip uac prompt feature\r\n- improved uac/uipi/dpi compatibility\r\n- fixed tray icon disappear when explorer restart\r\n- now process priority set to \"high\"\r\n- i/o operations optimization\r\n- fixed ui & bugs\r\n\r\nv2.4 (17 September 2013)\r\n- added tray icon customization\r\n- uac compatibility improved\r\n- x64 compatibility improved\r\n- changed application icon\r\n- fixed ui & bugs\r\n\r\nv2.3 (14 July 2012)\r\n- windows 8 support\r\n- added \"bulgarian\" localization (by nahalnik)\r\n- added \"chinese (simplified)\" localization (by hsxz)\r\n- added \"chinese (traditional)\" translation (by hsxz)\r\n- listview color indication\r\n- removed admin rights requirement (shown only if necessary)\r\n- fixed ui & bugs\r\n\r\nv2.2 (24 May 2012)\r\n- added on double-click option \"start memory reduction (silently)\"\r\n- fixed auto cleaning configuration\r\n\r\nv2.1 (23 May 2012)\r\n- added \"portuguese\" localization (by lucas macedo)\r\n- added auto cleaning configuration\r\n- added balloon tips\r\n- added \"system working set\" usage\r\n- fixed percentage calculation\r\n- fixed memory leak\r\n- fixed ui & bugs\r\n\r\nv2.0 (2 April 2012)\r\n- program worked in the background now\r\n- windows xp partial support\r\n- localization support\r\n- more new settings\r\n- fixed ui & bugs\r\n\r\nv1.1 (10 November 2011)\r\n- memory clening region configuration\r\n- added \"working set\" cleaning\r\n- added \"page list\" information\r\n- fixed ui & bugs\r\n\r\nv1.0 (27 October 2011)\r\n- first public version\r\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\r\n                       Version 3, 29 June 2007\r\n\r\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\r\n Everyone is permitted to copy and distribute verbatim copies\r\n of this license document, but changing it is not allowed.\r\n\r\n                            Preamble\r\n\r\n  The GNU General Public License is a free, copyleft license for\r\nsoftware and other kinds of works.\r\n\r\n  The licenses for most software and other practical works are designed\r\nto take away your freedom to share and change the works.  By contrast,\r\nthe GNU General Public License is intended to guarantee your freedom to\r\nshare and change all versions of a program--to make sure it remains free\r\nsoftware for all its users.  We, the Free Software Foundation, use the\r\nGNU General Public License for most of our software; it applies also to\r\nany other work released this way by its authors.  You can apply it to\r\nyour programs, too.\r\n\r\n  When we speak of free software, we are referring to freedom, not\r\nprice.  Our General Public Licenses are designed to make sure that you\r\nhave the freedom to distribute copies of free software (and charge for\r\nthem if you wish), that you receive source code or can get it if you\r\nwant it, that you can change the software or use pieces of it in new\r\nfree programs, and that you know you can do these things.\r\n\r\n  To protect your rights, we need to prevent others from denying you\r\nthese rights or asking you to surrender the rights.  Therefore, you have\r\ncertain responsibilities if you distribute copies of the software, or if\r\nyou modify it: responsibilities to respect the freedom of others.\r\n\r\n  For example, if you distribute copies of such a program, whether\r\ngratis or for a fee, you must pass on to the recipients the same\r\nfreedoms that you received.  You must make sure that they, too, receive\r\nor can get the source code.  And you must show them these terms so they\r\nknow their rights.\r\n\r\n  Developers that use the GNU GPL protect your rights with two steps:\r\n(1) assert copyright on the software, and (2) offer you this License\r\ngiving you legal permission to copy, distribute and/or modify it.\r\n\r\n  For the developers' and authors' protection, the GPL clearly explains\r\nthat there is no warranty for this free software.  For both users' and\r\nauthors' sake, the GPL requires that modified versions be marked as\r\nchanged, so that their problems will not be attributed erroneously to\r\nauthors of previous versions.\r\n\r\n  Some devices are designed to deny users access to install or run\r\nmodified versions of the software inside them, although the manufacturer\r\ncan do so.  This is fundamentally incompatible with the aim of\r\nprotecting users' freedom to change the software.  The systematic\r\npattern of such abuse occurs in the area of products for individuals to\r\nuse, which is precisely where it is most unacceptable.  Therefore, we\r\nhave designed this version of the GPL to prohibit the practice for those\r\nproducts.  If such problems arise substantially in other domains, we\r\nstand ready to extend this provision to those domains in future versions\r\nof the GPL, as needed to protect the freedom of users.\r\n\r\n  Finally, every program is threatened constantly by software patents.\r\nStates should not allow patents to restrict development and use of\r\nsoftware on general-purpose computers, but in those that do, we wish to\r\navoid the special danger that patents applied to a free program could\r\nmake it effectively proprietary.  To prevent this, the GPL assures that\r\npatents cannot be used to render the program non-free.\r\n\r\n  The precise terms and conditions for copying, distribution and\r\nmodification follow.\r\n\r\n                       TERMS AND CONDITIONS\r\n\r\n  0. Definitions.\r\n\r\n  \"This License\" refers to version 3 of the GNU General Public License.\r\n\r\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\r\nworks, such as semiconductor masks.\r\n\r\n  \"The Program\" refers to any copyrightable work licensed under this\r\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\r\n\"recipients\" may be individuals or organizations.\r\n\r\n  To \"modify\" a work means to copy from or adapt all or part of the work\r\nin a fashion requiring copyright permission, other than the making of an\r\nexact copy.  The resulting work is called a \"modified version\" of the\r\nearlier work or a work \"based on\" the earlier work.\r\n\r\n  A \"covered work\" means either the unmodified Program or a work based\r\non the Program.\r\n\r\n  To \"propagate\" a work means to do anything with it that, without\r\npermission, would make you directly or secondarily liable for\r\ninfringement under applicable copyright law, except executing it on a\r\ncomputer or modifying a private copy.  Propagation includes copying,\r\ndistribution (with or without modification), making available to the\r\npublic, and in some countries other activities as well.\r\n\r\n  To \"convey\" a work means any kind of propagation that enables other\r\nparties to make or receive copies.  Mere interaction with a user through\r\na computer network, with no transfer of a copy, is not conveying.\r\n\r\n  An interactive user interface displays \"Appropriate Legal Notices\"\r\nto the extent that it includes a convenient and prominently visible\r\nfeature that (1) displays an appropriate copyright notice, and (2)\r\ntells the user that there is no warranty for the work (except to the\r\nextent that warranties are provided), that licensees may convey the\r\nwork under this License, and how to view a copy of this License.  If\r\nthe interface presents a list of user commands or options, such as a\r\nmenu, a prominent item in the list meets this criterion.\r\n\r\n  1. Source Code.\r\n\r\n  The \"source code\" for a work means the preferred form of the work\r\nfor making modifications to it.  \"Object code\" means any non-source\r\nform of a work.\r\n\r\n  A \"Standard Interface\" means an interface that either is an official\r\nstandard defined by a recognized standards body, or, in the case of\r\ninterfaces specified for a particular programming language, one that\r\nis widely used among developers working in that language.\r\n\r\n  The \"System Libraries\" of an executable work include anything, other\r\nthan the work as a whole, that (a) is included in the normal form of\r\npackaging a Major Component, but which is not part of that Major\r\nComponent, and (b) serves only to enable use of the work with that\r\nMajor Component, or to implement a Standard Interface for which an\r\nimplementation is available to the public in source code form.  A\r\n\"Major Component\", in this context, means a major essential component\r\n(kernel, window system, and so on) of the specific operating system\r\n(if any) on which the executable work runs, or a compiler used to\r\nproduce the work, or an object code interpreter used to run it.\r\n\r\n  The \"Corresponding Source\" for a work in object code form means all\r\nthe source code needed to generate, install, and (for an executable\r\nwork) run the object code and to modify the work, including scripts to\r\ncontrol those activities.  However, it does not include the work's\r\nSystem Libraries, or general-purpose tools or generally available free\r\nprograms which are used unmodified in performing those activities but\r\nwhich are not part of the work.  For example, Corresponding Source\r\nincludes interface definition files associated with source files for\r\nthe work, and the source code for shared libraries and dynamically\r\nlinked subprograms that the work is specifically designed to require,\r\nsuch as by intimate data communication or control flow between those\r\nsubprograms and other parts of the work.\r\n\r\n  The Corresponding Source need not include anything that users\r\ncan regenerate automatically from other parts of the Corresponding\r\nSource.\r\n\r\n  The Corresponding Source for a work in source code form is that\r\nsame work.\r\n\r\n  2. Basic Permissions.\r\n\r\n  All rights granted under this License are granted for the term of\r\ncopyright on the Program, and are irrevocable provided the stated\r\nconditions are met.  This License explicitly affirms your unlimited\r\npermission to run the unmodified Program.  The output from running a\r\ncovered work is covered by this License only if the output, given its\r\ncontent, constitutes a covered work.  This License acknowledges your\r\nrights of fair use or other equivalent, as provided by copyright law.\r\n\r\n  You may make, run and propagate covered works that you do not\r\nconvey, without conditions so long as your license otherwise remains\r\nin force.  You may convey covered works to others for the sole purpose\r\nof having them make modifications exclusively for you, or provide you\r\nwith facilities for running those works, provided that you comply with\r\nthe terms of this License in conveying all material for which you do\r\nnot control copyright.  Those thus making or running the covered works\r\nfor you must do so exclusively on your behalf, under your direction\r\nand control, on terms that prohibit them from making any copies of\r\nyour copyrighted material outside their relationship with you.\r\n\r\n  Conveying under any other circumstances is permitted solely under\r\nthe conditions stated below.  Sublicensing is not allowed; section 10\r\nmakes it unnecessary.\r\n\r\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\r\n\r\n  No covered work shall be deemed part of an effective technological\r\nmeasure under any applicable law fulfilling obligations under article\r\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\r\nsimilar laws prohibiting or restricting circumvention of such\r\nmeasures.\r\n\r\n  When you convey a covered work, you waive any legal power to forbid\r\ncircumvention of technological measures to the extent such circumvention\r\nis effected by exercising rights under this License with respect to\r\nthe covered work, and you disclaim any intention to limit operation or\r\nmodification of the work as a means of enforcing, against the work's\r\nusers, your or third parties' legal rights to forbid circumvention of\r\ntechnological measures.\r\n\r\n  4. Conveying Verbatim Copies.\r\n\r\n  You may convey verbatim copies of the Program's source code as you\r\nreceive it, in any medium, provided that you conspicuously and\r\nappropriately publish on each copy an appropriate copyright notice;\r\nkeep intact all notices stating that this License and any\r\nnon-permissive terms added in accord with section 7 apply to the code;\r\nkeep intact all notices of the absence of any warranty; and give all\r\nrecipients a copy of this License along with the Program.\r\n\r\n  You may charge any price or no price for each copy that you convey,\r\nand you may offer support or warranty protection for a fee.\r\n\r\n  5. Conveying Modified Source Versions.\r\n\r\n  You may convey a work based on the Program, or the modifications to\r\nproduce it from the Program, in the form of source code under the\r\nterms of section 4, provided that you also meet all of these conditions:\r\n\r\n    a) The work must carry prominent notices stating that you modified\r\n    it, and giving a relevant date.\r\n\r\n    b) The work must carry prominent notices stating that it is\r\n    released under this License and any conditions added under section\r\n    7.  This requirement modifies the requirement in section 4 to\r\n    \"keep intact all notices\".\r\n\r\n    c) You must license the entire work, as a whole, under this\r\n    License to anyone who comes into possession of a copy.  This\r\n    License will therefore apply, along with any applicable section 7\r\n    additional terms, to the whole of the work, and all its parts,\r\n    regardless of how they are packaged.  This License gives no\r\n    permission to license the work in any other way, but it does not\r\n    invalidate such permission if you have separately received it.\r\n\r\n    d) If the work has interactive user interfaces, each must display\r\n    Appropriate Legal Notices; however, if the Program has interactive\r\n    interfaces that do not display Appropriate Legal Notices, your\r\n    work need not make them do so.\r\n\r\n  A compilation of a covered work with other separate and independent\r\nworks, which are not by their nature extensions of the covered work,\r\nand which are not combined with it such as to form a larger program,\r\nin or on a volume of a storage or distribution medium, is called an\r\n\"aggregate\" if the compilation and its resulting copyright are not\r\nused to limit the access or legal rights of the compilation's users\r\nbeyond what the individual works permit.  Inclusion of a covered work\r\nin an aggregate does not cause this License to apply to the other\r\nparts of the aggregate.\r\n\r\n  6. Conveying Non-Source Forms.\r\n\r\n  You may convey a covered work in object code form under the terms\r\nof sections 4 and 5, provided that you also convey the\r\nmachine-readable Corresponding Source under the terms of this License,\r\nin one of these ways:\r\n\r\n    a) Convey the object code in, or embodied in, a physical product\r\n    (including a physical distribution medium), accompanied by the\r\n    Corresponding Source fixed on a durable physical medium\r\n    customarily used for software interchange.\r\n\r\n    b) Convey the object code in, or embodied in, a physical product\r\n    (including a physical distribution medium), accompanied by a\r\n    written offer, valid for at least three years and valid for as\r\n    long as you offer spare parts or customer support for that product\r\n    model, to give anyone who possesses the object code either (1) a\r\n    copy of the Corresponding Source for all the software in the\r\n    product that is covered by this License, on a durable physical\r\n    medium customarily used for software interchange, for a price no\r\n    more than your reasonable cost of physically performing this\r\n    conveying of source, or (2) access to copy the\r\n    Corresponding Source from a network server at no charge.\r\n\r\n    c) Convey individual copies of the object code with a copy of the\r\n    written offer to provide the Corresponding Source.  This\r\n    alternative is allowed only occasionally and noncommercially, and\r\n    only if you received the object code with such an offer, in accord\r\n    with subsection 6b.\r\n\r\n    d) Convey the object code by offering access from a designated\r\n    place (gratis or for a charge), and offer equivalent access to the\r\n    Corresponding Source in the same way through the same place at no\r\n    further charge.  You need not require recipients to copy the\r\n    Corresponding Source along with the object code.  If the place to\r\n    copy the object code is a network server, the Corresponding Source\r\n    may be on a different server (operated by you or a third party)\r\n    that supports equivalent copying facilities, provided you maintain\r\n    clear directions next to the object code saying where to find the\r\n    Corresponding Source.  Regardless of what server hosts the\r\n    Corresponding Source, you remain obligated to ensure that it is\r\n    available for as long as needed to satisfy these requirements.\r\n\r\n    e) Convey the object code using peer-to-peer transmission, provided\r\n    you inform other peers where the object code and Corresponding\r\n    Source of the work are being offered to the general public at no\r\n    charge under subsection 6d.\r\n\r\n  A separable portion of the object code, whose source code is excluded\r\nfrom the Corresponding Source as a System Library, need not be\r\nincluded in conveying the object code work.\r\n\r\n  A \"User Product\" is either (1) a \"consumer product\", which means any\r\ntangible personal property which is normally used for personal, family,\r\nor household purposes, or (2) anything designed or sold for incorporation\r\ninto a dwelling.  In determining whether a product is a consumer product,\r\ndoubtful cases shall be resolved in favor of coverage.  For a particular\r\nproduct received by a particular user, \"normally used\" refers to a\r\ntypical or common use of that class of product, regardless of the status\r\nof the particular user or of the way in which the particular user\r\nactually uses, or expects or is expected to use, the product.  A product\r\nis a consumer product regardless of whether the product has substantial\r\ncommercial, industrial or non-consumer uses, unless such uses represent\r\nthe only significant mode of use of the product.\r\n\r\n  \"Installation Information\" for a User Product means any methods,\r\nprocedures, authorization keys, or other information required to install\r\nand execute modified versions of a covered work in that User Product from\r\na modified version of its Corresponding Source.  The information must\r\nsuffice to ensure that the continued functioning of the modified object\r\ncode is in no case prevented or interfered with solely because\r\nmodification has been made.\r\n\r\n  If you convey an object code work under this section in, or with, or\r\nspecifically for use in, a User Product, and the conveying occurs as\r\npart of a transaction in which the right of possession and use of the\r\nUser Product is transferred to the recipient in perpetuity or for a\r\nfixed term (regardless of how the transaction is characterized), the\r\nCorresponding Source conveyed under this section must be accompanied\r\nby the Installation Information.  But this requirement does not apply\r\nif neither you nor any third party retains the ability to install\r\nmodified object code on the User Product (for example, the work has\r\nbeen installed in ROM).\r\n\r\n  The requirement to provide Installation Information does not include a\r\nrequirement to continue to provide support service, warranty, or updates\r\nfor a work that has been modified or installed by the recipient, or for\r\nthe User Product in which it has been modified or installed.  Access to a\r\nnetwork may be denied when the modification itself materially and\r\nadversely affects the operation of the network or violates the rules and\r\nprotocols for communication across the network.\r\n\r\n  Corresponding Source conveyed, and Installation Information provided,\r\nin accord with this section must be in a format that is publicly\r\ndocumented (and with an implementation available to the public in\r\nsource code form), and must require no special password or key for\r\nunpacking, reading or copying.\r\n\r\n  7. Additional Terms.\r\n\r\n  \"Additional permissions\" are terms that supplement the terms of this\r\nLicense by making exceptions from one or more of its conditions.\r\nAdditional permissions that are applicable to the entire Program shall\r\nbe treated as though they were included in this License, to the extent\r\nthat they are valid under applicable law.  If additional permissions\r\napply only to part of the Program, that part may be used separately\r\nunder those permissions, but the entire Program remains governed by\r\nthis License without regard to the additional permissions.\r\n\r\n  When you convey a copy of a covered work, you may at your option\r\nremove any additional permissions from that copy, or from any part of\r\nit.  (Additional permissions may be written to require their own\r\nremoval in certain cases when you modify the work.)  You may place\r\nadditional permissions on material, added by you to a covered work,\r\nfor which you have or can give appropriate copyright permission.\r\n\r\n  Notwithstanding any other provision of this License, for material you\r\nadd to a covered work, you may (if authorized by the copyright holders of\r\nthat material) supplement the terms of this License with terms:\r\n\r\n    a) Disclaiming warranty or limiting liability differently from the\r\n    terms of sections 15 and 16 of this License; or\r\n\r\n    b) Requiring preservation of specified reasonable legal notices or\r\n    author attributions in that material or in the Appropriate Legal\r\n    Notices displayed by works containing it; or\r\n\r\n    c) Prohibiting misrepresentation of the origin of that material, or\r\n    requiring that modified versions of such material be marked in\r\n    reasonable ways as different from the original version; or\r\n\r\n    d) Limiting the use for publicity purposes of names of licensors or\r\n    authors of the material; or\r\n\r\n    e) Declining to grant rights under trademark law for use of some\r\n    trade names, trademarks, or service marks; or\r\n\r\n    f) Requiring indemnification of licensors and authors of that\r\n    material by anyone who conveys the material (or modified versions of\r\n    it) with contractual assumptions of liability to the recipient, for\r\n    any liability that these contractual assumptions directly impose on\r\n    those licensors and authors.\r\n\r\n  All other non-permissive additional terms are considered \"further\r\nrestrictions\" within the meaning of section 10.  If the Program as you\r\nreceived it, or any part of it, contains a notice stating that it is\r\ngoverned by this License along with a term that is a further\r\nrestriction, you may remove that term.  If a license document contains\r\na further restriction but permits relicensing or conveying under this\r\nLicense, you may add to a covered work material governed by the terms\r\nof that license document, provided that the further restriction does\r\nnot survive such relicensing or conveying.\r\n\r\n  If you add terms to a covered work in accord with this section, you\r\nmust place, in the relevant source files, a statement of the\r\nadditional terms that apply to those files, or a notice indicating\r\nwhere to find the applicable terms.\r\n\r\n  Additional terms, permissive or non-permissive, may be stated in the\r\nform of a separately written license, or stated as exceptions;\r\nthe above requirements apply either way.\r\n\r\n  8. Termination.\r\n\r\n  You may not propagate or modify a covered work except as expressly\r\nprovided under this License.  Any attempt otherwise to propagate or\r\nmodify it is void, and will automatically terminate your rights under\r\nthis License (including any patent licenses granted under the third\r\nparagraph of section 11).\r\n\r\n  However, if you cease all violation of this License, then your\r\nlicense from a particular copyright holder is reinstated (a)\r\nprovisionally, unless and until the copyright holder explicitly and\r\nfinally terminates your license, and (b) permanently, if the copyright\r\nholder fails to notify you of the violation by some reasonable means\r\nprior to 60 days after the cessation.\r\n\r\n  Moreover, your license from a particular copyright holder is\r\nreinstated permanently if the copyright holder notifies you of the\r\nviolation by some reasonable means, this is the first time you have\r\nreceived notice of violation of this License (for any work) from that\r\ncopyright holder, and you cure the violation prior to 30 days after\r\nyour receipt of the notice.\r\n\r\n  Termination of your rights under this section does not terminate the\r\nlicenses of parties who have received copies or rights from you under\r\nthis License.  If your rights have been terminated and not permanently\r\nreinstated, you do not qualify to receive new licenses for the same\r\nmaterial under section 10.\r\n\r\n  9. Acceptance Not Required for Having Copies.\r\n\r\n  You are not required to accept this License in order to receive or\r\nrun a copy of the Program.  Ancillary propagation of a covered work\r\noccurring solely as a consequence of using peer-to-peer transmission\r\nto receive a copy likewise does not require acceptance.  However,\r\nnothing other than this License grants you permission to propagate or\r\nmodify any covered work.  These actions infringe copyright if you do\r\nnot accept this License.  Therefore, by modifying or propagating a\r\ncovered work, you indicate your acceptance of this License to do so.\r\n\r\n  10. Automatic Licensing of Downstream Recipients.\r\n\r\n  Each time you convey a covered work, the recipient automatically\r\nreceives a license from the original licensors, to run, modify and\r\npropagate that work, subject to this License.  You are not responsible\r\nfor enforcing compliance by third parties with this License.\r\n\r\n  An \"entity transaction\" is a transaction transferring control of an\r\norganization, or substantially all assets of one, or subdividing an\r\norganization, or merging organizations.  If propagation of a covered\r\nwork results from an entity transaction, each party to that\r\ntransaction who receives a copy of the work also receives whatever\r\nlicenses to the work the party's predecessor in interest had or could\r\ngive under the previous paragraph, plus a right to possession of the\r\nCorresponding Source of the work from the predecessor in interest, if\r\nthe predecessor has it or can get it with reasonable efforts.\r\n\r\n  You may not impose any further restrictions on the exercise of the\r\nrights granted or affirmed under this License.  For example, you may\r\nnot impose a license fee, royalty, or other charge for exercise of\r\nrights granted under this License, and you may not initiate litigation\r\n(including a cross-claim or counterclaim in a lawsuit) alleging that\r\nany patent claim is infringed by making, using, selling, offering for\r\nsale, or importing the Program or any portion of it.\r\n\r\n  11. Patents.\r\n\r\n  A \"contributor\" is a copyright holder who authorizes use under this\r\nLicense of the Program or a work on which the Program is based.  The\r\nwork thus licensed is called the contributor's \"contributor version\".\r\n\r\n  A contributor's \"essential patent claims\" are all patent claims\r\nowned or controlled by the contributor, whether already acquired or\r\nhereafter acquired, that would be infringed by some manner, permitted\r\nby this License, of making, using, or selling its contributor version,\r\nbut do not include claims that would be infringed only as a\r\nconsequence of further modification of the contributor version.  For\r\npurposes of this definition, \"control\" includes the right to grant\r\npatent sublicenses in a manner consistent with the requirements of\r\nthis License.\r\n\r\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\r\npatent license under the contributor's essential patent claims, to\r\nmake, use, sell, offer for sale, import and otherwise run, modify and\r\npropagate the contents of its contributor version.\r\n\r\n  In the following three paragraphs, a \"patent license\" is any express\r\nagreement or commitment, however denominated, not to enforce a patent\r\n(such as an express permission to practice a patent or covenant not to\r\nsue for patent infringement).  To \"grant\" such a patent license to a\r\nparty means to make such an agreement or commitment not to enforce a\r\npatent against the party.\r\n\r\n  If you convey a covered work, knowingly relying on a patent license,\r\nand the Corresponding Source of the work is not available for anyone\r\nto copy, free of charge and under the terms of this License, through a\r\npublicly available network server or other readily accessible means,\r\nthen you must either (1) cause the Corresponding Source to be so\r\navailable, or (2) arrange to deprive yourself of the benefit of the\r\npatent license for this particular work, or (3) arrange, in a manner\r\nconsistent with the requirements of this License, to extend the patent\r\nlicense to downstream recipients.  \"Knowingly relying\" means you have\r\nactual knowledge that, but for the patent license, your conveying the\r\ncovered work in a country, or your recipient's use of the covered work\r\nin a country, would infringe one or more identifiable patents in that\r\ncountry that you have reason to believe are valid.\r\n\r\n  If, pursuant to or in connection with a single transaction or\r\narrangement, you convey, or propagate by procuring conveyance of, a\r\ncovered work, and grant a patent license to some of the parties\r\nreceiving the covered work authorizing them to use, propagate, modify\r\nor convey a specific copy of the covered work, then the patent license\r\nyou grant is automatically extended to all recipients of the covered\r\nwork and works based on it.\r\n\r\n  A patent license is \"discriminatory\" if it does not include within\r\nthe scope of its coverage, prohibits the exercise of, or is\r\nconditioned on the non-exercise of one or more of the rights that are\r\nspecifically granted under this License.  You may not convey a covered\r\nwork if you are a party to an arrangement with a third party that is\r\nin the business of distributing software, under which you make payment\r\nto the third party based on the extent of your activity of conveying\r\nthe work, and under which the third party grants, to any of the\r\nparties who would receive the covered work from you, a discriminatory\r\npatent license (a) in connection with copies of the covered work\r\nconveyed by you (or copies made from those copies), or (b) primarily\r\nfor and in connection with specific products or compilations that\r\ncontain the covered work, unless you entered into that arrangement,\r\nor that patent license was granted, prior to 28 March 2007.\r\n\r\n  Nothing in this License shall be construed as excluding or limiting\r\nany implied license or other defenses to infringement that may\r\notherwise be available to you under applicable patent law.\r\n\r\n  12. No Surrender of Others' Freedom.\r\n\r\n  If conditions are imposed on you (whether by court order, agreement or\r\notherwise) that contradict the conditions of this License, they do not\r\nexcuse you from the conditions of this License.  If you cannot convey a\r\ncovered work so as to satisfy simultaneously your obligations under this\r\nLicense and any other pertinent obligations, then as a consequence you may\r\nnot convey it at all.  For example, if you agree to terms that obligate you\r\nto collect a royalty for further conveying from those to whom you convey\r\nthe Program, the only way you could satisfy both those terms and this\r\nLicense would be to refrain entirely from conveying the Program.\r\n\r\n  13. Use with the GNU Affero General Public License.\r\n\r\n  Notwithstanding any other provision of this License, you have\r\npermission to link or combine any covered work with a work licensed\r\nunder version 3 of the GNU Affero General Public License into a single\r\ncombined work, and to convey the resulting work.  The terms of this\r\nLicense will continue to apply to the part which is the covered work,\r\nbut the special requirements of the GNU Affero General Public License,\r\nsection 13, concerning interaction through a network will apply to the\r\ncombination as such.\r\n\r\n  14. Revised Versions of this License.\r\n\r\n  The Free Software Foundation may publish revised and/or new versions of\r\nthe GNU General Public License from time to time.  Such new versions will\r\nbe similar in spirit to the present version, but may differ in detail to\r\naddress new problems or concerns.\r\n\r\n  Each version is given a distinguishing version number.  If the\r\nProgram specifies that a certain numbered version of the GNU General\r\nPublic License \"or any later version\" applies to it, you have the\r\noption of following the terms and conditions either of that numbered\r\nversion or of any later version published by the Free Software\r\nFoundation.  If the Program does not specify a version number of the\r\nGNU General Public License, you may choose any version ever published\r\nby the Free Software Foundation.\r\n\r\n  If the Program specifies that a proxy can decide which future\r\nversions of the GNU General Public License can be used, that proxy's\r\npublic statement of acceptance of a version permanently authorizes you\r\nto choose that version for the Program.\r\n\r\n  Later license versions may give you additional or different\r\npermissions.  However, no additional obligations are imposed on any\r\nauthor or copyright holder as a result of your choosing to follow a\r\nlater version.\r\n\r\n  15. Disclaimer of Warranty.\r\n\r\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\r\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\r\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\r\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\r\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\r\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\r\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\r\n\r\n  16. Limitation of Liability.\r\n\r\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\r\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\r\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\r\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\r\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\r\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\r\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\r\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\r\nSUCH DAMAGES.\r\n\r\n  17. Interpretation of Sections 15 and 16.\r\n\r\n  If the disclaimer of warranty and limitation of liability provided\r\nabove cannot be given local legal effect according to their terms,\r\nreviewing courts shall apply local law that most closely approximates\r\nan absolute waiver of all civil liability in connection with the\r\nProgram, unless a warranty or assumption of liability accompanies a\r\ncopy of the Program in return for a fee.\r\n\r\n                     END OF TERMS AND CONDITIONS\r\n\r\n            How to Apply These Terms to Your New Programs\r\n\r\n  If you develop a new program, and you want it to be of the greatest\r\npossible use to the public, the best way to achieve this is to make it\r\nfree software which everyone can redistribute and change under these terms.\r\n\r\n  To do so, attach the following notices to the program.  It is safest\r\nto attach them to the start of each source file to most effectively\r\nstate the exclusion of warranty; and each file should have at least\r\nthe \"copyright\" line and a pointer to where the full notice is found.\r\n\r\n    <one line to give the program's name and a brief idea of what it does.>\r\n    Copyright (C) <year>  <name of author>\r\n\r\n    This program is free software: you can redistribute it and/or modify\r\n    it under the terms of the GNU General Public License as published by\r\n    the Free Software Foundation, either version 3 of the License, or\r\n    (at your option) any later version.\r\n\r\n    This program is distributed in the hope that it will be useful,\r\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n    GNU General Public License for more details.\r\n\r\n    You should have received a copy of the GNU General Public License\r\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\r\n\r\nAlso add information on how to contact you by electronic and paper mail.\r\n\r\n  If the program does terminal interaction, make it output a short\r\nnotice like this when it starts in an interactive mode:\r\n\r\n    <program>  Copyright (C) <year>  <name of author>\r\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\r\n    This is free software, and you are welcome to redistribute it\r\n    under certain conditions; type `show c' for details.\r\n\r\nThe hypothetical commands `show w' and `show c' should show the appropriate\r\nparts of the General Public License.  Of course, your program's commands\r\nmight be different; for a GUI interface, you would use an \"about box\".\r\n\r\n  You should also get your employer (if you work as a programmer) or school,\r\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\r\nFor more information on this, and how to apply and follow the GNU GPL, see\r\n<http://www.gnu.org/licenses/>.\r\n\r\n  The GNU General Public License does not permit incorporating your program\r\ninto proprietary programs.  If your program is a subroutine library, you\r\nmay consider it more useful to permit linking proprietary applications with\r\nthe library.  If this is what you want to do, use the GNU Lesser General\r\nPublic License instead of this License.  But first, please read\r\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\r\n"
  },
  {
    "path": "README.md",
    "content": "<h1 align=\"center\">Mem Reduct</h1>\r\n\r\n<p align=\"center\">\r\n\t<a href=\"https://github.com/henrypp/memreduct/releases\"><img src=\"https://img.shields.io/github/v/release/henrypp/memreduct?style=flat-square&include_prereleases&label=version\" /></a>\r\n\t<a href=\"https://github.com/henrypp/memreduct/releases\"><img src=\"https://img.shields.io/github/downloads/henrypp/memreduct/total.svg?style=flat-square\" /></a>\r\n\t<a href=\"https://github.com/henrypp/memreduct/issues\"><img src=\"https://img.shields.io/github/issues-raw/henrypp/memreduct.svg?style=flat-square&label=issues\" /></a>\r\n\t<a href=\"https://github.com/henrypp/memreduct/graphs/contributors\"><img src=\"https://img.shields.io/github/contributors/henrypp/memreduct?style=flat-square\" /></a>\r\n\t<a href=\"https://github.com/henrypp/memreduct/blob/master/LICENSE\"><img src=\"https://img.shields.io/github/license/henrypp/memreduct?style=flat-square\" /></a>\r\n</p>\r\n\r\n-------\r\n\r\n<p align=\"center\">\r\n\t<img src=\"/images/memreduct.png?cachefix\" />\r\n</p>\r\n\r\n### Description:\r\nLightweight real-time memory management application to monitor\r\nand clean system memory on your computer.\r\n\r\nThe program used undocumented internal system features (Native API) to clear\r\nsystem cache (system working set, working set, standby page lists, modified page\r\nlists) with variable result ~10-50%. Application it is compatible with Windows XP SP3 and\r\nhigher operating systems, but some general features available only since Windows Vista.\r\n\r\nYou can download either the installer or portable version. For correct working you are require administrator rights.\r\n\r\n```\r\nTo activate portable mode, create \"memreduct.ini\" in application folder, or move it from \"%APPDATA%\\Henry++\\Mem Reduct\".\r\n```\r\n\r\n### System requirements:\r\n- Windows 7, 8, 8.1, 10, 11 64-bit/ARM64\r\n- An SSE2-capable CPU\r\n- <s>KB2533623</s> [KB3063858](https://www.microsoft.com/en-us/download/details.aspx?id=47442) update for Windows 7 was required\r\n\r\n### Donate:\r\n- [Bitcoin](https://www.blockchain.com/btc/address/1LrRTXPsvHcQWCNZotA9RcwjsGcRghG96c) (BTC)\r\n- [Ethereum](https://www.blockchain.com/explorer/addresses/eth/0xe2C84A62eb2a4EF154b19bec0c1c106734B95960) (ETH)\r\n- [Yandex Money](https://yoomoney.ru/to/4100115776040583) (RUB)\r\n- [Paypal](https://paypal.me/henrypp) (USD)\r\n\r\n### GPG Signature:\r\nBinaries have GPG signature `memreduct.exe.sig` in application folder.\r\n\r\n- Public key: [pubkey.asc](https://raw.githubusercontent.com/henrypp/builder/master/pubkey.asc) ([pgpkeys.eu](https://pgpkeys.eu/pks/lookup?op=index&fingerprint=on&search=0x5635B5FD))\r\n- Key ID: 0x5635B5FD\r\n- Fingerprint: D985 2361 1524 AB29 BE73 30AC 2881 20A7 5635 B5FD\r\n---\r\n- Website: [github.com/henrypp](https://github.com/henrypp)\r\n- Support: sforce5@mail.ru\r\n---\r\n(c) 2011-2026 Henry++\r\n"
  },
  {
    "path": "VERSION",
    "content": "memreduct=3.5.2|https://github.com/henrypp/memreduct/releases/download/v.3.5.2/memreduct-3.5.2-setup.exe;\nlanguage=1771152107|https://raw.githubusercontent.com/henrypp/memreduct/master/bin/memreduct.lng;"
  },
  {
    "path": "bin/History.txt",
    "content": "v3.5.2 (1 April 2025)\r\n- added modified file cache clean\r\n- fixed pagefile displays wrong information (issue #262)\r\n- improved dark theme support\r\n- updated localization\r\n- updated project sdk\r\n\r\nv3.5.1 (27 December 2024)\r\n- now percentage displays as float numbers\r\n- fixed option for round window corners (issue #252)\r\n- fixed pagefile obtaining information (issue #243)\r\n\r\nv3.5 (17 December 2024)\r\n- added registry cache clean (win 8.1+)\r\n- added mitigations (win10+)\r\n- added dark theme support\r\n- stability improvements\r\n- updated translations\r\n- updated project sdk\r\n- fixed command line interface (issue #204)\r\n- fixed pagefile information display\r\n- fixed cosmetics bugs\r\n- fixed bugs\r\n\r\nv3.4 (25 January 2022)\r\n- security code improvements\r\n- improved windows 10 support\r\n- added arm64 binaries (portable only)\r\n- added option to opt-out cleanup standby list restriction (issue #92)\r\n- added dropdown menu for button to clean specified memory region\r\n- added log cleanup results into a file feature (issue #76)\r\n- added option to disable tray balloon sound\r\n- added command line support (issue #82)\r\n- added single-click tray icon option\r\n- added per-monitor dpi support\r\n- changed default ranges for up-down controls (issue #107)\r\n- fixed wrong unit in notification (issue #112)\r\n- fixed update installation in some cases\r\n- fixed winxp font selection\r\n- updated translations\r\n- updated project sdk\r\n- fixed cosmetics bugs\r\n- fixed bugs\r\n\r\nv3.3.5 (10 February 2019)\r\n- updated project sdk\r\n- fixed running as admin on every startup\r\n- fixed cosmetics bugs\r\n- fixed bugs\r\n\r\nv3.3.4 (20 October 2018)\r\n- fixed tray icon bug on windows xp\r\n\r\nv3.3.3 (19 October 2018)\r\n- updated project sdk\r\n- stability improvements\r\n- fixed saving autoreduct option in tray menu\r\n- fixed windows xp support\r\n- fixed bugs\r\n\r\nv3.3.2 (9 February 2018)\r\n- revert \"start minimized\" option (issue #39)\r\n- updated project sdk\r\n- cosmetic fixes\r\n\r\nv3.3.1 (5 January 2018)\r\n- disable auto-reduct by default\r\n- updated translations\r\n- updated project sdk\r\n- cosmetic fixes\r\n\r\nv3.3 (20 October 2017)\r\n- new settings dialog\r\n- added \"combine memory lists\" area (win10 and above)\r\n- added warning message for \"standby list\" & \"modified page list\" about freezes (issue #17)\r\n- updated translations\r\n- updated project sdk\r\n- fixed freezes after auto-reduct\r\n- fixed ui bugs\r\n- fixed bugs\r\n\r\nv3.2.2 (9 September 2017)\r\n- added set default language as in system\r\n- more precise cleaning result\r\n- fixed cleaning result crash\r\n- updated translations\r\n- updated project sdk\r\n\r\nv3.2.1 (9 May 2017)\r\n- show clean result even if it's empty\r\n- fixed settings window tabstop\r\n- updated project sdk\r\n\r\nv3.2 (30 October 2016)\r\n- fixed skip uac doesn't worked\r\n- fixed footer postition\r\n- updated translations\r\n\r\nv3.1.1454 (19 August 2016)\r\n- updated translations\r\n- updated project sdk\r\n\r\nv3.1.1453 (26 February 2016)\r\n- now locale applied without restart\r\n- fixed critical bug in locale engine\r\n- fixed muted messagebox\r\n\r\nv3.1.1452 (12 February 2016)\r\n- fixed uac incorrect checking when spaces in path\r\n- stability fixes (now compiled with \"treat warning as errors\" key)\r\n\r\nv3.1.1451 (11 February 2016)\r\n- fixed transparent background with antialiased font\r\n\r\nv3.1.1450 (10 February 2016)\r\n- added windows xp (64-bit) support\r\n- small ui fixes\r\n- fixed bugs\r\n\r\nv3.1.1310 (20 November 2015)\r\n- added tray menu for configure clean areas\r\n- fixed tray menu incorrect range calculation bug\r\n- returned the \"reductconfirmation\" config [issue #9]\r\n\r\nv3.1.1262 (31 October 2015)\r\n- added option to disable balloon tips\r\n- fixed hotkey settings\r\n- fixed windows xp support\r\n\r\nv3.1.1201 (28 October 2015)\r\n- added french localization\r\n- added hungarian localization\r\n- fixed cleaning by timeout doesn't triggered due optimizations\r\n\r\nv3.1.1186 (27 October 2015)\r\n- added antialiasing\r\n- added memory cleaning by timeout\r\n- added middle click tray icon action customization\r\n- new localization model (plain text)\r\n- changed default tray icon style\r\n- improved settings window\r\n- skip uac sometimes doesn't work\r\n- small ui fixes\r\n\r\nv3.0.436 (1 May 2015)\r\n- updated greek localization\r\n- updated polish localization\r\n- fixed tray icon incorrect memory value\r\n- fixed memory reduction behaviour under non-admin account (windows xp)\r\n- fixed main window footer incorrect size (windows xp)\r\n- fixed update checking request cached incorrect\r\n- fixed installer script\r\n- fixed bugs\r\n\r\nv3.0.377 (26 April 2015)\r\n- added spanish (argentina) localization\r\n- updated french localization\r\n- updated korean localization\r\n- updated russian localization\r\n- fixed bugs\r\n\r\nv3.0.305 (21 April 2015)\r\n- added french localization\r\n- added german localization\r\n- added cleaning confirmation switch\r\n- added cleaning on tray icon double click feature\r\n- fixed transparency & color indication compatibility\r\n- fixed bugs\r\n\r\nv3.0.277 (19 April 2015)\r\n- added icon animation\r\n- added greek localization\r\n- added slovak localization\r\n- added spanish localization\r\n- fixed critical bug in korean localization\r\n- fixed bug when application prevent restart (windows xp)\r\n\r\nv3.0.206 (17 April 2015)\r\n- added russian localization\r\n- added korean localization\r\n- fixed auto-reduct doesn't clean normally\r\n- fixed bugs\r\n\r\nv3.0.187 (14 April 2015)\r\n- windows 10 support\r\n- x64 support\r\n- added \"standby list without priority\" cleaning\r\n- added icon transparency\r\n- skip uac prompt feature\r\n- improved uac/uipi/dpi compatibility\r\n- fixed tray icon disappear when explorer restart\r\n- now process priority set to \"high\"\r\n- i/o operations optimization\r\n- fixed ui & bugs\r\n\r\nv2.4 (17 September 2013)\r\n- added tray icon customization\r\n- uac compatibility improved\r\n- x64 compatibility improved\r\n- changed application icon\r\n- fixed ui & bugs\r\n\r\nv2.3 (14 July 2012)\r\n- windows 8 support\r\n- added \"bulgarian\" localization (by nahalnik)\r\n- added \"chinese (simplified)\" localization (by hsxz)\r\n- added \"chinese (traditional)\" translation (by hsxz)\r\n- listview color indication\r\n- removed admin rights requirement (shown only if necessary)\r\n- fixed ui & bugs\r\n\r\nv2.2 (24 May 2012)\r\n- added on double-click option \"start memory reduction (silently)\"\r\n- fixed auto cleaning configuration\r\n\r\nv2.1 (23 May 2012)\r\n- added \"portuguese\" localization (by lucas macedo)\r\n- added auto cleaning configuration\r\n- added balloon tips\r\n- added \"system working set\" usage\r\n- fixed percentage calculation\r\n- fixed memory leak\r\n- fixed ui & bugs\r\n\r\nv2.0 (2 April 2012)\r\n- program worked in the background now\r\n- windows xp partial support\r\n- localization support\r\n- more new settings\r\n- fixed ui & bugs\r\n\r\nv1.1 (10 November 2011)\r\n- memory clening region configuration\r\n- added \"working set\" cleaning\r\n- added \"page list\" information\r\n- fixed ui & bugs\r\n\r\nv1.0 (27 October 2011)\r\n- first public version\r\n"
  },
  {
    "path": "bin/License.txt",
    "content": "                    GNU GENERAL PUBLIC LICENSE\r\n                       Version 3, 29 June 2007\r\n\r\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\r\n Everyone is permitted to copy and distribute verbatim copies\r\n of this license document, but changing it is not allowed.\r\n\r\n                            Preamble\r\n\r\n  The GNU General Public License is a free, copyleft license for\r\nsoftware and other kinds of works.\r\n\r\n  The licenses for most software and other practical works are designed\r\nto take away your freedom to share and change the works.  By contrast,\r\nthe GNU General Public License is intended to guarantee your freedom to\r\nshare and change all versions of a program--to make sure it remains free\r\nsoftware for all its users.  We, the Free Software Foundation, use the\r\nGNU General Public License for most of our software; it applies also to\r\nany other work released this way by its authors.  You can apply it to\r\nyour programs, too.\r\n\r\n  When we speak of free software, we are referring to freedom, not\r\nprice.  Our General Public Licenses are designed to make sure that you\r\nhave the freedom to distribute copies of free software (and charge for\r\nthem if you wish), that you receive source code or can get it if you\r\nwant it, that you can change the software or use pieces of it in new\r\nfree programs, and that you know you can do these things.\r\n\r\n  To protect your rights, we need to prevent others from denying you\r\nthese rights or asking you to surrender the rights.  Therefore, you have\r\ncertain responsibilities if you distribute copies of the software, or if\r\nyou modify it: responsibilities to respect the freedom of others.\r\n\r\n  For example, if you distribute copies of such a program, whether\r\ngratis or for a fee, you must pass on to the recipients the same\r\nfreedoms that you received.  You must make sure that they, too, receive\r\nor can get the source code.  And you must show them these terms so they\r\nknow their rights.\r\n\r\n  Developers that use the GNU GPL protect your rights with two steps:\r\n(1) assert copyright on the software, and (2) offer you this License\r\ngiving you legal permission to copy, distribute and/or modify it.\r\n\r\n  For the developers' and authors' protection, the GPL clearly explains\r\nthat there is no warranty for this free software.  For both users' and\r\nauthors' sake, the GPL requires that modified versions be marked as\r\nchanged, so that their problems will not be attributed erroneously to\r\nauthors of previous versions.\r\n\r\n  Some devices are designed to deny users access to install or run\r\nmodified versions of the software inside them, although the manufacturer\r\ncan do so.  This is fundamentally incompatible with the aim of\r\nprotecting users' freedom to change the software.  The systematic\r\npattern of such abuse occurs in the area of products for individuals to\r\nuse, which is precisely where it is most unacceptable.  Therefore, we\r\nhave designed this version of the GPL to prohibit the practice for those\r\nproducts.  If such problems arise substantially in other domains, we\r\nstand ready to extend this provision to those domains in future versions\r\nof the GPL, as needed to protect the freedom of users.\r\n\r\n  Finally, every program is threatened constantly by software patents.\r\nStates should not allow patents to restrict development and use of\r\nsoftware on general-purpose computers, but in those that do, we wish to\r\navoid the special danger that patents applied to a free program could\r\nmake it effectively proprietary.  To prevent this, the GPL assures that\r\npatents cannot be used to render the program non-free.\r\n\r\n  The precise terms and conditions for copying, distribution and\r\nmodification follow.\r\n\r\n                       TERMS AND CONDITIONS\r\n\r\n  0. Definitions.\r\n\r\n  \"This License\" refers to version 3 of the GNU General Public License.\r\n\r\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\r\nworks, such as semiconductor masks.\r\n\r\n  \"The Program\" refers to any copyrightable work licensed under this\r\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\r\n\"recipients\" may be individuals or organizations.\r\n\r\n  To \"modify\" a work means to copy from or adapt all or part of the work\r\nin a fashion requiring copyright permission, other than the making of an\r\nexact copy.  The resulting work is called a \"modified version\" of the\r\nearlier work or a work \"based on\" the earlier work.\r\n\r\n  A \"covered work\" means either the unmodified Program or a work based\r\non the Program.\r\n\r\n  To \"propagate\" a work means to do anything with it that, without\r\npermission, would make you directly or secondarily liable for\r\ninfringement under applicable copyright law, except executing it on a\r\ncomputer or modifying a private copy.  Propagation includes copying,\r\ndistribution (with or without modification), making available to the\r\npublic, and in some countries other activities as well.\r\n\r\n  To \"convey\" a work means any kind of propagation that enables other\r\nparties to make or receive copies.  Mere interaction with a user through\r\na computer network, with no transfer of a copy, is not conveying.\r\n\r\n  An interactive user interface displays \"Appropriate Legal Notices\"\r\nto the extent that it includes a convenient and prominently visible\r\nfeature that (1) displays an appropriate copyright notice, and (2)\r\ntells the user that there is no warranty for the work (except to the\r\nextent that warranties are provided), that licensees may convey the\r\nwork under this License, and how to view a copy of this License.  If\r\nthe interface presents a list of user commands or options, such as a\r\nmenu, a prominent item in the list meets this criterion.\r\n\r\n  1. Source Code.\r\n\r\n  The \"source code\" for a work means the preferred form of the work\r\nfor making modifications to it.  \"Object code\" means any non-source\r\nform of a work.\r\n\r\n  A \"Standard Interface\" means an interface that either is an official\r\nstandard defined by a recognized standards body, or, in the case of\r\ninterfaces specified for a particular programming language, one that\r\nis widely used among developers working in that language.\r\n\r\n  The \"System Libraries\" of an executable work include anything, other\r\nthan the work as a whole, that (a) is included in the normal form of\r\npackaging a Major Component, but which is not part of that Major\r\nComponent, and (b) serves only to enable use of the work with that\r\nMajor Component, or to implement a Standard Interface for which an\r\nimplementation is available to the public in source code form.  A\r\n\"Major Component\", in this context, means a major essential component\r\n(kernel, window system, and so on) of the specific operating system\r\n(if any) on which the executable work runs, or a compiler used to\r\nproduce the work, or an object code interpreter used to run it.\r\n\r\n  The \"Corresponding Source\" for a work in object code form means all\r\nthe source code needed to generate, install, and (for an executable\r\nwork) run the object code and to modify the work, including scripts to\r\ncontrol those activities.  However, it does not include the work's\r\nSystem Libraries, or general-purpose tools or generally available free\r\nprograms which are used unmodified in performing those activities but\r\nwhich are not part of the work.  For example, Corresponding Source\r\nincludes interface definition files associated with source files for\r\nthe work, and the source code for shared libraries and dynamically\r\nlinked subprograms that the work is specifically designed to require,\r\nsuch as by intimate data communication or control flow between those\r\nsubprograms and other parts of the work.\r\n\r\n  The Corresponding Source need not include anything that users\r\ncan regenerate automatically from other parts of the Corresponding\r\nSource.\r\n\r\n  The Corresponding Source for a work in source code form is that\r\nsame work.\r\n\r\n  2. Basic Permissions.\r\n\r\n  All rights granted under this License are granted for the term of\r\ncopyright on the Program, and are irrevocable provided the stated\r\nconditions are met.  This License explicitly affirms your unlimited\r\npermission to run the unmodified Program.  The output from running a\r\ncovered work is covered by this License only if the output, given its\r\ncontent, constitutes a covered work.  This License acknowledges your\r\nrights of fair use or other equivalent, as provided by copyright law.\r\n\r\n  You may make, run and propagate covered works that you do not\r\nconvey, without conditions so long as your license otherwise remains\r\nin force.  You may convey covered works to others for the sole purpose\r\nof having them make modifications exclusively for you, or provide you\r\nwith facilities for running those works, provided that you comply with\r\nthe terms of this License in conveying all material for which you do\r\nnot control copyright.  Those thus making or running the covered works\r\nfor you must do so exclusively on your behalf, under your direction\r\nand control, on terms that prohibit them from making any copies of\r\nyour copyrighted material outside their relationship with you.\r\n\r\n  Conveying under any other circumstances is permitted solely under\r\nthe conditions stated below.  Sublicensing is not allowed; section 10\r\nmakes it unnecessary.\r\n\r\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\r\n\r\n  No covered work shall be deemed part of an effective technological\r\nmeasure under any applicable law fulfilling obligations under article\r\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\r\nsimilar laws prohibiting or restricting circumvention of such\r\nmeasures.\r\n\r\n  When you convey a covered work, you waive any legal power to forbid\r\ncircumvention of technological measures to the extent such circumvention\r\nis effected by exercising rights under this License with respect to\r\nthe covered work, and you disclaim any intention to limit operation or\r\nmodification of the work as a means of enforcing, against the work's\r\nusers, your or third parties' legal rights to forbid circumvention of\r\ntechnological measures.\r\n\r\n  4. Conveying Verbatim Copies.\r\n\r\n  You may convey verbatim copies of the Program's source code as you\r\nreceive it, in any medium, provided that you conspicuously and\r\nappropriately publish on each copy an appropriate copyright notice;\r\nkeep intact all notices stating that this License and any\r\nnon-permissive terms added in accord with section 7 apply to the code;\r\nkeep intact all notices of the absence of any warranty; and give all\r\nrecipients a copy of this License along with the Program.\r\n\r\n  You may charge any price or no price for each copy that you convey,\r\nand you may offer support or warranty protection for a fee.\r\n\r\n  5. Conveying Modified Source Versions.\r\n\r\n  You may convey a work based on the Program, or the modifications to\r\nproduce it from the Program, in the form of source code under the\r\nterms of section 4, provided that you also meet all of these conditions:\r\n\r\n    a) The work must carry prominent notices stating that you modified\r\n    it, and giving a relevant date.\r\n\r\n    b) The work must carry prominent notices stating that it is\r\n    released under this License and any conditions added under section\r\n    7.  This requirement modifies the requirement in section 4 to\r\n    \"keep intact all notices\".\r\n\r\n    c) You must license the entire work, as a whole, under this\r\n    License to anyone who comes into possession of a copy.  This\r\n    License will therefore apply, along with any applicable section 7\r\n    additional terms, to the whole of the work, and all its parts,\r\n    regardless of how they are packaged.  This License gives no\r\n    permission to license the work in any other way, but it does not\r\n    invalidate such permission if you have separately received it.\r\n\r\n    d) If the work has interactive user interfaces, each must display\r\n    Appropriate Legal Notices; however, if the Program has interactive\r\n    interfaces that do not display Appropriate Legal Notices, your\r\n    work need not make them do so.\r\n\r\n  A compilation of a covered work with other separate and independent\r\nworks, which are not by their nature extensions of the covered work,\r\nand which are not combined with it such as to form a larger program,\r\nin or on a volume of a storage or distribution medium, is called an\r\n\"aggregate\" if the compilation and its resulting copyright are not\r\nused to limit the access or legal rights of the compilation's users\r\nbeyond what the individual works permit.  Inclusion of a covered work\r\nin an aggregate does not cause this License to apply to the other\r\nparts of the aggregate.\r\n\r\n  6. Conveying Non-Source Forms.\r\n\r\n  You may convey a covered work in object code form under the terms\r\nof sections 4 and 5, provided that you also convey the\r\nmachine-readable Corresponding Source under the terms of this License,\r\nin one of these ways:\r\n\r\n    a) Convey the object code in, or embodied in, a physical product\r\n    (including a physical distribution medium), accompanied by the\r\n    Corresponding Source fixed on a durable physical medium\r\n    customarily used for software interchange.\r\n\r\n    b) Convey the object code in, or embodied in, a physical product\r\n    (including a physical distribution medium), accompanied by a\r\n    written offer, valid for at least three years and valid for as\r\n    long as you offer spare parts or customer support for that product\r\n    model, to give anyone who possesses the object code either (1) a\r\n    copy of the Corresponding Source for all the software in the\r\n    product that is covered by this License, on a durable physical\r\n    medium customarily used for software interchange, for a price no\r\n    more than your reasonable cost of physically performing this\r\n    conveying of source, or (2) access to copy the\r\n    Corresponding Source from a network server at no charge.\r\n\r\n    c) Convey individual copies of the object code with a copy of the\r\n    written offer to provide the Corresponding Source.  This\r\n    alternative is allowed only occasionally and noncommercially, and\r\n    only if you received the object code with such an offer, in accord\r\n    with subsection 6b.\r\n\r\n    d) Convey the object code by offering access from a designated\r\n    place (gratis or for a charge), and offer equivalent access to the\r\n    Corresponding Source in the same way through the same place at no\r\n    further charge.  You need not require recipients to copy the\r\n    Corresponding Source along with the object code.  If the place to\r\n    copy the object code is a network server, the Corresponding Source\r\n    may be on a different server (operated by you or a third party)\r\n    that supports equivalent copying facilities, provided you maintain\r\n    clear directions next to the object code saying where to find the\r\n    Corresponding Source.  Regardless of what server hosts the\r\n    Corresponding Source, you remain obligated to ensure that it is\r\n    available for as long as needed to satisfy these requirements.\r\n\r\n    e) Convey the object code using peer-to-peer transmission, provided\r\n    you inform other peers where the object code and Corresponding\r\n    Source of the work are being offered to the general public at no\r\n    charge under subsection 6d.\r\n\r\n  A separable portion of the object code, whose source code is excluded\r\nfrom the Corresponding Source as a System Library, need not be\r\nincluded in conveying the object code work.\r\n\r\n  A \"User Product\" is either (1) a \"consumer product\", which means any\r\ntangible personal property which is normally used for personal, family,\r\nor household purposes, or (2) anything designed or sold for incorporation\r\ninto a dwelling.  In determining whether a product is a consumer product,\r\ndoubtful cases shall be resolved in favor of coverage.  For a particular\r\nproduct received by a particular user, \"normally used\" refers to a\r\ntypical or common use of that class of product, regardless of the status\r\nof the particular user or of the way in which the particular user\r\nactually uses, or expects or is expected to use, the product.  A product\r\nis a consumer product regardless of whether the product has substantial\r\ncommercial, industrial or non-consumer uses, unless such uses represent\r\nthe only significant mode of use of the product.\r\n\r\n  \"Installation Information\" for a User Product means any methods,\r\nprocedures, authorization keys, or other information required to install\r\nand execute modified versions of a covered work in that User Product from\r\na modified version of its Corresponding Source.  The information must\r\nsuffice to ensure that the continued functioning of the modified object\r\ncode is in no case prevented or interfered with solely because\r\nmodification has been made.\r\n\r\n  If you convey an object code work under this section in, or with, or\r\nspecifically for use in, a User Product, and the conveying occurs as\r\npart of a transaction in which the right of possession and use of the\r\nUser Product is transferred to the recipient in perpetuity or for a\r\nfixed term (regardless of how the transaction is characterized), the\r\nCorresponding Source conveyed under this section must be accompanied\r\nby the Installation Information.  But this requirement does not apply\r\nif neither you nor any third party retains the ability to install\r\nmodified object code on the User Product (for example, the work has\r\nbeen installed in ROM).\r\n\r\n  The requirement to provide Installation Information does not include a\r\nrequirement to continue to provide support service, warranty, or updates\r\nfor a work that has been modified or installed by the recipient, or for\r\nthe User Product in which it has been modified or installed.  Access to a\r\nnetwork may be denied when the modification itself materially and\r\nadversely affects the operation of the network or violates the rules and\r\nprotocols for communication across the network.\r\n\r\n  Corresponding Source conveyed, and Installation Information provided,\r\nin accord with this section must be in a format that is publicly\r\ndocumented (and with an implementation available to the public in\r\nsource code form), and must require no special password or key for\r\nunpacking, reading or copying.\r\n\r\n  7. Additional Terms.\r\n\r\n  \"Additional permissions\" are terms that supplement the terms of this\r\nLicense by making exceptions from one or more of its conditions.\r\nAdditional permissions that are applicable to the entire Program shall\r\nbe treated as though they were included in this License, to the extent\r\nthat they are valid under applicable law.  If additional permissions\r\napply only to part of the Program, that part may be used separately\r\nunder those permissions, but the entire Program remains governed by\r\nthis License without regard to the additional permissions.\r\n\r\n  When you convey a copy of a covered work, you may at your option\r\nremove any additional permissions from that copy, or from any part of\r\nit.  (Additional permissions may be written to require their own\r\nremoval in certain cases when you modify the work.)  You may place\r\nadditional permissions on material, added by you to a covered work,\r\nfor which you have or can give appropriate copyright permission.\r\n\r\n  Notwithstanding any other provision of this License, for material you\r\nadd to a covered work, you may (if authorized by the copyright holders of\r\nthat material) supplement the terms of this License with terms:\r\n\r\n    a) Disclaiming warranty or limiting liability differently from the\r\n    terms of sections 15 and 16 of this License; or\r\n\r\n    b) Requiring preservation of specified reasonable legal notices or\r\n    author attributions in that material or in the Appropriate Legal\r\n    Notices displayed by works containing it; or\r\n\r\n    c) Prohibiting misrepresentation of the origin of that material, or\r\n    requiring that modified versions of such material be marked in\r\n    reasonable ways as different from the original version; or\r\n\r\n    d) Limiting the use for publicity purposes of names of licensors or\r\n    authors of the material; or\r\n\r\n    e) Declining to grant rights under trademark law for use of some\r\n    trade names, trademarks, or service marks; or\r\n\r\n    f) Requiring indemnification of licensors and authors of that\r\n    material by anyone who conveys the material (or modified versions of\r\n    it) with contractual assumptions of liability to the recipient, for\r\n    any liability that these contractual assumptions directly impose on\r\n    those licensors and authors.\r\n\r\n  All other non-permissive additional terms are considered \"further\r\nrestrictions\" within the meaning of section 10.  If the Program as you\r\nreceived it, or any part of it, contains a notice stating that it is\r\ngoverned by this License along with a term that is a further\r\nrestriction, you may remove that term.  If a license document contains\r\na further restriction but permits relicensing or conveying under this\r\nLicense, you may add to a covered work material governed by the terms\r\nof that license document, provided that the further restriction does\r\nnot survive such relicensing or conveying.\r\n\r\n  If you add terms to a covered work in accord with this section, you\r\nmust place, in the relevant source files, a statement of the\r\nadditional terms that apply to those files, or a notice indicating\r\nwhere to find the applicable terms.\r\n\r\n  Additional terms, permissive or non-permissive, may be stated in the\r\nform of a separately written license, or stated as exceptions;\r\nthe above requirements apply either way.\r\n\r\n  8. Termination.\r\n\r\n  You may not propagate or modify a covered work except as expressly\r\nprovided under this License.  Any attempt otherwise to propagate or\r\nmodify it is void, and will automatically terminate your rights under\r\nthis License (including any patent licenses granted under the third\r\nparagraph of section 11).\r\n\r\n  However, if you cease all violation of this License, then your\r\nlicense from a particular copyright holder is reinstated (a)\r\nprovisionally, unless and until the copyright holder explicitly and\r\nfinally terminates your license, and (b) permanently, if the copyright\r\nholder fails to notify you of the violation by some reasonable means\r\nprior to 60 days after the cessation.\r\n\r\n  Moreover, your license from a particular copyright holder is\r\nreinstated permanently if the copyright holder notifies you of the\r\nviolation by some reasonable means, this is the first time you have\r\nreceived notice of violation of this License (for any work) from that\r\ncopyright holder, and you cure the violation prior to 30 days after\r\nyour receipt of the notice.\r\n\r\n  Termination of your rights under this section does not terminate the\r\nlicenses of parties who have received copies or rights from you under\r\nthis License.  If your rights have been terminated and not permanently\r\nreinstated, you do not qualify to receive new licenses for the same\r\nmaterial under section 10.\r\n\r\n  9. Acceptance Not Required for Having Copies.\r\n\r\n  You are not required to accept this License in order to receive or\r\nrun a copy of the Program.  Ancillary propagation of a covered work\r\noccurring solely as a consequence of using peer-to-peer transmission\r\nto receive a copy likewise does not require acceptance.  However,\r\nnothing other than this License grants you permission to propagate or\r\nmodify any covered work.  These actions infringe copyright if you do\r\nnot accept this License.  Therefore, by modifying or propagating a\r\ncovered work, you indicate your acceptance of this License to do so.\r\n\r\n  10. Automatic Licensing of Downstream Recipients.\r\n\r\n  Each time you convey a covered work, the recipient automatically\r\nreceives a license from the original licensors, to run, modify and\r\npropagate that work, subject to this License.  You are not responsible\r\nfor enforcing compliance by third parties with this License.\r\n\r\n  An \"entity transaction\" is a transaction transferring control of an\r\norganization, or substantially all assets of one, or subdividing an\r\norganization, or merging organizations.  If propagation of a covered\r\nwork results from an entity transaction, each party to that\r\ntransaction who receives a copy of the work also receives whatever\r\nlicenses to the work the party's predecessor in interest had or could\r\ngive under the previous paragraph, plus a right to possession of the\r\nCorresponding Source of the work from the predecessor in interest, if\r\nthe predecessor has it or can get it with reasonable efforts.\r\n\r\n  You may not impose any further restrictions on the exercise of the\r\nrights granted or affirmed under this License.  For example, you may\r\nnot impose a license fee, royalty, or other charge for exercise of\r\nrights granted under this License, and you may not initiate litigation\r\n(including a cross-claim or counterclaim in a lawsuit) alleging that\r\nany patent claim is infringed by making, using, selling, offering for\r\nsale, or importing the Program or any portion of it.\r\n\r\n  11. Patents.\r\n\r\n  A \"contributor\" is a copyright holder who authorizes use under this\r\nLicense of the Program or a work on which the Program is based.  The\r\nwork thus licensed is called the contributor's \"contributor version\".\r\n\r\n  A contributor's \"essential patent claims\" are all patent claims\r\nowned or controlled by the contributor, whether already acquired or\r\nhereafter acquired, that would be infringed by some manner, permitted\r\nby this License, of making, using, or selling its contributor version,\r\nbut do not include claims that would be infringed only as a\r\nconsequence of further modification of the contributor version.  For\r\npurposes of this definition, \"control\" includes the right to grant\r\npatent sublicenses in a manner consistent with the requirements of\r\nthis License.\r\n\r\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\r\npatent license under the contributor's essential patent claims, to\r\nmake, use, sell, offer for sale, import and otherwise run, modify and\r\npropagate the contents of its contributor version.\r\n\r\n  In the following three paragraphs, a \"patent license\" is any express\r\nagreement or commitment, however denominated, not to enforce a patent\r\n(such as an express permission to practice a patent or covenant not to\r\nsue for patent infringement).  To \"grant\" such a patent license to a\r\nparty means to make such an agreement or commitment not to enforce a\r\npatent against the party.\r\n\r\n  If you convey a covered work, knowingly relying on a patent license,\r\nand the Corresponding Source of the work is not available for anyone\r\nto copy, free of charge and under the terms of this License, through a\r\npublicly available network server or other readily accessible means,\r\nthen you must either (1) cause the Corresponding Source to be so\r\navailable, or (2) arrange to deprive yourself of the benefit of the\r\npatent license for this particular work, or (3) arrange, in a manner\r\nconsistent with the requirements of this License, to extend the patent\r\nlicense to downstream recipients.  \"Knowingly relying\" means you have\r\nactual knowledge that, but for the patent license, your conveying the\r\ncovered work in a country, or your recipient's use of the covered work\r\nin a country, would infringe one or more identifiable patents in that\r\ncountry that you have reason to believe are valid.\r\n\r\n  If, pursuant to or in connection with a single transaction or\r\narrangement, you convey, or propagate by procuring conveyance of, a\r\ncovered work, and grant a patent license to some of the parties\r\nreceiving the covered work authorizing them to use, propagate, modify\r\nor convey a specific copy of the covered work, then the patent license\r\nyou grant is automatically extended to all recipients of the covered\r\nwork and works based on it.\r\n\r\n  A patent license is \"discriminatory\" if it does not include within\r\nthe scope of its coverage, prohibits the exercise of, or is\r\nconditioned on the non-exercise of one or more of the rights that are\r\nspecifically granted under this License.  You may not convey a covered\r\nwork if you are a party to an arrangement with a third party that is\r\nin the business of distributing software, under which you make payment\r\nto the third party based on the extent of your activity of conveying\r\nthe work, and under which the third party grants, to any of the\r\nparties who would receive the covered work from you, a discriminatory\r\npatent license (a) in connection with copies of the covered work\r\nconveyed by you (or copies made from those copies), or (b) primarily\r\nfor and in connection with specific products or compilations that\r\ncontain the covered work, unless you entered into that arrangement,\r\nor that patent license was granted, prior to 28 March 2007.\r\n\r\n  Nothing in this License shall be construed as excluding or limiting\r\nany implied license or other defenses to infringement that may\r\notherwise be available to you under applicable patent law.\r\n\r\n  12. No Surrender of Others' Freedom.\r\n\r\n  If conditions are imposed on you (whether by court order, agreement or\r\notherwise) that contradict the conditions of this License, they do not\r\nexcuse you from the conditions of this License.  If you cannot convey a\r\ncovered work so as to satisfy simultaneously your obligations under this\r\nLicense and any other pertinent obligations, then as a consequence you may\r\nnot convey it at all.  For example, if you agree to terms that obligate you\r\nto collect a royalty for further conveying from those to whom you convey\r\nthe Program, the only way you could satisfy both those terms and this\r\nLicense would be to refrain entirely from conveying the Program.\r\n\r\n  13. Use with the GNU Affero General Public License.\r\n\r\n  Notwithstanding any other provision of this License, you have\r\npermission to link or combine any covered work with a work licensed\r\nunder version 3 of the GNU Affero General Public License into a single\r\ncombined work, and to convey the resulting work.  The terms of this\r\nLicense will continue to apply to the part which is the covered work,\r\nbut the special requirements of the GNU Affero General Public License,\r\nsection 13, concerning interaction through a network will apply to the\r\ncombination as such.\r\n\r\n  14. Revised Versions of this License.\r\n\r\n  The Free Software Foundation may publish revised and/or new versions of\r\nthe GNU General Public License from time to time.  Such new versions will\r\nbe similar in spirit to the present version, but may differ in detail to\r\naddress new problems or concerns.\r\n\r\n  Each version is given a distinguishing version number.  If the\r\nProgram specifies that a certain numbered version of the GNU General\r\nPublic License \"or any later version\" applies to it, you have the\r\noption of following the terms and conditions either of that numbered\r\nversion or of any later version published by the Free Software\r\nFoundation.  If the Program does not specify a version number of the\r\nGNU General Public License, you may choose any version ever published\r\nby the Free Software Foundation.\r\n\r\n  If the Program specifies that a proxy can decide which future\r\nversions of the GNU General Public License can be used, that proxy's\r\npublic statement of acceptance of a version permanently authorizes you\r\nto choose that version for the Program.\r\n\r\n  Later license versions may give you additional or different\r\npermissions.  However, no additional obligations are imposed on any\r\nauthor or copyright holder as a result of your choosing to follow a\r\nlater version.\r\n\r\n  15. Disclaimer of Warranty.\r\n\r\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\r\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\r\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\r\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\r\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\r\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\r\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\r\n\r\n  16. Limitation of Liability.\r\n\r\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\r\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\r\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\r\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\r\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\r\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\r\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\r\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\r\nSUCH DAMAGES.\r\n\r\n  17. Interpretation of Sections 15 and 16.\r\n\r\n  If the disclaimer of warranty and limitation of liability provided\r\nabove cannot be given local legal effect according to their terms,\r\nreviewing courts shall apply local law that most closely approximates\r\nan absolute waiver of all civil liability in connection with the\r\nProgram, unless a warranty or assumption of liability accompanies a\r\ncopy of the Program in return for a fee.\r\n\r\n                     END OF TERMS AND CONDITIONS\r\n\r\n            How to Apply These Terms to Your New Programs\r\n\r\n  If you develop a new program, and you want it to be of the greatest\r\npossible use to the public, the best way to achieve this is to make it\r\nfree software which everyone can redistribute and change under these terms.\r\n\r\n  To do so, attach the following notices to the program.  It is safest\r\nto attach them to the start of each source file to most effectively\r\nstate the exclusion of warranty; and each file should have at least\r\nthe \"copyright\" line and a pointer to where the full notice is found.\r\n\r\n    <one line to give the program's name and a brief idea of what it does.>\r\n    Copyright (C) <year>  <name of author>\r\n\r\n    This program is free software: you can redistribute it and/or modify\r\n    it under the terms of the GNU General Public License as published by\r\n    the Free Software Foundation, either version 3 of the License, or\r\n    (at your option) any later version.\r\n\r\n    This program is distributed in the hope that it will be useful,\r\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n    GNU General Public License for more details.\r\n\r\n    You should have received a copy of the GNU General Public License\r\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\r\n\r\nAlso add information on how to contact you by electronic and paper mail.\r\n\r\n  If the program does terminal interaction, make it output a short\r\nnotice like this when it starts in an interactive mode:\r\n\r\n    <program>  Copyright (C) <year>  <name of author>\r\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\r\n    This is free software, and you are welcome to redistribute it\r\n    under certain conditions; type `show c' for details.\r\n\r\nThe hypothetical commands `show w' and `show c' should show the appropriate\r\nparts of the General Public License.  Of course, your program's commands\r\nmight be different; for a GUI interface, you would use an \"about box\".\r\n\r\n  You should also get your employer (if you work as a programmer) or school,\r\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\r\nFor more information on this, and how to apply and follow the GNU GPL, see\r\n<http://www.gnu.org/licenses/>.\r\n\r\n  The GNU General Public License does not permit incorporating your program\r\ninto proprietary programs.  If your program is a subroutine library, you\r\nmay consider it more useful to permit linking proprietary applications with\r\nthe library.  If this is what you want to do, use the GNU Lesser General\r\nPublic License instead of this License.  But first, please read\r\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\r\n"
  },
  {
    "path": "bin/Readme.txt",
    "content": "Mem Reduct\r\n\r\nDescription:\r\nLightweight real-time memory management application to monitor\r\nand clean system memory on your computer.\r\n\r\nThe program used undocumented internal system features (Native API) to clear\r\nsystem cache (system working set, working set, standby page lists, modified page\r\nlists) with variable result ~10-50%. Application it is compatible with Windows XP SP3 and\r\nhigher operating systems, but some general features available only since Windows Vista.\r\n\r\nSystem requirements:\r\n- Windows 7, 8, 8.1, 10, 11 64-bit/ARM64\r\n- An SSE2-capable CPU\r\n\r\nTo activate portable mode, create \"memreduct.ini\" in application folder, or move it from \"%APPDATA%\\Henry++\\Mem Reduct\".\r\n\r\nWebsite: https://github.com/henrypp\r\nSupport: sforce5@mail.ru\r\n\r\n(c) 2011-2026 Henry++\r\n"
  },
  {
    "path": "build.bat",
    "content": "@echo off\r\n\r\ncd ..\\builder\r\ncall build memreduct 3.5.3 \"Mem Reduct\"\r\n\r\npause\r\n"
  },
  {
    "path": "build_locale.bat",
    "content": "@echo off\r\n\r\ncd ..\\builder\r\ncall build_locale memreduct\r\n\r\npause\r\n"
  },
  {
    "path": "build_vc.bat",
    "content": "@echo off\n@setlocal enableextensions\nrem @cd /d \"%~dp0\\..\\\"\n\nrem VS 2026\n\nif exist \"%ProgramFiles%\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat\" (\n\tcall \"%ProgramFiles%\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat\" amd64_arm64\n\tgoto start\n)\n\nif exist \"%ProgramFiles%\\Microsoft Visual Studio\\18\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat\" (\n\tcall \"%ProgramFiles%\\Microsoft Visual Studio\\18\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat\" amd64_arm64\n\tgoto start\n)\n\necho VS 2026 was not found...\n\ngoto end\n\n:start\n\nmsbuild memreduct.sln -property:Configuration=Release -property:Platform=x86 -verbosity:normal\nif %ERRORLEVEL% neq 0 goto end\n\nmsbuild memreduct.sln -property:Configuration=Release -property:Platform=x64 -verbosity:normal\nif %ERRORLEVEL% neq 0 goto end\n\nmsbuild memreduct.sln -property:Configuration=Release -property:Platform=ARM64 -verbosity:normal\nif %ERRORLEVEL% neq 0 goto end\n\n:end\n\necho done...\n\npause\n"
  },
  {
    "path": "memreduct.sln",
    "content": "﻿\r\nMicrosoft Visual Studio Solution File, Format Version 12.00\r\n# Visual Studio Version 17\r\nVisualStudioVersion = 17.0.31903.59\r\nMinimumVisualStudioVersion = 10.0.40219.1\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"memreduct\", \"memreduct.vcxproj\", \"{7FB76828-A353-4113-82D7-CD728EED81DF}\"\r\nEndProject\r\nGlobal\r\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\r\n\t\tDebug|ARM64 = Debug|ARM64\r\n\t\tDebug|x64 = Debug|x64\r\n\t\tDebug|x86 = Debug|x86\r\n\t\tRelease|ARM64 = Release|ARM64\r\n\t\tRelease|x64 = Release|x64\r\n\t\tRelease|x86 = Release|x86\r\n\tEndGlobalSection\r\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Debug|ARM64.ActiveCfg = Debug|ARM64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Debug|ARM64.Build.0 = Debug|ARM64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Debug|x64.ActiveCfg = Debug|x64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Debug|x64.Build.0 = Debug|x64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Debug|x86.ActiveCfg = Debug|Win32\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Debug|x86.Build.0 = Debug|Win32\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Release|ARM64.ActiveCfg = Release|ARM64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Release|ARM64.Build.0 = Release|ARM64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Release|x64.ActiveCfg = Release|x64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Release|x64.Build.0 = Release|x64\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Release|x86.ActiveCfg = Release|Win32\r\n\t\t{7FB76828-A353-4113-82D7-CD728EED81DF}.Release|x86.Build.0 = Release|Win32\r\n\tEndGlobalSection\r\n\tGlobalSection(SolutionProperties) = preSolution\r\n\t\tHideSolutionNode = FALSE\r\n\tEndGlobalSection\r\n\tGlobalSection(ExtensibilityGlobals) = postSolution\r\n\t\tSolutionGuid = {16BA10E8-DF2A-45BB-B676-2F73AD51107A}\r\n\tEndGlobalSection\r\nEndGlobal\r\n"
  },
  {
    "path": "memreduct.vcxproj",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Project DefaultTargets=\"Build\" ToolsVersion=\"15.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\r\n  <ItemGroup Label=\"ProjectConfigurations\">\r\n    <ProjectConfiguration Include=\"Debug|ARM64\">\r\n      <Configuration>Debug</Configuration>\r\n      <Platform>ARM64</Platform>\r\n    </ProjectConfiguration>\r\n    <ProjectConfiguration Include=\"Debug|Win32\">\r\n      <Configuration>Debug</Configuration>\r\n      <Platform>Win32</Platform>\r\n    </ProjectConfiguration>\r\n    <ProjectConfiguration Include=\"Release|ARM64\">\r\n      <Configuration>Release</Configuration>\r\n      <Platform>ARM64</Platform>\r\n    </ProjectConfiguration>\r\n    <ProjectConfiguration Include=\"Release|Win32\">\r\n      <Configuration>Release</Configuration>\r\n      <Platform>Win32</Platform>\r\n    </ProjectConfiguration>\r\n    <ProjectConfiguration Include=\"Debug|x64\">\r\n      <Configuration>Debug</Configuration>\r\n      <Platform>x64</Platform>\r\n    </ProjectConfiguration>\r\n    <ProjectConfiguration Include=\"Release|x64\">\r\n      <Configuration>Release</Configuration>\r\n      <Platform>x64</Platform>\r\n    </ProjectConfiguration>\r\n  </ItemGroup>\r\n  <PropertyGroup Label=\"Globals\">\r\n    <ProjectGuid>{7FB76828-A353-4113-82D7-CD728EED81DF}</ProjectGuid>\r\n    <RootNamespace>memreduct</RootNamespace>\r\n    <ProjectName>memreduct</ProjectName>\r\n  </PropertyGroup>\r\n  <Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.Default.props\" />\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\" Label=\"Configuration\">\r\n    <ConfigurationType>Application</ConfigurationType>\r\n    <CharacterSet>Unicode</CharacterSet>\r\n    <PlatformToolset>v145</PlatformToolset>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|Win32'\" Label=\"Configuration\">\r\n    <ConfigurationType>Application</ConfigurationType>\r\n    <WholeProgramOptimization>true</WholeProgramOptimization>\r\n    <CharacterSet>Unicode</CharacterSet>\r\n    <PlatformToolset>v145</PlatformToolset>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|x64'\" Label=\"Configuration\">\r\n    <ConfigurationType>Application</ConfigurationType>\r\n    <UseDebugLibraries>true</UseDebugLibraries>\r\n    <CharacterSet>Unicode</CharacterSet>\r\n    <PlatformToolset>v145</PlatformToolset>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|ARM64'\" Label=\"Configuration\">\r\n    <ConfigurationType>Application</ConfigurationType>\r\n    <UseDebugLibraries>true</UseDebugLibraries>\r\n    <CharacterSet>Unicode</CharacterSet>\r\n    <PlatformToolset>v145</PlatformToolset>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|x64'\" Label=\"Configuration\">\r\n    <ConfigurationType>Application</ConfigurationType>\r\n    <WholeProgramOptimization>true</WholeProgramOptimization>\r\n    <CharacterSet>Unicode</CharacterSet>\r\n    <PlatformToolset>v145</PlatformToolset>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|ARM64'\" Label=\"Configuration\">\r\n    <ConfigurationType>Application</ConfigurationType>\r\n    <WholeProgramOptimization>true</WholeProgramOptimization>\r\n    <CharacterSet>Unicode</CharacterSet>\r\n    <PlatformToolset>v145</PlatformToolset>\r\n  </PropertyGroup>\r\n  <Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.props\" />\r\n  <ImportGroup Label=\"ExtensionSettings\">\r\n  </ImportGroup>\r\n  <ImportGroup Label=\"Shared\">\r\n  </ImportGroup>\r\n  <ImportGroup Label=\"PropertySheets\" Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\">\r\n    <Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\r\n  </ImportGroup>\r\n  <ImportGroup Label=\"PropertySheets\" Condition=\"'$(Configuration)|$(Platform)'=='Release|Win32'\">\r\n    <Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\r\n  </ImportGroup>\r\n  <ImportGroup Label=\"PropertySheets\" Condition=\"'$(Configuration)|$(Platform)'=='Debug|x64'\">\r\n    <Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\r\n  </ImportGroup>\r\n  <ImportGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|ARM64'\" Label=\"PropertySheets\">\r\n    <Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\r\n  </ImportGroup>\r\n  <ImportGroup Label=\"PropertySheets\" Condition=\"'$(Configuration)|$(Platform)'=='Release|x64'\">\r\n    <Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\r\n  </ImportGroup>\r\n  <ImportGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|ARM64'\" Label=\"PropertySheets\">\r\n    <Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\r\n  </ImportGroup>\r\n  <PropertyGroup Label=\"UserMacros\" />\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\">\r\n    <OutDir>$(SolutionDir)bin\\$(PlatformArchitecture)\\</OutDir>\r\n    <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);.\\..\\routine\\src\\;.\\src\\include\\;.\\src\\</IncludePath>\r\n    <GenerateManifest>false</GenerateManifest>\r\n    <IntDir>$(Platform)\\$(Configuration)\\$(ProjectName)\\</IntDir>\r\n    <CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|Win32'\">\r\n    <OutDir>$(SolutionDir)bin\\$(PlatformArchitecture)\\</OutDir>\r\n    <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);.\\..\\routine\\src\\;.\\src\\include\\;.\\src\\</IncludePath>\r\n    <GenerateManifest>false</GenerateManifest>\r\n    <IntDir>$(Platform)\\$(Configuration)\\$(ProjectName)\\</IntDir>\r\n    <CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|x64'\">\r\n    <OutDir>$(SolutionDir)bin\\$(PlatformArchitecture)\\</OutDir>\r\n    <TargetName>$(ProjectName)</TargetName>\r\n    <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);.\\..\\routine\\src\\;.\\src\\include\\;.\\src\\</IncludePath>\r\n    <GenerateManifest>false</GenerateManifest>\r\n    <IntDir>$(Platform)\\$(Configuration)\\$(ProjectName)\\</IntDir>\r\n    <CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|ARM64'\">\r\n    <TargetName>$(ProjectName)</TargetName>\r\n    <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);.\\..\\routine\\src\\;.\\src\\include\\;.\\src\\</IncludePath>\r\n    <GenerateManifest>false</GenerateManifest>\r\n    <IntDir>$(Platform)\\$(Configuration)\\$(ProjectName)\\</IntDir>\r\n    <CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>\r\n    <OutDir>$(SolutionDir)bin\\$(PlatformArchitecture)\\</OutDir>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|x64'\">\r\n    <OutDir>$(SolutionDir)bin\\$(PlatformArchitecture)\\</OutDir>\r\n    <TargetName>$(ProjectName)</TargetName>\r\n    <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);.\\..\\routine\\src\\;.\\src\\include\\;.\\src\\</IncludePath>\r\n    <GenerateManifest>false</GenerateManifest>\r\n    <IntDir>$(Platform)\\$(Configuration)\\$(ProjectName)\\</IntDir>\r\n    <CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>\r\n  </PropertyGroup>\r\n  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|ARM64'\">\r\n    <TargetName>$(ProjectName)</TargetName>\r\n    <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);.\\..\\routine\\src\\;.\\src\\include\\;.\\src\\</IncludePath>\r\n    <GenerateManifest>false</GenerateManifest>\r\n    <IntDir>$(Platform)\\$(Configuration)\\$(ProjectName)\\</IntDir>\r\n    <CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>\r\n    <OutDir>$(SolutionDir)bin\\$(PlatformArchitecture)\\</OutDir>\r\n  </PropertyGroup>\r\n  <ItemDefinitionGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\">\r\n    <ClCompile>\r\n      <WarningLevel>Level3</WarningLevel>\r\n      <StringPooling>true</StringPooling>\r\n      <CallingConvention>StdCall</CallingConvention>\r\n      <IntrinsicFunctions>true</IntrinsicFunctions>\r\n      <ControlFlowGuard>Guard</ControlFlowGuard>\r\n      <FunctionLevelLinking>true</FunctionLevelLinking>\r\n      <PreprocessorDefinitions>MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS;_UNICODE;UNICODE;WIN32_LEAN_AND_MEAN;APP_HAVE_AUTORUN;APP_HAVE_SKIPUAC;APP_HAVE_TRAY;APP_HAVE_UPDATES;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\r\n      <TreatWarningAsError>true</TreatWarningAsError>\r\n      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r\n      <MultiProcessorCompilation>true</MultiProcessorCompilation>\r\n      <LanguageStandard>stdcpplatest</LanguageStandard>\r\n      <IntelJCCErratum>true</IntelJCCErratum>\r\n      <SDLCheck>true</SDLCheck>\r\n      <LanguageStandard_C>stdclatest</LanguageStandard_C>\r\n      <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>\r\n      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>\r\n      <OmitFramePointers>true</OmitFramePointers>\r\n      <ConformanceMode>true</ConformanceMode>\r\n      <UseStandardPreprocessor>true</UseStandardPreprocessor>\r\n    </ClCompile>\r\n    <Link>\r\n      <GenerateDebugInformation>true</GenerateDebugInformation>\r\n      <OptimizeReferences>true</OptimizeReferences>\r\n      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r\n      <SubSystem>Windows</SubSystem>\r\n      <MinimumRequiredVersion>6.1</MinimumRequiredVersion>\r\n      <AdditionalOptions>/DEPENDENTLOADFLAG:0x800 /BREPRO %(AdditionalOptions)</AdditionalOptions>\r\n      <CETCompat>true</CETCompat>\r\n    </Link>\r\n  </ItemDefinitionGroup>\r\n  <ItemDefinitionGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|x64'\">\r\n    <ClCompile>\r\n      <WarningLevel>Level3</WarningLevel>\r\n      <StringPooling>true</StringPooling>\r\n      <CallingConvention>StdCall</CallingConvention>\r\n      <IntrinsicFunctions>true</IntrinsicFunctions>\r\n      <ControlFlowGuard>Guard</ControlFlowGuard>\r\n      <FunctionLevelLinking>true</FunctionLevelLinking>\r\n      <PreprocessorDefinitions>MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS;_UNICODE;UNICODE;WIN32_LEAN_AND_MEAN;APP_HAVE_AUTORUN;APP_HAVE_SKIPUAC;APP_HAVE_TRAY;APP_HAVE_UPDATES;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\r\n      <TreatWarningAsError>true</TreatWarningAsError>\r\n      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r\n      <MultiProcessorCompilation>true</MultiProcessorCompilation>\r\n      <LanguageStandard>stdcpplatest</LanguageStandard>\r\n      <IntelJCCErratum>true</IntelJCCErratum>\r\n      <SDLCheck>true</SDLCheck>\r\n      <LanguageStandard_C>stdclatest</LanguageStandard_C>\r\n      <GuardEHContMetadata>true</GuardEHContMetadata>\r\n      <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>\r\n      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>\r\n      <OmitFramePointers>true</OmitFramePointers>\r\n      <ConformanceMode>true</ConformanceMode>\r\n      <UseStandardPreprocessor>true</UseStandardPreprocessor>\r\n    </ClCompile>\r\n    <Link>\r\n      <GenerateDebugInformation>true</GenerateDebugInformation>\r\n      <OptimizeReferences>true</OptimizeReferences>\r\n      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r\n      <SubSystem>Windows</SubSystem>\r\n      <AdditionalOptions>/DEPENDENTLOADFLAG:0x800 /BREPRO %(AdditionalOptions)</AdditionalOptions>\r\n      <MinimumRequiredVersion>6.1</MinimumRequiredVersion>\r\n      <CETCompat>true</CETCompat>\r\n    </Link>\r\n    <ResourceCompile>\r\n      <PreprocessorDefinitions>_UNICODE;UNICODE;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n    </ResourceCompile>\r\n  </ItemDefinitionGroup>\r\n  <ItemDefinitionGroup Condition=\"'$(Configuration)|$(Platform)'=='Debug|ARM64'\">\r\n    <ClCompile>\r\n      <WarningLevel>Level3</WarningLevel>\r\n      <StringPooling>true</StringPooling>\r\n      <IntrinsicFunctions>true</IntrinsicFunctions>\r\n      <ControlFlowGuard>Guard</ControlFlowGuard>\r\n      <FunctionLevelLinking>true</FunctionLevelLinking>\r\n      <PreprocessorDefinitions>MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS;_UNICODE;UNICODE;WIN32_LEAN_AND_MEAN;APP_HAVE_AUTORUN;APP_HAVE_SKIPUAC;APP_HAVE_TRAY;APP_HAVE_UPDATES;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\r\n      <TreatWarningAsError>true</TreatWarningAsError>\r\n      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r\n      <MultiProcessorCompilation>true</MultiProcessorCompilation>\r\n      <LanguageStandard>stdcpplatest</LanguageStandard>\r\n      <SDLCheck>true</SDLCheck>\r\n      <LanguageStandard_C>stdclatest</LanguageStandard_C>\r\n      <GuardEHContMetadata>true</GuardEHContMetadata>\r\n      <GuardSignedReturns>true</GuardSignedReturns>\r\n      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>\r\n      <ConformanceMode>true</ConformanceMode>\r\n      <UseStandardPreprocessor>true</UseStandardPreprocessor>\r\n    </ClCompile>\r\n    <Link>\r\n      <GenerateDebugInformation>true</GenerateDebugInformation>\r\n      <OptimizeReferences>true</OptimizeReferences>\r\n      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r\n      <SubSystem>Windows</SubSystem>\r\n      <AdditionalOptions>/DEPENDENTLOADFLAG:0x800 /BREPRO %(AdditionalOptions)</AdditionalOptions>\r\n      <MinimumRequiredVersion>10.0</MinimumRequiredVersion>\r\n    </Link>\r\n    <ResourceCompile>\r\n      <PreprocessorDefinitions>_UNICODE;UNICODE;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n    </ResourceCompile>\r\n  </ItemDefinitionGroup>\r\n  <ItemDefinitionGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|Win32'\">\r\n    <ClCompile>\r\n      <WarningLevel>Level3</WarningLevel>\r\n      <Optimization>MaxSpeed</Optimization>\r\n      <FunctionLevelLinking>true</FunctionLevelLinking>\r\n      <IntrinsicFunctions>true</IntrinsicFunctions>\r\n      <ControlFlowGuard>Guard</ControlFlowGuard>\r\n      <StringPooling>true</StringPooling>\r\n      <CallingConvention>StdCall</CallingConvention>\r\n      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r\n      <PreprocessorDefinitions>MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS;_UNICODE;UNICODE;WIN32_LEAN_AND_MEAN;APP_HAVE_AUTORUN;APP_HAVE_SKIPUAC;APP_HAVE_TRAY;APP_HAVE_UPDATES;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n      <EnableParallelCodeGeneration>\r\n      </EnableParallelCodeGeneration>\r\n      <TreatWarningAsError>true</TreatWarningAsError>\r\n      <MultiProcessorCompilation>true</MultiProcessorCompilation>\r\n      <LanguageStandard>stdcpplatest</LanguageStandard>\r\n      <IntelJCCErratum>true</IntelJCCErratum>\r\n      <SDLCheck>true</SDLCheck>\r\n      <LanguageStandard_C>stdclatest</LanguageStandard_C>\r\n      <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>\r\n      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>\r\n      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>\r\n      <OmitFramePointers>true</OmitFramePointers>\r\n      <ConformanceMode>true</ConformanceMode>\r\n      <UseStandardPreprocessor>true</UseStandardPreprocessor>\r\n    </ClCompile>\r\n    <Link>\r\n      <GenerateDebugInformation>true</GenerateDebugInformation>\r\n      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r\n      <OptimizeReferences>true</OptimizeReferences>\r\n      <SetChecksum>true</SetChecksum>\r\n      <SubSystem>Windows</SubSystem>\r\n      <MinimumRequiredVersion>6.1</MinimumRequiredVersion>\r\n      <AdditionalOptions>/DEPENDENTLOADFLAG:0x800 /BREPRO %(AdditionalOptions)</AdditionalOptions>\r\n      <CETCompat>true</CETCompat>\r\n      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>\r\n    </Link>\r\n  </ItemDefinitionGroup>\r\n  <ItemDefinitionGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|x64'\">\r\n    <ClCompile>\r\n      <WarningLevel>Level3</WarningLevel>\r\n      <Optimization>MaxSpeed</Optimization>\r\n      <FunctionLevelLinking>true</FunctionLevelLinking>\r\n      <IntrinsicFunctions>true</IntrinsicFunctions>\r\n      <ControlFlowGuard>Guard</ControlFlowGuard>\r\n      <StringPooling>true</StringPooling>\r\n      <CallingConvention>StdCall</CallingConvention>\r\n      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r\n      <PreprocessorDefinitions>MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS;_UNICODE;UNICODE;WIN32_LEAN_AND_MEAN;APP_HAVE_AUTORUN;APP_HAVE_SKIPUAC;APP_HAVE_TRAY;APP_HAVE_UPDATES;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n      <EnableParallelCodeGeneration>\r\n      </EnableParallelCodeGeneration>\r\n      <TreatWarningAsError>true</TreatWarningAsError>\r\n      <MultiProcessorCompilation>true</MultiProcessorCompilation>\r\n      <LanguageStandard>stdcpplatest</LanguageStandard>\r\n      <IntelJCCErratum>true</IntelJCCErratum>\r\n      <SDLCheck>true</SDLCheck>\r\n      <LanguageStandard_C>stdclatest</LanguageStandard_C>\r\n      <GuardEHContMetadata>true</GuardEHContMetadata>\r\n      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>\r\n      <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>\r\n      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>\r\n      <OmitFramePointers>true</OmitFramePointers>\r\n      <ConformanceMode>true</ConformanceMode>\r\n      <UseStandardPreprocessor>true</UseStandardPreprocessor>\r\n    </ClCompile>\r\n    <Link>\r\n      <GenerateDebugInformation>true</GenerateDebugInformation>\r\n      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r\n      <OptimizeReferences>true</OptimizeReferences>\r\n      <SetChecksum>true</SetChecksum>\r\n      <SubSystem>Windows</SubSystem>\r\n      <AdditionalOptions>/DEPENDENTLOADFLAG:0x800 /BREPRO %(AdditionalOptions)</AdditionalOptions>\r\n      <MinimumRequiredVersion>6.1</MinimumRequiredVersion>\r\n      <CETCompat>true</CETCompat>\r\n      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>\r\n    </Link>\r\n    <ResourceCompile>\r\n      <PreprocessorDefinitions>_UNICODE;UNICODE;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n    </ResourceCompile>\r\n  </ItemDefinitionGroup>\r\n  <ItemDefinitionGroup Condition=\"'$(Configuration)|$(Platform)'=='Release|ARM64'\">\r\n    <ClCompile>\r\n      <WarningLevel>Level3</WarningLevel>\r\n      <Optimization>MaxSpeed</Optimization>\r\n      <FunctionLevelLinking>true</FunctionLevelLinking>\r\n      <IntrinsicFunctions>true</IntrinsicFunctions>\r\n      <ControlFlowGuard>Guard</ControlFlowGuard>\r\n      <StringPooling>true</StringPooling>\r\n      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r\n      <PreprocessorDefinitions>MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS;_UNICODE;UNICODE;WIN32_LEAN_AND_MEAN;APP_HAVE_AUTORUN;APP_HAVE_SKIPUAC;APP_HAVE_TRAY;APP_HAVE_UPDATES;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n      <EnableParallelCodeGeneration>\r\n      </EnableParallelCodeGeneration>\r\n      <TreatWarningAsError>true</TreatWarningAsError>\r\n      <MultiProcessorCompilation>true</MultiProcessorCompilation>\r\n      <LanguageStandard>stdcpplatest</LanguageStandard>\r\n      <SDLCheck>true</SDLCheck>\r\n      <LanguageStandard_C>stdclatest</LanguageStandard_C>\r\n      <GuardEHContMetadata>true</GuardEHContMetadata>\r\n      <GuardSignedReturns>true</GuardSignedReturns>\r\n      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>\r\n      <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>\r\n      <ConformanceMode>true</ConformanceMode>\r\n      <UseStandardPreprocessor>true</UseStandardPreprocessor>\r\n    </ClCompile>\r\n    <Link>\r\n      <GenerateDebugInformation>true</GenerateDebugInformation>\r\n      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r\n      <OptimizeReferences>true</OptimizeReferences>\r\n      <SetChecksum>true</SetChecksum>\r\n      <SubSystem>Windows</SubSystem>\r\n      <AdditionalOptions>/DEPENDENTLOADFLAG:0x800 /BREPRO %(AdditionalOptions)</AdditionalOptions>\r\n      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>\r\n      <MinimumRequiredVersion>10.0</MinimumRequiredVersion>\r\n    </Link>\r\n    <ResourceCompile>\r\n      <PreprocessorDefinitions>_UNICODE;UNICODE;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r\n    </ResourceCompile>\r\n  </ItemDefinitionGroup>\r\n  <ItemGroup>\r\n    <ClCompile Include=\"..\\routine\\src\\rapp.c\" />\r\n    <ClCompile Include=\"..\\routine\\src\\routine.c\" />\r\n    <ClCompile Include=\"src\\main.c\" />\r\n  </ItemGroup>\r\n  <ItemGroup>\r\n    <ClInclude Include=\"..\\routine\\src\\ntapi.h\" />\r\n    <ClInclude Include=\"..\\routine\\src\\ntrtl.h\" />\r\n    <ClInclude Include=\"..\\routine\\src\\rapp.h\" />\r\n    <ClInclude Include=\"..\\routine\\src\\rconfig.h\" />\r\n    <ClInclude Include=\"..\\routine\\src\\routine.h\" />\r\n    <ClInclude Include=\"..\\routine\\src\\rtypes.h\" />\r\n    <ClInclude Include=\"src\\app.h\" />\r\n    <ClInclude Include=\"src\\main.h\" />\r\n    <ClInclude Include=\"src\\resource.h\" />\r\n  </ItemGroup>\r\n  <ItemGroup>\r\n    <ResourceCompile Include=\"src\\resource.rc\" />\r\n  </ItemGroup>\r\n  <Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.targets\" />\r\n  <ImportGroup Label=\"ExtensionTargets\">\r\n  </ImportGroup>\r\n</Project>"
  },
  {
    "path": "memreduct.vcxproj.filters",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Project ToolsVersion=\"4.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\r\n  <ItemGroup>\r\n    <Filter Include=\"Header Files\">\r\n      <UniqueIdentifier>{B43C75CA-B7CD-42CD-AECE-B5C726B07DCB}</UniqueIdentifier>\r\n      <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>\r\n    </Filter>\r\n    <Filter Include=\"Resource Files\">\r\n      <UniqueIdentifier>{25752297-5400-478B-818B-6DCD36C71575}</UniqueIdentifier>\r\n      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>\r\n    </Filter>\r\n    <Filter Include=\"Source Files\">\r\n      <UniqueIdentifier>{8CAE5BF2-376B-44EB-A3D5-0CF790228D11}</UniqueIdentifier>\r\n      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>\r\n    </Filter>\r\n  </ItemGroup>\r\n  <ItemGroup>\r\n    <ClCompile Include=\"src\\main.c\">\r\n      <Filter>Source Files</Filter>\r\n    </ClCompile>\r\n    <ClCompile Include=\"..\\routine\\src\\routine.c\">\r\n      <Filter>Source Files</Filter>\r\n    </ClCompile>\r\n    <ClCompile Include=\"..\\routine\\src\\rapp.c\">\r\n      <Filter>Source Files</Filter>\r\n    </ClCompile>\r\n  </ItemGroup>\r\n  <ItemGroup>\r\n    <ClInclude Include=\"src\\main.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"src\\app.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"src\\resource.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"..\\routine\\src\\rconfig.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"..\\routine\\src\\routine.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"..\\routine\\src\\rtypes.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"..\\routine\\src\\ntapi.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"..\\routine\\src\\ntrtl.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n    <ClInclude Include=\"..\\routine\\src\\rapp.h\">\r\n      <Filter>Header Files</Filter>\r\n    </ClInclude>\r\n  </ItemGroup>\r\n  <ItemGroup>\r\n    <ResourceCompile Include=\"src\\resource.rc\">\r\n      <Filter>Resource Files</Filter>\r\n    </ResourceCompile>\r\n  </ItemGroup>\r\n</Project>"
  },
  {
    "path": "memreduct.vcxproj.user",
    "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n  <PropertyGroup />\n</Project>"
  },
  {
    "path": "src/app.h",
    "content": "// Mem Reduct\r\n// Copyright (c) 2011-2026 Henry++\r\n\r\n#pragma once\r\n\r\n#define APP_NAME L\"Mem Reduct\"\r\n#define APP_NAME_SHORT L\"memreduct\"\r\n#define APP_VERSION L\"3.5.3\"\r\n#define APP_VERSION_RES 3,5,3,0\r\n#define APP_AUTHOR L\"Henry++\"\r\n#define APP_COPYRIGHT L\"(c) 2011-2026 \" APP_AUTHOR L\". All Rights Reversed.\"\r\n"
  },
  {
    "path": "src/main.c",
    "content": "// Mem Reduct\r\n// Copyright (c) 2011-2025 Henry++\r\n\r\n#include \"routine.h\"\r\n\r\n#include \"main.h\"\r\n#include \"rapp.h\"\r\n\r\n#include \"resource.h\"\r\n\r\nSTATIC_DATA config = {0};\r\n\r\nULONG limits_arr[13] = {0};\r\nULONG intervals_arr[13] = {0};\r\n\r\nINT WINAPIV compare_numbers (\r\n\t_In_opt_ PVOID context,\r\n\t_In_ LPCVOID ptr1,\r\n\t_In_ LPCVOID ptr2\r\n)\r\n{\r\n\tULONG val1;\r\n\tULONG val2;\r\n\r\n\tval1 = PtrToUlong (ptr1);\r\n\tval2 = PtrToUlong (ptr2);\r\n\r\n\tif (val1 < val2)\r\n\t\treturn -1;\r\n\r\n\tif (val1 > val2)\r\n\t\treturn 1;\r\n\r\n\treturn 0;\r\n}\r\n\r\nVOID _app_generate_array (\r\n\t_Out_ _Writable_elements_ (count) PULONG integers,\r\n\t_In_ ULONG_PTR count,\r\n\t_In_ ULONG value\r\n)\r\n{\r\n\tPR_HASHTABLE hashtable;\r\n\tULONG_PTR enum_key = 0;\r\n\tULONG hash_code;\r\n\tULONG index = 0;\r\n\r\n\tRtlSecureZeroMemory (integers, sizeof (ULONG) * count);\r\n\r\n\thashtable = _r_obj_createhashtable (sizeof (BOOLEAN), 16, NULL);\r\n\r\n\tfor (index = 1; index < 9; index++)\r\n\t{\r\n\t\t_r_obj_addhashtableitem (hashtable, index * 10, NULL);\r\n\t}\r\n\r\n\tfor (index = value - 2; index <= (value + 2); index++)\r\n\t{\r\n\t\tif (index >= 5)\r\n\t\t\t_r_obj_addhashtableitem (hashtable, index, NULL);\r\n\t}\r\n\r\n\twhile (_r_obj_enumhashtable (hashtable, NULL, &hash_code, &enum_key))\r\n\t{\r\n\t\tif (hash_code <= 99)\r\n\t\t\t*(PULONG_PTR)PTR_ADD_OFFSET (integers, index * sizeof (ULONG)) = hash_code;\r\n\r\n\t\tif (++index >= count)\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\tqsort_s (integers, count, sizeof (ULONG), &compare_numbers, NULL);\r\n\r\n\t_r_obj_dereference (hashtable);\r\n}\r\n\r\nVOID _app_generate_menu (\r\n\t_In_ HMENU hsubmenu,\r\n\t_In_ ULONG menu_idx,\r\n\t_Out_ _Writable_elements_ (count) PULONG integers,\r\n\t_In_ ULONG_PTR count,\r\n\t_In_ LPCWSTR format,\r\n\t_In_ ULONG value,\r\n\t_In_ BOOLEAN is_enabled\r\n)\r\n{\r\n\tWCHAR buffer[64];\r\n\tLONG64 menu_value;\r\n\tULONG menu_items = 0;\r\n\tULONG menu_id;\r\n\tBOOLEAN is_checked = FALSE;\r\n\r\n\t_r_menu_setitemtext (hsubmenu, 0, TRUE, _r_locale_getstring (IDS_TRAY_DISABLE));\r\n\r\n\t_app_generate_array (integers, count, value);\r\n\r\n\tfor (ULONG i = 0; i < count; i++)\r\n\t{\r\n\t\tmenu_value = integers[i];\r\n\r\n\t\tif (!menu_value)\r\n\t\t\tcontinue;\r\n\r\n\t\tmenu_id = (menu_idx + i);\r\n\r\n\t\t_r_str_printf (buffer, RTL_NUMBER_OF (buffer), format, menu_value);\r\n\r\n\t\t_r_menu_additem (hsubmenu, menu_id, buffer);\r\n\r\n\t\tif (!_r_sys_iselevated ())\r\n\t\t\t_r_menu_enableitem (hsubmenu, menu_id, FALSE, FALSE);\r\n\r\n\t\tif (value == menu_value)\r\n\t\t{\r\n\t\t\t_r_menu_checkitem (hsubmenu, menu_id, menu_id, MF_BYCOMMAND, menu_id);\r\n\r\n\t\t\tis_checked = TRUE;\r\n\t\t}\r\n\r\n\t\tmenu_items += 1;\r\n\t}\r\n\r\n\tif (!is_enabled || !is_checked)\r\n\t\t_r_menu_checkitem (hsubmenu, 0, menu_items + 2, MF_BYPOSITION, 0);\r\n}\r\n\r\nULONG _app_getlimitvalue ()\r\n{\r\n\tULONG value;\r\n\r\n\tvalue = _r_config_getulong (L\"AutoreductValue\", DEFAULT_AUTOREDUCT_VAL, NULL);\r\n\r\n\treturn _r_calc_clamp (value, 1, 99);\r\n}\r\n\r\nULONG _app_getintervalvalue ()\r\n{\r\n\tULONG value;\r\n\r\n\tvalue = _r_config_getulong (L\"AutoreductIntervalValue\", DEFAULT_AUTOREDUCTINTERVAL_VAL, NULL);\r\n\r\n\treturn _r_calc_clamp (value, 1, 1440);\r\n}\r\n\r\nULONG _app_getdangervalue ()\r\n{\r\n\tULONG value;\r\n\r\n\tvalue = _r_config_getulong (L\"TrayLevelDanger\", DEFAULT_DANGER_LEVEL, NULL);\r\n\r\n\treturn _r_calc_clamp (value, 1, 99);\r\n}\r\n\r\nULONG _app_getwarningvalue ()\r\n{\r\n\tULONG value;\r\n\r\n\tvalue = _r_config_getulong (L\"TrayLevelWarning\", DEFAULT_WARNING_LEVEL, NULL);\r\n\r\n\treturn _r_calc_clamp (value, 1, 99);\r\n}\r\n\r\nULONG64 _app_getmemoryinfo (\r\n\t_Out_ PR_MEMORY_INFO mem_info\r\n)\r\n{\r\n\t_r_sys_getmemoryinfo (mem_info);\r\n\r\n\treturn mem_info->physical_memory.used_bytes;\r\n}\r\n\r\nFORCEINLINE LPCWSTR _app_getcleanupreason (\r\n\t_In_ CLEANUP_SOURCE_ENUM src\r\n)\r\n{\r\n\tswitch (src)\r\n\t{\r\n\t\tcase SOURCE_AUTO:\r\n\t\t{\r\n\t\t\treturn L\"Cleanup (Auto)\";\r\n\t\t}\r\n\r\n\t\tcase SOURCE_MANUAL:\r\n\t\t{\r\n\t\t\treturn L\"Cleanup (Manual)\";\r\n\t\t}\r\n\r\n\t\tcase SOURCE_HOTKEY:\r\n\t\t{\r\n\t\t\treturn L\"Cleanup (Hotkey)\";\r\n\t\t}\r\n\r\n\t\tcase SOURCE_CMDLINE:\r\n\t\t{\r\n\t\t\treturn L\"Cleanup (Command-line)\";\r\n\t\t}\r\n\r\n\t\tdefault:\r\n\t\t{\r\n\t\t\treturn L\"Unknown\";\r\n\t\t}\r\n\t}\r\n}\r\n\r\nNTSTATUS _app_flushvolumecache ()\r\n{\r\n\tPMOUNTMGR_MOUNT_POINTS object_mountpoints;\r\n\tPMOUNTMGR_MOUNT_POINT mountpoint;\r\n\tOBJECT_ATTRIBUTES oa = {0};\r\n\tIO_STATUS_BLOCK isb;\r\n\tUNICODE_STRING us;\r\n\tHANDLE hdevice;\r\n\tHANDLE hvolume;\r\n\tNTSTATUS status;\r\n\r\n\tRtlInitUnicodeString (&us, MOUNTMGR_DEVICE_NAME);\r\n\r\n\tInitializeObjectAttributes (&oa, &us, OBJ_CASE_INSENSITIVE, NULL, NULL);\r\n\r\n\tstatus = NtCreateFile (\r\n\t\t&hdevice,\r\n\t\tFILE_READ_ATTRIBUTES | SYNCHRONIZE,\r\n\t\t&oa,\r\n\t\t&isb,\r\n\t\tNULL,\r\n\t\tFILE_ATTRIBUTE_NORMAL,\r\n\t\tFILE_SHARE_READ | FILE_SHARE_WRITE,\r\n\t\tFILE_OPEN,\r\n\t\tFILE_NON_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT,\r\n\t\tNULL,\r\n\t\t0\r\n\t);\r\n\r\n\tif (!NT_SUCCESS (status))\r\n\t\treturn status;\r\n\r\n\tstatus = _r_fs_getvolumemountpoints (hdevice, &object_mountpoints);\r\n\r\n\tif (!NT_SUCCESS (status))\r\n\t\tgoto CleanupExit;\r\n\r\n\tfor (ULONG i = 0; i < object_mountpoints->NumberOfMountPoints; i++)\r\n\t{\r\n\t\tmountpoint = &object_mountpoints->MountPoints[i];\r\n\r\n\t\tus.Length = mountpoint->SymbolicLinkNameLength;\r\n\t\tus.MaximumLength = mountpoint->SymbolicLinkNameLength + sizeof (UNICODE_NULL);\r\n\t\tus.Buffer = PTR_ADD_OFFSET (object_mountpoints, mountpoint->SymbolicLinkNameOffset);\r\n\r\n\t\tif (MOUNTMGR_IS_VOLUME_NAME (&us)) // \\\\??\\\\Volume{1111-2222}\r\n\t\t{\r\n\t\t\tInitializeObjectAttributes (&oa, &us, OBJ_CASE_INSENSITIVE, NULL, NULL);\r\n\r\n\t\t\tstatus = NtCreateFile (\r\n\t\t\t\t&hvolume,\r\n\t\t\t\tFILE_WRITE_DATA | SYNCHRONIZE,\r\n\t\t\t\t&oa,\r\n\t\t\t\t&isb,\r\n\t\t\t\tNULL,\r\n\t\t\t\tFILE_ATTRIBUTE_NORMAL,\r\n\t\t\t\tFILE_SHARE_READ | FILE_SHARE_WRITE,\r\n\t\t\t\tFILE_OPEN,\r\n\t\t\t\tFILE_NON_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT,\r\n\t\t\t\tNULL,\r\n\t\t\t\t0\r\n\t\t\t);\r\n\r\n\t\t\tif (NT_SUCCESS (status))\r\n\t\t\t{\r\n\t\t\t\tstatus = _r_fs_flushfile (hvolume);\r\n\r\n\t\t\t\tNtClose (hvolume);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t_r_mem_free (object_mountpoints);\r\n\r\nCleanupExit:\r\n\r\n\tNtClose (hdevice);\r\n\r\n\treturn status;\r\n}\r\n\r\nVOID _app_memoryclean (\r\n\t_In_opt_ HWND hwnd,\r\n\t_In_ CLEANUP_SOURCE_ENUM src,\r\n\t_In_opt_ ULONG mask\r\n)\r\n{\r\n\tMEMORY_COMBINE_INFORMATION_EX combine_info_ex = {0};\r\n\tSYSTEM_FILECACHE_INFORMATION sfci = {0};\r\n\tSYSTEM_MEMORY_LIST_COMMAND command;\r\n\tR_MEMORY_INFO mem_info;\r\n\tWCHAR buffer1[256] = {0};\r\n\tWCHAR buffer2[256] = {0};\r\n\tLPCWSTR error_text;\r\n\tULONG64 reduct_before;\r\n\tULONG64 reduct_after;\r\n\tULONG flags = NIIF_WARNING;\r\n\tNTSTATUS status;\r\n\r\n\tif (!_r_config_getboolean (L\"IsNotificationsSound\", TRUE, NULL))\r\n\t\tflags |= NIIF_NOSOUND;\r\n\r\n\tif (!_r_sys_iselevated ())\r\n\t{\r\n\t\terror_text = _r_locale_getstring (IDS_STATUS_NOPRIVILEGES);\r\n\r\n\t\tif (_r_app_runasadmin ())\r\n\t\t{\r\n\t\t\tif (hwnd)\r\n\t\t\t\tDestroyWindow (hwnd);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (src == SOURCE_CMDLINE)\r\n\t\t\t{\r\n\t\t\t\tif (hwnd)\r\n\t\t\t\t\t_r_show_message (hwnd, MB_OK | MB_ICONSTOP, NULL, error_text);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (hwnd)\r\n\t\t\t\t\t_r_tray_popup (hwnd, &GUID_TrayIcon, flags, _r_app_getname (), error_text);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (!mask)\r\n\t\tmask = _r_config_getulong (L\"ReductMask2\", REDUCT_MASK_DEFAULT, NULL);\r\n\r\n\tif (src == SOURCE_AUTO)\r\n\t{\r\n\t\tif (!_r_config_getboolean (L\"IsAllowStandbyListCleanup\", FALSE, NULL))\r\n\t\t\tmask &= ~REDUCT_MASK_FREEZES; // exclude freezes from autoclean feature ;)\r\n\t}\r\n\telse if (src == SOURCE_MANUAL)\r\n\t{\r\n\t\tif ((mask & REDUCT_WORKING_SET) == REDUCT_WORKING_SET)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_WORKINGSET L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_SYSTEM_FILE_CACHE) == REDUCT_SYSTEM_FILE_CACHE)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_SYSTEMFILECACHE L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_MODIFIED_FILE_CACHE) == REDUCT_MODIFIED_FILE_CACHE)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_MODIFIEDFILECACHE L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_MODIFIED_LIST) == REDUCT_MODIFIED_LIST)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_MODIFIEDLIST L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_STANDBY_LIST) == REDUCT_STANDBY_LIST)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_STANDBYLIST L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_STANDBY_PRIORITY0_LIST) == REDUCT_STANDBY_PRIORITY0_LIST)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_STANDBYLISTPRIORITY0 L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_REGISTRYCACHE L\"\\r\\n\");\r\n\r\n\t\tif ((mask & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS)\r\n\t\t\t_r_str_append (buffer1, RTL_NUMBER_OF (buffer1), L\"- \" TITLE_COMBINEMEMORYLISTS L\"\\r\\n\");\r\n\r\n\t\tStrTrimW (buffer1, L\"\\r\\n\");\r\n\r\n\t\tif (!_r_show_confirmmessage (hwnd, _r_locale_getstring (IDS_QUESTION), buffer1, L\"IsShowReductConfirmation\", FALSE))\r\n\t\t\treturn;\r\n\t}\r\n\r\n\tSetCursor (LoadCursorW (NULL, IDC_WAIT));\r\n\r\n\t// difference (before)\r\n\treduct_before = _app_getmemoryinfo (&mem_info);\r\n\r\n\t// Working set (vista+)\r\n\tif ((mask & REDUCT_WORKING_SET) == REDUCT_WORKING_SET)\r\n\t{\r\n\t\tcommand = MemoryEmptyWorkingSets;\r\n\r\n\t\tstatus = NtSetSystemInformation (SystemMemoryListInformation, &command, sizeof (SYSTEM_MEMORY_LIST_COMMAND));\r\n\r\n\t\tif (!NT_SUCCESS (status))\r\n\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"MemoryEmptyWorkingSets\");\r\n\t}\r\n\r\n\t// System file cache\r\n\tif ((mask & REDUCT_SYSTEM_FILE_CACHE) == REDUCT_SYSTEM_FILE_CACHE)\r\n\t{\r\n\t\tsfci.MinimumWorkingSet = MAXSIZE_T;\r\n\t\tsfci.MaximumWorkingSet = MAXSIZE_T;\r\n\r\n\t\tstatus = NtSetSystemInformation (SystemFileCacheInformationEx, &sfci, sizeof (SYSTEM_FILECACHE_INFORMATION));\r\n\r\n\t\tif (!NT_SUCCESS (status))\r\n\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"SystemFileCacheInformation\");\r\n\t}\r\n\r\n\t// Flush volume cache\r\n\tif ((mask & REDUCT_MODIFIED_FILE_CACHE) == REDUCT_MODIFIED_FILE_CACHE)\r\n\t\t_app_flushvolumecache ();\r\n\r\n\t// Modified page list (vista+)\r\n\tif ((mask & REDUCT_MODIFIED_LIST) == REDUCT_MODIFIED_LIST)\r\n\t{\r\n\t\tcommand = MemoryFlushModifiedList;\r\n\r\n\t\tstatus = NtSetSystemInformation (SystemMemoryListInformation, &command, sizeof (SYSTEM_MEMORY_LIST_COMMAND));\r\n\r\n\t\tif (!NT_SUCCESS (status))\r\n\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"MemoryFlushModifiedList\");\r\n\t}\r\n\r\n\t// Standby list (vista+)\r\n\tif ((mask & REDUCT_STANDBY_LIST) == REDUCT_STANDBY_LIST)\r\n\t{\r\n\t\tcommand = MemoryPurgeStandbyList;\r\n\r\n\t\tstatus = NtSetSystemInformation (SystemMemoryListInformation, &command, sizeof (SYSTEM_MEMORY_LIST_COMMAND));\r\n\r\n\t\tif (!NT_SUCCESS (status))\r\n\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"MemoryPurgeStandbyList\");\r\n\t}\r\n\r\n\t// Standby priority-0 list (vista+)\r\n\tif ((mask & REDUCT_STANDBY_PRIORITY0_LIST) == REDUCT_STANDBY_PRIORITY0_LIST)\r\n\t{\r\n\t\tcommand = MemoryPurgeLowPriorityStandbyList;\r\n\r\n\t\tstatus = NtSetSystemInformation (SystemMemoryListInformation, &command, sizeof (SYSTEM_MEMORY_LIST_COMMAND));\r\n\r\n\t\tif (!NT_SUCCESS (status))\r\n\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"MemoryPurgeLowPriorityStandbyList\");\r\n\t}\r\n\r\n\t// Flush registry cache (win8.1+)\r\n\tif (_r_sys_isosversiongreaterorequal (WINDOWS_8_1))\r\n\t{\r\n\t\tif ((mask & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE)\r\n\t\t{\r\n\t\t\tstatus = NtSetSystemInformation (SystemRegistryReconciliationInformation, NULL, 0);\r\n\r\n\t\t\tif (!NT_SUCCESS (status))\r\n\t\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"SystemRegistryReconciliationInformation\");\r\n\t\t}\r\n\t}\r\n\r\n\t// Combine memory lists (win10+)\r\n\tif (_r_sys_isosversiongreaterorequal (WINDOWS_10))\r\n\t{\r\n\t\tif ((mask & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS)\r\n\t\t{\r\n\t\t\tstatus = NtSetSystemInformation (SystemCombinePhysicalMemoryInformation, &combine_info_ex, sizeof (MEMORY_COMBINE_INFORMATION_EX));\r\n\r\n\t\t\tif (!NT_SUCCESS (status))\r\n\t\t\t\t_r_log (LOG_LEVEL_ERROR, NULL, L\"NtSetSystemInformation\", status, L\"SystemCombinePhysicalMemoryInformation\");\r\n\t\t}\r\n\t}\r\n\r\n\tSetCursor (LoadCursorW (NULL, IDC_ARROW));\r\n\r\n\t// difference (after)\r\n\treduct_after = _app_getmemoryinfo (&mem_info);\r\n\r\n\tif (reduct_after < reduct_before)\r\n\t{\r\n\t\treduct_after = (reduct_before - reduct_after);\r\n\t}\r\n\telse\r\n\t{\r\n\t\treduct_after = 0;\r\n\t}\r\n\r\n\t// time of last cleaning\r\n\t_r_config_setlong64 (L\"StatisticLastReduct\", _r_unixtime_now (), NULL);\r\n\r\n\t_r_format_bytesize64 (buffer1, RTL_NUMBER_OF (buffer1), reduct_after);\r\n\r\n\t_r_str_printf (buffer2, RTL_NUMBER_OF (buffer2), _r_locale_getstring (IDS_STATUS_CLEANED), buffer1);\r\n\r\n\tif (src == SOURCE_CMDLINE)\r\n\t{\r\n\t\tif (_r_config_getboolean (L\"BalloonCleanResults\", TRUE, NULL))\r\n\t\t{\r\n\t\t\tif (!_r_tray_popup (hwnd, &GUID_TrayIcon, flags, _r_app_getname (), buffer2))\r\n\t\t\t\t_r_show_message (hwnd, MB_OK | MB_ICONINFORMATION, NULL, buffer2);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_r_show_message (hwnd, MB_OK | MB_ICONINFORMATION, NULL, buffer2);\r\n\t\t}\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (hwnd && _r_config_getboolean (L\"BalloonCleanResults\", TRUE, NULL))\r\n\t\t\t_r_tray_popup (hwnd, &GUID_TrayIcon, flags, _r_app_getname (), buffer2);\r\n\t}\r\n\r\n\tif (_r_config_getboolean (L\"LogCleanResults\", FALSE, NULL))\r\n\t\t_r_log_v (LOG_LEVEL_INFO, 0, _app_getcleanupreason (src), 0, buffer1);\r\n}\r\n\r\nVOID _app_fontinit (\r\n\t_Out_ PLOGFONT logfont,\r\n\t_In_ LONG dpi_value\r\n)\r\n{\r\n\tRtlZeroMemory (logfont, sizeof (LOGFONT));\r\n\r\n\t_r_str_copy (logfont->lfFaceName, LF_FACESIZE, L\"Lucida Console\");\r\n\r\n\tlogfont->lfHeight = _r_dc_fontsizetoheight (8, dpi_value);\r\n\tlogfont->lfWeight = FW_NORMAL;\r\n\r\n\t_r_config_getfont (L\"TrayFont\", logfont, dpi_value, NULL);\r\n\r\n\tlogfont->lfCharSet = DEFAULT_CHARSET;\r\n\tlogfont->lfQuality = CLEARTYPE_QUALITY;\r\n}\r\n\r\nVOID _app_drawbackground (\r\n\t_In_ HDC hdc,\r\n\t_In_ COLORREF bg_clr,\r\n\t_In_ COLORREF pen_clr,\r\n\t_In_ COLORREF brush_clr,\r\n\t_In_ LPCRECT rect,\r\n\t_In_ BOOLEAN is_round\r\n)\r\n{\r\n\tHGDIOBJ prev_brush;\r\n\tHGDIOBJ prev_pen;\r\n\tCOLORREF prev_clr;\r\n\r\n\tprev_brush = SelectObject (hdc, GetStockObject (DC_BRUSH));\r\n\tprev_pen = SelectObject (hdc, GetStockObject (DC_PEN));\r\n\r\n\tprev_clr = SetBkColor (hdc, bg_clr);\r\n\r\n\tSetDCPenColor (hdc, pen_clr);\r\n\tSetDCBrushColor (hdc, brush_clr);\r\n\r\n\t_r_dc_fillrect (hdc, rect, bg_clr);\r\n\r\n\tif (is_round)\r\n\t{\r\n\t\tRoundRect (hdc, rect->left, rect->top, rect->right, rect->bottom, rect->right - 2, rect->right / 2);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tRectangle (hdc, rect->left, rect->top, rect->right, rect->bottom);\r\n\t}\r\n\r\n\tSelectObject (hdc, prev_brush);\r\n\tSelectObject (hdc, prev_pen);\r\n\r\n\tSetBkColor (hdc, prev_clr);\r\n}\r\n\r\nHICON _app_iconcreate (\r\n\t_In_opt_ ULONG percent\r\n)\r\n{\r\n\tstatic HICON hicon = NULL;\r\n\r\n\tR_MEMORY_INFO mem_info;\r\n\tR_STRINGREF sr;\r\n\tICONINFO ii = {0};\r\n\tWCHAR icon_text[8];\r\n\tHGDIOBJ prev_font;\r\n\tHGDIOBJ prev_bmp;\r\n\tHICON hicon_new;\r\n\tCOLORREF text_color;\r\n\tCOLORREF bg_color;\r\n\tLONG prev_mode;\r\n\tBOOLEAN is_transparent;\r\n\tBOOLEAN is_border;\r\n\tBOOLEAN is_round;\r\n\tBOOLEAN has_warning;\r\n\tBOOLEAN has_danger;\r\n\r\n\ttext_color = _r_config_getulong (L\"TrayColorText\", TRAY_COLOR_TEXT, NULL);\r\n\tbg_color = _r_config_getulong (L\"TrayColorBg\", TRAY_COLOR_BG, NULL);\r\n\r\n\tis_transparent = _r_config_getboolean (L\"TrayUseTransparency\", FALSE, NULL);\r\n\tis_border = _r_config_getboolean (L\"TrayShowBorder\", FALSE, NULL);\r\n\tis_round = _r_config_getboolean (L\"TrayRoundCorners\", FALSE, NULL);\r\n\r\n\tif (!percent)\r\n\t{\r\n\t\t_app_getmemoryinfo (&mem_info);\r\n\r\n\t\tpercent = mem_info.physical_memory.percent;\r\n\t}\r\n\r\n\thas_danger = percent >= _app_getdangervalue ();\r\n\thas_warning = !has_danger && percent >= _app_getwarningvalue ();\r\n\r\n\tif (has_danger || has_warning)\r\n\t{\r\n\t\tif (_r_config_getboolean (L\"TrayChangeBg\", TRUE, NULL))\r\n\t\t{\r\n\t\t\tif (has_danger)\r\n\t\t\t{\r\n\t\t\t\tbg_color = _r_config_getulong (L\"TrayColorDanger\", TRAY_COLOR_DANGER, NULL);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbg_color = _r_config_getulong (L\"TrayColorWarning\", TRAY_COLOR_WARNING, NULL);\r\n\t\t\t}\r\n\r\n\t\t\tis_transparent = FALSE;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (has_danger)\r\n\t\t\t{\r\n\t\t\t\ttext_color = _r_config_getulong (L\"TrayColorDanger\", TRAY_COLOR_DANGER, NULL);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttext_color = _r_config_getulong (L\"TrayColorWarning\", TRAY_COLOR_WARNING, NULL);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// set tray text\r\n\t_r_str_fromulong (icon_text, RTL_NUMBER_OF (icon_text), percent);\r\n\r\n\t_r_obj_initializestringref (&sr, icon_text);\r\n\r\n\t// draw main device context\r\n\tprev_bmp = SelectObject (config.hdc, config.hbitmap);\r\n\tprev_font = SelectObject (config.hdc, config.hfont);\r\n\tprev_mode = SetBkMode (config.hdc, TRANSPARENT);\r\n\r\n\t_app_drawbackground (config.hdc, bg_color, is_border ? text_color : bg_color, is_transparent ? text_color : bg_color, &config.icon_size, is_round);\r\n\r\n\t_r_dc_drawtext (NULL, config.hdc, &sr, &config.icon_size, 0, 0, DT_VCENTER | DT_CENTER | DT_SINGLELINE | DT_NOCLIP | DT_NOPREFIX, text_color);\r\n\r\n\tSetBkMode (config.hdc, prev_mode);\r\n\r\n\tSelectObject (config.hdc, prev_font);\r\n\tSelectObject (config.hdc, prev_bmp);\r\n\r\n\t// draw mask device context\r\n\tprev_bmp = SelectObject (config.hdc_mask, config.hbitmap_mask);\r\n\tprev_font = SelectObject (config.hdc_mask, config.hfont);\r\n\tprev_mode = SetBkMode (config.hdc_mask, TRANSPARENT);\r\n\r\n\t_app_drawbackground (\r\n\t\tconfig.hdc_mask,\r\n\t\tTRAY_COLOR_WHITE,\r\n\t\tis_border ? TRAY_COLOR_BLACK : TRAY_COLOR_WHITE,\r\n\t\tis_transparent ? TRAY_COLOR_WHITE : TRAY_COLOR_BLACK,\r\n\t\t&config.icon_size,\r\n\t\tis_round\r\n\t);\r\n\r\n\t_r_dc_drawtext (NULL, config.hdc_mask, &sr, &config.icon_size, 0, 0, DT_VCENTER | DT_CENTER | DT_SINGLELINE | DT_NOCLIP | DT_NOPREFIX, TRAY_COLOR_BLACK);\r\n\r\n\tSetBkMode (config.hdc, prev_mode);\r\n\r\n\tSelectObject (config.hdc_mask, prev_bmp);\r\n\tSelectObject (config.hdc_mask, prev_font);\r\n\r\n\t// create icon\r\n\tii.fIcon = TRUE;\r\n\tii.hbmColor = config.hbitmap;\r\n\tii.hbmMask = config.hbitmap_mask;\r\n\r\n\thicon_new = CreateIconIndirect (&ii);\r\n\r\n\tif (hicon)\r\n\t\tDestroyIcon (hicon);\r\n\r\n\thicon = hicon_new;\r\n\r\n\treturn hicon;\r\n}\r\n\r\nVOID CALLBACK _app_timercallback (\r\n\t_In_ HWND hwnd,\r\n\t_In_ UINT msg,\r\n\t_In_ UINT_PTR id_event,\r\n\t_In_ ULONG time\r\n)\r\n{\r\n\tR_MEMORY_INFO mem_info;\r\n\tWCHAR buffer[128];\r\n\tHICON hicon = NULL;\r\n\tLONG64 timestamp;\r\n\tULONG percent;\r\n\tBOOLEAN is_clean = FALSE;\r\n\r\n\tif (id_event != UID)\r\n\t\treturn;\r\n\r\n\t_app_getmemoryinfo (&mem_info);\r\n\r\n\t// autocleanup functional\r\n\tif (_r_sys_iselevated ())\r\n\t{\r\n\t\tif (_r_config_getboolean (L\"AutoreductEnable\", FALSE, NULL))\r\n\t\t{\r\n\t\t\tif (mem_info.physical_memory.percent >= _app_getlimitvalue ())\r\n\t\t\t\tis_clean = TRUE;\r\n\t\t}\r\n\r\n\t\tif (!is_clean && _r_config_getboolean (L\"AutoreductIntervalEnable\", FALSE, NULL))\r\n\t\t{\r\n\t\t\ttimestamp = _r_unixtime_now () - _r_config_getlong64 (L\"StatisticLastReduct\", 0, NULL);\r\n\r\n\t\t\tif (timestamp >= (_app_getintervalvalue () * 60))\r\n\t\t\t\tis_clean = TRUE;\r\n\t\t}\r\n\r\n\t\tif (is_clean)\r\n\t\t\t_app_memoryclean (hwnd, SOURCE_AUTO, 0);\r\n\t}\r\n\r\n\t// check previous percent to prevent icon redraw\r\n\tif (!config.ms_prev || config.ms_prev != mem_info.physical_memory.percent)\r\n\t{\r\n\t\tconfig.ms_prev = mem_info.physical_memory.percent; // store last percentage value (required!)\r\n\r\n\t\thicon = _app_iconcreate (config.ms_prev);\r\n\t}\r\n\r\n\t_r_tray_setinfoformat (\r\n\t\thwnd,\r\n\t\t&GUID_TrayIcon,\r\n\t\thicon,\r\n\t\tL\"%s: %\" TEXT (PR_DOUBLE) L\"%%\\r\\n%s: %\" TEXT (PR_DOUBLE) L\"%%\\r\\n%s: %\" TEXT (PR_DOUBLE) L\"%%\",\r\n\t\t_r_locale_getstring (IDS_GROUP_1),\r\n\t\tmem_info.physical_memory.percent_f,\r\n\t\t_r_locale_getstring (IDS_GROUP_2),\r\n\t\tmem_info.page_file.percent_f,\r\n\t\t_r_locale_getstring (IDS_GROUP_3),\r\n\t\tmem_info.system_cache.percent_f\r\n\t);\r\n\r\n\tif (!_r_wnd_isvisible (hwnd, FALSE))\r\n\t\treturn;\r\n\r\n\t// set item lparam information\r\n\tfor (INT i = 0; i < _r_listview_getitemcount (hwnd, IDC_LISTVIEW); i++)\r\n\t{\r\n\t\tif (i < 3)\r\n\t\t{\r\n\t\t\tpercent = mem_info.physical_memory.percent;\r\n\t\t}\r\n\t\telse if (i < 6)\r\n\t\t{\r\n\t\t\tpercent = mem_info.page_file.percent;\r\n\t\t}\r\n\t\telse if (i < 9)\r\n\t\t{\r\n\t\t\tpercent = mem_info.system_cache.percent;\r\n\t\t}\r\n\r\n\t\t_r_listview_setitem (hwnd, IDC_LISTVIEW, i, 0, NULL, I_DEFAULT, I_DEFAULT, (LPARAM)percent);\r\n\t}\r\n\r\n\t// physical memory\r\n\t_r_str_printf (buffer, RTL_NUMBER_OF (buffer), L\"%\" TEXT (PR_DOUBLE) L\"%%\", mem_info.physical_memory.percent_f);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 0, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t_r_format_bytesize64 (buffer, RTL_NUMBER_OF (buffer), mem_info.physical_memory.free_bytes);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 1, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t_r_format_bytesize64 (buffer, RTL_NUMBER_OF (buffer), mem_info.physical_memory.total_bytes);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 2, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t// virtual memory\r\n\t_r_str_printf (buffer, RTL_NUMBER_OF (buffer), L\"%\" TEXT (PR_DOUBLE) L\"%%\", mem_info.page_file.percent_f);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 3, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t_r_format_bytesize64 (buffer, RTL_NUMBER_OF (buffer), mem_info.page_file.free_bytes);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 4, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t_r_format_bytesize64 (buffer, RTL_NUMBER_OF (buffer), mem_info.page_file.total_bytes);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 5, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t// system cache\r\n\t_r_str_printf (buffer, RTL_NUMBER_OF (buffer), L\"%\" TEXT (PR_DOUBLE) L\"%%\", mem_info.system_cache.percent_f);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 6, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t_r_format_bytesize64 (buffer, RTL_NUMBER_OF (buffer), mem_info.system_cache.free_bytes);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 7, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t_r_format_bytesize64 (buffer, RTL_NUMBER_OF (buffer), mem_info.system_cache.total_bytes);\r\n\t_r_listview_setitem (hwnd, IDC_LISTVIEW, 8, 1, buffer, I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\tif (_r_wnd_isvisible (hwnd, FALSE))\r\n\t\t_r_listview_redraw (hwnd, IDC_LISTVIEW);\r\n}\r\n\r\nVOID _app_iconredraw (\r\n\t_In_opt_ HWND hwnd\r\n)\r\n{\r\n\tconfig.ms_prev = 0;\r\n\r\n\tif (hwnd)\r\n\t\t_app_timercallback (hwnd, 0, UID, 0);\r\n}\r\n\r\nVOID _app_iconinit (\r\n\t_In_ LONG dpi_value\r\n)\r\n{\r\n\tLOGFONT logfont;\r\n\tPVOID bits;\r\n\tHDC hdc;\r\n\r\n\tSAFE_DELETE_OBJECT (config.hbitmap_mask);\r\n\tSAFE_DELETE_OBJECT (config.hbitmap);\r\n\tSAFE_DELETE_OBJECT (config.hfont);\r\n\r\n\tSAFE_DELETE_DC (config.hdc_mask);\r\n\tSAFE_DELETE_DC (config.hdc);\r\n\r\n\t// init font\r\n\t_app_fontinit (&logfont, dpi_value);\r\n\r\n\tconfig.hfont = CreateFontIndirectW (&logfont);\r\n\r\n\t// init rect\r\n\tSetRect (&config.icon_size, 0, 0, _r_dc_getsystemmetrics (SM_CXSMICON, dpi_value), _r_dc_getsystemmetrics (SM_CYSMICON, dpi_value));\r\n\r\n\t// init dc\r\n\thdc = GetDC (NULL);\r\n\r\n\tif (!hdc)\r\n\t\treturn;\r\n\r\n\tconfig.hdc = CreateCompatibleDC (hdc);\r\n\tconfig.hdc_mask = CreateCompatibleDC (hdc);\r\n\r\n\t// init bitmap\r\n\tconfig.hbitmap = _r_dc_createbitmap (hdc, config.icon_size.right, config.icon_size.bottom, &bits);\r\n\tconfig.hbitmap_mask = CreateBitmap (config.icon_size.right, config.icon_size.bottom, 1, 1, NULL);\r\n\r\n\tReleaseDC (NULL, hdc);\r\n}\r\n\r\nVOID _app_hotkeyinit (\r\n\t_In_ HWND hwnd\r\n)\r\n{\r\n\tLONG hk;\r\n\r\n\tUnregisterHotKey (hwnd, UID);\r\n\r\n\tif (!_r_config_getboolean (L\"HotkeyCleanEnable\", FALSE, NULL))\r\n\t\treturn;\r\n\r\n\thk = _r_config_getlong (L\"HotkeyClean\", MAKEWORD (VK_F1, HOTKEYF_CONTROL), NULL);\r\n\r\n\tif (!hk)\r\n\t\treturn;\r\n\r\n\tif (!RegisterHotKey (hwnd, UID, (HIBYTE (hk) & 2) | ((HIBYTE (hk) & 4) >> 2) | ((HIBYTE (hk) & 1) << 2), LOBYTE (hk)))\r\n\t\t_r_show_errormessage (hwnd, NULL, NtLastError (), NULL, ET_WINDOWS);\r\n}\r\n\r\nVOID _app_setfontcontrol (\r\n\t_In_ HWND hwnd,\r\n\t_In_ INT ctrl_id,\r\n\t_In_ PLOGFONT logfont,\r\n\t_In_ LONG dpi_value\r\n)\r\n{\r\n\t_r_ctrl_setstringformat (\r\n\t\thwnd,\r\n\t\tIDC_FONT,\r\n\t\tL\"%s, %\" TEXT (PR_LONG) L\"px, %\" TEXT (PR_LONG),\r\n\t\tlogfont->lfFaceName,\r\n\t\t_r_dc_fontheighttosize (logfont->lfHeight, dpi_value),\r\n\t\tlogfont->lfWeight\r\n\t);\r\n}\r\n\r\nINT_PTR CALLBACK SettingsProc (\r\n\t_In_ HWND hwnd,\r\n\t_In_ UINT msg,\r\n\t_In_ WPARAM wparam,\r\n\t_In_ LPARAM lparam\r\n)\r\n{\r\n\tswitch (msg)\r\n\t{\r\n\t\tcase RM_INITIALIZE:\r\n\t\t{\r\n\t\t\tINT dialog_id;\r\n\r\n\t\t\tdialog_id = (INT)wparam;\r\n\r\n\t\t\tswitch (dialog_id)\r\n\t\t\t{\r\n\t\t\t\tcase IDD_SETTINGS_GENERAL:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_ALWAYSONTOP_CHK, _r_config_getboolean (L\"AlwaysOnTop\", FALSE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_LOADONSTARTUP_CHK, _r_autorun_isenabled ());\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_STARTMINIMIZED_CHK, _r_config_getboolean (L\"IsStartMinimized\", FALSE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_REDUCTCONFIRMATION_CHK, _r_config_getboolean (L\"IsShowReductConfirmation\", TRUE, NULL));\r\n\r\n\t\t\t\t\tif (!_r_sys_iselevated ())\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_SKIPUACWARNING_CHK, FALSE);\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_SKIPUACWARNING_CHK, _r_skipuac_isenabled ());\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_CHECKUPDATES_CHK, _r_update_isenabled (FALSE));\r\n\r\n\t\t\t\t\t_r_locale_enum (hwnd, IDC_LANGUAGE, 0);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_MEMORY:\r\n\t\t\t\t{\r\n\t\t\t\t\tULONG mask;\r\n\r\n\t\t\t\t\t_r_listview_setstyle (hwnd, IDC_REGIONS, LVS_EX_CHECKBOXES | LVS_EX_DOUBLEBUFFER | LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP | LVS_EX_LABELTIP, FALSE);\r\n\r\n\t\t\t\t\t_r_wnd_setcontext (hwnd, IDC_REGIONS, INVALID_HANDLE_VALUE);\r\n\r\n\t\t\t\t\t// fix by @XakerTwo\r\n\t\t\t\t\t_r_listview_deleteallcolumns (hwnd, IDC_REGIONS);\r\n\t\t\t\t\t_r_listview_deleteallitems (hwnd, IDC_REGIONS);\r\n\r\n\t\t\t\t\t_r_listview_addcolumn (hwnd, IDC_REGIONS, 0, NULL, 10, LVCFMT_LEFT);\r\n\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 0, TITLE_WORKINGSET, I_DEFAULT, I_DEFAULT, REDUCT_WORKING_SET);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 1, TITLE_SYSTEMFILECACHE, I_DEFAULT, I_DEFAULT, REDUCT_SYSTEM_FILE_CACHE);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 2, TITLE_MODIFIEDLIST, I_DEFAULT, I_DEFAULT, REDUCT_MODIFIED_LIST);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 3, TITLE_STANDBYLIST, I_DEFAULT, I_DEFAULT, REDUCT_STANDBY_LIST);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 4, TITLE_STANDBYLISTPRIORITY0, I_DEFAULT, I_DEFAULT, REDUCT_STANDBY_PRIORITY0_LIST);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 5, TITLE_MODIFIEDFILECACHE, I_DEFAULT, I_DEFAULT, REDUCT_MODIFIED_FILE_CACHE);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 6, TITLE_REGISTRYCACHE, I_DEFAULT, I_DEFAULT, REDUCT_REGISTRY_CACHE);\r\n\t\t\t\t\t_r_listview_additem (hwnd, IDC_REGIONS, 7, TITLE_COMBINEMEMORYLISTS, I_DEFAULT, I_DEFAULT, REDUCT_COMBINE_MEMORY_LISTS);\r\n\r\n\t\t\t\t\t_r_listview_setcolumn (hwnd, IDC_REGIONS, 0, NULL, -100);\r\n\r\n\t\t\t\t\tmask = _r_config_getulong (L\"ReductMask2\", REDUCT_MASK_DEFAULT, NULL);\r\n\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 0, (mask & REDUCT_WORKING_SET) == REDUCT_WORKING_SET);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 1, (mask & REDUCT_SYSTEM_FILE_CACHE) == REDUCT_SYSTEM_FILE_CACHE);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 2, (mask & REDUCT_MODIFIED_LIST) == REDUCT_MODIFIED_LIST);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 3, (mask & REDUCT_STANDBY_LIST) == REDUCT_STANDBY_LIST);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 4, (mask & REDUCT_STANDBY_PRIORITY0_LIST) == REDUCT_STANDBY_PRIORITY0_LIST);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 5, (mask & REDUCT_MODIFIED_FILE_CACHE) == REDUCT_MODIFIED_FILE_CACHE);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 6, (mask & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE);\r\n\t\t\t\t\t_r_listview_setitemcheck (hwnd, IDC_REGIONS, 7, (mask & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS);\r\n\r\n\t\t\t\t\t_r_wnd_removecontext (hwnd, IDC_REGIONS);\r\n\r\n\t\t\t\t\tif (!_r_sys_iselevated ())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_REGIONS, FALSE);\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_AUTOREDUCTENABLE_CHK, FALSE);\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_AUTOREDUCTINTERVALENABLE_CHK, FALSE);\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_HOTKEY_CLEAN_CHK, FALSE);\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_HOTKEY_CLEAN, FALSE);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_AUTOREDUCTENABLE_CHK, _r_config_getboolean (L\"AutoreductEnable\", FALSE, NULL));\r\n\r\n\t\t\t\t\t_r_updown_setrange (hwnd, IDC_AUTOREDUCTVALUE, 1, 99);\r\n\r\n\t\t\t\t\t_r_updown_setvalue (hwnd, IDC_AUTOREDUCTVALUE, _app_getlimitvalue ());\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_AUTOREDUCTINTERVALENABLE_CHK, _r_config_getboolean (L\"AutoreductIntervalEnable\", FALSE, NULL));\r\n\r\n\t\t\t\t\t_r_updown_setrange (hwnd, IDC_AUTOREDUCTINTERVALVALUE, 1, 1440);\r\n\r\n\t\t\t\t\t_r_updown_setvalue (hwnd, IDC_AUTOREDUCTINTERVALVALUE, _app_getintervalvalue ());\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_HOTKEY_CLEAN_CHK, _r_config_getboolean (L\"HotkeyCleanEnable\", FALSE, NULL));\r\n\r\n\t\t\t\t\tif (!_r_ctrl_isbuttonchecked (hwnd, IDC_HOTKEY_CLEAN_CHK))\r\n\t\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_HOTKEY_CLEAN, FALSE);\r\n\r\n\t\t\t\t\t_r_hotkey_set (hwnd, IDC_HOTKEY_CLEAN, _r_config_getlong (L\"HotkeyClean\", MAKEWORD (VK_F1, HOTKEYF_CONTROL), NULL));\r\n\r\n\t\t\t\t\t_r_ctrl_sendcommand (hwnd, IDC_AUTOREDUCTENABLE_CHK, 0);\r\n\t\t\t\t\t_r_ctrl_sendcommand (hwnd, IDC_AUTOREDUCTINTERVALENABLE_CHK, 0);\r\n\t\t\t\t\t_r_ctrl_sendcommand (hwnd, IDC_HOTKEY_CLEAN_CHK, 0);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_APPEARANCE:\r\n\t\t\t\t{\r\n\t\t\t\t\tLOGFONT logfont;\r\n\t\t\t\t\tLONG dpi_value;\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_TRAYUSETRANSPARENCY_CHK, _r_config_getboolean (L\"TrayUseTransparency\", FALSE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_TRAYSHOWBORDER_CHK, _r_config_getboolean (L\"TrayShowBorder\", FALSE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_TRAYROUNDCORNERS_CHK, _r_config_getboolean (L\"TrayRoundCorners\", FALSE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_TRAYCHANGEBG_CHK, _r_config_getboolean (L\"TrayChangeBg\", TRUE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_TRAYUSEANTIALIASING_CHK, _r_config_getboolean (L\"TrayUseAntialiasing\", FALSE, NULL));\r\n\r\n\t\t\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t\t\t_app_fontinit (&logfont, dpi_value);\r\n\t\t\t\t\t_app_setfontcontrol (hwnd, IDC_FONT, &logfont, dpi_value);\r\n\r\n\t\t\t\t\t_r_listview_setstyle (hwnd, IDC_COLORS, LVS_EX_DOUBLEBUFFER | LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP | LVS_EX_LABELTIP, FALSE);\r\n\r\n\t\t\t\t\t// fix by @XakerTwo\r\n\t\t\t\t\t_r_listview_deleteallcolumns (hwnd, IDC_COLORS);\r\n\t\t\t\t\t_r_listview_deleteallitems (hwnd, IDC_COLORS);\r\n\r\n\t\t\t\t\t_r_listview_addcolumn (hwnd, IDC_COLORS, 0, NULL, -100, LVCFMT_LEFT);\r\n\r\n\t\t\t\t\t_r_listview_additem (\r\n\t\t\t\t\t\thwnd,\r\n\t\t\t\t\t\tIDC_COLORS,\r\n\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t_r_locale_getstring (IDS_COLOR_TEXT_HINT),\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\t_r_config_getulong (L\"TrayColorText\", TRAY_COLOR_TEXT, NULL)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t_r_listview_additem (\r\n\t\t\t\t\t\thwnd,\r\n\t\t\t\t\t\tIDC_COLORS,\r\n\t\t\t\t\t\t1,\r\n\t\t\t\t\t\t_r_locale_getstring (IDS_COLOR_BACKGROUND_HINT),\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\t_r_config_getulong (L\"TrayColorBg\", TRAY_COLOR_BG, NULL)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t_r_listview_additem (\r\n\t\t\t\t\t\thwnd,\r\n\t\t\t\t\t\tIDC_COLORS,\r\n\t\t\t\t\t\t2,\r\n\t\t\t\t\t\t_r_locale_getstring (IDS_COLOR_WARNING_HINT),\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\t_r_config_getulong (L\"TrayColorWarning\", TRAY_COLOR_WARNING, NULL)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t_r_listview_additem (\r\n\t\t\t\t\t\thwnd,\r\n\t\t\t\t\t\tIDC_COLORS,\r\n\t\t\t\t\t\t3,\r\n\t\t\t\t\t\t_r_locale_getstring (IDS_COLOR_DANGER_HINT),\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\tI_DEFAULT,\r\n\t\t\t\t\t\t_r_config_getulong (L\"TrayColorDanger\", TRAY_COLOR_DANGER, NULL)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_TRAY:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_updown_setrange (hwnd, IDC_TRAYLEVELWARNING, 1, 99);\r\n\t\t\t\t\t_r_updown_setvalue (hwnd, IDC_TRAYLEVELWARNING, _app_getwarningvalue ());\r\n\r\n\t\t\t\t\t_r_updown_setrange (hwnd, IDC_TRAYLEVELDANGER, 1, 99);\r\n\t\t\t\t\t_r_updown_setvalue (hwnd, IDC_TRAYLEVELDANGER, _app_getdangervalue ());\r\n\r\n\t\t\t\t\t_r_combobox_setcurrentitem (hwnd, IDC_TRAYACTIONSC, _r_config_getlong (L\"TrayActionDc\", 0, NULL));\r\n\t\t\t\t\t_r_combobox_setcurrentitem (hwnd, IDC_TRAYACTIONMC, _r_config_getlong (L\"TrayActionMc\", 1, NULL));\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_SHOW_CLEAN_RESULT_CHK, _r_config_getboolean (L\"BalloonCleanResults\", TRUE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_NOTIFICATIONSOUND_CHK, _r_config_getboolean (L\"IsNotificationsSound\", TRUE, NULL));\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_ADVANCED:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_ALLOWSTANDBYLISTCLEANUP_CHK, _r_config_getboolean (L\"IsAllowStandbyListCleanup\", FALSE, NULL));\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, IDC_LOGRESULTS_CHK, _r_config_getboolean (L\"LogCleanResults\", FALSE, NULL));\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase RM_LOCALIZE:\r\n\t\t{\r\n\t\t\tINT dialog_id;\r\n\r\n\t\t\tdialog_id = (INT)wparam;\r\n\r\n\t\t\t// localize titles\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_1, L\"%s:\", _r_locale_getstring (IDS_TITLE_1));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_2, L\"%s: (Language)\", _r_locale_getstring (IDS_TITLE_2));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_3, L\"%s:\", _r_locale_getstring (IDS_TITLE_3));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_4, L\"%s:\", _r_locale_getstring (IDS_TITLE_4));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_5, L\"%s:\", _r_locale_getstring (IDS_TITLE_5));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_6, L\"%s:\", _r_locale_getstring (IDS_TITLE_6));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_7, L\"%s:\", _r_locale_getstring (IDS_TITLE_7));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_8, L\"%s:\", _r_locale_getstring (IDS_TITLE_8));\r\n\t\t\t_r_ctrl_setstringformat (hwnd, IDC_TITLE_9, L\"%s:\", _r_locale_getstring (IDS_TITLE_9));\r\n\r\n\t\t\tswitch (dialog_id)\r\n\t\t\t{\r\n\t\t\t\tcase IDD_SETTINGS_GENERAL:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_ALWAYSONTOP_CHK, _r_locale_getstring (IDS_ALWAYSONTOP_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_LOADONSTARTUP_CHK, _r_locale_getstring (IDS_LOADONSTARTUP_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_STARTMINIMIZED_CHK, _r_locale_getstring (IDS_STARTMINIMIZED_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_REDUCTCONFIRMATION_CHK, _r_locale_getstring (IDS_REDUCTCONFIRMATION_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_SKIPUACWARNING_CHK, _r_locale_getstring (IDS_SKIPUACWARNING_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_CHECKUPDATES_CHK, _r_locale_getstring (IDS_CHECKUPDATES_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_LANGUAGE_HINT, _r_locale_getstring (IDS_LANGUAGE_HINT));\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_MEMORY:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_AUTOREDUCTENABLE_CHK, _r_locale_getstring (IDS_AUTOREDUCTENABLE_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_AUTOREDUCTINTERVALENABLE_CHK, _r_locale_getstring (IDS_AUTOREDUCTINTERVALENABLE_CHK));\r\n\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_HOTKEY_CLEAN_CHK, _r_locale_getstring (IDS_HOTKEY_CLEAN_CHK));\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_APPEARANCE:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYUSETRANSPARENCY_CHK, _r_locale_getstring (IDS_TRAYUSETRANSPARENCY_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYSHOWBORDER_CHK, _r_locale_getstring (IDS_TRAYSHOWBORDER_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYROUNDCORNERS_CHK, _r_locale_getstring (IDS_TRAYROUNDCORNERS_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYCHANGEBG_CHK, _r_locale_getstring (IDS_TRAYCHANGEBG_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYUSEANTIALIASING_CHK, _r_locale_getstring (IDS_TRAYUSEANTIALIASING_CHK));\r\n\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_FONT_HINT, _r_locale_getstring (IDS_FONT_HINT));\r\n\r\n\t\t\t\t\t_r_listview_setitem (hwnd, IDC_COLORS, 0, 0, _r_locale_getstring (IDS_COLOR_TEXT_HINT), I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\t\t\t\t\t_r_listview_setitem (hwnd, IDC_COLORS, 1, 0, _r_locale_getstring (IDS_COLOR_BACKGROUND_HINT), I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\t\t\t\t\t_r_listview_setitem (hwnd, IDC_COLORS, 2, 0, _r_locale_getstring (IDS_COLOR_WARNING_HINT), I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\t\t\t\t\t_r_listview_setitem (hwnd, IDC_COLORS, 3, 0, _r_locale_getstring (IDS_COLOR_DANGER_HINT), I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_TRAY:\r\n\t\t\t\t{\r\n\t\t\t\t\tLPCWSTR string;\r\n\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYLEVELWARNING_HINT, _r_locale_getstring (IDS_TRAYLEVELWARNING_HINT));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYLEVELDANGER_HINT, _r_locale_getstring (IDS_TRAYLEVELDANGER_HINT));\r\n\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYACTIONSC_HINT, _r_locale_getstring (IDS_TRAYACTIONSC_HINT));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_TRAYACTIONMC_HINT, _r_locale_getstring (IDS_TRAYACTIONMC_HINT));\r\n\r\n\t\t\t\t\t_r_combobox_clear (hwnd, IDC_TRAYACTIONSC);\r\n\t\t\t\t\t_r_combobox_clear (hwnd, IDC_TRAYACTIONMC);\r\n\r\n\t\t\t\t\tfor (INT i = 0; i < 3; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstring = _r_locale_getstring (IDS_TRAY_ACTION_1 + i);\r\n\r\n\t\t\t\t\t\t_r_combobox_insertitem (hwnd, IDC_TRAYACTIONSC, i, string, i);\r\n\t\t\t\t\t\t_r_combobox_insertitem (hwnd, IDC_TRAYACTIONMC, i, string, i);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_r_combobox_setcurrentitembylparam (hwnd, IDC_TRAYACTIONSC, _r_config_getlong (L\"TrayActionDc\", 0, NULL));\r\n\t\t\t\t\t_r_combobox_setcurrentitembylparam (hwnd, IDC_TRAYACTIONMC, _r_config_getlong (L\"TrayActionMc\", 1, NULL));\r\n\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_SHOW_CLEAN_RESULT_CHK, _r_locale_getstring (IDS_SHOW_CLEAN_RESULT_CHK));\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_NOTIFICATIONSOUND_CHK, _r_locale_getstring (IDS_NOTIFICATIONSOUND_CHK));\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDD_SETTINGS_ADVANCED:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_ALLOWSTANDBYLISTCLEANUP_CHK, L\"Allow \\\"Standby lists\\\" and \\\"Modified page list\\\" cleanup on autoreduct\");\r\n\t\t\t\t\t_r_ctrl_setstring (hwnd, IDC_LOGRESULTS_CHK, L\"Log cleaning results into a debug log\");\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_NOTIFY:\r\n\t\t{\r\n\t\t\tLPNMHDR nmlp;\r\n\r\n\t\t\tnmlp = (LPNMHDR)lparam;\r\n\r\n\t\t\tswitch (nmlp->code)\r\n\t\t\t{\r\n\t\t\t\tcase NM_CUSTOMDRAW:\r\n\t\t\t\t{\r\n\t\t\t\t\tLPNMLVCUSTOMDRAW lpnmlv;\r\n\t\t\t\t\tCOLORREF clr;\r\n\r\n\t\t\t\t\tlpnmlv = (LPNMLVCUSTOMDRAW)lparam;\r\n\r\n\t\t\t\t\tswitch (lpnmlv->nmcd.dwDrawStage)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase CDDS_PREPAINT:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSetWindowLongPtrW (hwnd, DWLP_MSGRESULT, CDRF_NOTIFYITEMDRAW);\r\n\r\n\t\t\t\t\t\t\treturn CDRF_NOTIFYITEMDRAW;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase CDDS_ITEMPREPAINT:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (lpnmlv->nmcd.hdr.idFrom == IDC_REGIONS)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_8_1) && (lpnmlv->nmcd.lItemlParam & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tclr = _r_theme_isenabled () ? WND_GRAYTEXT_CLR : GetSysColor (COLOR_GRAYTEXT);\r\n\r\n\t\t\t\t\t\t\t\t\tlpnmlv->clrText = _r_dc_getcolorbrightness (clr);\r\n\t\t\t\t\t\t\t\t\tlpnmlv->clrTextBk = clr;\r\n\r\n\t\t\t\t\t\t\t\t\treturn CDRF_NEWFONT;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_10) && (lpnmlv->nmcd.lItemlParam & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tclr = _r_theme_isenabled () ? WND_GRAYTEXT_CLR : GetSysColor (COLOR_GRAYTEXT);\r\n\r\n\t\t\t\t\t\t\t\t\tlpnmlv->clrText = _r_dc_getcolorbrightness (clr);\r\n\t\t\t\t\t\t\t\t\tlpnmlv->clrTextBk = clr;\r\n\r\n\t\t\t\t\t\t\t\t\treturn CDRF_NEWFONT;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (lpnmlv->nmcd.hdr.idFrom == IDC_COLORS)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tclr = (COLORREF)lpnmlv->nmcd.lItemlParam;\r\n\r\n\t\t\t\t\t\t\t\tlpnmlv->clrText = _r_dc_getcolorbrightness (clr);\r\n\t\t\t\t\t\t\t\tlpnmlv->clrTextBk = clr;\r\n\r\n\t\t\t\t\t\t\t\t_r_dc_fillrect (lpnmlv->nmcd.hdc, &lpnmlv->nmcd.rc, clr);\r\n\r\n\t\t\t\t\t\t\t\tSetWindowLongPtrW (hwnd, DWLP_MSGRESULT, CDRF_NEWFONT);\r\n\r\n\t\t\t\t\t\t\t\treturn CDRF_NEWFONT;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase NM_DBLCLK:\r\n\t\t\t\t{\r\n\t\t\t\t\tLPNMITEMACTIVATE lpnmlv;\r\n\t\t\t\t\tCHOOSECOLOR cc = {0};\r\n\t\t\t\t\tCOLORREF cust[16] = {TRAY_COLOR_DANGER, TRAY_COLOR_WARNING, TRAY_COLOR_BG, TRAY_COLOR_TEXT};\r\n\t\t\t\t\tCOLORREF clr;\r\n\t\t\t\t\tLONG dpi_value;\r\n\t\t\t\t\tINT listview_id;\r\n\r\n\t\t\t\t\tlpnmlv = (LPNMITEMACTIVATE)lparam;\r\n\t\t\t\t\tlistview_id = (INT)(INT_PTR)lpnmlv->hdr.idFrom;\r\n\r\n\t\t\t\t\tif (lpnmlv->iItem == INT_ERROR || listview_id != IDC_COLORS)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tclr = (COLORREF)_r_listview_getitemlparam (hwnd, listview_id, lpnmlv->iItem);\r\n\r\n\t\t\t\t\tif (!clr)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcc.lStructSize = sizeof (CHOOSECOLOR);\r\n\t\t\t\t\tcc.Flags = CC_RGBINIT | CC_FULLOPEN;\r\n\t\t\t\t\tcc.hwndOwner = hwnd;\r\n\t\t\t\t\tcc.lpCustColors = cust;\r\n\t\t\t\t\tcc.rgbResult = clr;\r\n\r\n\t\t\t\t\tif (ChooseColorW (&cc))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (lpnmlv->iItem == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setulong (L\"TrayColorText\", cc.rgbResult, NULL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (lpnmlv->iItem == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setulong (L\"TrayColorBg\", cc.rgbResult, NULL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (lpnmlv->iItem == 2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setulong (L\"TrayColorWarning\", cc.rgbResult, NULL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (lpnmlv->iItem == 3)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setulong (L\"TrayColorDanger\", cc.rgbResult, NULL);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t_r_listview_setitem (hwnd, IDC_COLORS, lpnmlv->iItem, lpnmlv->iSubItem, NULL, I_DEFAULT, I_DEFAULT, cc.rgbResult);\r\n\r\n\t\t\t\t\t\t_r_listview_redraw (hwnd, IDC_COLORS);\r\n\r\n\t\t\t\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t\t\t\t_app_iconinit (dpi_value);\r\n\t\t\t\t\t\t_app_iconredraw (_r_app_gethwnd ());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase LVN_ITEMCHANGED:\r\n\t\t\t\t{\r\n\t\t\t\t\tLPNMLISTVIEW lpnmlv;\r\n\t\t\t\t\tINT listview_id;\r\n\t\t\t\t\tULONG value;\r\n\t\t\t\t\tULONG mask;\r\n\r\n\t\t\t\t\tlpnmlv = (LPNMLISTVIEW)lparam;\r\n\t\t\t\t\tlistview_id = (INT)(INT_PTR)lpnmlv->hdr.idFrom;\r\n\r\n\t\t\t\t\tif (listview_id != IDC_REGIONS)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tif (_r_wnd_getcontext (hwnd, listview_id))\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tif ((lpnmlv->uChanged & LVIF_STATE) == 0)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tif ((lpnmlv->uNewState & LVIS_STATEIMAGEMASK) == INDEXTOSTATEIMAGEMASK (1) || ((lpnmlv->uNewState & LVIS_STATEIMAGEMASK) == INDEXTOSTATEIMAGEMASK (2)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = (ULONG)lpnmlv->lParam;\r\n\r\n\t\t\t\t\t\tmask = _r_config_getulong (L\"ReductMask2\", REDUCT_MASK_DEFAULT, NULL);\r\n\r\n\t\t\t\t\t\tif ((lpnmlv->uNewState & LVIS_STATEIMAGEMASK) == INDEXTOSTATEIMAGEMASK (2))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ((value & REDUCT_MASK_FREEZES) != 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif (!_r_show_confirmmessage (hwnd, NULL, _r_locale_getstring (IDS_QUESTION_WARNING), L\"IsShowWarningConfirmation\", FALSE))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t_r_listview_setitemcheck (hwnd, listview_id, lpnmlv->iItem, FALSE);\r\n\r\n\t\t\t\t\t\t\t\t\treturn FALSE;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_8_1) && (value & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_listview_setitemcheck (hwnd, listview_id, lpnmlv->iItem, (mask & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE);\r\n\r\n\t\t\t\t\t\t\treturn FALSE;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_10) && (value & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_listview_setitemcheck (hwnd, listview_id, lpnmlv->iItem, (mask & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS);\r\n\r\n\t\t\t\t\t\t\treturn FALSE;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif ((lpnmlv->uNewState & LVIS_STATEIMAGEMASK) == INDEXTOSTATEIMAGEMASK (2))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask |= value;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask &= ~value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t_r_config_setulong (L\"ReductMask2\", mask, NULL);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_VSCROLL:\r\n\t\tcase WM_HSCROLL:\r\n\t\t{\r\n\t\t\tLONG value;\r\n\t\t\tINT ctrl_id;\r\n\t\t\tBOOLEAN is_stylechanged = FALSE;\r\n\r\n\t\t\tctrl_id = GetDlgCtrlID ((HWND)lparam);\r\n\r\n\t\t\tif (ctrl_id == IDC_AUTOREDUCTVALUE)\r\n\t\t\t{\r\n\t\t\t\tvalue = _r_updown_getvalue (hwnd, ctrl_id);\r\n\r\n\t\t\t\t_r_config_setlong (L\"AutoreductValue\", value, NULL);\r\n\t\t\t}\r\n\t\t\telse if (ctrl_id == IDC_AUTOREDUCTINTERVALVALUE)\r\n\t\t\t{\r\n\t\t\t\tvalue = _r_updown_getvalue (hwnd, ctrl_id);\r\n\r\n\t\t\t\t_r_config_setlong (L\"AutoreductIntervalValue\", value, NULL);\r\n\t\t\t}\r\n\t\t\telse if (ctrl_id == IDC_TRAYLEVELWARNING)\r\n\t\t\t{\r\n\t\t\t\tvalue = _r_updown_getvalue (hwnd, ctrl_id);\r\n\r\n\t\t\t\t_r_config_setlong (L\"TrayLevelWarning\", value, NULL);\r\n\r\n\t\t\t\tis_stylechanged = TRUE;\r\n\t\t\t}\r\n\t\t\telse if (ctrl_id == IDC_TRAYLEVELDANGER)\r\n\t\t\t{\r\n\t\t\t\tvalue = _r_updown_getvalue (hwnd, ctrl_id);\r\n\r\n\t\t\t\t_r_config_setlong (L\"TrayLevelDanger\", value, NULL);\r\n\r\n\t\t\t\tis_stylechanged = TRUE;\r\n\t\t\t}\r\n\r\n\t\t\tif (is_stylechanged)\r\n\t\t\t{\r\n\t\t\t\t_app_iconredraw (_r_app_gethwnd ());\r\n\r\n\t\t\t\t_r_listview_redraw (_r_app_gethwnd (), IDC_LISTVIEW);\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_COMMAND:\r\n\t\t{\r\n\t\t\tINT ctrl_id = LOWORD (wparam);\r\n\t\t\tINT notify_code = HIWORD (wparam);\r\n\r\n\t\t\tswitch (ctrl_id)\r\n\t\t\t{\r\n\t\t\t\tcase IDC_AUTOREDUCTVALUE_CTRL:\r\n\t\t\t\t{\r\n\t\t\t\t\tLONG value;\r\n\r\n\t\t\t\t\tif (notify_code == EN_CHANGE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = _r_updown_getvalue (hwnd, IDC_AUTOREDUCTVALUE);\r\n\r\n\t\t\t\t\t\t_r_config_setlong (L\"AutoreductValue\", value, NULL);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_AUTOREDUCTINTERVALVALUE_CTRL:\r\n\t\t\t\t{\r\n\t\t\t\t\tLONG value;\r\n\r\n\t\t\t\t\tif (notify_code == EN_CHANGE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = _r_updown_getvalue (hwnd, IDC_AUTOREDUCTINTERVALVALUE);\r\n\r\n\t\t\t\t\t\t_r_config_setlong (L\"AutoreductIntervalValue\", value, NULL);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_TRAYLEVELWARNING_CTRL:\r\n\t\t\t\tcase IDC_TRAYLEVELDANGER_CTRL:\r\n\t\t\t\t{\r\n\t\t\t\t\tLONG value;\r\n\r\n\t\t\t\t\tif (notify_code == EN_CHANGE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (ctrl_id == IDC_TRAYLEVELWARNING_CTRL)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalue = _r_updown_getvalue (hwnd, IDC_TRAYLEVELWARNING);\r\n\r\n\t\t\t\t\t\t\t_r_config_setlong (L\"TrayLevelWarning\", value, NULL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (ctrl_id == IDC_TRAYLEVELDANGER_CTRL)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalue = _r_updown_getvalue (hwnd, IDC_TRAYLEVELDANGER);\r\n\r\n\t\t\t\t\t\t\t_r_config_setlong (L\"TrayLevelDanger\", value, NULL);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t_app_iconredraw (_r_app_gethwnd ());\r\n\r\n\t\t\t\t\t\t_r_listview_redraw (_r_app_gethwnd (), IDC_LISTVIEW);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_ALWAYSONTOP_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enable;\r\n\r\n\t\t\t\t\tis_enable = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"AlwaysOnTop\", is_enable, NULL);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (_r_app_gethwnd ()), IDM_ALWAYSONTOP_CHK, 0, MF_BYCOMMAND, is_enable);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_LOADONSTARTUP_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enable;\r\n\r\n\t\t\t\t\tis_enable = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_autorun_enable (hwnd, is_enable);\r\n\r\n\t\t\t\t\tis_enable = _r_autorun_isenabled ();\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (_r_app_gethwnd ()), IDM_LOADONSTARTUP_CHK, 0, MF_BYCOMMAND, is_enable);\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, ctrl_id, is_enable);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_STARTMINIMIZED_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enable;\r\n\r\n\t\t\t\t\tis_enable = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"IsStartMinimized\", is_enable, NULL);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (_r_app_gethwnd ()), IDM_STARTMINIMIZED_CHK, 0, MF_BYCOMMAND, is_enable);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_REDUCTCONFIRMATION_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enable;\r\n\r\n\t\t\t\t\tis_enable = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"IsShowReductConfirmation\", is_enable, NULL);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (_r_app_gethwnd ()), IDM_REDUCTCONFIRMATION_CHK, 0, MF_BYCOMMAND, is_enable);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_SKIPUACWARNING_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enable;\r\n\r\n\t\t\t\t\tis_enable = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_skipuac_enable (hwnd, is_enable);\r\n\r\n\t\t\t\t\tis_enable = _r_skipuac_isenabled ();\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (_r_app_gethwnd ()), IDM_SKIPUACWARNING_CHK, 0, MF_BYCOMMAND, is_enable);\r\n\r\n\t\t\t\t\t_r_ctrl_checkbutton (hwnd, ctrl_id, is_enable);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_CHECKUPDATES_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enable;\r\n\r\n\t\t\t\t\tis_enable = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_update_enable (is_enable);\r\n\r\n\t\t\t\t\tis_enable = _r_update_isenabled (FALSE);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (_r_app_gethwnd ()), IDM_CHECKUPDATES_CHK, 0, MF_BYCOMMAND, is_enable);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_LANGUAGE:\r\n\t\t\t\t{\r\n\t\t\t\t\tif (notify_code == CBN_SELCHANGE)\r\n\t\t\t\t\t\t_r_locale_apply (hwnd, ctrl_id, 0);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_AUTOREDUCTENABLE_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tHWND hbuddy;\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isenabled (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\thbuddy = _r_updown_getbuddy (hwnd, IDC_AUTOREDUCTVALUE);\r\n\r\n\t\t\t\t\tif (hbuddy)\r\n\t\t\t\t\t\t_r_ctrl_enable (hbuddy, 0, is_enabled);\r\n\r\n\t\t\t\t\tif (is_enabled)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tis_enabled = (_r_ctrl_isbuttonchecked (hwnd, ctrl_id));\r\n\r\n\t\t\t\t\t\t_r_config_setboolean (L\"AutoreductEnable\", is_enabled, NULL);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_AUTOREDUCTINTERVALENABLE_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tHWND hbuddy;\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isenabled (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\thbuddy = _r_updown_getbuddy (hwnd, IDC_AUTOREDUCTINTERVALVALUE);\r\n\r\n\t\t\t\t\tif (hbuddy)\r\n\t\t\t\t\t\t_r_ctrl_enable (hbuddy, 0, is_enabled);\r\n\r\n\t\t\t\t\tif (is_enabled)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tis_enabled = (_r_ctrl_isbuttonchecked (hwnd, ctrl_id));\r\n\r\n\t\t\t\t\t\t_r_config_setboolean (L\"AutoreductIntervalEnable\", is_enabled, NULL);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_HOTKEY_CLEAN_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_checked;\r\n\r\n\t\t\t\t\tis_checked = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_ctrl_enable (hwnd, IDC_HOTKEY_CLEAN, is_checked);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"HotkeyCleanEnable\", is_checked, NULL);\r\n\r\n\t\t\t\t\t_app_hotkeyinit (_r_app_gethwnd ());\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_HOTKEY_CLEAN:\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!_r_ctrl_isbuttonchecked (hwnd, IDC_HOTKEY_CLEAN_CHK))\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tif (notify_code == EN_CHANGE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_r_config_setlong (L\"HotkeyClean\", _r_hotkey_get (hwnd, ctrl_id), NULL);\r\n\r\n\t\t\t\t\t\t_app_hotkeyinit (_r_app_gethwnd ());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_TRAYUSETRANSPARENCY_CHK:\r\n\t\t\t\tcase IDC_TRAYSHOWBORDER_CHK:\r\n\t\t\t\tcase IDC_TRAYROUNDCORNERS_CHK:\r\n\t\t\t\tcase IDC_TRAYCHANGEBG_CHK:\r\n\t\t\t\tcase IDC_TRAYUSEANTIALIASING_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\t\t\t\t\tLONG dpi_value;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\tswitch (ctrl_id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase IDC_TRAYUSETRANSPARENCY_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setboolean (L\"TrayUseTransparency\", is_enabled, NULL);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDC_TRAYSHOWBORDER_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setboolean (L\"TrayShowBorder\", is_enabled, NULL);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDC_TRAYROUNDCORNERS_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setboolean (L\"TrayRoundCorners\", is_enabled, NULL);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDC_TRAYCHANGEBG_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setboolean (L\"TrayChangeBg\", is_enabled, NULL);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDC_TRAYUSEANTIALIASING_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_config_setboolean (L\"TrayUseAntialiasing\", is_enabled, NULL);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t\t\t_app_iconinit (dpi_value);\r\n\t\t\t\t\t_app_iconredraw (_r_app_gethwnd ());\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_TRAYACTIONSC:\r\n\t\t\t\t{\r\n\t\t\t\t\tif (notify_code == CBN_SELCHANGE)\r\n\t\t\t\t\t\t_r_config_setlong (L\"TrayActionDc\", _r_combobox_getcurrentitem (hwnd, ctrl_id), NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_TRAYACTIONMC:\r\n\t\t\t\t{\r\n\t\t\t\t\tif (notify_code == CBN_SELCHANGE)\r\n\t\t\t\t\t\t_r_config_setlong (L\"TrayActionMc\", _r_combobox_getcurrentitem (hwnd, ctrl_id), NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_SHOW_CLEAN_RESULT_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"BalloonCleanResults\", is_enabled, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_NOTIFICATIONSOUND_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"IsNotificationsSound\", is_enabled, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_FONT:\r\n\t\t\t\t{\r\n\t\t\t\t\tCHOOSEFONT cf = {0};\r\n\t\t\t\t\tLOGFONT logfont;\r\n\t\t\t\t\tLONG dpi_value;\r\n\r\n\t\t\t\t\tcf.lStructSize = sizeof (CHOOSEFONT);\r\n\t\t\t\t\tcf.hwndOwner = hwnd;\r\n\t\t\t\t\tcf.Flags = CF_INITTOLOGFONTSTRUCT | CF_FORCEFONTEXIST | CF_SCREENFONTS;\r\n\r\n\t\t\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t\t\t_app_fontinit (&logfont, dpi_value);\r\n\r\n\t\t\t\t\tcf.lpLogFont = &logfont;\r\n\r\n\t\t\t\t\tif (ChooseFontW (&cf))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_r_config_setfont (L\"TrayFont\", &logfont, dpi_value, NULL);\r\n\r\n\t\t\t\t\t\t_app_setfontcontrol (hwnd, IDC_FONT, &logfont, dpi_value);\r\n\r\n\t\t\t\t\t\t_app_iconinit (dpi_value);\r\n\t\t\t\t\t\t_app_iconredraw (_r_app_gethwnd ());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_ALLOWSTANDBYLISTCLEANUP_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"IsAllowStandbyListCleanup\", is_enabled, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDC_LOGRESULTS_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tis_enabled = _r_ctrl_isbuttonchecked (hwnd, ctrl_id);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"LogCleanResults\", is_enabled, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\treturn FALSE;\r\n}\r\n\r\nVOID _app_resizecolumns (\r\n\t_In_ HWND hwnd\r\n)\r\n{\r\n\t_r_listview_setcolumn (hwnd, IDC_LISTVIEW, 0, NULL, -50);\r\n\t_r_listview_setcolumn (hwnd, IDC_LISTVIEW, 1, NULL, -50);\r\n}\r\n\r\nVOID _app_initialize (\r\n\t_In_opt_ HWND hwnd\r\n)\r\n{\r\n\tULONG privileges[] = {\r\n\t\tSE_PROF_SINGLE_PROCESS_PRIVILEGE,\r\n\t\tSE_INCREASE_QUOTA_PRIVILEGE,\r\n\t};\r\n\r\n\tLONG dpi_value;\r\n\r\n\tif (_r_sys_iselevated ())\r\n\t{\r\n\t\t_r_sys_setprocessprivilege (NtCurrentProcess (), privileges, RTL_NUMBER_OF (privileges), TRUE);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (hwnd)\r\n\t\t\t_r_ctrl_setbuttonshield (hwnd, IDC_CLEAN, TRUE);\r\n\t}\r\n\r\n\tif (!hwnd)\r\n\t\treturn;\r\n\r\n\tdpi_value = _r_dc_getwindowdpi (hwnd);\r\n\r\n\t_r_ctrl_setbuttonmargins (hwnd, IDC_CLEAN, dpi_value);\r\n\r\n\t// configure listview\r\n\t_r_listview_setstyle (\r\n\t\thwnd,\r\n\t\tIDC_LISTVIEW,\r\n\t\tLVS_EX_DOUBLEBUFFER | LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP | LVS_EX_LABELTIP,\r\n\t\tTRUE\r\n\t);\r\n\r\n\t_r_listview_addcolumn (hwnd, IDC_LISTVIEW, 1, NULL, 10, LVCFMT_RIGHT);\r\n\t_r_listview_addcolumn (hwnd, IDC_LISTVIEW, 2, NULL, 10, LVCFMT_LEFT);\r\n\r\n\t// configure listview\r\n\tfor (INT i = 0, k = 0; i < 3; i++)\r\n\t{\r\n\t\t_r_listview_addgroup (hwnd, IDC_LISTVIEW, i, _r_locale_getstring (IDS_GROUP_1 + i), 0, LVGS_COLLAPSIBLE, LVGS_COLLAPSIBLE);\r\n\r\n\t\tfor (INT j = 0; j < 3; j++)\r\n\t\t{\r\n\t\t\t_r_listview_additem (hwnd, IDC_LISTVIEW, k++, _r_locale_getstring (IDS_ITEM_1 + j), I_DEFAULT, i, 0);\r\n\t\t}\r\n\t}\r\n\r\n\t// settings\r\n\t_r_settings_addpage (IDD_SETTINGS_GENERAL, IDS_SETTINGS_GENERAL);\r\n\t_r_settings_addpage (IDD_SETTINGS_MEMORY, IDS_SETTINGS_MEMORY);\r\n\t_r_settings_addpage (IDD_SETTINGS_APPEARANCE, IDS_SETTINGS_APPEARANCE);\r\n\t_r_settings_addpage (IDD_SETTINGS_TRAY, IDS_SETTINGS_TRAY);\r\n\t_r_settings_addpage (IDD_SETTINGS_ADVANCED, IDS_TITLE_ADVANCED);\r\n\r\n\t_app_resizecolumns (hwnd);\r\n}\r\n\r\nINT_PTR CALLBACK DlgProc (\r\n\t_In_ HWND hwnd,\r\n\t_In_ UINT msg,\r\n\t_In_ WPARAM wparam,\r\n\t_In_ LPARAM lparam\r\n)\r\n{\r\n\tswitch (msg)\r\n\t{\r\n\t\tcase WM_INITDIALOG:\r\n\t\t{\r\n\t\t\t_r_app_sethwnd (hwnd); // HACK!!!\r\n\r\n\t\t\t_app_initialize (hwnd);\r\n\r\n\t\t\tSetTimer (hwnd, UID, TIMER, &_app_timercallback);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_DESTROY:\r\n\t\t{\r\n\t\t\tKillTimer (hwnd, UID);\r\n\r\n\t\t\t_r_tray_destroy (hwnd, &GUID_TrayIcon);\r\n\r\n\t\t\tPostQuitMessage (0);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase RM_INITIALIZE:\r\n\t\t{\r\n\t\t\tHMENU hmenu;\r\n\t\t\tLONG dpi_value;\r\n\r\n\t\t\thmenu = GetMenu (hwnd);\r\n\r\n\t\t\tif (hmenu)\r\n\t\t\t{\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_ALWAYSONTOP_CHK, 0, MF_BYCOMMAND, _r_config_getboolean (L\"AlwaysOnTop\", FALSE, NULL));\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_USEDARKTHEME, 0, MF_BYCOMMAND, _r_theme_isenabled ());\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_LOADONSTARTUP_CHK, 0, MF_BYCOMMAND, _r_autorun_isenabled ());\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_STARTMINIMIZED_CHK, 0, MF_BYCOMMAND, _r_config_getboolean (L\"IsStartMinimized\", FALSE, NULL));\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_REDUCTCONFIRMATION_CHK, 0, MF_BYCOMMAND, _r_config_getboolean (L\"IsShowReductConfirmation\", TRUE, NULL));\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_SKIPUACWARNING_CHK, 0, MF_BYCOMMAND, _r_skipuac_isenabled ());\r\n\t\t\t\t_r_menu_checkitem (hmenu, IDM_CHECKUPDATES_CHK, 0, MF_BYCOMMAND, _r_update_isenabled (FALSE));\r\n\r\n\t\t\t\tif (!_r_sys_iselevated ())\r\n\t\t\t\t\t_r_menu_enableitem (hmenu, IDM_SKIPUACWARNING_CHK, FALSE, FALSE);\r\n\t\t\t}\r\n\r\n\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t_app_iconinit (dpi_value);\r\n\r\n\t\t\t_r_tray_create (hwnd, &GUID_TrayIcon, RM_TRAYICON, _app_iconcreate (0), _r_app_getname (), FALSE);\r\n\r\n\t\t\t_app_iconredraw (hwnd);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase RM_INITIALIZE_POST:\r\n\t\t{\r\n\t\t\tif (_r_sys_iselevated ())\r\n\t\t\t\t_app_hotkeyinit (hwnd);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase RM_TASKBARCREATED:\r\n\t\t{\r\n\t\t\tLONG dpi_value;\r\n\r\n\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t_app_iconinit (dpi_value);\r\n\r\n\t\t\t_r_tray_create (hwnd, &GUID_TrayIcon, RM_TRAYICON, _app_iconcreate (0), _r_app_getname (), FALSE);\r\n\r\n\t\t\t_app_iconredraw (hwnd);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase RM_LOCALIZE:\r\n\t\t{\r\n\t\t\t// localize menu\r\n\t\t\tHMENU hmenu;\r\n\r\n\t\t\thmenu = GetMenu (hwnd);\r\n\r\n\t\t\tif (hmenu)\r\n\t\t\t{\r\n\t\t\t\t_r_menu_setitemtext (hmenu, 0, TRUE, _r_locale_getstring (IDS_FILE));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, 1, TRUE, _r_locale_getstring (IDS_VIEW));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, 2, TRUE, _r_locale_getstring (IDS_SETTINGS));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, 3, TRUE, _r_locale_getstring (IDS_HELP));\r\n\r\n\t\t\t\t_r_menu_setitemtextformat (hmenu, IDM_SETTINGS, FALSE, L\"%s...\\tF2\", _r_locale_getstring (IDS_SETTINGS));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_EXIT, FALSE, _r_locale_getstring (IDS_EXIT));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_ALWAYSONTOP_CHK, FALSE, _r_locale_getstring (IDS_ALWAYSONTOP_CHK));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_LOADONSTARTUP_CHK, FALSE, _r_locale_getstring (IDS_LOADONSTARTUP_CHK));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_USEDARKTHEME, FALSE, _r_locale_getstring (IDS_USEDARKTHEME));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_STARTMINIMIZED_CHK, FALSE, _r_locale_getstring (IDS_STARTMINIMIZED_CHK));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_REDUCTCONFIRMATION_CHK, FALSE, _r_locale_getstring (IDS_REDUCTCONFIRMATION_CHK));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_SKIPUACWARNING_CHK, FALSE, _r_locale_getstring (IDS_SKIPUACWARNING_CHK));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_CHECKUPDATES_CHK, FALSE, _r_locale_getstring (IDS_CHECKUPDATES_CHK));\r\n\t\t\t\t_r_menu_setitemtextformat (GetSubMenu (hmenu, LANG_SUBMENU), LANG_MENU, TRUE, L\"%s (Language)\", _r_locale_getstring (IDS_LANGUAGE));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_WEBSITE, FALSE, _r_locale_getstring (IDS_WEBSITE));\r\n\t\t\t\t_r_menu_setitemtext (hmenu, IDM_CHECKUPDATES, FALSE, _r_locale_getstring (IDS_CHECKUPDATES));\r\n\t\t\t\t_r_menu_setitemtextformat (hmenu, IDM_ABOUT, FALSE, L\"%s\\tF1\", _r_locale_getstring (IDS_ABOUT));\r\n\t\t\t}\r\n\r\n\t\t\t// configure listview\r\n\t\t\tfor (INT i = 0, k = 0; i < 3; i++)\r\n\t\t\t{\r\n\t\t\t\t_r_listview_setgroup (hwnd, IDC_LISTVIEW, i, _r_locale_getstring (IDS_GROUP_1 + i), 0, 0);\r\n\r\n\t\t\t\tfor (INT j = 0; j < 3; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_listview_setitem (hwnd, IDC_LISTVIEW, k++, 0, _r_locale_getstring (IDS_ITEM_1 + j), I_DEFAULT, I_DEFAULT, I_DEFAULT);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// configure button\r\n\t\t\t_r_ctrl_setstring (hwnd, IDC_CLEAN, _r_locale_getstring (IDS_CLEAN));\r\n\r\n\t\t\t// enum localizations\r\n\t\t\tif (hmenu)\r\n\t\t\t\t_r_locale_enum (GetSubMenu (hmenu, LANG_SUBMENU), LANG_MENU, IDX_LANGUAGE);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_DPICHANGED:\r\n\t\t{\r\n\t\t\tLONG dpi_value;\r\n\r\n\t\t\tdpi_value = _r_dc_gettaskbardpi ();\r\n\r\n\t\t\t_app_iconinit (dpi_value);\r\n\t\t\t_app_iconredraw (hwnd);\r\n\r\n\t\t\t_app_resizecolumns (hwnd);\r\n\r\n\t\t\tif (!_r_sys_iselevated ())\r\n\t\t\t{\r\n\t\t\t\tdpi_value = LOWORD (wparam);\r\n\r\n\t\t\t\t_r_ctrl_setbuttonmargins (hwnd, IDC_CLEAN, dpi_value);\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_PAINT:\r\n\t\t{\r\n\t\t\tPAINTSTRUCT ps;\r\n\t\t\tHDC hdc;\r\n\r\n\t\t\thdc = BeginPaint (hwnd, &ps);\r\n\r\n\t\t\tif (!hdc)\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t_r_dc_drawwindow (hdc, hwnd, TRUE);\r\n\r\n\t\t\tEndPaint (hwnd, &ps);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_HOTKEY:\r\n\t\t{\r\n\t\t\tif (wparam == UID)\r\n\t\t\t\t_app_memoryclean (hwnd, SOURCE_HOTKEY, 0);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_SHOWWINDOW:\r\n\t\t{\r\n\t\t\tif (wparam)\r\n\t\t\t\t_app_iconredraw (hwnd);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_NOTIFY:\r\n\t\t{\r\n\t\t\tLPNMHDR nmlp;\r\n\r\n\t\t\tnmlp = (LPNMHDR)lparam;\r\n\r\n\t\t\tswitch (nmlp->code)\r\n\t\t\t{\r\n\t\t\t\tcase BCN_DROPDOWN:\r\n\t\t\t\t{\r\n\t\t\t\t\tR_RECTANGLE rectangle;\r\n\t\t\t\t\tRECT rect;\r\n\t\t\t\t\tHMENU hsubmenu;\r\n\r\n\t\t\t\t\thsubmenu = CreatePopupMenu ();\r\n\r\n\t\t\t\t\tif (!hsubmenu)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_WORKINGSET, TITLE_WORKINGSET);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_SYSTEMFILECACHE, TITLE_SYSTEMFILECACHE);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_MODIFIEDFILECACHE, TITLE_MODIFIEDFILECACHE);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_MODIFIEDLIST, TITLE_MODIFIEDLIST);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_STANDBYLIST, TITLE_STANDBYLIST);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_STANDBYLISTPRIORITY0, TITLE_STANDBYLISTPRIORITY0);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_REGISTRYCACHE, TITLE_REGISTRYCACHE);\r\n\t\t\t\t\t_r_menu_additem (hsubmenu, IDM_CLEAN_COMBINEMEMORYLISTS, TITLE_COMBINEMEMORYLISTS);\r\n\r\n\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_8_1))\r\n\t\t\t\t\t\t_r_menu_enableitem (hsubmenu, IDM_CLEAN_REGISTRYCACHE, FALSE, FALSE);\r\n\r\n\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_10))\r\n\t\t\t\t\t\t_r_menu_enableitem (hsubmenu, IDM_CLEAN_COMBINEMEMORYLISTS, FALSE, FALSE);\r\n\r\n\t\t\t\t\tif (GetClientRect (nmlp->hwndFrom, &rect))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tClientToScreen (nmlp->hwndFrom, (PPOINT)&rect);\r\n\r\n\t\t\t\t\t\t_r_wnd_recttorectangle (&rectangle, &rect);\r\n\t\t\t\t\t\t_r_wnd_adjustrectangletoworkingarea (nmlp->hwndFrom, &rectangle);\r\n\t\t\t\t\t\t_r_wnd_rectangletorect (&rect, &rectangle);\r\n\r\n\t\t\t\t\t\t_r_menu_popup (hsubmenu, hwnd, (PPOINT)&rect, TRUE);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDestroyMenu (hsubmenu);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase NM_CUSTOMDRAW:\r\n\t\t\t\t{\r\n\t\t\t\t\tLPNMLVCUSTOMDRAW lpnmlv;\r\n\t\t\t\t\tLONG_PTR result;\r\n\t\t\t\t\tULONG value;\r\n\r\n\t\t\t\t\tlpnmlv = (LPNMLVCUSTOMDRAW)lparam;\r\n\t\t\t\t\tresult = CDRF_DODEFAULT;\r\n\r\n\t\t\t\t\tif (nmlp->idFrom != IDC_LISTVIEW)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tswitch (lpnmlv->nmcd.dwDrawStage)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase CDDS_PREPAINT:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tresult = (CDRF_NOTIFYPOSTPAINT | CDRF_NOTIFYITEMDRAW);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase CDDS_ITEMPREPAINT:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvalue = (ULONG)lpnmlv->nmcd.lItemlParam;\r\n\r\n\t\t\t\t\t\t\tif (value >= _app_getdangervalue ())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlpnmlv->clrText = _r_config_getulong (L\"TrayColorDanger\", TRAY_COLOR_DANGER, NULL);\r\n\r\n\t\t\t\t\t\t\t\tresult = (CDRF_NOTIFYPOSTPAINT | CDRF_NEWFONT);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (value >= _app_getwarningvalue ())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tlpnmlv->clrText = _r_config_getulong (L\"TrayColorWarning\", TRAY_COLOR_WARNING, NULL);\r\n\r\n\t\t\t\t\t\t\t\tresult = (CDRF_NOTIFYPOSTPAINT | CDRF_NEWFONT);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSetWindowLongPtrW (hwnd, DWLP_MSGRESULT, result);\r\n\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase RM_TRAYICON:\r\n\t\t{\r\n\t\t\tswitch (LOWORD (lparam))\r\n\t\t\t{\r\n\t\t\t\tcase NIN_KEYSELECT:\r\n\t\t\t\t{\r\n\t\t\t\t\tif (GetForegroundWindow () != hwnd)\r\n\t\t\t\t\t\t_r_wnd_toggle (hwnd, TRUE);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase WM_LBUTTONDOWN:\r\n\t\t\t\tcase WM_MBUTTONDOWN:\r\n\t\t\t\t{\r\n\t\t\t\t\tLONG action;\r\n\r\n\t\t\t\t\tif (LOWORD (lparam) == WM_MBUTTONDOWN)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taction = _r_config_getlong (L\"TrayActionMc\", 1, NULL);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taction = _r_config_getlong (L\"TrayActionDc\", 0, NULL);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tswitch (action)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_app_memoryclean (hwnd, SOURCE_MANUAL, 0);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_sys_createprocess (L\"taskmgr.exe\", NULL, NULL, FALSE);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_wnd_toggle (hwnd, FALSE);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSetForegroundWindow (hwnd);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase WM_CONTEXTMENU:\r\n\t\t\t\t{\r\n\t\t\t\t\tHMENU hmenu;\r\n\t\t\t\t\tHMENU hsubmenu;\r\n\t\t\t\t\tHMENU hsubmenu_region;\r\n\t\t\t\t\tHMENU hsubmenu_limit;\r\n\t\t\t\t\tHMENU hsubmenu_interval;\r\n\t\t\t\t\tULONG mask;\r\n\t\t\t\t\tBOOLEAN is_enabled;\r\n\r\n\t\t\t\t\tSetForegroundWindow (hwnd); // don't touch\r\n\r\n\t\t\t\t\thmenu = LoadMenuW (NULL, MAKEINTRESOURCEW (IDM_TRAY));\r\n\r\n\t\t\t\t\tif (!hmenu)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\thsubmenu = GetSubMenu (hmenu, 0);\r\n\r\n\t\t\t\t\tif (!hsubmenu)\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\thsubmenu_region = GetSubMenu (hsubmenu, TRAY_SUBMENU_1);\r\n\t\t\t\t\thsubmenu_limit = GetSubMenu (hsubmenu, TRAY_SUBMENU_2);\r\n\t\t\t\t\thsubmenu_interval = GetSubMenu (hsubmenu, TRAY_SUBMENU_3);\r\n\r\n\t\t\t\t\t// localize\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, IDM_TRAY_SHOW, FALSE, _r_locale_getstring (IDS_TRAY_SHOW));\r\n\t\t\t\t\t_r_menu_setitemtextformat (hsubmenu, IDM_TRAY_CLEAN, FALSE, L\"%s...\", _r_locale_getstring (IDS_CLEAN));\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, TRAY_SUBMENU_1, TRUE, _r_locale_getstring (IDS_TRAY_POPUP_1));\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, TRAY_SUBMENU_2, TRUE, _r_locale_getstring (IDS_TRAY_POPUP_2));\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, TRAY_SUBMENU_3, TRUE, _r_locale_getstring (IDS_TRAY_POPUP_3));\r\n\t\t\t\t\t_r_menu_setitemtextformat (hsubmenu, IDM_TRAY_SETTINGS, FALSE, L\"%s...\", _r_locale_getstring (IDS_SETTINGS));\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, IDM_TRAY_WEBSITE, FALSE, _r_locale_getstring (IDS_WEBSITE));\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, IDM_TRAY_ABOUT, FALSE, _r_locale_getstring (IDS_ABOUT));\r\n\t\t\t\t\t_r_menu_setitemtext (hsubmenu, IDM_TRAY_EXIT, FALSE, _r_locale_getstring (IDS_EXIT));\r\n\r\n\t\t\t\t\t// configure region submenu\r\n\t\t\t\t\tif (hsubmenu_region)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmask = _r_config_getulong (L\"ReductMask2\", REDUCT_MASK_DEFAULT, NULL);\r\n\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_WORKINGSET_CHK, FALSE, TITLE_WORKINGSET);\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_SYSTEMFILECACHE_CHK, FALSE, TITLE_SYSTEMFILECACHE);\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_MODIFIEDFILECACHE_CHK, FALSE, TITLE_MODIFIEDFILECACHE);\r\n\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_MODIFIEDLIST_CHK, FALSE, TITLE_MODIFIEDLIST);\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_STANDBYLIST_CHK, FALSE, TITLE_STANDBYLIST);\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_STANDBYLISTPRIORITY0_CHK, FALSE, TITLE_STANDBYLISTPRIORITY0);\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_REGISTRYCACHE_CHK, FALSE, TITLE_REGISTRYCACHE);\r\n\t\t\t\t\t\t_r_menu_setitemtext (hsubmenu_region, IDM_COMBINEMEMORYLISTS_CHK, FALSE, TITLE_COMBINEMEMORYLISTS);\r\n\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_WORKINGSET_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_WORKING_SET) == REDUCT_WORKING_SET);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_SYSTEMFILECACHE_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_SYSTEM_FILE_CACHE) == REDUCT_SYSTEM_FILE_CACHE);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_MODIFIEDLIST_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_MODIFIED_LIST) == REDUCT_MODIFIED_LIST);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_STANDBYLIST_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_STANDBY_LIST) == REDUCT_STANDBY_LIST);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_STANDBYLISTPRIORITY0_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_STANDBY_PRIORITY0_LIST) == REDUCT_STANDBY_PRIORITY0_LIST);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_MODIFIEDFILECACHE_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_MODIFIED_FILE_CACHE) == REDUCT_MODIFIED_FILE_CACHE);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_REGISTRYCACHE_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_REGISTRY_CACHE) == REDUCT_REGISTRY_CACHE);\r\n\t\t\t\t\t\t_r_menu_checkitem (hsubmenu_region, IDM_COMBINEMEMORYLISTS_CHK, 0, MF_BYCOMMAND, (mask & REDUCT_COMBINE_MEMORY_LISTS) == REDUCT_COMBINE_MEMORY_LISTS);\r\n\r\n\t\t\t\t\t\tif (!_r_sys_iselevated ())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_WORKINGSET_CHK, FALSE, FALSE);\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_SYSTEMFILECACHE_CHK, FALSE, FALSE);\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_MODIFIEDFILECACHE_CHK, FALSE, FALSE);\r\n\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_MODIFIEDLIST_CHK, FALSE, FALSE);\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_STANDBYLIST_CHK, FALSE, FALSE);\r\n\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_STANDBYLISTPRIORITY0_CHK, FALSE, FALSE);\r\n\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_REGISTRYCACHE_CHK, FALSE, FALSE);\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_COMBINEMEMORYLISTS_CHK, FALSE, FALSE);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Flush registry cache (win8.1+)\r\n\t\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_8_1))\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_REGISTRYCACHE_CHK, FALSE, FALSE);\r\n\r\n\t\t\t\t\t\t// Combine memory lists (win10+)\r\n\t\t\t\t\t\tif (_r_sys_isosversionlower (WINDOWS_10))\r\n\t\t\t\t\t\t\t_r_menu_enableitem (hsubmenu_region, IDM_COMBINEMEMORYLISTS_CHK, FALSE, FALSE);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// configure submenu #2\r\n\t\t\t\t\tif (hsubmenu_limit)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tis_enabled = _r_config_getboolean (L\"AutoreductEnable\", FALSE, NULL);\r\n\r\n\t\t\t\t\t\t_app_generate_menu (\r\n\t\t\t\t\t\t\thsubmenu_limit,\r\n\t\t\t\t\t\t\tIDX_TRAY_POPUP_1,\r\n\t\t\t\t\t\t\tlimits_arr,\r\n\t\t\t\t\t\t\tRTL_NUMBER_OF (limits_arr),\r\n\t\t\t\t\t\t\tL\"%\" TEXT (PR_ULONG) L\"%%\",\r\n\t\t\t\t\t\t\t_app_getlimitvalue (),\r\n\t\t\t\t\t\t\tis_enabled\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// configure submenu #3\r\n\t\t\t\t\tif (hsubmenu_interval)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tis_enabled = _r_config_getboolean (L\"AutoreductIntervalEnable\", FALSE, NULL);\r\n\r\n\t\t\t\t\t\t_app_generate_menu (\r\n\t\t\t\t\t\t\thsubmenu_interval,\r\n\t\t\t\t\t\t\tIDX_TRAY_POPUP_2,\r\n\t\t\t\t\t\t\tintervals_arr,\r\n\t\t\t\t\t\t\tRTL_NUMBER_OF (intervals_arr),\r\n\t\t\t\t\t\t\tL\"%\" TEXT (PR_LONG64) L\" min.\",\r\n\t\t\t\t\t\t\t_app_getintervalvalue (),\r\n\t\t\t\t\t\t\tis_enabled\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_r_menu_popup (hsubmenu, hwnd, NULL, TRUE);\r\n\r\n\t\t\t\t\tDestroyMenu (hmenu);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase WM_COMMAND:\r\n\t\t{\r\n\t\t\tINT ctrl_id = LOWORD (wparam);\r\n\t\t\tINT notify_code = HIWORD (wparam);\r\n\r\n\t\t\tif (notify_code == 0 && ctrl_id >= IDX_LANGUAGE && ctrl_id <= IDX_LANGUAGE + (INT)(INT_PTR)_r_locale_getcount () + 1)\r\n\t\t\t{\r\n\t\t\t\tHMENU hmenu;\r\n\t\t\t\tHMENU hsubmenu;\r\n\r\n\t\t\t\thmenu = GetMenu (hwnd);\r\n\r\n\t\t\t\tif (hmenu)\r\n\t\t\t\t{\r\n\t\t\t\t\thsubmenu = GetSubMenu (GetSubMenu (hmenu, LANG_SUBMENU), LANG_MENU);\r\n\r\n\t\t\t\t\tif (hsubmenu)\r\n\t\t\t\t\t\t_r_locale_apply (hsubmenu, ctrl_id, IDX_LANGUAGE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\telse if ((ctrl_id >= IDX_TRAY_POPUP_1 && ctrl_id <= IDX_TRAY_POPUP_1 + (INT)RTL_NUMBER_OF (limits_arr) - 1))\r\n\t\t\t{\r\n\t\t\t\tULONG_PTR idx;\r\n\r\n\t\t\t\tidx = (ULONG_PTR)ctrl_id - IDX_TRAY_POPUP_1;\r\n\r\n\t\t\t\t_r_config_setboolean (L\"AutoreductEnable\", TRUE, NULL);\r\n\t\t\t\t_r_config_setlong (L\"AutoreductValue\", limits_arr[idx], NULL);\r\n\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\telse if ((ctrl_id >= IDX_TRAY_POPUP_2 && ctrl_id <= IDX_TRAY_POPUP_2 + (INT)RTL_NUMBER_OF (intervals_arr) - 1))\r\n\t\t\t{\r\n\t\t\t\tULONG_PTR idx;\r\n\r\n\t\t\t\tidx = (ULONG_PTR)ctrl_id - IDX_TRAY_POPUP_2;\r\n\r\n\t\t\t\t_r_config_setboolean (L\"AutoreductIntervalEnable\", TRUE, NULL);\r\n\t\t\t\t_r_config_setlong (L\"AutoreductIntervalValue\", intervals_arr[idx], NULL);\r\n\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\tswitch (ctrl_id)\r\n\t\t\t{\r\n\t\t\t\tcase IDM_ALWAYSONTOP_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_config_getboolean (L\"AlwaysOnTop\", FALSE, NULL);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, new_val);\r\n\t\t\t\t\t_r_config_setboolean (L\"AlwaysOnTop\", new_val, NULL);\r\n\r\n\t\t\t\t\t_r_wnd_top (hwnd, new_val);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_STARTMINIMIZED_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_config_getboolean (L\"IsStartMinimized\", FALSE, NULL);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, new_val);\r\n\t\t\t\t\t_r_config_setboolean (L\"IsStartMinimized\", new_val, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_REDUCTCONFIRMATION_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_config_getboolean (L\"IsShowReductConfirmation\", TRUE, NULL);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, new_val);\r\n\t\t\t\t\t_r_config_setboolean (L\"IsShowReductConfirmation\", new_val, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_LOADONSTARTUP_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_autorun_isenabled ();\r\n\r\n\t\t\t\t\t_r_autorun_enable (hwnd, new_val);\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, _r_autorun_isenabled ());\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_USEDARKTHEME:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN is_enabled = !_r_theme_isenabled ();\r\n\r\n\t\t\t\t\t_r_theme_enable (hwnd, is_enabled);\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, is_enabled);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_SKIPUACWARNING_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_skipuac_isenabled ();\r\n\r\n\t\t\t\t\t_r_skipuac_enable (hwnd, new_val);\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, _r_skipuac_isenabled ());\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_CHECKUPDATES_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_update_isenabled (FALSE);\r\n\r\n\t\t\t\t\t_r_menu_checkitem (GetMenu (hwnd), ctrl_id, 0, MF_BYCOMMAND, new_val);\r\n\t\t\t\t\t_r_update_enable (new_val);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_WORKINGSET_CHK:\r\n\t\t\t\tcase IDM_SYSTEMFILECACHE_CHK:\r\n\t\t\t\tcase IDM_MODIFIEDFILECACHE_CHK:\r\n\t\t\t\tcase IDM_MODIFIEDLIST_CHK:\r\n\t\t\t\tcase IDM_STANDBYLIST_CHK:\r\n\t\t\t\tcase IDM_STANDBYLISTPRIORITY0_CHK:\r\n\t\t\t\tcase IDM_REGISTRYCACHE_CHK:\r\n\t\t\t\tcase IDM_COMBINEMEMORYLISTS_CHK:\r\n\t\t\t\t{\r\n\t\t\t\t\tULONG new_mask = 0;\r\n\t\t\t\t\tULONG mask;\r\n\r\n\t\t\t\t\tmask = _r_config_getulong (L\"ReductMask2\", REDUCT_MASK_DEFAULT, NULL);\r\n\r\n\t\t\t\t\tswitch (ctrl_id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase IDM_WORKINGSET_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_WORKING_SET;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_SYSTEMFILECACHE_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_SYSTEM_FILE_CACHE;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_MODIFIEDFILECACHE_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_MODIFIED_FILE_CACHE;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_MODIFIEDLIST_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_MODIFIED_LIST;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_STANDBYLIST_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_STANDBY_LIST;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_STANDBYLISTPRIORITY0_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_STANDBY_PRIORITY0_LIST;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_REGISTRYCACHE_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_REGISTRY_CACHE;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_COMBINEMEMORYLISTS_CHK:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnew_mask = REDUCT_COMBINE_MEMORY_LISTS;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn FALSE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ((ctrl_id == IDM_STANDBYLIST_CHK && !(mask & REDUCT_STANDBY_LIST)) || (ctrl_id == IDM_MODIFIEDLIST_CHK && !(mask & REDUCT_MODIFIED_LIST)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!_r_show_confirmmessage (hwnd, _r_locale_getstring (IDS_QUESTION_WARNING), NULL, L\"IsShowWarningConfirmation\", FALSE))\r\n\t\t\t\t\t\t\treturn FALSE;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_r_config_setulong (L\"ReductMask2\", (mask & new_mask) != 0 ? (mask & ~new_mask) : (mask | new_mask), NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_CLEAN_WORKINGSET:\r\n\t\t\t\tcase IDM_CLEAN_SYSTEMFILECACHE:\r\n\t\t\t\tcase IDM_CLEAN_MODIFIEDFILECACHE:\r\n\t\t\t\tcase IDM_CLEAN_MODIFIEDLIST:\r\n\t\t\t\tcase IDM_CLEAN_STANDBYLIST:\r\n\t\t\t\tcase IDM_CLEAN_STANDBYLISTPRIORITY0:\r\n\t\t\t\tcase IDM_CLEAN_REGISTRYCACHE:\r\n\t\t\t\tcase IDM_CLEAN_COMBINEMEMORYLISTS:\r\n\t\t\t\t{\r\n\t\t\t\t\tULONG mask;\r\n\r\n\t\t\t\t\tswitch (ctrl_id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase IDM_CLEAN_WORKINGSET:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_WORKING_SET;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_SYSTEMFILECACHE:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_SYSTEM_FILE_CACHE;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_MODIFIEDFILECACHE:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_MODIFIED_FILE_CACHE;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_MODIFIEDLIST:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_MODIFIED_LIST;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_STANDBYLIST:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_STANDBY_LIST;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_STANDBYLISTPRIORITY0:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_STANDBY_PRIORITY0_LIST;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_REGISTRYCACHE:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_REGISTRY_CACHE;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase IDM_CLEAN_COMBINEMEMORYLISTS:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmask = REDUCT_COMBINE_MEMORY_LISTS;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn FALSE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_app_memoryclean (hwnd, SOURCE_CMDLINE, mask);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_TRAY_DISABLE_1:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_config_getboolean (L\"AutoreductEnable\", FALSE, NULL);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"AutoreductEnable\", new_val, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_TRAY_DISABLE_2:\r\n\t\t\t\t{\r\n\t\t\t\t\tBOOLEAN new_val;\r\n\r\n\t\t\t\t\tnew_val = !_r_config_getboolean (L\"AutoreductIntervalEnable\", FALSE, NULL);\r\n\r\n\t\t\t\t\t_r_config_setboolean (L\"AutoreductIntervalEnable\", new_val, NULL);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_SETTINGS:\r\n\t\t\t\tcase IDM_TRAY_SETTINGS:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_settings_createwindow (hwnd, &SettingsProc, 0);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_EXIT:\r\n\t\t\t\tcase IDM_TRAY_EXIT:\r\n\t\t\t\t{\r\n\t\t\t\t\tDestroyWindow (hwnd);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDCANCEL: // process Esc key\r\n\t\t\t\tcase IDM_TRAY_SHOW:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_wnd_toggle (hwnd, FALSE);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDOK: // process Enter key\r\n\t\t\t\tcase IDC_CLEAN:\r\n\t\t\t\tcase IDM_TRAY_CLEAN:\r\n\t\t\t\t{\r\n\t\t\t\t\tif (_r_sys_iselevated ())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_app_memoryclean (hwnd, SOURCE_MANUAL, 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (_r_app_runasadmin ())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDestroyWindow (hwnd);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_r_show_message (hwnd, MB_OK | MB_ICONSTOP, NULL, _r_locale_getstring (IDS_STATUS_NOPRIVILEGES));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_WEBSITE:\r\n\t\t\t\tcase IDM_TRAY_WEBSITE:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_shell_opendefault (_r_app_getwebsite_url ());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_CHECKUPDATES:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_update_check (hwnd);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcase IDM_ABOUT:\r\n\t\t\t\tcase IDM_TRAY_ABOUT:\r\n\t\t\t\t{\r\n\t\t\t\t\t_r_show_aboutmessage (hwnd);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\treturn FALSE;\r\n}\r\n\r\nBOOLEAN NTAPI _app_parseargs (\r\n\t_In_ R_CMDLINE_INFO_CLASS type\r\n)\r\n{\r\n\tPR_STRING clean_args;\r\n\tULONG mask = 0;\r\n\r\n\tswitch (type)\r\n\t{\r\n\t\tcase CmdlineClean:\r\n\t\t{\r\n\t\t\t_r_sys_getopt (_r_sys_getcommandline (), L\"clean\", &clean_args);\r\n\r\n\t\t\tif (clean_args)\r\n\t\t\t{\r\n\t\t\t\tif (_r_str_isequal2 (&clean_args->sr, L\"full\", TRUE))\r\n\t\t\t\t\tmask = REDUCT_MASK_ALL;\r\n\r\n\t\t\t\t_r_obj_dereference (clean_args);\r\n\t\t\t}\r\n\r\n\t\t\tif (!mask)\r\n\t\t\t\tmask = REDUCT_MASK_DEFAULT;\r\n\r\n\t\t\t_app_initialize (NULL);\r\n\r\n\t\t\t_app_memoryclean (NULL, SOURCE_CMDLINE, mask);\r\n\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\r\n\t\tcase CmdlineHelp:\r\n\t\t{\r\n\t\t\t_r_show_message (\r\n\t\t\t\tNULL,\r\n\t\t\t\tMB_OK | MB_ICONINFORMATION | MB_TOPMOST,\r\n\t\t\t\tL\"Available options for memreduct.exe:\",\r\n\t\t\t\tL\"-clean - clear default memory regions\\r\\n\" \\\r\n\t\t\t\tL\"-clean:full - clear all memory regions\"\r\n\t\t\t);\r\n\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t}\r\n\r\n\treturn FALSE;\r\n}\r\n\r\nINT APIENTRY wWinMain (\r\n\t_In_ HINSTANCE hinst,\r\n\t_In_opt_ HINSTANCE prev_hinst,\r\n\t_In_ LPWSTR cmdline,\r\n\t_In_ INT show_cmd\r\n)\r\n{\r\n\tHWND hwnd;\r\n\r\n\tif (!_r_app_initialize (&_app_parseargs))\r\n\t\treturn ERROR_APP_INIT_FAILURE;\r\n\r\n\thwnd = _r_app_createwindow (hinst, MAKEINTRESOURCEW (IDD_MAIN), MAKEINTRESOURCEW (IDI_MAIN), &DlgProc);\r\n\r\n\tif (!hwnd)\r\n\t\treturn ERROR_APP_INIT_FAILURE;\r\n\r\n\treturn _r_wnd_message_callback (hwnd, MAKEINTRESOURCEW (IDA_MAIN));\r\n}\r\n"
  },
  {
    "path": "src/main.h",
    "content": "// Mem Reduct\r\n// Copyright (c) 2011-2025 Henry++\r\n\r\n#pragma once\r\n\r\n#include \"routine.h\"\r\n\r\n#include \"resource.h\"\r\n#include \"app.h\"\r\n\r\nDEFINE_GUID (GUID_TrayIcon, 0xAE9053F0, 0x8D59, 0x4803, 0x9A, 0xBB, 0x74, 0xAF, 0xE6, 0x6B, 0x5F, 0xD2);\r\n\r\n#define TITLE_WORKINGSET L\"Working set\"\r\n#define TITLE_SYSTEMFILECACHE L\"System file cache\"\r\n#define TITLE_STANDBYLISTPRIORITY0 L\"Standby list (without priority)\"\r\n#define TITLE_STANDBYLIST L\"Standby list*\"\r\n#define TITLE_MODIFIEDLIST L\"Modified page list*\"\r\n#define TITLE_MODIFIEDFILECACHE L\"Modified file cache\"\r\n#define TITLE_REGISTRYCACHE L\"Registry cache (win8.1+)\"\r\n#define TITLE_COMBINEMEMORYLISTS L\"Combine memory lists (win10+)\"\r\n\r\n#define TIMER 1000\r\n#define UID 1337\r\n\r\n#define LANG_SUBMENU 1\r\n#define LANG_MENU 4\r\n\r\n#define TRAY_SUBMENU_1 4\r\n#define TRAY_SUBMENU_2 5\r\n#define TRAY_SUBMENU_3 6\r\n\r\n#define DEFAULT_AUTOREDUCT_VAL 90\r\n#define DEFAULT_AUTOREDUCTINTERVAL_VAL 30\r\n\r\n#define DEFAULT_DANGER_LEVEL 90\r\n#define DEFAULT_WARNING_LEVEL 70\r\n\r\n// colors\r\n#define TRAY_COLOR_BLACK RGB(0x00, 0x00, 0x00)\r\n#define TRAY_COLOR_WHITE RGB(0xFF, 0xFF, 0xFF)\r\n#define TRAY_COLOR_TEXT RGB(0xFF, 0xFF, 0xFF)\r\n#define TRAY_COLOR_BG RGB(0x00, 0x80, 0x40)\r\n#define TRAY_COLOR_WARNING RGB(0xFF, 0x80, 0x40)\r\n#define TRAY_COLOR_DANGER RGB(0xEC, 0x1C, 0x24)\r\n\r\n// memory cleaning mask\r\n#define REDUCT_WORKING_SET 0x01\r\n#define REDUCT_SYSTEM_FILE_CACHE 0x02\r\n#define REDUCT_STANDBY_PRIORITY0_LIST 0x04\r\n#define REDUCT_STANDBY_LIST 0x08\r\n#define REDUCT_MODIFIED_LIST 0x10\r\n#define REDUCT_COMBINE_MEMORY_LISTS 0x20\r\n#define REDUCT_REGISTRY_CACHE 0x40\r\n#define REDUCT_MODIFIED_FILE_CACHE 0x80\r\n\r\n// memory cleaning values\r\n#define REDUCT_MASK_ALL (REDUCT_WORKING_SET | \\\r\nREDUCT_SYSTEM_FILE_CACHE | \\\r\nREDUCT_STANDBY_PRIORITY0_LIST | \\\r\nREDUCT_STANDBY_LIST | \\\r\nREDUCT_MODIFIED_LIST | \\\r\nREDUCT_COMBINE_MEMORY_LISTS | \\\r\nREDUCT_REGISTRY_CACHE | \\\r\nREDUCT_MODIFIED_FILE_CACHE)\r\n\r\n#define REDUCT_MASK_DEFAULT (REDUCT_WORKING_SET | REDUCT_SYSTEM_FILE_CACHE | REDUCT_STANDBY_PRIORITY0_LIST | REDUCT_REGISTRY_CACHE | REDUCT_COMBINE_MEMORY_LISTS | REDUCT_MODIFIED_FILE_CACHE)\r\n#define REDUCT_MASK_FREEZES (REDUCT_STANDBY_LIST | REDUCT_MODIFIED_LIST)\r\n\r\ntypedef struct _STATIC_DATA\r\n{\r\n\tHDC hdc;\r\n\tHDC hdc_mask;\r\n\tHBITMAP hbitmap;\r\n\tHBITMAP hbitmap_mask;\r\n\tHFONT hfont;\r\n\tRECT icon_size;\r\n\tULONG ms_prev;\r\n} STATIC_DATA, *PSTATIC_DATA;\r\n\r\ntypedef enum _CLEANUP_SOURCE_ENUM\r\n{\r\n\tSOURCE_AUTO,\r\n\tSOURCE_MANUAL,\r\n\tSOURCE_HOTKEY,\r\n\tSOURCE_CMDLINE\r\n} CLEANUP_SOURCE_ENUM, *PCLEANUP_SOURCE_ENUM;\r\n"
  },
  {
    "path": "src/res/manifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">\r\n\t<dependency>\r\n\t\t<dependentAssembly>\r\n\t\t\t<assemblyIdentity type=\"win32\" name=\"Microsoft.Windows.Common-Controls\" version=\"6.0.0.0\" processorArchitecture=\"*\" language=\"*\" publicKeyToken=\"6595b64144ccf1df\" />\r\n\t\t</dependentAssembly>\r\n\t</dependency>\r\n\r\n\t<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v3\">\r\n\t\t<security>\r\n\t\t\t<requestedPrivileges>\r\n\t\t\t\t<requestedExecutionLevel level=\"asInvoker\" uiAccess=\"false\" />\r\n\t\t\t</requestedPrivileges>\r\n\t\t</security>\r\n\t</trustInfo>\r\n\r\n\t<compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">\r\n\t\t<application>\r\n\t\t\t<maxversiontested Id=\"10.0.26100.0\" />\r\n\t\t\t<supportedOS Id=\"{35138B9A-5D96-4FBD-8E2D-A2440225F93A}\" /> <!-- win7 -->\r\n\t\t\t<supportedOS Id=\"{4A2F28E3-53B9-4441-BA9C-D69D4A4A6E38}\" /> <!-- win8 -->\r\n\t\t\t<supportedOS Id=\"{1F676C76-80E1-4239-95BB-83D0F6D0DA78}\" /> <!-- win8.1 -->\r\n\t\t\t<supportedOS Id=\"{8E0F7A12-BFB3-4FE8-B9A5-48FD50A15A9A}\" /> <!-- win10 -->\r\n\t\t</application>\r\n\t</compatibility>\r\n\r\n\t<application xmlns=\"urn:schemas-microsoft-com:asm.v3\">\r\n\t\t<windowsSettings>\r\n\t\t\t<dpiAware xmlns=\"http://schemas.microsoft.com/SMI/2005/WindowsSettings\">true</dpiAware>\r\n\t\t\t<dpiAwareness xmlns=\"http://schemas.microsoft.com/SMI/2016/WindowsSettings\">PerMonitorV2, PerMonitor</dpiAwareness>\r\n\t\t\t<disableWindowFiltering xmlns=\"http://schemas.microsoft.com/SMI/2011/WindowsSettings\">true</disableWindowFiltering>\r\n\t\t\t<printerDriverIsolation xmlns=\"http://schemas.microsoft.com/SMI/2011/WindowsSettings\">true</printerDriverIsolation>\r\n\t\t\t<longPathAware xmlns=\"http://schemas.microsoft.com/SMI/2016/WindowsSettings\">true</longPathAware>\r\n\t\t\t<activeCodePage xmlns=\"http://schemas.microsoft.com/SMI/2019/WindowsSettings\">UTF-8</activeCodePage>\r\n\t\t\t<heapType xmlns=\"http://schemas.microsoft.com/SMI/2020/WindowsSettings\">SegmentHeap</heapType>\r\n\t\t</windowsSettings>\r\n\t</application>\r\n</assembly>\r\n"
  },
  {
    "path": "src/resource.h",
    "content": "#ifndef __RESOURCE_H__\r\n#define __RESOURCE_H__\r\n\r\n#ifndef IDC_STATIC\r\n#define IDC_STATIC (-1)\r\n#endif\r\n\r\n// Acceleration\r\n#define IDA_MAIN 1\r\n\r\n// Menu Id\r\n#define IDM_MAIN 100\r\n#define IDM_TRAY 101\r\n\r\n// Dialogs\r\n#define IDD_MAIN 100\r\n#define IDD_SETTINGS_GENERAL 101\r\n#define IDD_SETTINGS_MEMORY 102\r\n#define IDD_SETTINGS_APPEARANCE 103\r\n#define IDD_SETTINGS_TRAY 104\r\n#define IDD_SETTINGS_ADVANCED 105\r\n\r\n// Main Dlg\r\n#define IDC_LISTVIEW 102\r\n#define IDC_CLEAN 103\r\n\r\n#define IDC_TITLE_1 104\r\n#define IDC_TITLE_2 105\r\n#define IDC_TITLE_3 106\r\n#define IDC_TITLE_4 107\r\n#define IDC_TITLE_5 108\r\n#define IDC_TITLE_6 109\r\n#define IDC_TITLE_7 110\r\n#define IDC_TITLE_8 111\r\n#define IDC_TITLE_9 112\r\n\r\n#define IDC_ALWAYSONTOP_CHK 113\r\n#define IDC_LOADONSTARTUP_CHK 114\r\n#define IDC_STARTMINIMIZED_CHK 115\r\n#define IDC_SKIPUACWARNING_CHK 116\r\n#define IDC_REDUCTCONFIRMATION_CHK 117\r\n#define IDC_CHECKUPDATES_CHK 118\r\n\r\n#define IDC_LANGUAGE_HINT 119\r\n#define IDC_LANGUAGE 120\r\n\r\n#define IDC_REGIONS 121\r\n\r\n#define IDC_AUTOREDUCTENABLE_CHK 122\r\n#define IDC_AUTOREDUCTVALUE_CTRL 123\r\n#define IDC_AUTOREDUCTVALUE 124\r\n\r\n#define IDC_AUTOREDUCTINTERVALENABLE_CHK 125\r\n#define IDC_AUTOREDUCTINTERVALVALUE_CTRL 126\r\n#define IDC_AUTOREDUCTINTERVALVALUE 127\r\n\r\n#define IDC_HOTKEY_CLEAN_CHK 128\r\n#define IDC_HOTKEY_CLEAN 129\r\n\r\n#define IDC_TRAYUSETRANSPARENCY_CHK 130\r\n#define IDC_TRAYSHOWBORDER_CHK 131\r\n#define IDC_TRAYROUNDCORNERS_CHK 132\r\n#define IDC_TRAYCHANGEBG_CHK 133\r\n#define IDC_TRAYUSEANTIALIASING_CHK 134\r\n\r\n#define IDC_FONT_HINT 135\r\n#define IDC_FONT 136\r\n\r\n#define IDC_COLORS 137\r\n\r\n#define IDC_TRAYLEVELWARNING_HINT 138\r\n#define IDC_TRAYLEVELWARNING_CTRL 139\r\n#define IDC_TRAYLEVELWARNING 140\r\n\r\n#define IDC_TRAYLEVELDANGER_HINT 141\r\n#define IDC_TRAYLEVELDANGER_CTRL 142\r\n#define IDC_TRAYLEVELDANGER 143\r\n\r\n#define IDC_TRAYACTIONSC_HINT 144\r\n#define IDC_TRAYACTIONSC 145\r\n\r\n#define IDC_TRAYACTIONMC_HINT 146\r\n#define IDC_TRAYACTIONMC 147\r\n\r\n#define IDC_NOTIFICATIONSOUND_CHK 148\r\n\r\n#define IDC_SHOW_CLEAN_RESULT_CHK 149\r\n\r\n#define IDC_ALLOWSTANDBYLISTCLEANUP_CHK 150\r\n#define IDC_LOGRESULTS_CHK 151\r\n\r\n// Main Menu\r\n#define IDM_SETTINGS 152\r\n#define IDM_EXIT 153\r\n#define IDM_ALWAYSONTOP_CHK 154\r\n#define IDM_LOADONSTARTUP_CHK 155\r\n#define IDM_USEDARKTHEME 156\r\n#define IDM_STARTMINIMIZED_CHK 157\r\n#define IDM_REDUCTCONFIRMATION_CHK 158\r\n#define IDM_SKIPUACWARNING_CHK 159\r\n#define IDM_CHECKUPDATES_CHK 160\r\n\r\n#define IDM_WEBSITE 161\r\n#define IDM_CHECKUPDATES 162\r\n#define IDM_ABOUT 163\r\n\r\n// Tray Menu\r\n#define IDM_TRAY_SHOW 164\r\n#define IDM_TRAY_CLEAN 165\r\n#define IDM_TRAY_DISABLE_1 166\r\n#define IDM_TRAY_DISABLE_2 167\r\n#define IDM_TRAY_SETTINGS 168\r\n#define IDM_TRAY_WEBSITE 169\r\n#define IDM_TRAY_ABOUT 170\r\n#define IDM_TRAY_EXIT 171\r\n\r\n#define IDM_WORKINGSET_CHK 172\r\n#define IDM_SYSTEMFILECACHE_CHK 173\r\n#define IDM_MODIFIEDFILECACHE_CHK 174\r\n#define IDM_MODIFIEDLIST_CHK 175\r\n#define IDM_STANDBYLIST_CHK 176\r\n#define IDM_STANDBYLISTPRIORITY0_CHK 177\r\n#define IDM_REGISTRYCACHE_CHK 178\r\n#define IDM_COMBINEMEMORYLISTS_CHK 179\r\n\r\n#define IDM_CLEAN_WORKINGSET 180\r\n#define IDM_CLEAN_SYSTEMFILECACHE 181\r\n#define IDM_CLEAN_MODIFIEDFILECACHE 182\r\n#define IDM_CLEAN_MODIFIEDLIST 183\r\n#define IDM_CLEAN_STANDBYLIST 184\r\n#define IDM_CLEAN_STANDBYLISTPRIORITY0 185\r\n#define IDM_CLEAN_REGISTRYCACHE 186\r\n#define IDM_CLEAN_COMBINEMEMORYLISTS 187\r\n\r\n#define IDX_LANGUAGE 1000\r\n#define IDX_TRAY_POPUP_1 2000\r\n#define IDX_TRAY_POPUP_2 3000\r\n\r\n// Strings\r\n#define IDS_UPDATE_NO 1\r\n#define IDS_UPDATE_YES 2\r\n\r\n#define IDS_FILE 3\r\n#define IDS_SETTINGS 4\r\n#define IDS_EXIT 5\r\n#define IDS_LANGUAGE 6\r\n#define IDS_HELP 7\r\n#define IDS_WEBSITE 8\r\n#define IDS_CHECKUPDATES 9\r\n#define IDS_ABOUT 10\r\n#define IDS_DONATE 11\r\n\r\n#define IDS_TRAY_SHOW 12\r\n#define IDS_TRAY_DISABLE 13\r\n#define IDS_TRAY_POPUP_1 14\r\n#define IDS_TRAY_POPUP_2 15\r\n#define IDS_TRAY_POPUP_3 16\r\n\r\n#define IDS_CLEAN 17\r\n\r\n#define IDS_GROUP_1 18\r\n#define IDS_GROUP_2 19\r\n#define IDS_GROUP_3 20\r\n\r\n#define IDS_ITEM_1 21\r\n#define IDS_ITEM_2 22\r\n#define IDS_ITEM_3 23\r\n\r\n#define IDS_SETTINGS_GENERAL 24\r\n#define IDS_SETTINGS_MEMORY 25\r\n#define IDS_SETTINGS_APPEARANCE 26\r\n#define IDS_SETTINGS_TRAY 27\r\n\r\n#define IDS_CLOSE 28\r\n\r\n#define IDS_TITLE_1 29\r\n#define IDS_TITLE_2 30\r\n#define IDS_TITLE_3 31\r\n#define IDS_TITLE_4 32\r\n#define IDS_TITLE_5 33\r\n#define IDS_TITLE_6 34\r\n#define IDS_TITLE_7 35\r\n#define IDS_TITLE_8 36\r\n#define IDS_TITLE_9 37\r\n\r\n#define IDS_ALWAYSONTOP_CHK 38\r\n#define IDS_LOADONSTARTUP_CHK 39\r\n#define IDS_STARTMINIMIZED_CHK 40\r\n#define IDS_REDUCTCONFIRMATION_CHK 41\r\n#define IDS_SKIPUACWARNING_CHK 42\r\n#define IDS_CHECKUPDATES_CHK 43\r\n\r\n#define IDS_LANGUAGE_HINT 44\r\n\r\n#define IDS_WORKINGSET_CHK 45\r\n#define IDS_SYSTEMWORKINGSET_CHK 46\r\n#define IDS_STANDBYLISTPRIORITY0_CHK 47\r\n#define IDS_STANDBYLIST_CHK 48\r\n#define IDS_MODIFIEDLIST_CHK 49\r\n#define IDS_COMBINEMEMORYLISTS_CHK 50\r\n\r\n#define IDS_AUTOREDUCTENABLE_CHK 51\r\n#define IDS_AUTOREDUCTINTERVALENABLE_CHK 52\r\n\r\n#define IDS_HOTKEY_CLEAN_CHK 53\r\n\r\n#define IDS_TRAYUSETRANSPARENCY_CHK 54\r\n#define IDS_TRAYSHOWBORDER_CHK 55\r\n#define IDS_TRAYROUNDCORNERS_CHK 56\r\n#define IDS_TRAYCHANGEBG_CHK 57\r\n#define IDS_TRAYUSEANTIALIASING_CHK 58\r\n\r\n#define IDS_FONT_HINT 59\r\n#define IDS_COLOR_TEXT_HINT 60\r\n#define IDS_COLOR_BACKGROUND_HINT 61\r\n#define IDS_COLOR_WARNING_HINT 62\r\n#define IDS_COLOR_DANGER_HINT 63\r\n\r\n#define IDS_TRAYLEVELWARNING_HINT 64\r\n#define IDS_TRAYLEVELDANGER_HINT 65\r\n\r\n#define IDS_TRAYACTIONSC_HINT 66\r\n#define IDS_TRAYACTIONMC_HINT 67\r\n\r\n#define IDS_TRAY_ACTION_1 68\r\n#define IDS_TRAY_ACTION_2 69\r\n#define IDS_TRAY_ACTION_3 70\r\n\r\n#define IDS_SHOW_CLEAN_RESULT_CHK 71\r\n\r\n#define IDS_QUESTION 72\r\n#define IDS_QUESTION_WARNING 73\r\n#define IDS_QUESTION_FLAG_CHK 74\r\n\r\n#define IDS_STATUS_CLEANED 75\r\n#define IDS_STATUS_NOPRIVILEGES 76\r\n\r\n#define IDS_UPDATE_DOWNLOAD 77\r\n#define IDS_UPDATE_DONE 78\r\n#define IDS_UPDATE_ERROR 79\r\n#define IDS_UPDATE_INIT 80\r\n#define IDS_UPDATE_INSTALL 81\r\n\r\n#define IDS_RESET 82\r\n#define IDS_QUESTION_RESET 83\r\n\r\n#define IDS_NOTIFICATIONSOUND_CHK 84\r\n\r\n#define IDS_TITLE_ADVANCED 85\r\n\r\n#define IDS_VIEW 86\r\n\r\n#define IDS_USEDARKTHEME 87\r\n\r\n#define IDS_UPDATE_SPEED 88\r\n\r\n// Icons\r\n#define IDI_MAIN 100\r\n\r\n#endif // __RESOURCE_H__\r\n"
  },
  {
    "path": "src/resource.rc",
    "content": "#include <windows.h>\r\n#include <commctrl.h>\r\n#include <richedit.h>\r\n\r\n#include \"resource.h\"\r\n#include \"rconfig.h\"\r\n#include \"app.h\"\r\n\r\nLANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT\r\n\r\n//\r\n// Accelerator resources\r\n//\r\nIDA_MAIN ACCELERATORS\r\n{\r\n\tVK_F1, IDM_ABOUT, VIRTKEY\r\n\tVK_F2, IDM_SETTINGS, VIRTKEY\r\n\tVK_F4, IDM_TRAY_SHOW, ALT, VIRTKEY\r\n}\r\n\r\n//\r\n// Menu resources\r\n//\r\nIDM_MAIN MENU\r\n{\r\n\tPOPUP \" \"\r\n\t{\r\n\t\tMENUITEM \" \", IDM_SETTINGS\r\n\t\tMENUITEM SEPARATOR\r\n\t\tMENUITEM \" \", IDM_EXIT\r\n\t}\r\n\tPOPUP \" \"\r\n\t{\r\n\t\tMENUITEM \" \", IDM_ALWAYSONTOP_CHK\r\n\t\tMENUITEM \" \", IDM_USEDARKTHEME\r\n\t\tMENUITEM \" \", IDM_REDUCTCONFIRMATION_CHK\r\n\t\tMENUITEM SEPARATOR\r\n\t\tPOPUP \" \"\r\n\t\t{\r\n\t\t\tMENUITEM \" \", IDX_LANGUAGE\r\n\t\t}\r\n\t}\r\n\tPOPUP \" \"\r\n\t{\r\n\t\tMENUITEM \" \", IDM_LOADONSTARTUP_CHK\r\n\t\tMENUITEM \" \", IDM_STARTMINIMIZED_CHK\r\n\t\tMENUITEM \" \", IDM_SKIPUACWARNING_CHK\r\n\t\tMENUITEM \" \", IDM_CHECKUPDATES_CHK\r\n\t}\r\n\tPOPUP \" \"\r\n\t{\r\n\t\tMENUITEM \" \", IDM_WEBSITE\r\n\t\tMENUITEM \" \", IDM_CHECKUPDATES\r\n\t\tMENUITEM \" \", IDM_ABOUT\r\n\t}\r\n}\r\n\r\nIDM_TRAY MENU\r\n{\r\n\tPOPUP \"\"\r\n\t{\r\n\t\tMENUITEM \" \", IDM_TRAY_SHOW\r\n\t\tMENUITEM SEPARATOR\r\n\t\tMENUITEM \" \", IDM_TRAY_CLEAN\r\n\t\tMENUITEM SEPARATOR\r\n\t\tPOPUP \" \"\r\n\t\t{\r\n\t\t\tMENUITEM \" \", IDM_WORKINGSET_CHK\r\n\t\t\tMENUITEM \" \", IDM_SYSTEMFILECACHE_CHK\r\n\t\t\tMENUITEM \" \", IDM_MODIFIEDFILECACHE_CHK\r\n\t\t\tMENUITEM \" \", IDM_STANDBYLISTPRIORITY0_CHK\r\n\t\t\tMENUITEM \" \", IDM_STANDBYLIST_CHK\r\n\t\t\tMENUITEM \" \", IDM_MODIFIEDLIST_CHK\r\n\t\t\tMENUITEM \" \", IDM_REGISTRYCACHE_CHK\r\n\t\t\tMENUITEM \" \", IDM_COMBINEMEMORYLISTS_CHK\r\n\t\t}\r\n\t\tPOPUP \" \"\r\n\t\t{\r\n\t\t\tMENUITEM \" \", IDM_TRAY_DISABLE_1\r\n\t\t\tMENUITEM SEPARATOR\r\n\t\t}\r\n\t\tPOPUP \" \"\r\n\t\t{\r\n\t\t\tMENUITEM \" \", IDM_TRAY_DISABLE_2\r\n\t\t\tMENUITEM SEPARATOR\r\n\t\t}\r\n\t\tMENUITEM SEPARATOR\r\n\t\tMENUITEM \" \", IDM_TRAY_SETTINGS\r\n\t\tMENUITEM SEPARATOR\r\n\t\tMENUITEM \" \", IDM_TRAY_WEBSITE\r\n\t\tMENUITEM \" \", IDM_TRAY_ABOUT\r\n\t\tMENUITEM SEPARATOR\r\n\t\tMENUITEM \" \", IDM_TRAY_EXIT\r\n\t}\r\n}\r\n\r\n//\r\n// Dialog resources\r\n//\r\nIDD_MAIN DIALOGEX 0, 0, 224, 214\r\nSTYLE WS_POPUPWINDOW | WS_MINIMIZEBOX | WS_CAPTION | DS_SHELLFONT | DS_MODALFRAME | NOT WS_VISIBLE\r\nCAPTION APP_NAME\r\nMENU IDM_MAIN\r\nFONT 8, \"Ms Shell Dlg\"\r\n{\r\n\tCONTROL\t\t\t\"\", IDC_LISTVIEW, WC_LISTVIEW, NOT WS_BORDER | LVS_SHOWSELALWAYS | LVS_REPORT | LVS_NOCOLUMNHEADER, 8, 8, 208, 174\r\n\r\n\tPUSHBUTTON\t\t\"\", IDC_CLEAN, 8, 192, 208, 14, BS_SPLITBUTTON | BS_CENTER | BS_VCENTER\r\n}\r\n\r\nIDD_SETTINGS_GENERAL DIALOGEX 0, 0, 260, 168\r\nSTYLE WS_CHILD | WS_SYSMENU | WS_TABSTOP | WS_GROUP | DS_SHELLFONT | DS_CONTROL\r\nEXSTYLE WS_EX_CONTROLPARENT\r\nFONT 8, \"Ms Shell Dlg\"\r\n{\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_1, 0, 0, 260, 90\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_ALWAYSONTOP_CHK, 8, 12, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_LOADONSTARTUP_CHK, 8, 24, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_STARTMINIMIZED_CHK, 8, 36, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_REDUCTCONFIRMATION_CHK, 8, 48, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_SKIPUACWARNING_CHK, 8, 60, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_CHECKUPDATES_CHK, 8, 72, 244, 10\r\n\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_2, 0, 92, 260, 32\r\n\r\n\tLTEXT\t\t\t\"\", IDC_LANGUAGE_HINT, 8, 104, 112, 12, SS_CENTERIMAGE\r\n\tCOMBOBOX\t\tIDC_LANGUAGE, 128, 104, 124, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP\r\n}\r\n\r\nIDD_SETTINGS_MEMORY DIALOGEX 0, 0, 260, 168\r\nSTYLE WS_CHILD | WS_SYSMENU | WS_TABSTOP | WS_GROUP | DS_SHELLFONT | DS_CONTROL\r\nEXSTYLE WS_EX_CONTROLPARENT\r\nFONT 8, \"Ms Shell Dlg\"\r\n{\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_3, 0, 0, 260, 90\r\n\r\n\tCONTROL\t\t\t\"\", IDC_REGIONS, WC_LISTVIEW, LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP | WS_VSCROLL, 8, 12, 244, 70\r\n\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_4, 0, 90, 260, 46\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_AUTOREDUCTENABLE_CHK, 8, 102, 194, 12, BS_MULTILINE\r\n\tEDITTEXT\t\tIDC_AUTOREDUCTVALUE_CTRL, 208, 102, 44, 12, ES_AUTOHSCROLL | ES_NUMBER | ES_MULTILINE\r\n\tCONTROL\t\t\t\"\", IDC_AUTOREDUCTVALUE, UPDOWN_CLASS, UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_AUTOBUDDY | UDS_HOTTRACK | UDS_SETBUDDYINT | UDS_WRAP, 0, 0, 0, 0\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_AUTOREDUCTINTERVALENABLE_CHK, 8, 116, 194, 12, BS_MULTILINE\r\n\tEDITTEXT\t\tIDC_AUTOREDUCTINTERVALVALUE_CTRL, 208, 116, 44, 12, ES_AUTOHSCROLL | ES_NUMBER | ES_MULTILINE\r\n\tCONTROL\t\t\t\"\", IDC_AUTOREDUCTINTERVALVALUE, UPDOWN_CLASS, UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_AUTOBUDDY | UDS_HOTTRACK | UDS_SETBUDDYINT | UDS_WRAP, 0, 0, 0, 0\r\n\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_5, 0, 136, 260, 32\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_HOTKEY_CLEAN_CHK, 8, 150, 144, 12, BS_MULTILINE\r\n\tCONTROL\t\t\t\"\", IDC_HOTKEY_CLEAN, HOTKEY_CLASS, WS_TABSTOP, 158, 148, 94, 12\r\n}\r\n\r\nIDD_SETTINGS_APPEARANCE DIALOGEX 0, 0, 260, 168\r\nSTYLE WS_CHILD | WS_SYSMENU | WS_TABSTOP | WS_GROUP | DS_SHELLFONT | DS_CONTROL\r\nEXSTYLE WS_EX_CONTROLPARENT\r\nFONT 8, \"Ms Shell Dlg\"\r\n{\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_1, 0, 0, 260, 78\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_TRAYUSETRANSPARENCY_CHK, 8, 12, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_TRAYSHOWBORDER_CHK, 8, 24, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_TRAYROUNDCORNERS_CHK, 8, 36, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_TRAYCHANGEBG_CHK, 8, 48, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_TRAYUSEANTIALIASING_CHK, 8, 60, 244, 10\r\n\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_6, 0, 80, 260, 88\r\n\r\n\tLTEXT\t\t\t\"\", IDC_FONT_HINT, 8, 92, 112, 12, SS_CENTERIMAGE\r\n\tPUSHBUTTON\t\t\"\", IDC_FONT, 128, 92, 124, 12\r\n\r\n\tCONTROL\t\t\t\"\", IDC_COLORS, WC_LISTVIEW, LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP | WS_VSCROLL, 8, 110, 244, 50\r\n}\r\n\r\nIDD_SETTINGS_TRAY DIALOGEX 0, 0, 260, 168\r\nSTYLE WS_CHILD | WS_SYSMENU | WS_TABSTOP | WS_GROUP | DS_SHELLFONT | DS_CONTROL\r\nEXSTYLE WS_EX_CONTROLPARENT\r\nFONT 8, \"Ms Shell Dlg\"\r\n{\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_7, 0, 0, 260, 46\r\n\r\n\tLTEXT\t\t\t\"\", IDC_TRAYLEVELWARNING_HINT, 8, 12, 194, 12, SS_CENTERIMAGE\r\n\tEDITTEXT\t\tIDC_TRAYLEVELWARNING_CTRL, 208, 12, 44, 12, ES_AUTOHSCROLL | ES_NUMBER | ES_MULTILINE\r\n\tCONTROL\t\t\t\"\", IDC_TRAYLEVELWARNING, UPDOWN_CLASS, UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_AUTOBUDDY | UDS_HOTTRACK | UDS_SETBUDDYINT | UDS_WRAP, 0, 0, 0, 0\r\n\r\n\tLTEXT\t\t\t\"\", IDC_TRAYLEVELDANGER_HINT, 8, 26, 194, 12, SS_CENTERIMAGE\r\n\tEDITTEXT\t\tIDC_TRAYLEVELDANGER_CTRL, 208, 26, 44, 12, ES_AUTOHSCROLL | ES_NUMBER | ES_MULTILINE\r\n\tCONTROL\t\t\t\"\", IDC_TRAYLEVELDANGER, UPDOWN_CLASS, UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_AUTOBUDDY | UDS_HOTTRACK | UDS_SETBUDDYINT | UDS_WRAP, 0, 0, 0, 0\r\n\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_8, 0, 48, 260, 48\r\n\r\n\tLTEXT\t\t\t\"\", IDC_TRAYACTIONSC_HINT, 8, 60, 114, 12, SS_CENTERIMAGE\r\n\tCOMBOBOX\t\tIDC_TRAYACTIONSC, 128, 60, 124, 12, CBS_DROPDOWNLIST | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP\r\n\r\n\tLTEXT\t\t\t\"\", IDC_TRAYACTIONMC_HINT, 8, 74, 114, 12, SS_CENTERIMAGE\r\n\tCOMBOBOX\t\tIDC_TRAYACTIONMC, 128, 74, 124, 12, CBS_DROPDOWNLIST | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP\r\n\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_9, 0, 98, 260, 40\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_SHOW_CLEAN_RESULT_CHK, 8, 110, 244, 12, BS_MULTILINE\r\n\tAUTOCHECKBOX\t\"\", IDC_NOTIFICATIONSOUND_CHK, 8, 122, 244, 12, BS_MULTILINE\r\n}\r\n\r\nIDD_SETTINGS_ADVANCED DIALOGEX 0, 0, 260, 168\r\nSTYLE WS_CHILD | WS_SYSMENU | WS_TABSTOP | WS_GROUP | DS_SHELLFONT | DS_CONTROL\r\nEXSTYLE WS_EX_CONTROLPARENT\r\nFONT 8, \"Ms Shell Dlg\"\r\n{\r\n\tGROUPBOX\t\t\"\", IDC_TITLE_1, 0, 0, 260, 46\r\n\r\n\tAUTOCHECKBOX\t\"\", IDC_ALLOWSTANDBYLISTCLEANUP_CHK, 8, 12, 244, 10\r\n\tAUTOCHECKBOX\t\"\", IDC_LOGRESULTS_CHK, 8, 24, 244, 10\r\n}\r\n\r\n//\r\n// String resources\r\n//\r\nSTRINGTABLE\r\n{\r\n\tIDS_UPDATE_NO \"No updates available.\"\r\n\tIDS_UPDATE_YES \"Update available, download and install them?\"\r\n\tIDS_UPDATE_DOWNLOAD \"Downloading update...\"\r\n\tIDS_UPDATE_DONE \"Downloading update finished.\"\r\n\tIDS_UPDATE_ERROR \"Update server connection error.\"\r\n\tIDS_UPDATE_INIT \"Checking for new releases...\"\r\n\tIDS_UPDATE_INSTALL \"Update available, do you want to install them?\"\r\n\r\n\tIDS_FILE \"File\"\r\n\tIDS_VIEW \"View\"\r\n\tIDS_SETTINGS \"Settings\"\r\n\tIDS_EXIT \"Exit\"\r\n\tIDS_LANGUAGE \"Language\"\r\n\tIDS_HELP \"Help\"\r\n\tIDS_WEBSITE \"Website\"\r\n\tIDS_CHECKUPDATES \"Check for updates\"\r\n\tIDS_ABOUT \"About\"\r\n\tIDS_DONATE \"Give thanks!\"\r\n\r\n\tIDS_TRAY_SHOW \"Show/Hide\"\r\n\tIDS_TRAY_DISABLE \"Disable\"\r\n\tIDS_TRAY_POPUP_1 \"Clean areas\"\r\n\tIDS_TRAY_POPUP_2 \"Clean when above\"\r\n\tIDS_TRAY_POPUP_3 \"Clean every\"\r\n\r\n\tIDS_CLEAN \"Clean memory\"\r\n\r\n\tIDS_GROUP_1 \"Physical memory\"\r\n\tIDS_GROUP_2 \"Pagefile\"\r\n\tIDS_GROUP_3 \"System working set\"\r\n\r\n\tIDS_ITEM_1 \"Usage\"\r\n\tIDS_ITEM_2 \"Available\"\r\n\tIDS_ITEM_3 \"Total available\"\r\n\r\n\tIDS_SETTINGS_GENERAL \"General\"\r\n\tIDS_SETTINGS_MEMORY \"Memory cleaning\"\r\n\tIDS_SETTINGS_APPEARANCE \"Appearance\"\r\n\tIDS_SETTINGS_TRAY \"Tray icon\"\r\n\r\n\tIDS_RESET \"Reset\"\r\n\tIDS_CLOSE \"Close\"\r\n\r\n\tIDS_TITLE_1 \"General configuration\"\r\n\tIDS_TITLE_2 \"Language\"\r\n\tIDS_TITLE_3 \"Memory regions to be cleaned\"\r\n\tIDS_TITLE_4 \"Memory management\"\r\n\tIDS_TITLE_5 \"Hotkeys (global)\"\r\n\tIDS_TITLE_6 \"Style\"\r\n\tIDS_TITLE_7 \"Color indication\"\r\n\tIDS_TITLE_8 \"Mouse control\"\r\n\tIDS_TITLE_9 \"Balloon tips\"\r\n\r\n\tIDS_ALWAYSONTOP_CHK \"Always on top\"\r\n\tIDS_LOADONSTARTUP_CHK \"Load on system startup\"\r\n\tIDS_STARTMINIMIZED_CHK \"Start minimized\"\r\n\tIDS_REDUCTCONFIRMATION_CHK \"Confirm memory cleaning start\"\r\n\tIDS_SKIPUACWARNING_CHK \"Skip \"\"User Account Control\"\" prompt warning\"\r\n\tIDS_CHECKUPDATES_CHK \"Periodically check for updates (recommended)\"\r\n\r\n\tIDS_LANGUAGE_HINT \"Select language:\"\r\n\r\n\tIDS_AUTOREDUCTENABLE_CHK \"Clean when above: (%)\"\r\n\tIDS_AUTOREDUCTINTERVALENABLE_CHK \"Clean every: (min.)\"\r\n\r\n\tIDS_HOTKEY_CLEAN_CHK \"Clean memory:\"\r\n\r\n\tIDS_TRAYUSETRANSPARENCY_CHK \"Use transparent background\"\r\n\tIDS_TRAYSHOWBORDER_CHK \"Show border\"\r\n\tIDS_TRAYROUNDCORNERS_CHK \"Round corners\"\r\n\tIDS_TRAYCHANGEBG_CHK \"Change background color (instead text and border)\"\r\n\tIDS_TRAYUSEANTIALIASING_CHK \"Use antialiasing\"\r\n\r\n\tIDS_FONT_HINT \"Font:\"\r\n\tIDS_COLOR_TEXT_HINT \"Text color\"\r\n\tIDS_COLOR_BACKGROUND_HINT \"Background color\"\r\n\tIDS_COLOR_WARNING_HINT \"\"\"Warning level\"\" color\"\r\n\tIDS_COLOR_DANGER_HINT \"\"\"Danger level\"\" color\"\r\n\r\n\tIDS_TRAYLEVELWARNING_HINT \"\"\"Warning level\"\" started at: (%)\"\r\n\tIDS_TRAYLEVELDANGER_HINT \"\"\"Danger level\"\" started at: (%)\"\r\n\r\n\tIDS_TRAYACTIONSC_HINT \"Single click:\"\r\n\tIDS_TRAYACTIONMC_HINT \"Middle click:\"\r\n\r\n\tIDS_TRAY_ACTION_1 \"Show/Hide\"\r\n\tIDS_TRAY_ACTION_2 \"Clean memory\"\r\n\tIDS_TRAY_ACTION_3 \"Open task manager\"\r\n\r\n\tIDS_SHOW_CLEAN_RESULT_CHK \"Show memory cleaning results\"\r\n\r\n\tIDS_QUESTION \"Are you sure you want to clean the memory?\"\r\n\tIDS_QUESTION_WARNING \"Switching-on \"\"Standby list\"\" and \"\"Modified page list\"\" may freeze your computer for almost a minute or so, are you sure to enable this option?\"\r\n\tIDS_QUESTION_RESET \"Are you really sure you want to reset all application settings?\"\r\n\tIDS_QUESTION_FLAG_CHK \"Do not ask again\"\r\n\r\n\tIDS_STATUS_CLEANED \"Memory was released with %s result.\"\r\n\tIDS_STATUS_NOPRIVILEGES \"Required administrator privileges, please run program as administrator!\"\r\n\r\n\tIDS_NOTIFICATIONSOUND_CHK \"Enable notifications sound\"\r\n\r\n\tIDS_TITLE_ADVANCED \"Advanced\"\r\n\r\n\tIDS_USEDARKTHEME \"Use dark theme\"\r\n\r\n\tIDS_UPDATE_SPEED \"Speed\"\r\n}\r\n\r\n//\r\n// Icon resources\r\n//\r\nIDI_MAIN\t\tICON\t\t\"res\\\\100.ico\"\r\n\r\n//\r\n// Manifest resource\r\n//\r\n1\t\t\tRT_MANIFEST\t\t\"res\\\\manifest.xml\"\r\n\r\n//\r\n// Version Information resources\r\n//\r\n1 VERSIONINFO\r\nFILEVERSION\t\tAPP_VERSION_RES\r\nPRODUCTVERSION\tAPP_VERSION_RES\r\nFILEOS\t\t\tVOS__WINDOWS32\r\nFILETYPE\t\tVFT_APP\r\nFILESUBTYPE\t\tVFT2_UNKNOWN\r\nFILEFLAGSMASK\t0x00000000\r\nFILEFLAGS\t\tVS_FF_PATCHED | VS_FF_PRERELEASE\r\n{\r\n\tBLOCK \"StringFileInfo\"\r\n\t{\r\n\t\tBLOCK \"040904E4\"\r\n\t\t{\r\n\t\t\tVALUE \"Comments\", APP_COMMENT\r\n\t\t\tVALUE \"CompanyName\", APP_AUTHOR\r\n\t\t\tVALUE \"FileDescription\", APP_NAME\r\n\t\t\tVALUE \"FileVersion\", APP_VERSION\r\n\t\t\tVALUE \"InternalName\", APP_NAME_SHORT\r\n\t\t\tVALUE \"LegalCopyright\", APP_COPYRIGHT\r\n\t\t\tVALUE \"OriginalFilename\", APP_NAME_SHORT \".exe\"\r\n\t\t\tVALUE \"ProductName\", APP_NAME\r\n\t\t\tVALUE \"ProductVersion\", APP_VERSION\r\n\t\t}\r\n\t}\r\n\tBLOCK \"VarFileInfo\"\r\n\t{\r\n\t\tVALUE \"Translation\", 0x0409, 1252\r\n\t}\r\n}\r\n"
  }
]