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.

95 lines
1.6 KiB

  1. /*
  2. * srcsrv.h
  3. */
  4. #define SRCSRVOPT_DEBUG 0x1
  5. BOOL
  6. WINAPI
  7. SrcSrvInit(
  8. HANDLE hProcess,
  9. LPCSTR path
  10. );
  11. typedef BOOL (WINAPI *PSRCSRVINITPROC)(HANDLE, LPCSTR);
  12. BOOL
  13. WINAPI
  14. SrcSrvCleanup(
  15. HANDLE hProcess
  16. );
  17. typedef BOOL (WINAPI *PSRCSRVCLEANUPPROC)(HANDLE);
  18. BOOL
  19. WINAPI
  20. SrcSrvSetTargetPath(
  21. HANDLE hProcess,
  22. LPCSTR path
  23. );
  24. typedef BOOL (WINAPI *PSRCSRVSETTARGETPATHPROC)(HANDLE, LPCSTR);
  25. DWORD
  26. WINAPI
  27. SrcSrvSetOptions(
  28. DWORD opts
  29. );
  30. typedef DWORD (WINAPI *PSRCSRVSETOPTIONSPROC)(DWORD);
  31. DWORD
  32. WINAPI
  33. SrcSrvGetOptions(
  34. );
  35. typedef DWORD (WINAPI *PSRCSRVGETOPTIONSPROC)();
  36. BOOL
  37. WINAPI
  38. SrcSrvLoadModule(
  39. HANDLE hProcess,
  40. LPCSTR name,
  41. DWORD64 base,
  42. PVOID stream,
  43. DWORD size
  44. );
  45. typedef BOOL (WINAPI *PSRCSRVLOADMODULEPROC)(HANDLE, LPCSTR, DWORD64, PVOID, DWORD);
  46. BOOL
  47. WINAPI
  48. SrcSrvUnloadModule(
  49. HANDLE hProcess,
  50. DWORD64 base
  51. );
  52. typedef BOOL (WINAPI *PSRCSRVUNLOADMODULEPROC)(HANDLE, DWORD64);
  53. typedef BOOL (CALLBACK WINAPI *PSRCSRVCALLBACKPROC)(UINT_PTR action, DWORD64 data, DWORD64 context);
  54. #define SRCSRVACTION_TRACE 0x1
  55. BOOL
  56. WINAPI
  57. SrcSrvRegisterCallback(
  58. HANDLE hProcess,
  59. PSRCSRVCALLBACKPROC callback,
  60. DWORD64 context
  61. );
  62. typedef BOOL (WINAPI *PSRCSRVREGISTERCALLBACKPROC)(HANDLE, PSRCSRVCALLBACKPROC, DWORD64);
  63. BOOL
  64. WINAPI
  65. SrcSrvGetFile(
  66. HANDLE hProcess,
  67. DWORD64 base,
  68. LPCSTR filename,
  69. LPSTR target,
  70. DWORD trgsize
  71. );
  72. typedef BOOL (WINAPI *PSRCSRVGETFILEPROC)(HANDLE, DWORD64, LPCSTR, LPSTR);