mirror of https://github.com/lianthony/NT4.0
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.
24 lines
379 B
24 lines
379 B
#include <stdio.h>
|
|
#pragma hdrstop
|
|
|
|
void *pvBase;
|
|
#define BASE_BASED __based(pvBase)
|
|
|
|
void BASE_BASED *Alloc(int size)
|
|
{
|
|
ULONG ul;
|
|
|
|
ul = (ULONG)size;
|
|
return (void BASE_BASED *)ul;
|
|
}
|
|
|
|
void _CRTAPI1 main(int argc, char **argv)
|
|
{
|
|
ULONG BASE_BASED *pul;
|
|
|
|
pvBase = 0;
|
|
|
|
pul = (ULONG BASE_BASED *)Alloc(sizeof(ULONG));
|
|
if (*pul != 0)
|
|
*pul = 0;
|
|
}
|