Category : C++ Source Code
Archive   : VMVCPP.ZIP
Filename : VMLOCKC.C

 
Output of file : VMLOCKC.C contained in archive : VMVCPP.ZIP
/***
* vmlockc.c -
*
* Copyright (c) 1989-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
*
* PUBLIC Functions:
*
* CVmLockVp:
* This function returns the lock count for the page containing
* the specified virtual address. If the page is not locked, the
* function will return 0.
*
*******************************************************************************/

#pragma title("Virtual Memory Manager")
#pragma subtitle("Locking functions")

#include
#include
#include
#include
#include
#include

#include


#pragma page()

unsigned PUBLIC __CVmLockVp(VPVOID vp)
{
HPGD hpgd;

VmTracePrintf(("CVmLockVp: vp = %08lX.\n", vp));

Assert((vp >= vpptMax) && (vp < vpMax));

hpgd = __HpgdSearchCache(vp);

return((hpgd == hpgdNil) ? 0 : PpgdOfHpgd(hpgd)->cLock);
}


  3 Responses to “Category : C++ Source Code
Archive   : VMVCPP.ZIP
Filename : VMLOCKC.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/