Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

121 lines
4.0 KiB

#ifndef HC_H
#include "hc.h"
#endif
#ifndef _FC_H
#define _FC_H
#define RAWHIDE
/*****************************************************************************
* *
* FC.H *
* *
* Copyright (C) Microsoft Corporation 1990. *
* All Rights reserved. *
* *
******************************************************************************
* *
* Module Intent *
* *
* Exports the FC manager function calls. *
* *
******************************************************************************
* *
* Testing Notes *
* *
******************************************************************************
* *
* Current Owner: KevynCT *
* *
******************************************************************************
* *
* Released by Development: *
* *
*****************************************************************************/
/*****************************************************************************
*
* Revision History: Created by RobertBu
*
* 10/29/90 RobertBu Added pszEntryMacro to the TOP structure
* 11/04/90 Tomsn Use new VA address type (enabling zeck compression).
* 02/04/91 Maha changed ints to INT
*
*****************************************************************************/
/*****************************************************************************
* *
* Typedefs *
* *
*****************************************************************************/
typedef HANDLE HFC; // Handle to a full context
typedef HANDLE HHF; // Help file handle
typedef struct {
int cbTopic; /* Length of the topic. This field
* will be -1 until the first call to
* CbTopicQde() (where it is initialized).
*/
BOOL fITO; /* TRUE if next and prev are given by ITO, */
/* FALSE if they are PAs (temporary: FCLs) */
MTOP mtop; /* MTOP structure, containing next and prev */
/* values, as well as the unique ID. */
PSTR pszTitle; // Handle to title data
int cbTitle; // Size of title
PSTR pszEntryMacro; /* Macro to execute on entry to topic */
VA vaCurr; /* The VA which was asked for when this TOP
* struct was filled with HfcNear. We use this
* value to determine which layout sub-region
* we are in (NSR or SR) when printing or
* doing anything where looking at the DE type
* will not tell us what sub-region we are in.
*/
} TOP, *QTOP;
/*****************************************************************************
* *
* Defines *
* *
*****************************************************************************/
#define FC_CLEAR
#define FC_MIDDLE 0
#define FC_FIRST 1
#define FC_LAST 2
#define FC_UNDEF 4
#define FC_ERROR 8
#define FCNULL 0L
#define hhfNil (HANDLE) 0 // Nil help file handle
#define tnNil (TN) 0
#define HfcNear(qde, vaPos, qtop, hphr, qwErr) \
HfcFindPrevFc(qde, vaPos, qtop, hphr, qwErr)
#define HfcNextHfc(hfc, qwErr, qde, vaMarkTop, vaMarkBottom) \
HfcNextPrevHfc(hfc, TRUE, qde, qwErr, vaMarkTop, vaMarkBottom)
#define HfcPrevHfc(hfc, qwErr, qde, vaMarkTop, vaMarkBottom) \
HfcNextPrevHfc(hfc, FALSE, qde, qwErr, vaMarkTop, vaMarkBottom)
/*****************************************************************************
* *
* Prototypes *
* *
*****************************************************************************/
VOID STDCALL UnlockHfc (HFC);
VOID STDCALL FreeHfc (HFC);
VOID STDCALL CloseHhf (HHF);
int STDCALL TnNextHhf (HFC, int);
int STDCALL CbDiskHfc (HFC);
int STDCALL CbTextHfc (HFC);
VOID STDCALL FlushCache(void);
#endif