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) 2002 Microsoft Corporation
Module Name:
validate.c
Abstract:
This module contains all of the code to perform data validation for IPSec user mode componets
Authors:
RaymondS
Environment
User Level: Win32
Revision History: 21 APR 2002: Added ValidateFilterAction
--*/
#include <precomp.h>
DWORD ValidateFilterAction( FILTER_ACTION FilterAction ) { DWORD dwError = ERROR_SUCCESS;
if (FilterAction == 0 || FilterAction >= FILTER_ACTION_MAX) { dwError = ERROR_INVALID_PARAMETER; BAIL_ON_WIN32_ERROR(dwError); } error: return (dwError); }
DWORD ValidateInterfaceType( IF_TYPE InterfaceType ) { DWORD dwError = ERROR_SUCCESS;
if (InterfaceType == 0 || InterfaceType >= INTERFACE_TYPE_MAX) { dwError = ERROR_INVALID_PARAMETER; BAIL_ON_WIN32_ERROR(dwError); } error: return (dwError); }
|