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.
 
 
 
 
 
 

95 lines
1.4 KiB

/*
* WINPCK.H
*
* Description of callback packets.
*
* Module History:
* 10-Jan-91 [mannyv] Adapted it from CVPACK
* 26-Dec-90 [mannyv] Created it.
*/
/*
* Packet header. All packets contain this information at the beginning
*/
typedef struct
{
short iType; // packet type
short cb; // number of bytes in packet (include header)
} PCKHDR;
/*
* Packet types (values for iType field in header)
*/
enum
{
QW_VERSION=0, // reports version of app
QW_END, // signals end of execution of app
QW_ERROR, // signals error
QW_WERROR, // signals windows error
QW_STATUS // reports progress
};
/*
* Version packet
*/
typedef struct
{
PCKHDR hdr;
char FAR * pszTitle;
char FAR * pszCopyright;
short Major;
short Minor;
short Internal;
} PCKVER;
/*
* Error packet. Note: the string pointed to by pszError in the
* packet is only valid during the callback. The callback function
* should copy the string if it needs it later.
*
* This same packe is used for both QW_ERROR and QW_WERROR packets.
*/
typedef struct
{
PCKHDR hdr;
char FAR * pszError;
} PCKERR;
/*
* End packet
*/
typedef struct
{
PCKHDR hdr;
short RetCode;
} PCKEND;
/*
* Proress report packet.
*/
typedef struct
{
PCKHDR hdr;
char FAR * pszMsg;
} PCKSTS;