Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
736 B

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: nomem.cxx
//
// Contents: Set memory use to zero
//
// History: 03-Sep-93 DrewB Created
//
//----------------------------------------------------------------------------
#include "pch.cxx"
#pragma hdrstop
void _CRTAPI1 main(int argc, char *argv[])
{
StartTest("nomem");
CmdArgs(argc, argv);
printf("Memory in use = %lu\n", DfGetResLimit(DBRQ_MEMORY_ALLOCATED));
DfSetResLimit(DBRQ_MEMORY_ALLOCATED, 0);
DfSetResLimit(DBRI_ALLOC_LIST, 0);
printf("Memory in use = %lu\n", DfGetResLimit(DBRQ_MEMORY_ALLOCATED));
EndTest(0);
}