Source code of Windows XP (NT5)
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.

36 lines
958 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: U P F I L E . H
  7. //
  8. // Contents: File utility functions.
  9. //
  10. // Notes: This is separate from ncfile.h so we don't bring the shell
  11. // dependencies into upnphost.
  12. //
  13. // Author: mbend 18 Aug 2000
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. HRESULT HrCreateFile(
  18. const wchar_t * szFilename,
  19. DWORD dwDesiredAccess,
  20. DWORD dwShareMode,
  21. LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  22. DWORD dwCreationDisposition,
  23. DWORD dwFlagsAndAttributes,
  24. HANDLE * phandle);
  25. HRESULT HrLoadFileFromDisk(
  26. const wchar_t * szFilename,
  27. long * pnFileSize, byte ** parBytes);
  28. const long UH_MAX_EXTENSION = 5;
  29. HRESULT HrGetFileExtension(const wchar_t * szFilename, wchar_t szExt[UH_MAX_EXTENSION]);