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.

60 lines
2.7 KiB

  1. //--------------------------------------------------------------------------
  2. // Utility.h
  3. //--------------------------------------------------------------------------
  4. #pragma once
  5. //--------------------------------------------------------------------------
  6. // Prototypes
  7. //--------------------------------------------------------------------------
  8. HRESULT CreateSystemHandleName(
  9. /* in */ LPCWSTR pszBase,
  10. /* in */ LPCWSTR pszSpecific,
  11. /* out */ LPWSTR *ppszName);
  12. HRESULT DBGetFullPath(
  13. /* in */ LPCWSTR pszFilePath,
  14. /* out */ LPWSTR *ppszFullPath,
  15. /* out */ LPDWORD pcchFilePath);
  16. HRESULT DBGetFileSize(
  17. /* in */ HANDLE hFile,
  18. /* out */ LPDWORD pcbSize);
  19. HRESULT RegisterWindowClass(
  20. /* in */ LPCSTR pszClass,
  21. /* in */ WNDPROC pfnWndProc);
  22. HRESULT CreateNotifyWindow(
  23. /* in */ LPCSTR pszClass,
  24. /* in */ LPVOID pvParam,
  25. /* in */ HWND *phwndNotify);
  26. HRESULT DBOpenFileMapping(
  27. /* in */ HANDLE hFile,
  28. /* in */ LPCWSTR pszName,
  29. /* in */ DWORD cbSize,
  30. /* out */ BOOL *pfNew,
  31. /* out */ HANDLE *phMemoryMap,
  32. /* out */ LPVOID *ppvView);
  33. HRESULT DBMapViewOfFile(
  34. /* in */ HANDLE hMapping,
  35. /* in */ DWORD cbFile,
  36. /* in,out */ LPFILEADDRESS pfaView,
  37. /* in,out */ LPDWORD pcbView,
  38. /* out */ LPVOID *ppvView);
  39. HRESULT DBOpenFile(
  40. /* in */ LPCWSTR pszFile,
  41. /* in */ BOOL fNoCreate,
  42. /* in */ BOOL fExclusive,
  43. /* out */ BOOL *pfNew,
  44. /* ou */ HANDLE *phFile);
  45. HRESULT GetAvailableDiskSpace(
  46. /* in */ LPCWSTR pszFilePath,
  47. /* out */ DWORDLONG *pdwlFree);
  48. HRESULT CompareTableIndexes(
  49. /* in */ LPCTABLEINDEX pIndex1,
  50. /* in */ LPCTABLEINDEX pIndex2);