31#ifdef INCLUDE_CMD_TYPE
131 WARN(
"Error when retrieving file size, or size too large (%d)\n",
139 WARN(
"Error when setting file pointer\n");
177 WARN(
"Error when getting file pointer\n");
208 WARN(
"Error when getting file pointer\n");
308 if (!
_tcscmp(FindData.cFileName,
_T(
".")) ||
309 !
_tcscmp(FindData.cFileName,
_T(
"..")) ||
316 if (!
DoTypeFile(FindData.cFileName, hConsoleOut, bNoFileName, bPaging))
333 else if (!bFileFound)
355 if (!
DoTypeFile(
argv[
i], hConsoleOut, (bNoFileName || (nFileSpecs <= 1)), bPaging))
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
VOID error_req_param_missing(VOID)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPWSTR szFormat,...)
#define ConErrPrintf(szStr,...)
#define ConErrResPrintf(uID,...)
#define STRING_TYPE_HELP1
#define STRING_TYPE_ERROR
INT cmd_type(LPTSTR param)
static BOOL FileGetString(IN HANDLE hFile, OUT LPTSTR lpBuffer, IN LONG nBufferLength)
static BOOL DoTypeFile(IN LPTSTR FileName, IN HANDLE hConsoleOut, IN BOOL bNoFileName, IN BOOL bPaging)
static VOID freep(LPSTR *p)
static LPSTR * split(LPSTR s, LPINT args)
EXPORT int errmsg(char *msg, va_alist)
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define INVALID_SET_FILE_POINTER
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
DWORD WINAPI GetFileType(HANDLE hFile)
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
static unsigned char buff[32768]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
HLOCAL NTAPI LocalFree(HLOCAL hMem)
#define ERROR_FILE_NOT_FOUND
#define FILE_ATTRIBUTE_DIRECTORY
#define STD_OUTPUT_HANDLE
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define INVALID_FILE_SIZE
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
_In_ LPCSTR _In_opt_ LPCSTR _In_ DWORD nBufferLength