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.

55 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. remote.hxx
  5. Abstract:
  6. remote data structure
  7. Author:
  8. Larry Zhu (LZhu) December 1, 2001
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef REMOTE_HXX
  14. #define REMOTE_HXX
  15. #define REMOTE_PACKET_SIZE 1024
  16. #define REMOTE_DLL_ENTRY "RunIt"
  17. #define REMOTE_DLL_INIT "Init"
  18. typedef HINSTANCE (WINAPI *PFuncLoadLib_t)(IN CHAR *);
  19. typedef HINSTANCE (WINAPI *PFuncGetProcAddr_t)(IN HINSTANCE, IN CHAR *);
  20. typedef HINSTANCE (WINAPI *PFuncFreeLib_t)(IN HINSTANCE);
  21. typedef int (*PFuncRunIt_t) (IN ULONG cbParameters, IN VOID* pvParameters);
  22. typedef DWORD (*PFuncInit_t) (
  23. IN ULONG argc,
  24. IN PCSTR* argv,
  25. OUT ULONG* pcbParameters,
  26. OUT VOID* ppvParameters
  27. );
  28. typedef struct _REMOTE_INFO {
  29. PFuncLoadLib_t pFuncLoadLibrary;
  30. PFuncGetProcAddr_t pFuncGetProcAddress;
  31. PFuncFreeLib_t pFuncFreeLibrary;
  32. CHAR szDllName[MAX_PATH + 1];
  33. CHAR szProcName[MAX_PATH + 1];
  34. ULONG cbParameters;
  35. UCHAR Parameters[ANYSIZE_ARRAY];
  36. } REMOTE_INFO;
  37. #endif // #ifndef REMOTE_HXX