Results 1 to 40 of 1295

Thread: Getting the ball rolling. Which VB6 projects are you working on?

Threaded View

  1. #11
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,658

    Re: Getting the ball rolling. Which VB6 projects are you working on?

    Since the code requires so little change I still think tB projects are of interest here, so quick plug for my new project Memory List Manager. It's a lightweight utility to clear standby and modified memory without loading a full-blown system resources utility. Windows 10 memory management isn't all that great; standby and modified memory will grow to consume all memory, and contrary to Microsoft's claims, this slows down the system (especially opening stuff), and can even cause out of memory errors and system destabilization.



    There's also a command line option to run the commands without GUI, and a jump list.



    Code is actually pretty simple; just like

    Code:
        Public Function ClearStandby(Optional bLowPriority As Boolean = False) As NTSTATUS
            Dim nCmd As SYSTEM_MEMORY_LIST_COMMAND
            If bLowPriority Then
                nCmd = MemoryPurgeLowPriorityStandbyList
            Else
                nCmd = MemoryPurgeStandbyList
            End If
            Dim status As NTSTATUS
            SetCursor LoadCursor(0, ByVal IDC_WAIT)
            status = NtSetSystemInformation(SystemMemoryListInformation, nCmd, LenB(nCmd))
            SetCursor LoadCursor(0, ByVal IDC_ARROW)
            Return status
        End Function
    (Notice the only difference from perfect VB6 compatibility is I prefer tB's "Return <value>" syntax instead of FunctionName = <value>.

    More info at the GitHub repo.
    Last edited by fafalone; Jun 13th, 2024 at 07:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width