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.
 
 
 
 
 
 

25 lines
1.7 KiB

//--------------------------------------------------------------------------
// WrapWide.h
//--------------------------------------------------------------------------
#pragma once
//--------------------------------------------------------------------------
// Prototypes
//--------------------------------------------------------------------------
LPSTR AllocateStringA(DWORD cch);
LPWSTR AllocateStringW(DWORD cch);
LPSTR DuplicateStringA(LPCSTR psz);
LPWSTR DuplicateStringW(LPCWSTR psz);
LPWSTR ConvertToUnicode(UINT cp, LPCSTR pcszSource);
LPSTR ConvertToANSI(UINT cp, LPCWSTR pcwszSource);
DWORD GetFullPathNameWrapW(LPCWSTR pwszFileName, DWORD nBufferLength, LPWSTR pwszBuffer, LPWSTR *ppwszFilePart);
HANDLE CreateMutexWrapW(LPSECURITY_ATTRIBUTES pMutexAttributes, BOOL bInitialOwner, LPCWSTR pwszName);
int wsprintfWrapW( LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, ... );
DWORD CharLowerBuffWrapW(LPWSTR pwsz, DWORD cch);
HANDLE CreateFileWrapW(LPCWSTR pwszFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES pSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
BOOL GetDiskFreeSpaceWrapW(LPCWSTR pwszRootPathName, LPDWORD pdwSectorsPerCluster, LPDWORD pdwBytesPerSector, LPDWORD pdwNumberOfFreeClusters, LPDWORD pdwTotalNumberOfClusters);
HANDLE OpenFileMappingWrapW(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCWSTR pwszName);
HANDLE CreateFileMappingWrapW(HANDLE hFile, LPSECURITY_ATTRIBUTES pFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCWSTR pwszName);
BOOL MoveFileWrapW(LPCWSTR pwszExistingFileName, LPCWSTR pwszNewFileName);
BOOL DeleteFileWrapW(LPCWSTR pwszFileName);