1
2//  lib-win.lnt
3//    PC-lint Library Options File for windows.h
4
5-printf(w2,wsprintf)   // complains if pointers to wsprintf are not far.
6-printf(w2,wsprintfA)  // ASCII version of wsprintf
7-printf(w2,wsprintfW)  // UNICODE version of wsprintf
8-esym(14,pLocalHeap)   // variable defined in windows.h
9-e740   // remove 'suspicious cast' messages because these must be
10	// routinely done within Windows.
11-e744   // switch has no default, reflects Petzold style
12-elib(46) // windows.h uses a BYTE as base of bit field.
13-elib(1717) // allow null prototypes.
14-e793       // windows breaks ANSI limits
15
16//  the following functions have their return value typically ignored.
17//  add or subtract from this list as desired.
18-esym(534,RegisterClass,ShowWindow,TranslateMessage,DispatchMessage)
19-esym(534,DrawText,GetTextMetrics,ReleaseDC,TextOut,SetTextAlign)
20-esym(534,SetScrollPos,SelectObject,SetBkMode,SendMessage,MessageBox)
21-esym(534,MessageBoxA,MessageBoxW,PostMessageA,PostMessageW)
22-esym(534,PatBlt,DeleteDC,SetCapture,SetCursor,StretchBlt)
23-esym(534,Rectangle,MoveTo,LineTo,ShowCursor,MoveWindow,SetWindowWord)
24-esym(534,SetPixel,FillRect,DeleteObject,KillTimer,GetProfileString)
25-esym(534,SetWindowLong,SetFocus,SetBkColor,SetTextColor,SetBrushOrg)
26-esym(534,UnrealizeObject,_lclose,Polygon,FrameRect,LoadString)
27-esym(534,GetInstanceData,GlobalUnlock,FreeResource,LoadString)
28-esym(534,DrawIcon,AppendMenu,GetObject,CheckMenuItem,SetClassWord)
29-esym(534,EnableMenuItem,SetMenu,DestroyMenu,TrackPopupMenu)
30-esym(534,AnsiUpper,Arc,BeginPaint,BitBlt,ChangeClipboardChain,Chord)
31-esym(534,CloseClipboard,CombineRgn,DdeClientTransaction,DdeDisconnect)
32-esym(534,DdeFreeStringHandle,DdeGetData,DdeNameService,DdePostAdvise)
33-esym(534,DdeQueryString,DdeUninitialize,DeleteMenu,DeleteMetaFile)
34-esym(534,DestroyWindow,DialogBox,DPtoLP,Ellipse,EmptyClipboard,EnableWindow)
35-esym(534,EnumChildWindows,EnumWindows,Escape,GetClassName,GetDlgItemText)
36-esym(534,GetFileTitle,GetMenuString,GetStrings,GetSystemMenu,GetTextFace)
37-esym(534,GetWindowText,GlobalDeleteAtom,GlobalFree,GlobalGetAtomName)
38-esym(534,LocalFree,LocalUnlock,LockResource,lstrcpy,OpenClipboard)
39-esym(534,Pie,PlayMetaFile,PopFindNextText,PostDataMessage,PostMessage)
40-esym(534,RestoreDC,SaveDC,SelectClipRgn,SendDlgItemMessage,SetClipboardData)
41-esym(534,SetDIBitsToDevice,SetMapMode,SetMapperFlags,SetROP2,SetStretchBltMode)
42-esym(534,SetTextJustification,SetTimer,SetViewportExt,SetViewportOrg)
43-esym(534,SetWindowExt,SetWindowOrg,StretchDIBits,WinExec)
44
45//  Ignored parameters
46-esym(715,lpszCmdParam,lpszCmdLine)
47
48// Please Note:
49// We complain (Error 64) when a function declared _export is
50// assigned to a non-export function.  Accordingly you should
51// modify your windows.h so that the declaration of
52//  LONG  (FAR PASCAL *lpfnWndProc)( HWND, WORD, WORD, LONG );
53// within the WNDCLASS struct has an '_export' added as in:
54//  LONG  (FAR PASCAL _export *lpfnWndProc)( HWND, WORD, WORD, LONG );
55// Alternatively use the suffix   '//lint !e64'
56// on the line yielding the Error 64.
57
58// Special Note for DLL's
59// Enable the following option by removing the leading '//'
60// +e934 // report passing near auto pointers to other functions
61// See Petzold, Chapter 19 "Dynamic Link Libraries", Section
62// "The DS != SS Issue", (Windows 3.0, pp 897-902), or
63// (Windows 3.1, pp 929-934).
64