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.

24 lines
1.7 KiB

  1. //--------------------------------------------------------------------------
  2. // WrapWide.h
  3. //--------------------------------------------------------------------------
  4. #pragma once
  5. //--------------------------------------------------------------------------
  6. // Prototypes
  7. //--------------------------------------------------------------------------
  8. LPSTR AllocateStringA(DWORD cch);
  9. LPWSTR AllocateStringW(DWORD cch);
  10. LPSTR DuplicateStringA(LPCSTR psz);
  11. LPWSTR DuplicateStringW(LPCWSTR psz);
  12. LPWSTR ConvertToUnicode(UINT cp, LPCSTR pcszSource);
  13. LPSTR ConvertToANSI(UINT cp, LPCWSTR pcwszSource);
  14. DWORD GetFullPathNameWrapW(LPCWSTR pwszFileName, DWORD nBufferLength, LPWSTR pwszBuffer, LPWSTR *ppwszFilePart);
  15. HANDLE CreateMutexWrapW(LPSECURITY_ATTRIBUTES pMutexAttributes, BOOL bInitialOwner, LPCWSTR pwszName);
  16. int wsprintfWrapW( LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, ... );
  17. DWORD CharLowerBuffWrapW(LPWSTR pwsz, DWORD cch);
  18. HANDLE CreateFileWrapW(LPCWSTR pwszFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES pSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
  19. BOOL GetDiskFreeSpaceWrapW(LPCWSTR pwszRootPathName, LPDWORD pdwSectorsPerCluster, LPDWORD pdwBytesPerSector, LPDWORD pdwNumberOfFreeClusters, LPDWORD pdwTotalNumberOfClusters);
  20. HANDLE OpenFileMappingWrapW(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCWSTR pwszName);
  21. HANDLE CreateFileMappingWrapW(HANDLE hFile, LPSECURITY_ATTRIBUTES pFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCWSTR pwszName);
  22. BOOL MoveFileWrapW(LPCWSTR pwszExistingFileName, LPCWSTR pwszNewFileName);
  23. BOOL DeleteFileWrapW(LPCWSTR pwszFileName);