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.
 
 
 
 
 
 

76 lines
1.1 KiB

/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
routing\monitor2\common\alias.h
Abstract:
Hash Table implementation include.
Revision History:
Anand Mahalingam 7/6/98 Created
--*/
#define ALIAS_TABLE_SIZE 211
//
// Type definitions for Alias Table
//
typedef struct _ALIAS_TABLE_ENTRY
{
LPWSTR pszAlias; // Alias Name
LPWSTR pszString; // Corresponding string
LIST_ENTRY le; // list pointers
}ALIAS_TABLE_ENTRY,*PALIAS_TABLE_ENTRY;
//
// Prototypes of functions to manipulate Alias Table
//
DWORD
ATHashAlias(
IN LPCWSTR pwszAliasName,
OUT PWORD pwHashValue
);
DWORD
ATInitTable(
VOID
);
DWORD
ATAddAlias(
IN LPCWSTR pwszAliasName,
IN LPCWSTR pwszAliasString
);
DWORD
ATDeleteAlias(
IN LPCWSTR pwszAliasName
);
DWORD
ATLookupAliasTable(
IN LPCWSTR pwszAliasName,
OUT LPWSTR *ppwszAliasString
);
DWORD
PrintAliasTable(
VOID
) ;
DWORD
FreeAliasTable(
VOID
) ;