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.
|
|
/*
* string.h - String table ADT description. */
/* Types
********/
/* handles */
DECLARE_HANDLE(HSTRING); DECLARE_STANDARD_TYPES(HSTRING); DECLARE_HANDLE(HSTRINGTABLE); DECLARE_STANDARD_TYPES(HSTRINGTABLE);
/* count of hash buckets in a string table */
typedef UINT HASHBUCKETCOUNT; DECLARE_STANDARD_TYPES(HASHBUCKETCOUNT);
/* string table hash function */
typedef HASHBUCKETCOUNT (*STRINGTABLEHASHFUNC)(LPCTSTR, HASHBUCKETCOUNT);
/* new string table */
typedef struct _newstringtable { HASHBUCKETCOUNT hbc; STRINGTABLEHASHFUNC HashFunc; } NEWSTRINGTABLE; DECLARE_STANDARD_TYPES(NEWSTRINGTABLE);
/* Prototypes
*************/
/* string.c */
extern BOOL CreateStringTable(PCNEWSTRINGTABLE, PHSTRINGTABLE); extern void DestroyStringTable(HSTRINGTABLE); extern BOOL AddString(LPCTSTR, HSTRINGTABLE, PHSTRING); extern void DeleteString(HSTRING); extern void LockString(HSTRING); extern COMPARISONRESULT CompareStringsI(HSTRING, HSTRING); extern LPCTSTR GetString(HSTRING);
#if defined(DEBUG) || defined (VSTF)
extern BOOL IsValidHSTRING(HSTRING); extern BOOL IsValidHSTRINGTABLE(HSTRINGTABLE);
#endif
#ifdef DEBUG
extern ULONG GetStringCount(HSTRINGTABLE);
#endif
|