cppcheck/cfg/windows.cfg

311 lines
12 KiB
INI

<?xml version="1.0"?>
<def>
<resource>
<alloc init="true">CreatePen</alloc>
<alloc init="true">CreateBrushIndirect</alloc>
<alloc init="true">CreateDIBPatternBrush</alloc>
<alloc init="true">CreateDIBPatternBrushPt</alloc>
<alloc init="true">CreateHatchBrush</alloc>
<alloc init="true">CreatePatternBrush</alloc>
<alloc init="true">CreateSolidBrush</alloc>
<alloc init="true">CreateFont</alloc>
<alloc init="true">CreateFontIndirect</alloc>
<alloc init="true">CreateFontIndirectEx</alloc>
<alloc init="true">CreateBitmap</alloc>
<alloc init="true">CreateBitmapIndirect</alloc>
<alloc init="true">CreateCompatibleBitmap</alloc>
<alloc init="true">CreateDIBitmap</alloc>
<alloc init="true">CreateDIBSection</alloc>
<alloc init="true">CreateDiscardableBitmap</alloc>
<alloc init="true">CreateEllipticRgn</alloc>
<alloc init="true">CreateEllipticRgnIndirect</alloc>
<alloc init="true">CreatePolygonRgn</alloc>
<alloc init="true">CreatePolyPolygonRgn</alloc>
<alloc init="true">CreateRectRgn</alloc>
<alloc init="true">CreateRectRgnIndirect</alloc>
<alloc init="true">CreateRoundRectRgn</alloc>
<alloc init="true">CreateHalftonePalette</alloc>
<alloc init="true">CreatePalette</alloc>
<dealloc>DeleteObject</dealloc>
</resource>
<resource>
<dealloc>closesocket</dealloc>
<alloc init="true">socket</alloc>
</resource>
<resource>
<alloc init="true">CreateThread</alloc>
<alloc init="true">CreateFile</alloc>
<alloc init="true">OpenFile</alloc>
<alloc init="true">CreateJobObject</alloc>
<alloc init="true">CreateRemoteThread</alloc>
<alloc init="true">CreateConsoleScreenBuffer</alloc>
<alloc init="true">OpenBackupEventLog</alloc>
<alloc init="true">OpenEventLog</alloc>
<alloc init="true">CreateFileMapping</alloc>
<alloc init="true">CreateFileMappingFromApp</alloc>
<alloc init="true">CreateFileMappingNuma</alloc>
<alloc init="true">CreateMemoryResourceNotification</alloc>
<alloc init="true">OpenFileMapping</alloc>
<alloc init="true">CreateNamedPipe</alloc>
<alloc init="true">CreateEvent</alloc>
<alloc init="true">CreateMutex</alloc>
<alloc init="true">CreateSemaphore</alloc>
<alloc init="true">CreateTimerQueue</alloc>
<alloc init="true">CreateWaitableTimer</alloc>
<alloc init="true">OpenEvent</alloc>
<alloc init="true">OpenMutex</alloc>
<alloc init="true">OpenSemaphore</alloc>
<alloc init="true">OpenWaitableTimer</alloc>
<alloc init="true">OpenJobObject</alloc>
<alloc init="true">OpenProcess</alloc>
<alloc init="true">OpenThread</alloc>
<alloc init="true">CreateMailslot</alloc>
<dealloc>CloseHandle</dealloc>
</resource>
<resource>
<alloc init="true">OpenSCManager</alloc>
<alloc init="true">OpenService</alloc>
<alloc init="true">CreateService</alloc>
<dealloc>CloseServiceHandle</dealloc>
</resource>
<resource>
<alloc init="true">LockServiceDatabase</alloc>
<dealloc>UnlockServiceDatabase</dealloc>
</resource>
<memory>
<alloc>ExAllocatePool</alloc>
<alloc>ExAllocatePoolWithQuota</alloc>
<alloc>ExAllocatePoolWithQuotaTag</alloc>
<alloc>ExAllocatePoolWithTag</alloc>
<alloc>ExAllocatePoolWithTagPriority</alloc>
<dealloc>ExFreePool</dealloc>
<dealloc>ExFreePoolWithTag</dealloc>
</memory>
<memory>
<alloc>HeapAlloc</alloc>
<dealloc>HeapFree</dealloc>
</memory>
<memory>
<alloc>IoAllocateErrorLogEntry</alloc>
<dealloc>IoWriteErrorLogEntry</dealloc>
<dealloc>IoFreeErrorLogEntry</dealloc>
</memory>
<memory>
<alloc init="true">IoAllocateIrp</alloc>
<dealloc>IoFreeIrp</dealloc>
<dealloc>IofCallDriver</dealloc>
<dealloc>IoCallDriver</dealloc>
</memory>
<memory>
<alloc>IoAllocateMdl</alloc>
<dealloc>IoFreeMdl</dealloc>
</memory>
<memory>
<alloc>MmAllocateContiguousMemory</alloc>
<dealloc>MmFreeContiguousMemory</dealloc>
</memory>
<memory>
<alloc>MmAllocateContiguousMemorySpecifyCache</alloc>
<alloc>MmAllocateContiguousMemorySpecifyCacheNode</alloc>
<dealloc>MmFreeContiguousMemorySpecifyCache</dealloc>
</memory>
<memory>
<alloc>IoAllocateWorkItem</alloc>
<dealloc>IoFreeWorkItem</dealloc>
</memory>
<memory>
<alloc>RtlAllocateHeap</alloc>
<dealloc>RtlFreeHeap</dealloc>
</memory>
<memory>
<alloc>ExAllocateFromPagedLookasideList</alloc>
<dealloc>ExFreeToPagedLookasideList</dealloc>
</memory>
<memory>
<alloc>ExAllocateFromNPagedLookasideList</alloc>
<dealloc>ExFreeToNPagedLookasideList</dealloc>
</memory>
<memory>
<alloc>AllocateHeap</alloc>
<dealloc>FreeHeap</dealloc>
</memory>
<memory>
<alloc>AllocateLsaHeap</alloc>
<dealloc>FreeLsaHeap</dealloc>
</memory>
<memory>
<alloc>AllocatePrivateHeap</alloc>
<dealloc>FreePrivateHeap</dealloc>
</memory>
<memory>
<alloc>VirtualAlloc</alloc>
<dealloc>VirtualFree</dealloc>
</memory>
<memory>
<alloc>VirtualAllocEx</alloc>
<alloc>VirtualAllocExNuma</alloc>
<dealloc>VirtualFreeEx</dealloc>
</memory>
<memory>
<alloc>LocalAlloc</alloc>
<dealloc>LocalFree</dealloc>
</memory>
<memory>
<alloc>GlobalAlloc</alloc>
<dealloc>GlobalFree</dealloc>
</memory>
<memory>
<alloc init="true">MapViewOfFile</alloc>
<alloc init="true">MapViewOfFileEx</alloc>
<alloc init="true">MapViewOfFileExNuma</alloc>
<alloc init="true">MapViewOfFileFromApp</alloc>
<dealloc>UnmapViewOfFile</dealloc>
</memory>
<memory>
<alloc init="true">RtlCreateHeap</alloc>
<dealloc>RtlDestroyHeap</dealloc>
</memory>
<memory>
<alloc init="true">wcsdup</alloc>
<alloc init="true">_strdup</alloc>
<alloc init="true">_wcsdup</alloc>
<alloc init="true">_mbsdup</alloc>
<alloc init="true">_malloc_dbg</alloc>
<alloc init="true">_aligned_malloc</alloc>
<alloc init="true">_aligned_offset_malloc</alloc>
<alloc init="true">_strdup_dbg</alloc>
<alloc init="true">_wcsdup_dbg</alloc>
<dealloc>free</dealloc>
</memory>
<function name="RtlCompareMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlCopyBytes">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlCopyMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlEqualMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/><not-uninit/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlFillBytes">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
<arg nr="3"><not-uninit/></arg>
</function>
<function name="RtlFillMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
<arg nr="3"><not-uninit/></arg>
</function>
<function name="RtlMoveMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlSecureZeroMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlZeroBytes">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
</function>
<function name="RtlZeroMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
</function>
<function name="CopyMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="FillMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
<arg nr="3"><not-uninit/></arg>
</function>
<function name="MoveMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-null/><not-uninit/></arg>
<arg nr="3"><not-bool/><valid>0-</valid></arg>
</function>
<function name="SecureZeroMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
</function>
<function name="ZeroMemory">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"><not-null/></arg>
<arg nr="2"><not-bool/><valid>0-</valid></arg>
</function>
<function name="KeBugCheck">
<noreturn>true</noreturn>
</function>
<function name="KeBugCheckEx">
<noreturn>true</noreturn>
</function>
<function name="printf_s"><noreturn>false</noreturn><leak-ignore/><formatstr secure="true"/><arg nr="1"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="wprintf_s"><noreturn>false</noreturn><leak-ignore/><formatstr secure="true"/><arg nr="1"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="fprintf_s"><noreturn>false</noreturn><leak-ignore/><formatstr secure="true"/><arg nr="2"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="fwprintf_s"><noreturn>false</noreturn><leak-ignore/><formatstr secure="true"/><arg nr="2"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="_snprintf_s"><noreturn>false</noreturn><leak-ignore/><formatstr secure="true"/><arg nr="4"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="_snwprintf_s"><noreturn>false</noreturn><leak-ignore/><formatstr secure="true"/><arg nr="4"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="DbgPrint"><noreturn>false</noreturn><leak-ignore/><arg nr="1"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="DbgPrintEx"><noreturn>false</noreturn><leak-ignore/><arg nr="3"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="vDbgPrintEx"><noreturn>false</noreturn><leak-ignore/><arg nr="3"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="vDbgPrintExWithPrefix"><noreturn>false</noreturn><leak-ignore/><arg nr="4"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="scanf_s"> <noreturn>false</noreturn> <formatstr scan="true" secure="true"/> <arg nr="1"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="wscanf_s"> <noreturn>false</noreturn> <formatstr scan="true" secure="true"/> <arg nr="1"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="sscanf_s"> <noreturn>false</noreturn> <formatstr scan="true" secure="true"/> <arg nr="2"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="fscanf_s"> <noreturn>false</noreturn> <formatstr scan="true" secure="true"/> <arg nr="2"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="fwscanf_s"> <noreturn>false</noreturn> <formatstr scan="true" secure="true"/> <arg nr="2"><formatstr/><not-uninit/><not-null/></arg> </function>
<function name="swscanf_s"> <noreturn>false</noreturn> <formatstr scan="true" secure="true"/> <arg nr="2"><formatstr/><not-uninit/><not-null/></arg> </function>
</def>