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.
|
|
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997.
//
// File: N C V A L I D . H
//
// Contents: Generic validation functions.
//
// Notes:
//
// Author: danielwe 19 Mar 1997
//
//----------------------------------------------------------------------------
#pragma once
#ifndef _NCVALID_H_
#define _NCVALID_H_
#define FBadInPtr(_p) IsBadReadPtr(_p, sizeof(*_p))
#define FBadOutPtr(_p) IsBadWritePtr(_p, sizeof(*_p))
#define FBadInPtrOptional(_p) ((NULL != _p) && IsBadReadPtr(_p, sizeof(*_p)))
#define FBadOutPtrOptional(_p) ((NULL != _p) && IsBadWritePtr(_p, sizeof(*_p)))
inline BOOL FBadInRefiid (REFIID riid) { return IsBadReadPtr(&riid, sizeof(IID)); }
#endif // _NCVALID_H_
|