Export (0) Print
Expand All

Obsolete Windows Programming Elements

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

16-bit Windows API32-bit Windows support
_hreadReplaced by the ReadFile function.
_hwriteReplaced by the WriteFile function.
_lcloseReplaced by the CloseHandle function.
_lcreatReplaced by the CreateFile function.
_llseekReplaced by the SetFilePointer function.
_lopenReplaced by the CreateFile function.
_lreadReplaced by the ReadFile function.
_lwriteReplaced by the WriteFile function.
AnsiLowerReplaced by the CharLower function.
AnsiLowerBuffReplaced by the CharLowerBuff function.
AnsiNextReplaced by the CharNext function.
AnsiPrevReplaced by the CharPrev function.
AnsiToOemReplaced by the CharToOem function.
AnsiToOemBuffReplaced by the CharToOemBuff function.
AnsiUpperReplaced by the CharUpper function.
AnsiUpperBuffReplaced by the CharUpperBuff function.
AnyPopupNot generally useful. Maintained for compatibility with Windows 1.x.
CloseMetaFileReplaced by the CloseEnhMetaFile function.
CopyLZFileReplaced by the LZCopy function.
CopyMetaFileReplaced by the CopyEnhMetaFile function.
CreateDIBPatternBrushReplaced by the CreateDIBPatternBrush function.
CreateDiscardableBitmapReplaced by the CreateCompatibleBitmap function.
CreateMetaFileReplaced by the CreateEnhMetaFile function.
DefHookProcReplaced by the CallNextHookEx function.
DeleteMetaFileReplaced by the DeleteEnhMetaFile function.
EnumFontFamiliesReplaced by the EnumFontFamiliesEx function.
EnumFontFamProcReplaced by the EnumFontFamExProc function.
EnumFontsReplaced by the EnumFontFamiliesEx function.
EnumFontsProcReplaced by the EnumFontFamExProc function.
EnumMetaFileReplaced by the EnumEnhMetaFile function.
EnumMetaFileProcReplaced by the EnhMetaFileProc function.
EnumTaskWindowsReplaced by the EnumThreadWindows function.
FloodFillReplaced by the ExtFloodFill function.
FreeModuleReplaced by the FreeLibrary function.
FreeProcInstanceNot necessary and has no effect. Windows can call entry points directly.
FreeResourceReplaced as follows:
Accelerator: DestroyAcceleratorTable
Bitmap: DeleteObject
Cursor: DestroyCursor
Icon: DestroyIcon
Menu: DestroyMenu
GetBitmapBitsReplaced by the GetDIBits function.
GetCharWidthReplaced by the GetCharWidth32 function.
GetClassWordReplaced by the GetClassLong function
GetCurrentTimeReplaced by the GetTickCount function.
GetFreeSpaceReplaced by the GlobalMemoryStatus function.
GetKBCodePageReplaced by the GetOEMCP function.
GetMetaFileReplaced by the GetEnhMetaFile function.
GetMetaFileBitsExReplaced by the GetEnhMetaFileBits function.
GetPrivateProfileIntReplaced by registry support.
GetPrivateProfileSectionReplaced by registry support.
GetPrivateProfileSectionNamesReplaced by registry support.
GetPrivateProfileStringReplaced by registry support.
GetPrivateProfileStructReplaced by registry support.
GetProfileIntReplaced by registry support.
GetProfileSectionReplaced by registry support.
GetProfileStringReplaced by registry support.
GetSysModalWindow The new input model does not support system modal windows.
GetTextExtentPointReplaced by the GetTextExtentPoint32 function.
GetWindowTaskReplaced by the GetWindowThreadProcessId function.
GetWindowWordReplaced by the GetWindowLong function.
GlobalCompactNot necessary and has no effect.
GlobalFixNot necessary and has no effect.
GlobalFlagsNot necessary and has no effect.
GlobalLRUNewestNot necessary and has no effect.
GlobalLRUOldestNot necessary and has no effect.
GlobalUnfixNot necessary and has no effect.
GlobalUnWireNot necessary and has no effect.
GlobalWireNot necessary and has no effect.
IsBadHugeReadPtrEquivalent to the IsBadReadPtr function. There is only one memory model.
IsBadHugeWritePtrEquivalent to the IsBadWritePtr function. There is only one memory model.
LimitEmsPagesNot necessary and has no effect.
LoadModuleReplaced by the CreateProcess function.
LocalCompactNot necessary and has no effect.
LocalFlagsNot necessary and has no effect.
LocalShrinkNot necessary and has no effect.
LockSegmentNot necessary and has no effect.
LZDoneReplaced by the LZCopy function.
LZStartReplaced by the LZCopy function.
MakeProcInstanceNot necessary and has no effect. Windows can call entry points directly.
OemToAnsiReplaced by the OemToChar function.
OemToAnsiBuffReplaced by the OemToCharBuff function.
OpenFileReplaced by the CreateFile function.
PlayMetaFileReplaced by the PlayEnhMetaFile function.
PlayMetaFileRecordReplaced by the PlayEnhMetaFileRecord function.
PostAppMessageReplaced by the PostThreadMessage function.
PrinterMessageBoxNot necessary and has no effect.
RegCreateKeyReplaced by the RegCreateKeyEx function.
RegEnumKeyReplaced by the RegEnumKeyEx function.
RegOpenKeyReplaced by the RegOpenKeyEx function.
RegQueryValueReplaced by the RegQueryValueEx function.
RegSetValueReplaced by the RegSetValueEx function.
SetBitmapBitsReplaced by the SetDIBits function.
SetClassWordReplaced by the SetClassLong function.
SetDebugErrorLevelNot necessary and has no effect.
SetHandleCountNot necessary and has no effect. There is no explicit file handle limit.
SetMessageQueueNot necessary and has no effect. Message queues are expanded as needed.
SetMetaFileBitsExReplaced by the SetEnhMetaFileBits function.
SetSwapAreaSizeNot necessary and has no effect.
SetSysModalWindowNot necessary and has no effect.
SetWindowsHookReplaced by the SetWindowsHookEx function.
SetWindowWordReplaced by the SetWindowLong function.
UnhookWindowsHookReplaced by the UnhookWindowsHookEx function.
UnlockResourceNot necessary and has no effect.
UnlockSegmentNot necessary and has no effect.
WaitForPrinterChangeReplaced by the FindFirstPrinterChangeNotification, FindNextPrinterChangeNotification, and FindClosePrinterChangeNotification functions.
WinExecReplaced by the CreateProcess function.
WNetAddConnectionReplaced by the WNetAddConnection2 function.
WritePrivateProfileSectionReplaced by registry support.
WritePrivateProfileStringReplaced by registry support.
WritePrivateProfileStructReplaced by registry support.
WriteProfileSectionReplaced by registry support.
WriteProfileStringReplaced by registry support.
YieldNot necessary and has no effect. The message loop handles synchronization.

Threads that create processes can use WaitForInputIdle to wait until the new process has finished its initialization.

 

 

 

Build date: 3/25/2010

Community Additions

Show:
© 2014 Microsoft