Leaked source code of windows server 2003
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.
|
|
/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
mem.hxx
Abstract:
The class MEM contains one pure virtual function named 'Acquire'. The implementors and users of this class must follow some simple constraints.
Acquire will return a pointer to Size bytes of memory or NULL.
A function taking a MEM as an argument should call Acquire at most one time. It should not, for instance, cache a pointer to the MEM for future calls to Acquire.
Author:
Norbert P. Kusters (norbertk) 26-Nov-90
--*/
#if !defined(MEM_DEFN)
#define MEM_DEFN
DECLARE_CLASS( MEM );
class MEM : public OBJECT {
public:
VIRTUAL PVOID Acquire( IN ULONG Size, IN ULONG AlignmentMask DEFAULT 0 ) PURE;
protected:
DECLARE_CONSTRUCTOR( MEM );
};
#endif // MEM_DEFN
|