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.
 
 
 
 
 
 

89 lines
1.5 KiB

/*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
ftpcatp.h
Abstract:
(Precompiled) Header file for ftpcat
Author:
Richard L Firth (rfirth) 03-Nov-1995
Revision History:
03-Nov-1995 rfirth
Created
--*/
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <io.h>
#include <fcntl.h>
#include <signal.h>
#include <conio.h>
#include <process.h>
#include <windows.h>
#include <wininet.h>
#include <wininetd.h>
#include <catlib.h>
#ifdef UNICODE
#include <wchar.h>
#define lstrtok(s,t) wcstok((s),(t))
#define lstrchr(s,c) wcschr((s),(c))
#define lstrdup(s) wcsdup((s))
#define lprintf wprintf
#else
#include <string.h>
#define lstrtok(s,t) strtok((s),(t))
#define lstrchr(s,c) strchr((s),(c))
#define lstrdup(s) _strdup((s))
#define lprintf printf
#endif // UNICODE
#define nelems(a) ((sizeof(a))/sizeof((a)[0]))
extern DWORD GetProcessHandleCount(void);
//
// manifests
//
#define FTPCAT_CONNECT_CONTEXT 0x1
#define FTPCAT_FIND_CONTEXT 0x2
#define FTPCAT_FILE_CONTEXT 0x3
#define FTPCAT_GET_CONTEXT 0x4
#define FTPCAT_PUT_CONTEXT 0x5
#define FTPCAT_COMMAND_CONTEXT 0x6
#define FTPCAT_OPEN_CONTEXT 0x7
//
// prototypes
//
//
// ftpcat.c
//
void my_callback(HINTERNET, DWORD, DWORD, LPVOID, DWORD);
void close_handle(HINTERNET);
//
// cmds.c
//
void get_response(HINTERNET hFtpSession);