rizin/librz/analysis/d/functions-windows_sysinfoapi.sdb.txt
Anton Kochkov 3c59df7e98
Refactor RzTypes to use structs instead of SDB + New Tree-Sitter based C Parser (#1047)
- Removed oldshell version of `t` (types) commands
- Removed `tk` command because types storage switched to the hashtable
- Added `tfc` command to show the calling convention of the function or set it
- Added `tsl` (RZ_OUTPUT_MODE_LONG) to show structure members' sizes and offsets
- Added `tul` (RZ_OUTPUT_MODE_LONG) to show union members' sizes
- Switched the types storage to the hashtable instead of SDB
- Added load and export from/to SDB for standard type libraries and serialization for Projects
- Changed all `char *type` occurences to the proper `RzType`
- Added `RzCallable` type for the function/class method types
- Changed all function types API to use the `RzCallable` API
- Switched the function types (`RzCallable`) storage to the hashtable instead of SDB
- Added a connection between `RzAnalysisFunction` and `RzCallable` - `rz_analysis_function_derive_type()` API function to derive new `RzCallable` type from the `RzAnalysisFunction` even if it doesn't exist in the RzTypeDB.
- Moved type links to the RzAnalysis where they belong
- Removed TCC and MPC-based parsers
- Added Tree-Sitter-based parser for C grammar (see `librz/type/parser/*`)
- Reworked type databases in `librz/analysis/d/` to be consistent with C standard, libc, platform-specific definitions
- Switched the type links from `char *` to `RzType`
- Switched the type links from SDB to the hashtable
- Added concept of the "type paths", e.g. `a.b[20].c` where `b` is a member of `a` (`a` is either structure or a union) and `c` is a member of `b`, and `b` is an array where we take 20-th element.
- Added concept of the typeclasses (a bit similar to Haskell) for numerical types: `None` (the most generic one), `Num` (includes `Integral` and `Floating`), `Integral` (includes `Signed Integral` and `Unsigned Integral`), `Floating`.
- Added concept of type equality (`rz_types_equal(a, b)` API function)
- Added Doxygen documentation to every API function in the `librz/type/*`.
- Updated the project format from **V2** to **V3**, added migration.
2021-07-20 01:46:45 +08:00

256 lines
8.6 KiB
Text

### sysinfoapi.h ###
DnsHostnameToComputerNameExW=func
func.DnsHostnameToComputerNameExW.args=3
func.DnsHostnameToComputerNameExW.arg.0=LPCWSTR,Hostname
func.DnsHostnameToComputerNameExW.arg.1=LPWSTR,ComputerName
func.DnsHostnameToComputerNameExW.arg.2=LPDWORD,nSize
func.DnsHostnameToComputerNameExW.ret=BOOL
EnumSystemFirmwareTables=func
func.EnumSystemFirmwareTables.args=3
func.EnumSystemFirmwareTables.arg.0=DWORD,FirmwareTableProviderSignature
func.EnumSystemFirmwareTables.arg.1=PVOID,pFirmwareTableEnumBuffer
func.EnumSystemFirmwareTables.arg.2=DWORD,BufferSize
func.EnumSystemFirmwareTables.ret=UINT
GetComputerNameExA=func
func.GetComputerNameExA.args=3
func.GetComputerNameExA.arg.0=COMPUTER_NAME_FORMAT,NameType
func.GetComputerNameExA.arg.1=LPSTR,lpBuffer
func.GetComputerNameExA.arg.2=LPDWORD,nSize
func.GetComputerNameExA.ret=BOOL
GetComputerNameExW=func
func.GetComputerNameExW.args=3
func.GetComputerNameExW.arg.0=COMPUTER_NAME_FORMAT,NameType
func.GetComputerNameExW.arg.1=LPWSTR,lpBuffer
func.GetComputerNameExW.arg.2=LPDWORD,nSize
func.GetComputerNameExW.ret=BOOL
GetIntegratedDisplaySize=func
func.GetIntegratedDisplaySize.args=1
func.GetIntegratedDisplaySize.arg.0=double *,sizeInInches
func.GetIntegratedDisplaySize.ret=HRESULT
GetLocalTime=func
func.GetLocalTime.args=1
func.GetLocalTime.arg.0=LPSYSTEMTIME,lpSystemTime
func.GetLocalTime.ret=VOID
GetLogicalProcessorInformation=func
func.GetLogicalProcessorInformation.args=2
func.GetLogicalProcessorInformation.arg.0=PSYSTEM_LOGICAL_PROCESSOR_INFORMATION,Buffer
func.GetLogicalProcessorInformation.arg.1=PDWORD,ReturnedLength
func.GetLogicalProcessorInformation.ret=BOOL
GetLogicalProcessorInformationEx=func
func.GetLogicalProcessorInformationEx.args=3
func.GetLogicalProcessorInformationEx.arg.0=LOGICAL_PROCESSOR_RELATIONSHIP,RelationshipType
func.GetLogicalProcessorInformationEx.arg.1=PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX,Buffer
func.GetLogicalProcessorInformationEx.arg.2=PDWORD,ReturnedLength
func.GetLogicalProcessorInformationEx.ret=BOOL
GetNativeSystemInfo=func
func.GetNativeSystemInfo.args=1
func.GetNativeSystemInfo.arg.0=LPSYSTEM_INFO,lpSystemInfo
func.GetNativeSystemInfo.ret=VOID
GetOsManufacturingMode=func
func.GetOsManufacturingMode.args=1
func.GetOsManufacturingMode.arg.0=PBOOL,pbEnabled
func.GetOsManufacturingMode.ret=BOOL
GetOsSafeBootMode=func
func.GetOsSafeBootMode.args=1
func.GetOsSafeBootMode.arg.0=PDWORD,Flags
func.GetOsSafeBootMode.ret=BOOL
GetPhysicallyInstalledSystemMemory=func
func.GetPhysicallyInstalledSystemMemory.args=1
func.GetPhysicallyInstalledSystemMemory.arg.0=PULONGLONG,TotalMemoryInKilobytes
func.GetPhysicallyInstalledSystemMemory.ret=BOOL
GetProcessorSystemCycleTime=func
func.GetProcessorSystemCycleTime.args=3
func.GetProcessorSystemCycleTime.arg.0=USHORT,Group
func.GetProcessorSystemCycleTime.arg.1=PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION,Buffer
func.GetProcessorSystemCycleTime.arg.2=PDWORD,ReturnedLength
func.GetProcessorSystemCycleTime.ret=BOOL
GetProductInfo=func
func.GetProductInfo.args=5
func.GetProductInfo.arg.0=DWORD,dwOSMajorVersion
func.GetProductInfo.arg.1=DWORD,dwOSMinorVersion
func.GetProductInfo.arg.2=DWORD,dwSpMajorVersion
func.GetProductInfo.arg.3=DWORD,dwSpMinorVersion
func.GetProductInfo.arg.4=PDWORD,pdwReturnedProductType
func.GetProductInfo.ret=BOOL
GetSystemDirectoryA=func
func.GetSystemDirectoryA.args=2
func.GetSystemDirectoryA.arg.0=LPSTR,lpBuffer
func.GetSystemDirectoryA.arg.1=UINT,uSize
func.GetSystemDirectoryA.ret=UINT
GetSystemDirectoryW=func
func.GetSystemDirectoryW.args=2
func.GetSystemDirectoryW.arg.0=LPWSTR,lpBuffer
func.GetSystemDirectoryW.arg.1=UINT,uSize
func.GetSystemDirectoryW.ret=UINT
GetSystemFirmwareTable=func
func.GetSystemFirmwareTable.args=4
func.GetSystemFirmwareTable.arg.0=DWORD,FirmwareTableProviderSignature
func.GetSystemFirmwareTable.arg.1=DWORD,FirmwareTableID
func.GetSystemFirmwareTable.arg.2=PVOID,pFirmwareTableBuffer
func.GetSystemFirmwareTable.arg.3=DWORD,BufferSize
func.GetSystemFirmwareTable.ret=UINT
GetSystemInfo=func
func.GetSystemInfo.args=1
func.GetSystemInfo.arg.0=LPSYSTEM_INFO,lpSystemInfo
func.GetSystemInfo.ret=VOID
GetSystemTime=func
func.GetSystemTime.args=1
func.GetSystemTime.arg.0=LPSYSTEMTIME,lpSystemTime
func.GetSystemTime.ret=VOID
GetSystemTimeAdjustment=func
func.GetSystemTimeAdjustment.args=3
func.GetSystemTimeAdjustment.arg.0=PDWORD,lpTimeAdjustment
func.GetSystemTimeAdjustment.arg.1=PDWORD,lpTimeIncrement
func.GetSystemTimeAdjustment.arg.2=PBOOL,lpTimeAdjustmentDisabled
func.GetSystemTimeAdjustment.ret=BOOL
GetSystemTimeAdjustmentPrecise=func
func.GetSystemTimeAdjustmentPrecise.args=3
func.GetSystemTimeAdjustmentPrecise.arg.0=PDWORD64,lpTimeAdjustment
func.GetSystemTimeAdjustmentPrecise.arg.1=PDWORD64,lpTimeIncrement
func.GetSystemTimeAdjustmentPrecise.arg.2=PBOOL,lpTimeAdjustmentDisabled
func.GetSystemTimeAdjustmentPrecise.ret=BOOL
GetSystemTimeAsFileTime=func
func.GetSystemTimeAsFileTime.args=1
func.GetSystemTimeAsFileTime.arg.0=LPFILETIME,lpSystemTimeAsFileTime
func.GetSystemTimeAsFileTime.ret=VOID
GetSystemTimePreciseAsFileTime=func
func.GetSystemTimePreciseAsFileTime.args=1
func.GetSystemTimePreciseAsFileTime.arg.0=LPFILETIME,lpSystemTimeAsFileTime
func.GetSystemTimePreciseAsFileTime.ret=VOID
GetSystemWindowsDirectoryA=func
func.GetSystemWindowsDirectoryA.args=2
func.GetSystemWindowsDirectoryA.arg.0=LPSTR,lpBuffer
func.GetSystemWindowsDirectoryA.arg.1=UINT,uSize
func.GetSystemWindowsDirectoryA.ret=UINT
GetSystemWindowsDirectoryW=func
func.GetSystemWindowsDirectoryW.args=2
func.GetSystemWindowsDirectoryW.arg.0=LPWSTR,lpBuffer
func.GetSystemWindowsDirectoryW.arg.1=UINT,uSize
func.GetSystemWindowsDirectoryW.ret=UINT
GetTickCount=func
func.GetTickCount.args=0
func.GetTickCount.ret=DWORD
GetTickCount64=func
func.GetTickCount64.args=0
func.GetTickCount64.ret=ULONGLONG
GetVersion=func
func.GetVersion.args=0
func.GetVersion.ret=DWORD
GetVersionExA=func
func.GetVersionExA.args=1
func.GetVersionExA.arg.0=LPOSVERSIONINFOA,lpVersionInformation
func.GetVersionExA.ret=BOOL
GetVersionExW=func
func.GetVersionExW.args=1
func.GetVersionExW.arg.0=LPOSVERSIONINFOW,lpVersionInformation
func.GetVersionExW.ret=BOOL
GetWindowsDirectoryA=func
func.GetWindowsDirectoryA.args=2
func.GetWindowsDirectoryA.arg.0=LPSTR,lpBuffer
func.GetWindowsDirectoryA.arg.1=UINT,uSize
func.GetWindowsDirectoryA.ret=UINT
GetWindowsDirectoryW=func
func.GetWindowsDirectoryW.args=2
func.GetWindowsDirectoryW.arg.0=LPWSTR,lpBuffer
func.GetWindowsDirectoryW.arg.1=UINT,uSize
func.GetWindowsDirectoryW.ret=UINT
GlobalMemoryStatusEx=func
func.GlobalMemoryStatusEx.args=1
func.GlobalMemoryStatusEx.arg.0=LPMEMORYSTATUSEX,lpBuffer
func.GlobalMemoryStatusEx.ret=BOOL
InstallELAMCertificateInfo=func
func.InstallELAMCertificateInfo.args=1
func.InstallELAMCertificateInfo.arg.0=HANDLE,ELAMFile
func.InstallELAMCertificateInfo.ret=BOOL
SetComputerNameA=func
func.SetComputerNameA.args=1
func.SetComputerNameA.arg.0=LPCSTR,lpComputerName
func.SetComputerNameA.ret=BOOL
SetComputerNameEx2W=func
func.SetComputerNameEx2W.args=3
func.SetComputerNameEx2W.arg.0=COMPUTER_NAME_FORMAT,NameType
func.SetComputerNameEx2W.arg.1=DWORD,Flags
func.SetComputerNameEx2W.arg.2=LPCWSTR,lpBuffer
func.SetComputerNameEx2W.ret=BOOL
SetComputerNameExA=func
func.SetComputerNameExA.args=2
func.SetComputerNameExA.arg.0=COMPUTER_NAME_FORMAT,NameType
func.SetComputerNameExA.arg.1=LPCSTR,lpBuffer
func.SetComputerNameExA.ret=BOOL
SetComputerNameExW=func
func.SetComputerNameExW.args=2
func.SetComputerNameExW.arg.0=COMPUTER_NAME_FORMAT,NameType
func.SetComputerNameExW.arg.1=LPCWSTR,lpBuffer
func.SetComputerNameExW.ret=BOOL
SetComputerNameW=func
func.SetComputerNameW.args=1
func.SetComputerNameW.arg.0=LPCWSTR,lpComputerName
func.SetComputerNameW.ret=BOOL
SetLocalTime=func
func.SetLocalTime.args=1
func.SetLocalTime.arg.0=const SYSTEMTIME *,lpSystemTime
func.SetLocalTime.ret=BOOL
SetSystemTime=func
func.SetSystemTime.args=1
func.SetSystemTime.arg.0=const SYSTEMTIME *,lpSystemTime
func.SetSystemTime.ret=BOOL
SetSystemTimeAdjustment=func
func.SetSystemTimeAdjustment.args=2
func.SetSystemTimeAdjustment.arg.0=DWORD,dwTimeAdjustment
func.SetSystemTimeAdjustment.arg.1=BOOL,bTimeAdjustmentDisabled
func.SetSystemTimeAdjustment.ret=BOOL
SetSystemTimeAdjustmentPrecise=func
func.SetSystemTimeAdjustmentPrecise.args=2
func.SetSystemTimeAdjustmentPrecise.arg.0=DWORD64,dwTimeAdjustment
func.SetSystemTimeAdjustmentPrecise.arg.1=BOOL,bTimeAdjustmentDisabled
func.SetSystemTimeAdjustmentPrecise.ret=BOOL
VerSetConditionMask=func
func.VerSetConditionMask.args=3
func.VerSetConditionMask.arg.0=ULONGLONG,ConditionMask
func.VerSetConditionMask.arg.1=ULONG,TypeMask
func.VerSetConditionMask.arg.2=UCHAR,Condition
func.VerSetConditionMask.ret=ULONGLONG