Platform SDK: Win32 API

Obsolete Windows Programming Elements

The following table provides a list of functions that are included in the Win32 API only for backward compatibility with the 16-bit Windows API.

16-bit Windows API Win32 API Support
_hread Replaced by the ReadFile function.
_hwrite Replaced by the WriteFile function.
_lclose Replaced by the CloseHandle function.
_lcreat Replaced by the CreateFile function.
_llseek Replaced by the SetFilePointer function.
_lopen Replaced by the CreateFile function.
_lread Replaced by the ReadFile function.
_lwrite Replaced by the WriteFile function.
AnsiLower Replaced by the CharLower function.
AnsiLowerBuff Replaced by the CharLowerBuff function.
AnsiNext Replaced by the CharNext function.
AnsiPrev Replaced by the CharPrev function.
AnsiToOem Replaced by the CharToOem function.
AnsiToOemBuff Replaced by the CharToOemBuff function.
AnsiUpper Replaced by the CharUpper function.
AnsiUpperBuff Replaced by the CharUpperBuff function.
AnyPopup No equivalent.
CloseMetaFile Replaced by the CloseEnhMetaFile function.
CopyLZFile Replaced by the LZCopy function.
CopyMetaFile Replaced by the CopyEnhMetaFile function.
CreateDIBPatternBrush Replaced by the CreateDIBPatternBrush function.
CreateDiscardableBitmap Replaced by the CreateCompatibleBitmap function.
CreateMetaFile Replaced by the CreateEnhMetaFile function.
DefHookProc Replaced by the CallNextHookEx function.
DefineHandleTable No equivalent.
DeleteMetaFile Replaced by the DeleteEnhMetaFile function.
EnumFontFamilies Replaced by the EnumFontFamiliesEx function.
EnumFontFamProc Replaced by the EnumFontFamExProc function.
EnumFonts Replaced by the EnumFontFamiliesEx function.
EnumFontsProc Replaced by the EnumFontFamExProc function.
EnumMetaFile Replaced by the EnumEnhMetaFile function.
EnumMetaFileProc Replaced by the EnhMetaFileProc function.
EnumTaskWindows Replaced by the EnumThreadWindows function.
FixBrushOrgEx No equivalent.
FloodFill Replaced by the ExtFloodFill function.
FreeModule Replaced by the FreeLibrary function.
FreeProcInstance No equivalent.
FreeResource No equivalent.
GetBitmapBits Replaced by the GetDIBits function.
GetCharWidth Replaced by the GetCharWidth32 function.
GetClassWord Replaced by the GetClassLong function.
GetCurrentTime Replaced by the GetTickCount function.
GetFreeSpace Replaced by the GlobalMemoryStatus function.
GetKBCodePage Replaced by the GetOEMCP function.
GetMetaFile Replaced by the GetEnhMetaFile function.
GetMetaFileBitsEx Replaced by the GetEnhMetaFileBits function.
GetPrivateProfileInt Replaced by registry support.
GetPrivateProfileSection Replaced by registry support.
GetPrivateProfileSectionNames Replaced by registry support.
GetPrivateProfileString Replaced by registry support.
GetPrivateProfileStruct Replaced by registry support.
GetProfileInt Replaced by registry support.
GetProfileSection Replaced by registry support.
GetProfileString Replaced by registry support.
GetSysModalWindow No equivalent.
GetTextExtentPoint Replaced by the GetTextExtentPoint32 function.
GetWindowTask Replaced by the GetWindowThreadProcessId function.
GetWindowWord Replaced by the GetWindowLong function.
GlobalAlloc Replaced by memory management functions.
GlobalCompact No equivalent.
GlobalDiscard No equivalent.
GlobalFix No equivalent.
GlobalFlags No equivalent.
GlobalFree Replaced by memory management functions.
GlobalHandle No equivalent.
GlobalLock No equivalent.
GlobalLRUNewest No equivalent.
GlobalLRUOldest No equivalent.
GlobalReAlloc Replaced by memory management functions.
GlobalSize No equivalent.
GlobalUnfix No equivalent.
GlobalUnlock No equivalent.
GlobalUnwire No equivalent.
GlobalWire No equivalent.
IsBadHugeReadPtr Equivalent to the IsBadReadPtr function.
IsBadHugeWritePtr Equivalent to the IsBadWritePtr function.
LimitEmsPages No equivalent.
LoadModule Replaced by the CreateProcess function.
LocalAlloc Replaced by memory management functions.
LocalCompact No equivalent.
LocalDiscard No equivalent.
LocalFlags No equivalent.
LocalFree Replaced by memory management functions.
LocalHandle No equivalent.
LocalLock No equivalent.
LocalReAlloc Replaced by memory management functions.
LocalShrink No equivalent.
LocalSize No equivalent.
LocalUnlock No equivalent.
LockSegment No equivalent.
LZDone Replaced by the LZCopy function.
LZStart Replaced by the LZCopy function.
MakeProcInstance No equivalent.
OemToAnsi Replaced by the OemToChar function.
OemToAnsiBuff Replaced by the OemToCharBuff function.
OpenFile Replaced by the CreateFile function.
PlayMetaFile Replaced by the PlayEnhMetaFile function.
PlayMetaFileRecord Replaced by the PlayEnhMetaFileRecord function.
PostAppMessage Replaced by the PostThreadMessage function.
RegCreateKey Replaced by the RegCreateKeyEx function.
RegEnumKey Replaced by the RegEnumKeyEx function.
RegOpenKey Replaced by the RegOpenKeyEx function.
RegQueryValue Replaced by the RegQueryValueEx function.
RegSetValue Replaced by the RegSetValueEx function.
SetBitmapBits Replaced by the SetDIBits function.
SetClassWord Replaced by the SetClassLong function.
SetDebugErrorLevel No equivalent.
SetHandleCount No equivalent.
SetMessageQueue No equivalent.
SetMetaFileBitsEx Replaced by the SetEnhMetaFileBits function.
SetSysModalWindow No equivalent.
SetSwapAreaSize No equivalent.
SetWindowsHook Replaced by the SetWindowsHookEx function.
SetWindowWord Replaced by the SetWindowLong function.
UnhookWindowsHook Replaced by the UnhookWindowsHookEx function.
UnlockResource No equivalent.
UnlockSegment No equivalent.
WaitForPrinterChange Replaced by the FindFirstPrinterChangeNotification function.
WinExec Replaced by the CreateProcess function.
WNetAddConnection Replaced by the WNetAddConnection2 function.
WritePrivateProfileSection Replaced by registry support.
WritePrivateProfileString Replaced by registry support.
WritePrivateProfileStruct Replaced by registry support.
WriteProfileSection Replaced by registry support.
WriteProfileString Replaced by registry support.
Yield No equivalent.