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

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. ftpcatp.h
  5. Abstract:
  6. (Precompiled) Header file for ftpcat
  7. Author:
  8. Richard L Firth (rfirth) 03-Nov-1995
  9. Revision History:
  10. 03-Nov-1995 rfirth
  11. Created
  12. --*/
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <malloc.h>
  16. #include <io.h>
  17. #include <fcntl.h>
  18. #include <signal.h>
  19. #include <conio.h>
  20. #include <process.h>
  21. #include <windows.h>
  22. #include <wininet.h>
  23. #include <wininetd.h>
  24. #include <catlib.h>
  25. #ifdef UNICODE
  26. #include <wchar.h>
  27. #define lstrtok(s,t) wcstok((s),(t))
  28. #define lstrchr(s,c) wcschr((s),(c))
  29. #define lstrdup(s) wcsdup((s))
  30. #define lprintf wprintf
  31. #else
  32. #include <string.h>
  33. #define lstrtok(s,t) strtok((s),(t))
  34. #define lstrchr(s,c) strchr((s),(c))
  35. #define lstrdup(s) _strdup((s))
  36. #define lprintf printf
  37. #endif // UNICODE
  38. #define nelems(a) ((sizeof(a))/sizeof((a)[0]))
  39. extern DWORD GetProcessHandleCount(void);
  40. //
  41. // manifests
  42. //
  43. #define FTPCAT_CONNECT_CONTEXT 0x1
  44. #define FTPCAT_FIND_CONTEXT 0x2
  45. #define FTPCAT_FILE_CONTEXT 0x3
  46. #define FTPCAT_GET_CONTEXT 0x4
  47. #define FTPCAT_PUT_CONTEXT 0x5
  48. #define FTPCAT_COMMAND_CONTEXT 0x6
  49. #define FTPCAT_OPEN_CONTEXT 0x7
  50. //
  51. // prototypes
  52. //
  53. //
  54. // ftpcat.c
  55. //
  56. void my_callback(HINTERNET, DWORD, DWORD, LPVOID, DWORD);
  57. void close_handle(HINTERNET);
  58. //
  59. // cmds.c
  60. //
  61. void get_response(HINTERNET hFtpSession);