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.
 
 
 
 
 
 

29 lines
856 B

#ifdef _WIN32
#include <windows.h>
#endif
#include <wchar.h>
#include <stdio.h>
#ifndef _WIN32
/* Constant Definitions */
typedef WORD BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef wchar_t WCHAR;
#endif
#define LOBYTE(w) ((BYTE)(w))
#define HIBYTE(w) ((BYTE)(((WORD)(w) >> 8) & 0xFF))
#define MAKEWORD(a, b) ((WORD)(((BYTE)(a)) | ((WORD)((BYTE)(b))) << 8))
/*--------------------------------------------------------------------------*/
/* Function Templates */
/*--------------------------------------------------------------------------*/
WCHAR * fgetsW (WCHAR *string, int count, FILE *fh, BOOL bUnicode);
long freadW (WCHAR *string, long count, FILE *fh, BOOL bUnicode);
BOOL IsFileUnicode (char *fName);