ReactOS 0.4.15-dev-7788-g1ad9096
winbase.h File Reference
#include <libloaderapi.h>
Include dependency graph for winbase.h:

Go to the source code of this file.

Classes

struct  _FILETIME
 
struct  _BY_HANDLE_FILE_INFORMATION
 
struct  _DCB
 
struct  _COMM_CONFIG
 
struct  _COMMPROP
 
struct  _COMMTIMEOUTS
 
struct  _COMSTAT
 
struct  _CREATE_PROCESS_DEBUG_INFO
 
struct  _CREATE_THREAD_DEBUG_INFO
 
struct  _EXCEPTION_DEBUG_INFO
 
struct  _EXIT_THREAD_DEBUG_INFO
 
struct  _EXIT_PROCESS_DEBUG_INFO
 
struct  _LOAD_DLL_DEBUG_INFO
 
struct  _UNLOAD_DLL_DEBUG_INFO
 
struct  _OUTPUT_DEBUG_STRING_INFO
 
struct  _RIP_INFO
 
struct  _DEBUG_EVENT
 
struct  _OVERLAPPED
 
struct  _OVERLAPPED_ENTRY
 
struct  _STARTUPINFOA
 
struct  _STARTUPINFOW
 
struct  _PROCESS_INFORMATION
 
struct  _CRITICAL_SECTION_DEBUG
 
struct  _CRITICAL_SECTION
 
struct  _SYSTEMTIME
 
struct  _WIN32_FILE_ATTRIBUTE_DATA
 
struct  _WIN32_FIND_DATAA
 
struct  _WIN32_FIND_DATAW
 
struct  _WIN32_STREAM_ID
 
struct  tagHW_PROFILE_INFOA
 
struct  tagHW_PROFILE_INFOW
 
struct  _EVENTLOG_FULL_INFORMATION
 
struct  _SYSTEM_INFO
 
struct  _SYSTEM_POWER_STATUS
 
struct  _TIME_DYNAMIC_ZONE_INFORMATION
 
struct  _TIME_ZONE_INFORMATION
 
struct  _MEMORYSTATUS
 
struct  _LDT_ENTRY
 
struct  _PROCESS_HEAP_ENTRY
 
struct  _OFSTRUCT
 

Macros

#define WINBASEAPI   DECLSPEC_IMPORT
 
#define PROCESS_NAME_NATIVE   1
 
#define FILE_ENCRYPTABLE   0
 
#define FILE_IS_ENCRYPTED   1
 
#define FILE_SYSTEM_ATTR   2
 
#define FILE_ROOT_DIR   3
 
#define FILE_SYSTEM_DIR   4
 
#define FILE_UNKNOWN   5
 
#define FILE_SYSTEM_NOT_SUPPORT   6
 
#define FILE_USER_DISALLOWED   7
 
#define FILE_READ_ONLY   8
 
#define FILE_DIR_DISALLOWED   9
 
#define COMMPROP_INITIALIZED   0xE73CF52E
 
#define SP_SERIALCOMM   1
 
#define PST_UNSPECIFIED   0
 
#define PST_RS232   1
 
#define PST_PARALLELPORT   2
 
#define PST_RS422   3
 
#define PST_RS423   4
 
#define PST_RS449   5
 
#define PST_MODEM   6
 
#define PST_FAX   0x21
 
#define PST_SCANNER   0x22
 
#define PST_NETWORK_BRIDGE   0x100
 
#define PST_LAT   0x101
 
#define PST_TCPIP_TELNET   0x102
 
#define PST_X25   0x103
 
#define BAUD_075   1
 
#define BAUD_110   2
 
#define BAUD_134_5   4
 
#define BAUD_150   8
 
#define BAUD_300   16
 
#define BAUD_600   32
 
#define BAUD_1200   64
 
#define BAUD_1800   128
 
#define BAUD_2400   256
 
#define BAUD_4800   512
 
#define BAUD_7200   1024
 
#define BAUD_9600   2048
 
#define BAUD_14400   4096
 
#define BAUD_19200   8192
 
#define BAUD_38400   16384
 
#define BAUD_56K   32768
 
#define BAUD_128K   65536
 
#define BAUD_115200   131072
 
#define BAUD_57600   262144
 
#define BAUD_USER   0x10000000
 
#define PCF_DTRDSR   1
 
#define PCF_RTSCTS   2
 
#define PCF_RLSD   4
 
#define PCF_PARITY_CHECK   8
 
#define PCF_XONXOFF   16
 
#define PCF_SETXCHAR   32
 
#define PCF_TOTALTIMEOUTS   64
 
#define PCF_INTTIMEOUTS   128
 
#define PCF_SPECIALCHARS   256
 
#define PCF_16BITMODE   512
 
#define SP_PARITY   1
 
#define SP_BAUD   2
 
#define SP_DATABITS   4
 
#define SP_STOPBITS   8
 
#define SP_HANDSHAKING   16
 
#define SP_PARITY_CHECK   32
 
#define SP_RLSD   64
 
#define DATABITS_5   1
 
#define DATABITS_6   2
 
#define DATABITS_7   4
 
#define DATABITS_8   8
 
#define DATABITS_16   16
 
#define DATABITS_16X   32
 
#define STOPBITS_10   1
 
#define STOPBITS_15   2
 
#define STOPBITS_20   4
 
#define PARITY_NONE   256
 
#define PARITY_ODD   512
 
#define PARITY_EVEN   1024
 
#define PARITY_MARK   2048
 
#define PARITY_SPACE   4096
 
#define EXCEPTION_DEBUG_EVENT   1
 
#define CREATE_THREAD_DEBUG_EVENT   2
 
#define CREATE_PROCESS_DEBUG_EVENT   3
 
#define EXIT_THREAD_DEBUG_EVENT   4
 
#define EXIT_PROCESS_DEBUG_EVENT   5
 
#define LOAD_DLL_DEBUG_EVENT   6
 
#define UNLOAD_DLL_DEBUG_EVENT   7
 
#define OUTPUT_DEBUG_STRING_EVENT   8
 
#define RIP_EVENT   9
 
#define HFILE_ERROR   ((HFILE)-1)
 
#define FILE_BEGIN   0
 
#define FILE_CURRENT   1
 
#define FILE_END   2
 
#define INVALID_SET_FILE_POINTER   ((DWORD)-1)
 
#define OF_READ   0
 
#define OF_READWRITE   2
 
#define OF_WRITE   1
 
#define OF_SHARE_COMPAT   0
 
#define OF_SHARE_DENY_NONE   64
 
#define OF_SHARE_DENY_READ   48
 
#define OF_SHARE_DENY_WRITE   32
 
#define OF_SHARE_EXCLUSIVE   16
 
#define OF_CANCEL   2048
 
#define OF_CREATE   4096
 
#define OF_DELETE   512
 
#define OF_EXIST   16384
 
#define OF_PARSE   256
 
#define OF_PROMPT   8192
 
#define OF_REOPEN   32768
 
#define OF_VERIFY   1024
 
#define NMPWAIT_NOWAIT   1
 
#define NMPWAIT_WAIT_FOREVER   ((DWORD)-1)
 
#define NMPWAIT_USE_DEFAULT_WAIT   0
 
#define CE_BREAK   16
 
#define CE_DNS   2048
 
#define CE_FRAME   8
 
#define CE_IOE   1024
 
#define CE_MODE   32768
 
#define CE_OOP   4096
 
#define CE_OVERRUN   2
 
#define CE_PTO   512
 
#define CE_RXOVER   1
 
#define CE_RXPARITY   4
 
#define CE_TXFULL   256
 
#define PROGRESS_CONTINUE   0
 
#define PROGRESS_CANCEL   1
 
#define PROGRESS_STOP   2
 
#define PROGRESS_QUIET   3
 
#define CALLBACK_CHUNK_FINISHED   0
 
#define CALLBACK_STREAM_SWITCH   1
 
#define OFS_MAXPATHNAME   128
 
#define FILE_MAP_COPY   SECTION_QUERY
 
#define FILE_MAP_WRITE   SECTION_MAP_WRITE
 
#define FILE_MAP_READ   SECTION_MAP_READ
 
#define FILE_MAP_ALL_ACCESS   SECTION_ALL_ACCESS
 
#define FILE_MAP_EXECUTE   SECTION_MAP_EXECUTE_EXPLICIT
 
#define MUTEX_ALL_ACCESS   0x1f0001
 
#define MUTEX_MODIFY_STATE   1
 
#define SEMAPHORE_ALL_ACCESS   0x1f0003
 
#define SEMAPHORE_MODIFY_STATE   2
 
#define EVENT_ALL_ACCESS   0x1f0003
 
#define EVENT_MODIFY_STATE   2
 
#define PIPE_ACCESS_DUPLEX   3
 
#define PIPE_ACCESS_INBOUND   1
 
#define PIPE_ACCESS_OUTBOUND   2
 
#define PIPE_TYPE_BYTE   0
 
#define PIPE_TYPE_MESSAGE   4
 
#define PIPE_READMODE_BYTE   0
 
#define PIPE_READMODE_MESSAGE   2
 
#define PIPE_WAIT   0
 
#define PIPE_NOWAIT   1
 
#define PIPE_CLIENT_END   0
 
#define PIPE_SERVER_END   1
 
#define PIPE_UNLIMITED_INSTANCES   255
 
#define DEBUG_PROCESS   0x00000001
 
#define DEBUG_ONLY_THIS_PROCESS   0x00000002
 
#define CREATE_SUSPENDED   0x00000004
 
#define DETACHED_PROCESS   0x00000008
 
#define CREATE_NEW_CONSOLE   0x00000010
 
#define NORMAL_PRIORITY_CLASS   0x00000020
 
#define IDLE_PRIORITY_CLASS   0x00000040
 
#define HIGH_PRIORITY_CLASS   0x00000080
 
#define REALTIME_PRIORITY_CLASS   0x00000100
 
#define CREATE_NEW_PROCESS_GROUP   0x00000200
 
#define CREATE_UNICODE_ENVIRONMENT   0x00000400
 
#define CREATE_SEPARATE_WOW_VDM   0x00000800
 
#define CREATE_SHARED_WOW_VDM   0x00001000
 
#define CREATE_FORCEDOS   0x00002000
 
#define BELOW_NORMAL_PRIORITY_CLASS   0x00004000
 
#define ABOVE_NORMAL_PRIORITY_CLASS   0x00008000
 
#define CREATE_BREAKAWAY_FROM_JOB   0x01000000
 
#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL   0x02000000
 
#define CREATE_DEFAULT_ERROR_MODE   0x04000000
 
#define CREATE_NO_WINDOW   0x08000000
 
#define PROFILE_USER   0x10000000
 
#define PROFILE_KERNEL   0x20000000
 
#define PROFILE_SERVER   0x40000000
 
#define CREATE_NEW   1
 
#define CREATE_ALWAYS   2
 
#define OPEN_EXISTING   3
 
#define OPEN_ALWAYS   4
 
#define TRUNCATE_EXISTING   5
 
#define COPY_FILE_FAIL_IF_EXISTS   0x00000001
 
#define COPY_FILE_RESTARTABLE   0x00000002
 
#define COPY_FILE_OPEN_SOURCE_FOR_WRITE   0x00000004
 
#define COPY_FILE_ALLOW_DECRYPTED_DESTINATION   0x00000008
 
#define FILE_FLAG_WRITE_THROUGH   0x80000000
 
#define FILE_FLAG_OVERLAPPED   0x40000000
 
#define FILE_FLAG_NO_BUFFERING   0x20000000
 
#define FILE_FLAG_RANDOM_ACCESS   0x10000000
 
#define FILE_FLAG_SEQUENTIAL_SCAN   0x08000000
 
#define FILE_FLAG_DELETE_ON_CLOSE   0x04000000
 
#define FILE_FLAG_BACKUP_SEMANTICS   0x02000000
 
#define FILE_FLAG_POSIX_SEMANTICS   0x01000000
 
#define FILE_FLAG_OPEN_REPARSE_POINT   0x00200000
 
#define FILE_FLAG_OPEN_NO_RECALL   0x00100000
 
#define CLRDTR   6
 
#define CLRRTS   4
 
#define SETDTR   5
 
#define SETRTS   3
 
#define SETXOFF   1
 
#define SETXON   2
 
#define RESETDEV   7
 
#define SETBREAK   8
 
#define CLRBREAK   9
 
#define STILL_ACTIVE   0x103
 
#define FIND_FIRST_EX_CASE_SENSITIVE   1
 
#define FIND_FIRST_EX_LARGE_FETCH   2
 
#define SCS_32BIT_BINARY   0
 
#define SCS_64BIT_BINARY   6
 
#define SCS_DOS_BINARY   1
 
#define SCS_OS216_BINARY   5
 
#define SCS_PIF_BINARY   3
 
#define SCS_POSIX_BINARY   4
 
#define SCS_WOW_BINARY   2
 
#define MAX_COMPUTERNAME_LENGTH   15
 
#define HW_PROFILE_GUIDLEN   39
 
#define MAX_PROFILE_LEN   80
 
#define DOCKINFO_UNDOCKED   1
 
#define DOCKINFO_DOCKED   2
 
#define DOCKINFO_USER_SUPPLIED   4
 
#define DOCKINFO_USER_UNDOCKED   (DOCKINFO_USER_SUPPLIED|DOCKINFO_UNDOCKED)
 
#define DOCKINFO_USER_DOCKED   (DOCKINFO_USER_SUPPLIED|DOCKINFO_DOCKED)
 
#define DRIVE_REMOVABLE   2
 
#define DRIVE_FIXED   3
 
#define DRIVE_REMOTE   4
 
#define DRIVE_CDROM   5
 
#define DRIVE_RAMDISK   6
 
#define DRIVE_UNKNOWN   0
 
#define DRIVE_NO_ROOT_DIR   1
 
#define FILE_TYPE_UNKNOWN   0
 
#define FILE_TYPE_DISK   1
 
#define FILE_TYPE_CHAR   2
 
#define FILE_TYPE_PIPE   3
 
#define FILE_TYPE_REMOTE   0x8000
 
#define HANDLE_FLAG_INHERIT   0x01
 
#define HANDLE_FLAG_PROTECT_FROM_CLOSE   0x02
 
#define STD_INPUT_HANDLE   (DWORD)(0xfffffff6)
 
#define STD_OUTPUT_HANDLE   (DWORD)(0xfffffff5)
 
#define STD_ERROR_HANDLE   (DWORD)(0xfffffff4)
 
#define INVALID_HANDLE_VALUE   (HANDLE)(-1)
 
#define GET_TAPE_MEDIA_INFORMATION   0
 
#define GET_TAPE_DRIVE_INFORMATION   1
 
#define SET_TAPE_MEDIA_INFORMATION   0
 
#define SET_TAPE_DRIVE_INFORMATION   1
 
#define THREAD_PRIORITY_ABOVE_NORMAL   1
 
#define THREAD_PRIORITY_BELOW_NORMAL   (-1)
 
#define THREAD_PRIORITY_HIGHEST   2
 
#define THREAD_PRIORITY_IDLE   (-15)
 
#define THREAD_PRIORITY_LOWEST   (-2)
 
#define THREAD_PRIORITY_NORMAL   0
 
#define THREAD_PRIORITY_TIME_CRITICAL   15
 
#define THREAD_PRIORITY_ERROR_RETURN   2147483647
 
#define TIME_ZONE_ID_UNKNOWN   0
 
#define TIME_ZONE_ID_STANDARD   1
 
#define TIME_ZONE_ID_DAYLIGHT   2
 
#define TIME_ZONE_ID_INVALID   0xFFFFFFFF
 
#define FS_CASE_IS_PRESERVED   2
 
#define FS_CASE_SENSITIVE   1
 
#define FS_UNICODE_STORED_ON_DISK   4
 
#define FS_PERSISTENT_ACLS   8
 
#define FS_FILE_COMPRESSION   16
 
#define FS_VOL_IS_COMPRESSED   32768
 
#define GMEM_FIXED   0
 
#define GMEM_MOVEABLE   2
 
#define GMEM_MODIFY   128
 
#define GPTR   64
 
#define GHND   66
 
#define GMEM_DDESHARE   8192
 
#define GMEM_DISCARDABLE   256
 
#define GMEM_LOWER   4096
 
#define GMEM_NOCOMPACT   16
 
#define GMEM_NODISCARD   32
 
#define GMEM_NOT_BANKED   4096
 
#define GMEM_NOTIFY   16384
 
#define GMEM_SHARE   8192
 
#define GMEM_ZEROINIT   64
 
#define GMEM_DISCARDED   16384
 
#define GMEM_INVALID_HANDLE   32768
 
#define GMEM_LOCKCOUNT   255
 
#define GMEM_VALID_FLAGS   32626
 
#define EXCEPTION_ACCESS_VIOLATION   ((DWORD)0xC0000005)
 
#define EXCEPTION_DATATYPE_MISALIGNMENT   ((DWORD)0x80000002)
 
#define EXCEPTION_BREAKPOINT   ((DWORD)0x80000003)
 
#define EXCEPTION_SINGLE_STEP   ((DWORD)0x80000004)
 
#define EXCEPTION_ARRAY_BOUNDS_EXCEEDED   ((DWORD)0xC000008C)
 
#define EXCEPTION_FLT_DENORMAL_OPERAND   ((DWORD)0xC000008D)
 
#define EXCEPTION_FLT_DIVIDE_BY_ZERO   ((DWORD)0xC000008E)
 
#define EXCEPTION_FLT_INEXACT_RESULT   ((DWORD)0xC000008F)
 
#define EXCEPTION_FLT_INVALID_OPERATION   ((DWORD)0xC0000090)
 
#define EXCEPTION_FLT_OVERFLOW   ((DWORD)0xC0000091)
 
#define EXCEPTION_FLT_STACK_CHECK   ((DWORD)0xC0000092)
 
#define EXCEPTION_FLT_UNDERFLOW   ((DWORD)0xC0000093)
 
#define EXCEPTION_INT_DIVIDE_BY_ZERO   ((DWORD)0xC0000094)
 
#define EXCEPTION_INT_OVERFLOW   ((DWORD)0xC0000095)
 
#define EXCEPTION_PRIV_INSTRUCTION   ((DWORD)0xC0000096)
 
#define EXCEPTION_IN_PAGE_ERROR   ((DWORD)0xC0000006)
 
#define EXCEPTION_ILLEGAL_INSTRUCTION   ((DWORD)0xC000001D)
 
#define EXCEPTION_NONCONTINUABLE_EXCEPTION   ((DWORD)0xC0000025)
 
#define EXCEPTION_STACK_OVERFLOW   ((DWORD)0xC00000FD)
 
#define EXCEPTION_INVALID_DISPOSITION   ((DWORD)0xC0000026)
 
#define EXCEPTION_GUARD_PAGE   ((DWORD)0x80000001)
 
#define EXCEPTION_INVALID_HANDLE   ((DWORD)0xC0000008L)
 
#define CONTROL_C_EXIT   ((DWORD)0xC000013A)
 
#define PROCESS_HEAP_REGION   1
 
#define PROCESS_HEAP_UNCOMMITTED_RANGE   2
 
#define PROCESS_HEAP_ENTRY_BUSY   4
 
#define PROCESS_HEAP_ENTRY_MOVEABLE   16
 
#define PROCESS_HEAP_ENTRY_DDESHARE   32
 
#define DONT_RESOLVE_DLL_REFERENCES   0x00000001
 
#define LOAD_LIBRARY_AS_DATAFILE   0x00000002
 
#define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008
 
#define LOAD_IGNORE_CODE_AUTHZ_LEVEL   0x00000010
 
#define LOAD_LIBRARY_AS_IMAGE_RESOURCE   0x00000020
 
#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE   0x00000040
 
#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET   0x00000080
 
#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR   0x00000100
 
#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR   0x00000200
 
#define LOAD_LIBRARY_SEARCH_USER_DIRS   0x00000400
 
#define LOAD_LIBRARY_SEARCH_SYSTEM32   0x00000800
 
#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS   0x00001000
 
#define LOAD_LIBRARY_SAFE_CURRENT_DIRS   0x00002000
 
#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER   0x00004000
 
#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY   0x00008000
 
#define LMEM_FIXED   0
 
#define LMEM_MOVEABLE   2
 
#define LMEM_NONZEROLHND   2
 
#define LMEM_NONZEROLPTR   0
 
#define LMEM_DISCARDABLE   3840
 
#define LMEM_NOCOMPACT   16
 
#define LMEM_NODISCARD   32
 
#define LMEM_ZEROINIT   64
 
#define LMEM_DISCARDED   16384
 
#define LMEM_MODIFY   128
 
#define LMEM_INVALID_HANDLE   32768
 
#define LMEM_LOCKCOUNT   255
 
#define LMEM_VALID_FLAGS   0x0F72
 
#define LPTR   64
 
#define LHND   66
 
#define NONZEROLHND   2
 
#define NONZEROLPTR   0
 
#define LOCKFILE_FAIL_IMMEDIATELY   1
 
#define LOCKFILE_EXCLUSIVE_LOCK   2
 
#define LOGON32_PROVIDER_DEFAULT   0
 
#define LOGON32_PROVIDER_WINNT35   1
 
#define LOGON32_PROVIDER_WINNT40   2
 
#define LOGON32_PROVIDER_WINNT50   3
 
#define LOGON32_LOGON_INTERACTIVE   2
 
#define LOGON32_LOGON_NETWORK   3
 
#define LOGON32_LOGON_BATCH   4
 
#define LOGON32_LOGON_SERVICE   5
 
#define LOGON32_LOGON_UNLOCK   7
 
#define LOGON32_LOGON_NETWORK_CLEARTEXT   8
 
#define LOGON32_LOGON_NEW_CREDENTIALS   9
 
#define MOVEFILE_REPLACE_EXISTING   1
 
#define MOVEFILE_COPY_ALLOWED   2
 
#define MOVEFILE_DELAY_UNTIL_REBOOT   4
 
#define MOVEFILE_WRITE_THROUGH   8
 
#define MOVEFILE_CREATE_HARDLINK   16
 
#define MOVEFILE_FAIL_IF_NOT_TRACKABLE   32
 
#define MAXIMUM_WAIT_OBJECTS   64
 
#define MAXIMUM_SUSPEND_COUNT   0x7F
 
#define WAIT_OBJECT_0   0
 
#define WAIT_ABANDONED_0   128
 
#define WAIT_TIMEOUT   258
 
#define WAIT_IO_COMPLETION   0xC0
 
#define WAIT_ABANDONED   128
 
#define WAIT_FAILED   ((DWORD)0xFFFFFFFF)
 
#define PURGE_TXABORT   1
 
#define PURGE_RXABORT   2
 
#define PURGE_TXCLEAR   4
 
#define PURGE_RXCLEAR   8
 
#define FORMAT_MESSAGE_ALLOCATE_BUFFER   256
 
#define FORMAT_MESSAGE_IGNORE_INSERTS   512
 
#define FORMAT_MESSAGE_FROM_STRING   1024
 
#define FORMAT_MESSAGE_FROM_HMODULE   2048
 
#define FORMAT_MESSAGE_FROM_SYSTEM   4096
 
#define FORMAT_MESSAGE_ARGUMENT_ARRAY   8192
 
#define FORMAT_MESSAGE_MAX_WIDTH_MASK   255
 
#define EV_BREAK   64
 
#define EV_CTS   8
 
#define EV_DSR   16
 
#define EV_ERR   128
 
#define EV_EVENT1   2048
 
#define EV_EVENT2   4096
 
#define EV_PERR   512
 
#define EV_RING   256
 
#define EV_RLSD   32
 
#define EV_RX80FULL   1024
 
#define EV_RXCHAR   1
 
#define EV_RXFLAG   2
 
#define EV_TXEMPTY   4
 
#define SEM_FAILCRITICALERRORS   0x0001
 
#define SEM_NOGPFAULTERRORBOX   0x0002
 
#define SEM_NOALIGNMENTFAULTEXCEPT   0x0004
 
#define SEM_NOOPENFILEERRORBOX   0x8000
 
#define SLE_ERROR   1
 
#define SLE_MINORERROR   2
 
#define SLE_WARNING   3
 
#define SHUTDOWN_NORETRY   1
 
#define MAXINTATOM   0xC000
 
#define INVALID_ATOM   ((ATOM)0)
 
#define IGNORE   0
 
#define INFINITE   0xFFFFFFFF
 
#define NOPARITY   0
 
#define ODDPARITY   1
 
#define EVENPARITY   2
 
#define MARKPARITY   3
 
#define SPACEPARITY   4
 
#define ONESTOPBIT   0
 
#define ONE5STOPBITS   1
 
#define TWOSTOPBITS   2
 
#define CBR_110   110
 
#define CBR_300   300
 
#define CBR_600   600
 
#define CBR_1200   1200
 
#define CBR_2400   2400
 
#define CBR_4800   4800
 
#define CBR_9600   9600
 
#define CBR_14400   14400
 
#define CBR_19200   19200
 
#define CBR_38400   38400
 
#define CBR_56000   56000
 
#define CBR_57600   57600
 
#define CBR_115200   115200
 
#define CBR_128000   128000
 
#define CBR_256000   256000
 
#define BACKUP_INVALID   0
 
#define BACKUP_DATA   1
 
#define BACKUP_EA_DATA   2
 
#define BACKUP_SECURITY_DATA   3
 
#define BACKUP_ALTERNATE_DATA   4
 
#define BACKUP_LINK   5
 
#define BACKUP_PROPERTY_DATA   6
 
#define BACKUP_OBJECT_ID   7
 
#define BACKUP_REPARSE_DATA   8
 
#define BACKUP_SPARSE_BLOCK   9
 
#define STREAM_NORMAL_ATTRIBUTE   0
 
#define STREAM_MODIFIED_WHEN_READ   1
 
#define STREAM_CONTAINS_SECURITY   2
 
#define STREAM_CONTAINS_PROPERTIES   4
 
#define STARTF_USESHOWWINDOW   0x00000001
 
#define STARTF_USESIZE   0x00000002
 
#define STARTF_USEPOSITION   0x00000004
 
#define STARTF_USECOUNTCHARS   0x00000008
 
#define STARTF_USEFILLATTRIBUTE   0x00000010
 
#define STARTF_RUNFULLSCREEN   0x00000020
 
#define STARTF_FORCEONFEEDBACK   0x00000040
 
#define STARTF_FORCEOFFFEEDBACK   0x00000080
 
#define STARTF_USESTDHANDLES   0x00000100
 
#define TC_NORMAL   0
 
#define TC_HARDERR   1
 
#define TC_GP_TRAP   2
 
#define TC_SIGNAL   3
 
#define AC_LINE_OFFLINE   0
 
#define AC_LINE_ONLINE   1
 
#define AC_LINE_BACKUP_POWER   2
 
#define AC_LINE_UNKNOWN   255
 
#define BATTERY_FLAG_HIGH   1
 
#define BATTERY_FLAG_LOW   2
 
#define BATTERY_FLAG_CRITICAL   4
 
#define BATTERY_FLAG_CHARGING   8
 
#define BATTERY_FLAG_NO_BATTERY   128
 
#define BATTERY_FLAG_UNKNOWN   255
 
#define BATTERY_PERCENTAGE_UNKNOWN   255
 
#define BATTERY_LIFE_UNKNOWN   0xFFFFFFFF
 
#define DDD_RAW_TARGET_PATH   1
 
#define DDD_REMOVE_DEFINITION   2
 
#define DDD_EXACT_MATCH_ON_REMOVE   4
 
#define DDD_NO_BROADCAST_SYSTEM   8
 
#define DDD_LUID_BROADCAST_DRIVE   16
 
#define HINSTANCE_ERROR   32
 
#define MS_CTS_ON   16
 
#define MS_DSR_ON   32
 
#define MS_RING_ON   64
 
#define MS_RLSD_ON   128
 
#define DTR_CONTROL_DISABLE   0
 
#define DTR_CONTROL_ENABLE   1
 
#define DTR_CONTROL_HANDSHAKE   2
 
#define RTS_CONTROL_DISABLE   0
 
#define RTS_CONTROL_ENABLE   1
 
#define RTS_CONTROL_HANDSHAKE   2
 
#define RTS_CONTROL_TOGGLE   3
 
#define SECURITY_ANONYMOUS   (SecurityAnonymous<<16)
 
#define SECURITY_IDENTIFICATION   (SecurityIdentification<<16)
 
#define SECURITY_IMPERSONATION   (SecurityImpersonation<<16)
 
#define SECURITY_DELEGATION   (SecurityDelegation<<16)
 
#define SECURITY_CONTEXT_TRACKING   0x40000
 
#define SECURITY_EFFECTIVE_ONLY   0x80000
 
#define SECURITY_SQOS_PRESENT   0x100000
 
#define SECURITY_VALID_SQOS_FLAGS   0x1F0000
 
#define INVALID_FILE_SIZE   0xFFFFFFFF
 
#define TLS_OUT_OF_INDEXES   (DWORD)0xFFFFFFFF
 
#define FLS_OUT_OF_INDEXES   0xFFFFFFFF
 
#define STACK_SIZE_PARAM_IS_A_RESERVATION   0x00010000
 
#define BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE   0x00001
 
#define BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE   0x10000
 
#define BASE_SEARCH_PATH_PERMANENT   0x08000
 
#define BASE_SEARCH_PATH_INVALID_FLAGS   (~0x18001)
 
#define INIT_ONCE_STATIC_INIT   RTL_RUN_ONCE_INIT
 
#define LOGON_WITH_PROFILE   0x00000001
 
#define LOGON_NETCREDENTIALS_ONLY   0x00000002
 
#define _FILETIME_
 
#define _SYSTEMTIME_
 
#define EVENTLOG_FULL_INFO   0
 
#define _LDT_ENTRY_DEFINED
 
#define PROC_THREAD_ATTRIBUTE_NUMBER   0x0000ffff
 
#define PROC_THREAD_ATTRIBUTE_THREAD   0x00010000
 
#define PROC_THREAD_ATTRIBUTE_INPUT   0x00020000
 
#define PROC_THREAD_ATTRIBUTE_ADDITIVE   0x00040000
 
#define PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR   (ProcThreadAttributeIdealProcessor | PROC_THREAD_ATTRIBUTE_THREAD | PROC_THREAD_ATTRIBUTE_INPUT)
 
#define PROC_THREAD_ATTRIBUTE_HANDLE_LIST   (ProcThreadAttributeHandleList | PROC_THREAD_ATTRIBUTE_INPUT)
 
#define PROC_THREAD_ATTRIBUTE_PARENT_PROCESS   (ProcThreadAttributeParentProcess | PROC_THREAD_ATTRIBUTE_INPUT)
 
#define MAKEINTATOM(i)   (LPTSTR)((ULONG_PTR)((WORD)(i)))
 
#define MoveMemory   RtlMoveMemory
 
#define CopyMemory   RtlCopyMemory
 
#define FillMemory   RtlFillMemory
 
#define ZeroMemory   RtlZeroMemory
 
#define SecureZeroMemory   RtlSecureZeroMemory
 
#define DefineHandleTable(w)   ((w),TRUE)
 
#define FreeModule(m)   FreeLibrary(m)
 
#define FreeProcInstance(p)   (void)(p)
 
#define GetCurrentTime   GetTickCount
 
#define GetFreeSpace(w)   (0x100000L)
 
#define GlobalDiscard(m)   GlobalReAlloc((m),0,GMEM_MOVEABLE)
 
#define HasOverlappedIoCompleted(lpOverlapped)   ((lpOverlapped)->Internal != STATUS_PENDING)
 
#define LimitEmsPages(n)
 
#define LocalDiscard(m)   (LocalReAlloc((m),0,LMEM_MOVEABLE))
 
#define LockSegment(w)   GlobalFix((HANDLE)(w)) /* Obsolete: Has no effect. */
 
#define MakeProcInstance(p, i)   (p)
 
#define SetSwapAreaSize(w)   (w)
 
#define UnlockResource(handle)   ((handle), 0)
 
#define UnlockSegment(w)   GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */
 
#define Yield()
 
#define AccessCheckAndAuditAlarm   AccessCheckAndAuditAlarmA
 
#define AddAtom   AddAtomA
 
#define BackupEventLog   BackupEventLogA
 
#define BeginUpdateResource   BeginUpdateResourceA
 
#define BuildCommDCB   BuildCommDCBA
 
#define BuildCommDCBAndTimeouts   BuildCommDCBAndTimeoutsA
 
#define CallNamedPipe   CallNamedPipeA
 
#define ClearEventLog   ClearEventLogA
 
#define CommConfigDialog   CommConfigDialogA
 
#define CopyFile   CopyFileA
 
#define CopyFileEx   CopyFileExA
 
#define CreateDirectory   CreateDirectoryA
 
#define CreateDirectoryEx   CreateDirectoryExA
 
#define CreateEvent   CreateEventA
 
#define CreateFile   CreateFileA
 
#define CreateFileMapping   CreateFileMappingA
 
#define CreateMailslot   CreateMailslotA
 
#define CreateMutex   CreateMutexA
 
#define CreateNamedPipe   CreateNamedPipeA
 
#define CreateProcess   CreateProcessA
 
#define CreateProcessAsUser   CreateProcessAsUserA
 
#define CreateSemaphore   CreateSemaphoreA
 
#define CreateWaitableTimer   CreateWaitableTimerA
 
#define DecryptFile   DecryptFileA
 
#define DefineDosDevice   DefineDosDeviceA
 
#define DeleteFile   DeleteFileA
 
#define EncryptFile   EncryptFileA
 
#define EndUpdateResource   EndUpdateResourceA
 
#define EnumResourceLanguages   EnumResourceLanguagesA
 
#define EnumResourceNames   EnumResourceNamesA
 
#define EnumResourceTypes   EnumResourceTypesA
 
#define ExpandEnvironmentStrings   ExpandEnvironmentStringsA
 
#define FatalAppExit   FatalAppExitA
 
#define FileEncryptionStatus   FileEncryptionStatusA
 
#define FindAtom   FindAtomA
 
#define FindFirstChangeNotification   FindFirstChangeNotificationA
 
#define FindFirstFile   FindFirstFileA
 
#define FindFirstFileEx   FindFirstFileExA
 
#define FindNextFile   FindNextFileA
 
#define FindResource   FindResourceA
 
#define FindResourceEx   FindResourceExA
 
#define FormatMessage   FormatMessageA
 
#define FreeEnvironmentStrings   FreeEnvironmentStringsA
 
#define GetAtomName   GetAtomNameA
 
#define GetBinaryType   GetBinaryTypeA
 
#define GetCommandLine   GetCommandLineA
 
#define GetComputerName   GetComputerNameA
 
#define GetCompressedFileSize   GetCompressedFileSizeA
 
#define GetCurrentDirectory   GetCurrentDirectoryA
 
#define GetDefaultCommConfig   GetDefaultCommConfigA
 
#define GetDiskFreeSpace   GetDiskFreeSpaceA
 
#define GetDiskFreeSpaceEx   GetDiskFreeSpaceExA
 
#define GetDriveType   GetDriveTypeA
 
#define GetEnvironmentStringsA   GetEnvironmentStrings
 
#define GetEnvironmentVariable   GetEnvironmentVariableA
 
#define GetFileAttributes   GetFileAttributesA
 
#define GetFileAttributesEx   GetFileAttributesExA
 
#define GetFileSecurity   GetFileSecurityA
 
#define GetFullPathName   GetFullPathNameA
 
#define GetLogicalDriveStrings   GetLogicalDriveStringsA
 
#define GetNamedPipeHandleState   GetNamedPipeHandleStateA
 
#define GetModuleHandle   GetModuleHandleA
 
#define GetModuleFileName   GetModuleFileNameA
 
#define GetPrivateProfileInt   GetPrivateProfileIntA
 
#define GetPrivateProfileSection   GetPrivateProfileSectionA
 
#define GetPrivateProfileSectionNames   GetPrivateProfileSectionNamesA
 
#define GetPrivateProfileString   GetPrivateProfileStringA
 
#define GetPrivateProfileStruct   GetPrivateProfileStructA
 
#define GetProfileInt   GetProfileIntA
 
#define GetProfileSection   GetProfileSectionA
 
#define GetProfileString   GetProfileStringA
 
#define GetShortPathName   GetShortPathNameA
 
#define GetStartupInfo   GetStartupInfoA
 
#define GetSystemDirectory   GetSystemDirectoryA
 
#define GetTempFileName   GetTempFileNameA
 
#define GetTempPath   GetTempPathA
 
#define GetUserName   GetUserNameA
 
#define GetVersionEx   GetVersionExA
 
#define GetVolumeInformation   GetVolumeInformationA
 
#define GetVolumeNameForVolumeMountPoint   GetVolumeNameForVolumeMountPointA
 
#define GetVolumePathName   GetVolumePathNameA
 
#define GetVolumePathNamesForVolumeName   GetVolumePathNamesForVolumeNameA
 
#define GetWindowsDirectory   GetWindowsDirectoryA
 
#define GlobalAddAtom   GlobalAddAtomA
 
#define GlobalFindAtom   GlobalFindAtomA
 
#define GlobalGetAtomName   GlobalGetAtomNameA
 
#define IsBadStringPtr   IsBadStringPtrA
 
#define LoadLibrary   LoadLibraryA
 
#define LoadLibraryEx   LoadLibraryExA
 
#define LogonUser   LogonUserA
 
#define LogonUserEx   LogonUserExA
 
#define LookupAccountName   LookupAccountNameA
 
#define LookupAccountSid   LookupAccountSidA
 
#define LookupPrivilegeDisplayName   LookupPrivilegeDisplayNameA
 
#define LookupPrivilegeName   LookupPrivilegeNameA
 
#define LookupPrivilegeValue   LookupPrivilegeValueA
 
#define lstrcat   lstrcatA
 
#define lstrcmp   lstrcmpA
 
#define lstrcmpi   lstrcmpiA
 
#define lstrcpy   lstrcpyA
 
#define lstrcpyn   lstrcpynA
 
#define lstrlen   lstrlenA
 
#define MoveFile   MoveFileA
 
#define MoveFileEx   MoveFileExA
 
#define MoveFileWithProgress   MoveFileWithProgressA
 
#define ObjectCloseAuditAlarm   ObjectCloseAuditAlarmA
 
#define ObjectDeleteAuditAlarm   ObjectDeleteAuditAlarmA
 
#define ObjectOpenAuditAlarm   ObjectOpenAuditAlarmA
 
#define ObjectPrivilegeAuditAlarm   ObjectPrivilegeAuditAlarmA
 
#define OpenBackupEventLog   OpenBackupEventLogA
 
#define OpenEvent   OpenEventA
 
#define OpenEventLog   OpenEventLogA
 
#define OpenFileMapping   OpenFileMappingA
 
#define OpenMutex   OpenMutexA
 
#define OpenSemaphore   OpenSemaphoreA
 
#define OutputDebugString   OutputDebugStringA
 
#define PrivilegedServiceAuditAlarm   PrivilegedServiceAuditAlarmA
 
#define QueryDosDevice   QueryDosDeviceA
 
#define ReadEventLog   ReadEventLogA
 
#define RegisterEventSource   RegisterEventSourceA
 
#define RemoveDirectory   RemoveDirectoryA
 
#define ReportEvent   ReportEventA
 
#define SearchPath   SearchPathA
 
#define SetComputerName   SetComputerNameA
 
#define SetComputerNameEx   SetComputerNameExA
 
#define SetCurrentDirectory   SetCurrentDirectoryA
 
#define SetDefaultCommConfig   SetDefaultCommConfigA
 
#define SetEnvironmentVariable   SetEnvironmentVariableA
 
#define SetFileAttributes   SetFileAttributesA
 
#define SetFileSecurity   SetFileSecurityA
 
#define SetVolumeLabel   SetVolumeLabelA
 
#define SetVolumeMountPoint   SetVolumeMountPointA
 
#define UpdateResource   UpdateResourceA
 
#define VerifyVersionInfo   VerifyVersionInfoA
 
#define WaitNamedPipe   WaitNamedPipeA
 
#define WritePrivateProfileSection   WritePrivateProfileSectionA
 
#define WritePrivateProfileString   WritePrivateProfileStringA
 
#define WritePrivateProfileStruct   WritePrivateProfileStructA
 
#define WriteProfileSection   WriteProfileSectionA
 
#define WriteProfileString   WriteProfileStringA
 
#define INIT_ONCE_CHECK_ONLY   RTL_RUN_ONCE_CHECK_ONLY
 
#define INIT_ONCE_ASYNC   RTL_RUN_ONCE_ASYNC
 
#define INIT_ONCE_INIT_FAILED   RTL_RUN_ONCE_INIT_FAILED
 
#define INIT_ONCE_CTX_RESERVED_BITS   RTL_RUN_ONCE_CTX_RESERVED_BITS
 

Typedefs

typedef struct _FILETIME FILETIME
 
typedef struct _FILETIMEPFILETIME
 
typedef struct _FILETIMELPFILETIME
 
typedef struct _BY_HANDLE_FILE_INFORMATION BY_HANDLE_FILE_INFORMATION
 
typedef struct _BY_HANDLE_FILE_INFORMATIONPBY_HANDLE_FILE_INFORMATION
 
typedef struct _BY_HANDLE_FILE_INFORMATIONLPBY_HANDLE_FILE_INFORMATION
 
typedef struct _DCB DCB
 
typedef struct _DCBLPDCB
 
typedef struct _COMM_CONFIG COMMCONFIG
 
typedef struct _COMM_CONFIGLPCOMMCONFIG
 
typedef struct _COMMPROP COMMPROP
 
typedef struct _COMMPROPLPCOMMPROP
 
typedef struct _COMMTIMEOUTS COMMTIMEOUTS
 
typedef struct _COMMTIMEOUTSLPCOMMTIMEOUTS
 
typedef struct _COMSTAT COMSTAT
 
typedef struct _COMSTATLPCOMSTAT
 
typedef DWORD(WINAPILPTHREAD_START_ROUTINE) (LPVOID)
 
typedef struct _CREATE_PROCESS_DEBUG_INFO CREATE_PROCESS_DEBUG_INFO
 
typedef struct _CREATE_PROCESS_DEBUG_INFOLPCREATE_PROCESS_DEBUG_INFO
 
typedef struct _CREATE_THREAD_DEBUG_INFO CREATE_THREAD_DEBUG_INFO
 
typedef struct _CREATE_THREAD_DEBUG_INFOLPCREATE_THREAD_DEBUG_INFO
 
typedef struct _EXCEPTION_DEBUG_INFO EXCEPTION_DEBUG_INFO
 
typedef struct _EXCEPTION_DEBUG_INFOLPEXCEPTION_DEBUG_INFO
 
typedef struct _EXIT_THREAD_DEBUG_INFO EXIT_THREAD_DEBUG_INFO
 
typedef struct _EXIT_THREAD_DEBUG_INFOLPEXIT_THREAD_DEBUG_INFO
 
typedef struct _EXIT_PROCESS_DEBUG_INFO EXIT_PROCESS_DEBUG_INFO
 
typedef struct _EXIT_PROCESS_DEBUG_INFOLPEXIT_PROCESS_DEBUG_INFO
 
typedef struct _LOAD_DLL_DEBUG_INFO LOAD_DLL_DEBUG_INFO
 
typedef struct _LOAD_DLL_DEBUG_INFOLPLOAD_DLL_DEBUG_INFO
 
typedef struct _UNLOAD_DLL_DEBUG_INFO UNLOAD_DLL_DEBUG_INFO
 
typedef struct _UNLOAD_DLL_DEBUG_INFOLPUNLOAD_DLL_DEBUG_INFO
 
typedef struct _OUTPUT_DEBUG_STRING_INFO OUTPUT_DEBUG_STRING_INFO
 
typedef struct _OUTPUT_DEBUG_STRING_INFOLPOUTPUT_DEBUG_STRING_INFO
 
typedef struct _RIP_INFO RIP_INFO
 
typedef struct _RIP_INFOLPRIP_INFO
 
typedef struct _DEBUG_EVENT DEBUG_EVENT
 
typedef struct _DEBUG_EVENTLPDEBUG_EVENT
 
typedef PCONTEXT LPCONTEXT
 
typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD
 
typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS
 
typedef struct _OVERLAPPED OVERLAPPED
 
typedef struct _OVERLAPPEDPOVERLAPPED
 
typedef struct _OVERLAPPEDLPOVERLAPPED
 
typedef struct _OVERLAPPED_ENTRY OVERLAPPED_ENTRY
 
typedef struct _OVERLAPPED_ENTRYLPOVERLAPPED_ENTRY
 
typedef struct _STARTUPINFOA STARTUPINFOA
 
typedef struct _STARTUPINFOALPSTARTUPINFOA
 
typedef struct _STARTUPINFOW STARTUPINFOW
 
typedef struct _STARTUPINFOWLPSTARTUPINFOW
 
typedef struct _PROCESS_INFORMATION PROCESS_INFORMATION
 
typedef struct _PROCESS_INFORMATIONPPROCESS_INFORMATION
 
typedef struct _PROCESS_INFORMATIONLPPROCESS_INFORMATION
 
typedef struct _CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG
 
typedef struct _CRITICAL_SECTION_DEBUGPCRITICAL_SECTION_DEBUG
 
typedef struct _CRITICAL_SECTION_DEBUGLPCRITICAL_SECTION_DEBUG
 
typedef struct _CRITICAL_SECTION CRITICAL_SECTION
 
typedef struct _CRITICAL_SECTIONPCRITICAL_SECTION
 
typedef struct _CRITICAL_SECTIONLPCRITICAL_SECTION
 
typedef struct _SYSTEMTIME SYSTEMTIME
 
typedef struct _SYSTEMTIMELPSYSTEMTIME
 
typedef struct _SYSTEMTIMEPSYSTEMTIME
 
typedef struct _WIN32_FILE_ATTRIBUTE_DATA WIN32_FILE_ATTRIBUTE_DATA
 
typedef struct _WIN32_FILE_ATTRIBUTE_DATALPWIN32_FILE_ATTRIBUTE_DATA
 
typedef struct _WIN32_FIND_DATAA WIN32_FIND_DATAA
 
typedef struct _WIN32_FIND_DATAAPWIN32_FIND_DATAA
 
typedef struct _WIN32_FIND_DATAALPWIN32_FIND_DATAA
 
typedef struct _WIN32_FIND_DATAW WIN32_FIND_DATAW
 
typedef struct _WIN32_FIND_DATAWPWIN32_FIND_DATAW
 
typedef struct _WIN32_FIND_DATAWLPWIN32_FIND_DATAW
 
typedef struct _WIN32_STREAM_ID WIN32_STREAM_ID
 
typedef struct _WIN32_STREAM_IDLPWIN32_STREAM_ID
 
typedef enum _FINDEX_INFO_LEVELS FINDEX_INFO_LEVELS
 
typedef enum _FINDEX_SEARCH_OPS FINDEX_SEARCH_OPS
 
typedef struct tagHW_PROFILE_INFOA HW_PROFILE_INFOA
 
typedef struct tagHW_PROFILE_INFOALPHW_PROFILE_INFOA
 
typedef struct tagHW_PROFILE_INFOW HW_PROFILE_INFOW
 
typedef struct tagHW_PROFILE_INFOWLPHW_PROFILE_INFOW
 
typedef struct _EVENTLOG_FULL_INFORMATION EVENTLOG_FULL_INFORMATION
 
typedef struct _EVENTLOG_FULL_INFORMATIONLPEVENTLOG_FULL_INFORMATION
 
typedef enum _GET_FILEEX_INFO_LEVELS GET_FILEEX_INFO_LEVELS
 
typedef struct _SYSTEM_INFO SYSTEM_INFO
 
typedef struct _SYSTEM_INFOLPSYSTEM_INFO
 
typedef struct _SYSTEM_POWER_STATUS SYSTEM_POWER_STATUS
 
typedef struct _SYSTEM_POWER_STATUSLPSYSTEM_POWER_STATUS
 
typedef struct _TIME_DYNAMIC_ZONE_INFORMATION DYNAMIC_TIME_ZONE_INFORMATION
 
typedef struct _TIME_DYNAMIC_ZONE_INFORMATIONPDYNAMIC_TIME_ZONE_INFORMATION
 
typedef struct _TIME_ZONE_INFORMATION TIME_ZONE_INFORMATION
 
typedef struct _TIME_ZONE_INFORMATIONPTIME_ZONE_INFORMATION
 
typedef struct _TIME_ZONE_INFORMATIONLPTIME_ZONE_INFORMATION
 
typedef struct _MEMORYSTATUS MEMORYSTATUS
 
typedef struct _MEMORYSTATUSLPMEMORYSTATUS
 
typedef struct _LDT_ENTRY LDT_ENTRY
 
typedef struct _LDT_ENTRYPLDT_ENTRY
 
typedef struct _LDT_ENTRYLPLDT_ENTRY
 
typedef struct _PROCESS_HEAP_ENTRY PROCESS_HEAP_ENTRY
 
typedef struct _PROCESS_HEAP_ENTRYPPROCESS_HEAP_ENTRY
 
typedef struct _PROCESS_HEAP_ENTRYLPPROCESS_HEAP_ENTRY
 
typedef struct _OFSTRUCT OFSTRUCT
 
typedef struct _OFSTRUCTLPOFSTRUCT
 
typedef struct _OFSTRUCTPOFSTRUCT
 
typedef struct _PROC_THREAD_ATTRIBUTE_LISTPPROC_THREAD_ATTRIBUTE_LIST
 
typedef struct _PROC_THREAD_ATTRIBUTE_LISTLPPROC_THREAD_ATTRIBUTE_LIST
 
typedef enum _PROC_THREAD_ATTRIBUTE_NUM PROC_THREAD_ATTRIBUTE_NUM
 
typedef DWORD(WINAPIPFE_EXPORT_FUNC) (_In_reads_bytes_(ulLength) PBYTE pbData, _In_opt_ PVOID pvCallbackContext, _In_ ULONG ulLength)
 
typedef DWORD(WINAPILPPROGRESS_ROUTINE) (_In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ DWORD, _In_ DWORD, _In_ HANDLE, _In_ HANDLE, _In_opt_ LPVOID)
 
typedef VOID(WINAPIPFIBER_START_ROUTINE) (LPVOID lpFiberParameter)
 
typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE
 
typedef VOID(WINAPIPFLS_CALLBACK_FUNCTION) (PVOID)
 
typedef BOOL(CALLBACKENUMRESLANGPROCA) (HMODULE, LPCSTR, LPCSTR, WORD, LONG_PTR)
 
typedef BOOL(CALLBACKENUMRESLANGPROCW) (HMODULE, LPCWSTR, LPCWSTR, WORD, LONG_PTR)
 
typedef BOOL(CALLBACKENUMRESNAMEPROCA) (HMODULE, LPCSTR, LPSTR, LONG_PTR)
 
typedef BOOL(CALLBACKENUMRESNAMEPROCW) (HMODULE, LPCWSTR, LPWSTR, LONG_PTR)
 
typedef BOOL(CALLBACKENUMRESTYPEPROCA) (HMODULE, LPSTR, LONG_PTR)
 
typedef BOOL(CALLBACKENUMRESTYPEPROCW) (HMODULE, LPWSTR, LONG_PTR)
 
typedef void(CALLBACKLPOVERLAPPED_COMPLETION_ROUTINE) (DWORD, DWORD, LPOVERLAPPED)
 
typedef LONG(CALLBACKPTOP_LEVEL_EXCEPTION_FILTER) (LPEXCEPTION_POINTERS)
 
typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER
 
typedef void(APIENTRYPAPCFUNC) (ULONG_PTR)
 
typedef void(CALLBACKPTIMERAPCROUTINE) (PVOID, DWORD, DWORD)
 
typedef DWORD(WINAPIPFE_IMPORT_FUNC) (_Out_writes_bytes_to_(*ulLength, *ulLength) PBYTE pbData, _In_opt_ PVOID pvCallbackContext, _Inout_ PULONG ulLength)
 
typedef STARTUPINFOA STARTUPINFO
 
typedef STARTUPINFOALPSTARTUPINFO
 
typedef WIN32_FIND_DATAA WIN32_FIND_DATA
 
typedef WIN32_FIND_DATAAPWIN32_FIND_DATA
 
typedef WIN32_FIND_DATAALPWIN32_FIND_DATA
 
typedef HW_PROFILE_INFOA HW_PROFILE_INFO
 
typedef HW_PROFILE_INFOALPHW_PROFILE_INFO
 
typedef ENUMRESLANGPROCA ENUMRESLANGPROC
 
typedef ENUMRESNAMEPROCA ENUMRESNAMEPROC
 
typedef ENUMRESTYPEPROCA ENUMRESTYPEPROC
 
typedef RTL_RUN_ONCE INIT_ONCE
 
typedef PRTL_RUN_ONCE PINIT_ONCE
 
typedef PRTL_RUN_ONCE LPINIT_ONCE
 
typedef BOOL(WINAPIPINIT_ONCE_FN) (_Inout_ PINIT_ONCE InitOnce, _Inout_opt_ PVOID Parameter, _Outptr_opt_result_maybenull_ PVOID *Context)
 

Enumerations

enum  _FINDEX_INFO_LEVELS { FindExInfoStandard , FindExInfoBasic , FindExInfoMaxInfoLevel }
 
enum  _FINDEX_SEARCH_OPS { FindExSearchNameMatch , FindExSearchLimitToDirectories , FindExSearchLimitToDevices , FindExSearchMaxSearchOp }
 
enum  _GET_FILEEX_INFO_LEVELS { GetFileExInfoStandard , GetFileExMaxInfoLevel }
 
enum  _PROC_THREAD_ATTRIBUTE_NUM {
  ProcThreadAttributeParentProcess = 0 , ProcThreadAttributeHandleList = 2 , ProcThreadAttributeGroupAffinity = 3 , ProcThreadAttributeIdealProcessor = 5 ,
  ProcThreadAttributeUmsThread = 6 , ProcThreadAttributeMitigationPolicy = 7 , ProcThreadAttributeSecurityCapabilities = 9 , ProcThreadAttributeProtectionLevel = 11 ,
  ProcThreadAttributeJobList = 13 , ProcThreadAttributeChildProcessPolicy = 14 , ProcThreadAttributeAllApplicationPackagesPolicy = 15 , ProcThreadAttributeWin32kFilter = 16 ,
  ProcThreadAttributeSafeOpenPromptOriginClaim = 17
}
 

Functions

int APIENTRY WinMain (_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int)
 
int APIENTRY wWinMain (_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPWSTR, _In_ int)
 
long WINAPI _hread (_In_ HFILE hFile, _Out_writes_bytes_to_(lBytes, return) LPVOID lpBuffer, _In_ long lBytes)
 
long WINAPI _hwrite (_In_ HFILE hFile, _In_reads_bytes_(lBytes) LPCCH lpBuffer, _In_ long lBytes)
 
HFILE WINAPI _lclose (_In_ HFILE)
 
HFILE WINAPI _lcreat (_In_ LPCSTR, _In_ int)
 
LONG WINAPI _llseek (_In_ HFILE, _In_ LONG, _In_ int)
 
HFILE WINAPI _lopen (_In_ LPCSTR, _In_ int)
 
UINT WINAPI _lread (_In_ HFILE hFile, _Out_writes_bytes_to_(uBytes, return) LPVOID lpBuffer, _In_ UINT uBytes)
 
UINT WINAPI _lwrite (_In_ HFILE hFile, _In_reads_bytes_(uBytes) LPCCH lpBuffer, _In_ UINT uBytes)
 
BOOL WINAPI AccessCheck (PSECURITY_DESCRIPTOR, HANDLE, DWORD, PGENERIC_MAPPING, PPRIVILEGE_SET, PDWORD, PDWORD, PBOOL)
 
BOOL WINAPI AccessCheckAndAuditAlarmA (_In_ LPCSTR SubsystemName, _In_opt_ LPVOID HandleId, _In_ LPSTR ObjectTypeName, _In_opt_ LPSTR ObjectName, _In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ DWORD DesiredAccess, _In_ PGENERIC_MAPPING GenericMapping, _In_ BOOL ObjectCreation, _Out_ LPDWORD GrantedAccess, _Out_ LPBOOL AccessStatus, _Out_ LPBOOL pfGenerateOnClose)
 
BOOL WINAPI AccessCheckAndAuditAlarmW (LPCWSTR, LPVOID, LPWSTR, LPWSTR, PSECURITY_DESCRIPTOR, DWORD, PGENERIC_MAPPING, BOOL, PDWORD, PBOOL, PBOOL)
 
BOOL WINAPI AddAccessAllowedAce (PACL, DWORD, DWORD, PSID)
 
BOOL WINAPI AddAccessDeniedAce (PACL, DWORD, DWORD, PSID)
 
BOOL WINAPI AddAce (PACL, DWORD, DWORD, PVOID, DWORD)
 
ATOM WINAPI AddAtomA (_In_opt_ LPCSTR)
 
ATOM WINAPI AddAtomW (_In_opt_ LPCWSTR)
 
BOOL WINAPI AddAuditAccessAce (PACL, DWORD, DWORD, PSID, BOOL, BOOL)
 
BOOL WINAPI AccessCheckByType (_In_ PSECURITY_DESCRIPTOR pSecurityDescriptor, _In_opt_ PSID PrincipalSelfSid, _In_ HANDLE ClientToken, _In_ DWORD DesiredAccess, _In_reads_opt_(ObjectTypeListLength) POBJECT_TYPE_LIST ObjectTypeList, _In_ DWORD ObjectTypeListLength, _In_ PGENERIC_MAPPING GenericMapping, _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet, _Inout_ LPDWORD PrivilegeSetLength, _Out_ LPDWORD GrantedAccess, _Out_ LPBOOL AccessStatus)
 
BOOL WINAPI AccessCheckByTypeResultList (_In_ PSECURITY_DESCRIPTOR pSecurityDescriptor, _In_opt_ PSID PrincipalSelfSid, _In_ HANDLE ClientToken, _In_ DWORD DesiredAccess, _In_reads_(ObjectTypeListLength) POBJECT_TYPE_LIST ObjectTypeList, _In_ DWORD ObjectTypeListLength, _In_ PGENERIC_MAPPING GenericMapping, _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet, _Inout_ LPDWORD PrivilegeSetLength, _Out_writes_(ObjectTypeListLength) LPDWORD GrantedAccess, _Out_writes_(ObjectTypeListLength) LPBOOL AccessStatus)
 Determines whether security access can be granted to a client that requests such access on the object type list. Unlike the AccessCheckByType variant, this function will grant or deny access to each individual object and sub-object in the list.
 
BOOL WINAPI AdjustTokenGroups (HANDLE, BOOL, PTOKEN_GROUPS, DWORD, PTOKEN_GROUPS, PDWORD)
 
BOOL WINAPI AdjustTokenPrivileges (HANDLE, BOOL, PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD)
 
BOOL WINAPI AllocateAndInitializeSid (PSID_IDENTIFIER_AUTHORITY, BYTE, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, PSID *)
 
BOOL WINAPI CheckTokenMembership (HANDLE, PSID, PBOOL)
 
BOOL WINAPI AllocateLocallyUniqueId (PLUID)
 
BOOL WINAPI AreAllAccessesGranted (DWORD, DWORD)
 
BOOL WINAPI AreAnyAccessesGranted (DWORD, DWORD)
 
BOOL WINAPI AreFileApisANSI (void)
 
BOOL WINAPI BackupEventLogA (_In_ HANDLE, _In_ LPCSTR)
 
BOOL WINAPI BackupEventLogW (_In_ HANDLE, _In_ LPCWSTR)
 
BOOL WINAPI BackupRead (_In_ HANDLE hFile, _Out_writes_bytes_to_(nNumberOfBytesToRead, *lpNumberOfBytesRead) LPBYTE lpBuffer, _In_ DWORD nNumberOfBytesToRead, _Out_ LPDWORD lpNumberOfBytesRead, _In_ BOOL bAbort, _In_ BOOL bProcessSecurity, _Inout_ LPVOID *lpContext)
 
BOOL WINAPI BackupSeek (_In_ HANDLE, _In_ DWORD, _In_ DWORD, _Out_ LPDWORD, _Out_ LPDWORD, _Inout_ LPVOID *)
 
BOOL WINAPI BackupWrite (_In_ HANDLE hFile, _In_reads_bytes_(nNumberOfBytesToWrite) LPBYTE lpBuffer, _In_ DWORD nNumberOfBytesToWrite, _Out_ LPDWORD lpNumberOfBytesWritten, _In_ BOOL bAbort, _In_ BOOL bProcessSecurity, _Inout_ LPVOID *lpContext)
 
BOOL WINAPI Beep (DWORD, DWORD)
 
HANDLE WINAPI BeginUpdateResourceA (_In_ LPCSTR, _In_ BOOL)
 
HANDLE WINAPI BeginUpdateResourceW (_In_ LPCWSTR, _In_ BOOL)
 
BOOL WINAPI BuildCommDCBA (_In_ LPCSTR, _Out_ LPDCB)
 
BOOL WINAPI BuildCommDCBW (_In_ LPCWSTR, _Out_ LPDCB)
 
BOOL WINAPI BuildCommDCBAndTimeoutsA (_In_ LPCSTR, _Out_ LPDCB, _Out_ LPCOMMTIMEOUTS)
 
BOOL WINAPI BuildCommDCBAndTimeoutsW (_In_ LPCWSTR, _Out_ LPDCB, _Out_ LPCOMMTIMEOUTS)
 
BOOL WINAPI CallNamedPipeA (_In_ LPCSTR lpNamedPipeName, _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, _In_ DWORD nInBufferSize, _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesRead) LPVOID lpOutBuffer, _In_ DWORD nOutBufferSize, _Out_ LPDWORD lpBytesRead, _In_ DWORD nTimeOut)
 
BOOL WINAPI CallNamedPipeW (_In_ LPCWSTR lpNamedPipeName, _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, _In_ DWORD nInBufferSize, _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesRead) LPVOID lpOutBuffer, _In_ DWORD nOutBufferSize, _Out_ LPDWORD lpBytesRead, _In_ DWORD nTimeOut)
 
BOOL WINAPI CancelDeviceWakeupRequest (_In_ HANDLE)
 
BOOL WINAPI CancelIo (HANDLE)
 
BOOL WINAPI CancelWaitableTimer (HANDLE)
 
BOOL WINAPI ClearCommBreak (_In_ HANDLE)
 
BOOL WINAPI ClearCommError (_In_ HANDLE, _Out_opt_ PDWORD, _Out_opt_ LPCOMSTAT)
 
BOOL WINAPI ClearEventLogA (_In_ HANDLE, _In_opt_ LPCSTR)
 
BOOL WINAPI ClearEventLogW (_In_ HANDLE, _In_opt_ LPCWSTR)
 
BOOL WINAPI CloseEventLog (_In_ HANDLE)
 
BOOL WINAPI CloseHandle (HANDLE)
 
BOOL WINAPI CommConfigDialogA (_In_ LPCSTR, _In_opt_ HWND, _Inout_ LPCOMMCONFIG)
 
BOOL WINAPI CommConfigDialogW (_In_ LPCWSTR, _In_opt_ HWND, _Inout_ LPCOMMCONFIG)
 
LONG WINAPI CompareFileTime (CONST FILETIME *, CONST FILETIME *)
 
BOOL WINAPI ConnectNamedPipe (HANDLE, LPOVERLAPPED)
 
BOOL WINAPI ContinueDebugEvent (DWORD, DWORD, DWORD)
 
_Ret_maybenull_ PVOID WINAPI ConvertThreadToFiber (_In_opt_ PVOID)
 
BOOL WINAPI CopyFileA (_In_ LPCSTR, _In_ LPCSTR, _In_ BOOL)
 
BOOL WINAPI CopyFileW (_In_ LPCWSTR lpExistingFileName, _In_ LPCWSTR lpNewFileName, _In_ BOOL bFailIfExists)
 
BOOL WINAPI CopyFileExA (_In_ LPCSTR, _In_ LPCSTR, _In_opt_ LPPROGRESS_ROUTINE, _In_opt_ LPVOID, _In_opt_ LPBOOL, _In_ DWORD)
 
BOOL WINAPI CopyFileExW (_In_ LPCWSTR, _In_ LPCWSTR, _In_opt_ LPPROGRESS_ROUTINE, _In_opt_ LPVOID, _In_opt_ LPBOOL, _In_ DWORD)
 
BOOL WINAPI CopySid (DWORD, PSID, PSID)
 
BOOL WINAPI CreateDirectoryA (LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
 
BOOL WINAPI CreateDirectoryW (LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
 
BOOL WINAPI CreateDirectoryExA (_In_ LPCSTR, _In_ LPCSTR, _In_opt_ LPSECURITY_ATTRIBUTES)
 
BOOL WINAPI CreateDirectoryExW (_In_ LPCWSTR, _In_ LPCWSTR, _In_opt_ LPSECURITY_ATTRIBUTES)
 
HANDLE WINAPI CreateEventA (_In_opt_ LPSECURITY_ATTRIBUTES lpEventAttributes, _In_ BOOL bManualReset, _In_ BOOL bInitialState, _In_opt_ LPCSTR lpName)
 
HANDLE WINAPI CreateEventW (_In_opt_ LPSECURITY_ATTRIBUTES, _In_ BOOL bManualReset, _In_ BOOL bInitialState, _In_opt_ LPCWSTR lpName)
 
_Ret_maybenull_ LPVOID WINAPI CreateFiber (_In_ SIZE_T, _In_ LPFIBER_START_ROUTINE, _In_opt_ LPVOID)
 
HANDLE WINAPI CreateFileA (LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE)
 
HANDLE WINAPI CreateFileW (LPCWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE)
 
_Ret_maybenull_ HANDLE WINAPI CreateFileMappingA (_In_ HANDLE, _In_opt_ LPSECURITY_ATTRIBUTES, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCSTR)
 
HANDLE WINAPI CreateFileMappingW (HANDLE, LPSECURITY_ATTRIBUTES, DWORD, DWORD, DWORD, LPCWSTR)
 
HANDLE WINAPI CreateIoCompletionPort (HANDLE, HANDLE, ULONG_PTR, DWORD)
 
HANDLE WINAPI CreateMailslotA (_In_ LPCSTR, _In_ DWORD, _In_ DWORD, _In_opt_ LPSECURITY_ATTRIBUTES)
 
HANDLE WINAPI CreateMailslotW (_In_ LPCWSTR, _In_ DWORD, _In_ DWORD, _In_opt_ LPSECURITY_ATTRIBUTES)
 
HANDLE WINAPI CreateMutexA (LPSECURITY_ATTRIBUTES, BOOL, LPCSTR)
 
HANDLE WINAPI CreateMutexW (LPSECURITY_ATTRIBUTES, BOOL, LPCWSTR)
 
HANDLE WINAPI CreateNamedPipeA (_In_ LPCSTR, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPSECURITY_ATTRIBUTES)
 
HANDLE WINAPI CreateNamedPipeW (_In_ LPCWSTR, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPSECURITY_ATTRIBUTES)
 
BOOL WINAPI CreatePipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD)
 
BOOL WINAPI CreatePrivateObjectSecurity (PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR *, BOOL, HANDLE, PGENERIC_MAPPING)
 
BOOL WINAPI CreateProcessA (LPCSTR, LPSTR, LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, BOOL, DWORD, PVOID, LPCSTR, LPSTARTUPINFOA, LPPROCESS_INFORMATION)
 
BOOL WINAPI CreateProcessW (LPCWSTR, LPWSTR, LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, BOOL, DWORD, PVOID, LPCWSTR, LPSTARTUPINFOW, LPPROCESS_INFORMATION)
 
BOOL WINAPI CreateProcessAsUserA (_In_opt_ HANDLE, _In_opt_ LPCSTR, _Inout_opt_ LPSTR, _In_opt_ LPSECURITY_ATTRIBUTES, _In_opt_ LPSECURITY_ATTRIBUTES, _In_ BOOL, _In_ DWORD, _In_opt_ PVOID, _In_opt_ LPCSTR, _In_ LPSTARTUPINFOA, _Out_ LPPROCESS_INFORMATION)
 
BOOL WINAPI CreateProcessAsUserW (HANDLE, LPCWSTR, LPWSTR, LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, BOOL, DWORD, PVOID, LPCWSTR, LPSTARTUPINFOW, LPPROCESS_INFORMATION)
 
BOOL WINAPI CreateProcessWithLogonW (LPCWSTR, LPCWSTR, LPCWSTR, DWORD, LPCWSTR, LPWSTR, DWORD, LPVOID, LPCWSTR, LPSTARTUPINFOW, LPPROCESS_INFORMATION)
 
BOOL WINAPI CreateProcessWithTokenW (HANDLE, DWORD, LPCWSTR, LPWSTR, DWORD, LPVOID, LPCWSTR, LPSTARTUPINFOW, LPPROCESS_INFORMATION)
 
HANDLE WINAPI CreateRemoteThread (HANDLE, LPSECURITY_ATTRIBUTES, DWORD, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)
 
BOOL WINAPI CreateRestrictedToken (_In_ HANDLE ExistingTokenHandle, _In_ DWORD Flags, _In_ DWORD DisableSidCount, _In_reads_opt_(DisableSidCount) PSID_AND_ATTRIBUTES SidsToDisable, _In_ DWORD DeletePrivilegeCount, _In_reads_opt_(DeletePrivilegeCount) PLUID_AND_ATTRIBUTES PrivilegesToDelete, _In_ DWORD RestrictedSidCount, _In_reads_opt_(RestrictedSidCount) PSID_AND_ATTRIBUTES SidsToRestrict, _Outptr_ PHANDLE NewTokenHandle)
 Creates a filtered token that is a restricted one of the regular access token. A restricted token can have disabled SIDs, deleted privileges and/or restricted SIDs added.
 
_Ret_maybenull_ HANDLE WINAPI CreateSemaphoreA (_In_opt_ LPSECURITY_ATTRIBUTES, _In_ LONG, _In_ LONG, _In_opt_ LPCSTR)
 
_Ret_maybenull_ HANDLE WINAPI CreateSemaphoreW (_In_opt_ LPSECURITY_ATTRIBUTES, _In_ LONG, _In_ LONG, _In_opt_ LPCWSTR)
 
DWORD WINAPI CreateTapePartition (_In_ HANDLE, _In_ DWORD, _In_ DWORD, _In_ DWORD)
 
HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES, DWORD, LPTHREAD_START_ROUTINE, PVOID, DWORD, PDWORD)
 
_Ret_maybenull_ HANDLE WINAPI CreateWaitableTimerA (_In_opt_ LPSECURITY_ATTRIBUTES, _In_ BOOL, _In_opt_ LPCSTR)
 
_Ret_maybenull_ HANDLE WINAPI CreateWaitableTimerW (_In_opt_ LPSECURITY_ATTRIBUTES, _In_ BOOL, _In_opt_ LPCWSTR)
 
BOOL WINAPI DebugActiveProcess (DWORD)
 
void WINAPI DebugBreak (void)
 
PVOID WINAPI DecodePointer (PVOID)
 
PVOID WINAPI DecodeSystemPointer (PVOID)
 
BOOL WINAPI DecryptFileA (_In_ LPCSTR, _Reserved_ DWORD)
 
BOOL WINAPI DecryptFileW (_In_ LPCWSTR, _Reserved_ DWORD)
 
BOOL WINAPI DefineDosDeviceA (_In_ DWORD, _In_ LPCSTR, _In_opt_ LPCSTR)
 
BOOL WINAPI DefineDosDeviceW (DWORD, LPCWSTR, LPCWSTR)
 
BOOL WINAPI DeleteAce (PACL, DWORD)
 
ATOM WINAPI DeleteAtom (_In_ ATOM)
 
void WINAPI DeleteCriticalSection (PCRITICAL_SECTION)
 
void WINAPI DeleteFiber (_In_ PVOID)
 
BOOL WINAPI DeleteFileA (LPCSTR)
 
BOOL WINAPI DeleteFileW (LPCWSTR)
 
BOOL WINAPI DeregisterEventSource (_In_ HANDLE)
 
BOOL WINAPI DestroyPrivateObjectSecurity (PSECURITY_DESCRIPTOR *)
 
BOOL WINAPI DeviceIoControl (HANDLE, DWORD, PVOID, DWORD, PVOID, DWORD, PDWORD, POVERLAPPED)
 
BOOL WINAPI DisableThreadLibraryCalls (HMODULE)
 
BOOL WINAPI DisconnectNamedPipe (HANDLE)
 
BOOL WINAPI DosDateTimeToFileTime (_In_ WORD, _In_ WORD, _Out_ LPFILETIME)
 
BOOL WINAPI DuplicateHandle (HANDLE, HANDLE, HANDLE, PHANDLE, DWORD, BOOL, DWORD)
 
BOOL WINAPI DuplicateToken (HANDLE, SECURITY_IMPERSONATION_LEVEL, PHANDLE)
 
BOOL WINAPI DuplicateTokenEx (HANDLE, DWORD, LPSECURITY_ATTRIBUTES, SECURITY_IMPERSONATION_LEVEL, TOKEN_TYPE, PHANDLE)
 
PVOID WINAPI EncodePointer (PVOID)
 
PVOID WINAPI EncodeSystemPointer (PVOID)
 
BOOL WINAPI EncryptFileA (_In_ LPCSTR)
 
BOOL WINAPI EncryptFileW (_In_ LPCWSTR)
 
BOOL WINAPI EndUpdateResourceA (_In_ HANDLE, _In_ BOOL)
 
BOOL WINAPI EndUpdateResourceW (_In_ HANDLE, _In_ BOOL)
 
void WINAPI EnterCriticalSection (LPCRITICAL_SECTION)
 
BOOL WINAPI EnumResourceLanguagesA (_In_opt_ HMODULE, _In_ LPCSTR, _In_ LPCSTR, _In_ ENUMRESLANGPROCA, _In_ LONG_PTR)
 
BOOL WINAPI EnumResourceLanguagesW (_In_opt_ HMODULE, _In_ LPCWSTR, _In_ LPCWSTR, _In_ ENUMRESLANGPROCW, _In_ LONG_PTR)
 
BOOL WINAPI EnumResourceNamesA (_In_opt_ HMODULE, _In_ LPCSTR, _In_ ENUMRESNAMEPROCA, _In_ LONG_PTR)
 
BOOL WINAPI EnumResourceNamesW (_In_opt_ HMODULE, _In_ LPCWSTR, _In_ ENUMRESNAMEPROCW, _In_ LONG_PTR)
 
BOOL WINAPI EnumResourceTypesA (_In_opt_ HMODULE, _In_ ENUMRESTYPEPROCA, _In_ LONG_PTR)
 
BOOL WINAPI EnumResourceTypesW (_In_opt_ HMODULE, _In_ ENUMRESTYPEPROCW, _In_ LONG_PTR)
 
BOOL WINAPI EqualPrefixSid (PSID, PSID)
 
BOOL WINAPI EqualSid (PSID, PSID)
 
DWORD WINAPI EraseTape (_In_ HANDLE, _In_ DWORD, _In_ BOOL)
 
BOOL WINAPI EscapeCommFunction (_In_ HANDLE, _In_ DWORD)
 
DECLSPEC_NORETURN void WINAPI ExitProcess (UINT)
 
DECLSPEC_NORETURN void WINAPI ExitThread (_In_ DWORD dwExitCode)
 
DWORD WINAPI ExpandEnvironmentStringsA (LPCSTR, LPSTR, DWORD)
 
DWORD WINAPI ExpandEnvironmentStringsW (LPCWSTR, LPWSTR, DWORD)
 
void WINAPI FatalAppExitA (UINT, LPCSTR)
 
void WINAPI FatalAppExitW (UINT, LPCWSTR)
 
__analysis_noreturn void WINAPI FatalExit (_In_ int)
 
BOOL WINAPI FileEncryptionStatusA (_In_ LPCSTR, _Out_ LPDWORD)
 
BOOL WINAPI FileEncryptionStatusW (_In_ LPCWSTR, _Out_ LPDWORD)
 
BOOL WINAPI FileTimeToDosDateTime (_In_ CONST FILETIME *, _Out_ LPWORD, _Out_ LPWORD)
 
BOOL WINAPI FileTimeToLocalFileTime (CONST FILETIME *, LPFILETIME)
 
BOOL WINAPI FileTimeToSystemTime (CONST FILETIME *, LPSYSTEMTIME)
 
ATOM WINAPI FindAtomA (_In_opt_ LPCSTR)
 
ATOM WINAPI FindAtomW (_In_opt_ LPCWSTR)
 
BOOL WINAPI FindClose (HANDLE)
 
BOOL WINAPI FindCloseChangeNotification (HANDLE)
 
HANDLE WINAPI FindFirstChangeNotificationA (LPCSTR, BOOL, DWORD)
 
HANDLE WINAPI FindFirstChangeNotificationW (LPCWSTR, BOOL, DWORD)
 
HANDLE WINAPI FindFirstFileA (LPCSTR, LPWIN32_FIND_DATAA)
 
HANDLE WINAPI FindFirstFileW (LPCWSTR, LPWIN32_FIND_DATAW)
 
HANDLE WINAPI FindFirstFileExA (LPCSTR, FINDEX_INFO_LEVELS, PVOID, FINDEX_SEARCH_OPS, PVOID, DWORD)
 
HANDLE WINAPI FindFirstFileExW (LPCWSTR, FINDEX_INFO_LEVELS, PVOID, FINDEX_SEARCH_OPS, PVOID, DWORD)
 
BOOL WINAPI FindFirstFreeAce (PACL, PVOID *)
 
BOOL WINAPI FindNextChangeNotification (HANDLE)
 
BOOL WINAPI FindNextFileA (HANDLE, LPWIN32_FIND_DATAA)
 
BOOL WINAPI FindNextFileW (HANDLE, LPWIN32_FIND_DATAW)
 
_Ret_maybenull_ HRSRC WINAPI FindResourceA (_In_opt_ HMODULE, _In_ LPCSTR, _In_ LPCSTR)
 
_Ret_maybenull_ HRSRC WINAPI FindResourceW (_In_opt_ HMODULE, _In_ LPCWSTR, _In_ LPCWSTR)
 
_Ret_maybenull_ HRSRC WINAPI FindResourceExA (_In_opt_ HMODULE, _In_ LPCSTR, _In_ LPCSTR, _In_ WORD)
 
HRSRC WINAPI FindResourceExW (HINSTANCE, LPCWSTR, LPCWSTR, WORD)
 
BOOL WINAPI FlushFileBuffers (HANDLE)
 
BOOL WINAPI FlushInstructionCache (HANDLE, LPCVOID, SIZE_T)
 
BOOL WINAPI FlushViewOfFile (LPCVOID, SIZE_T)
 
DWORD WINAPI FlsAlloc (PFLS_CALLBACK_FUNCTION)
 
PVOID WINAPI FlsGetValue (DWORD)
 
BOOL WINAPI FlsSetValue (DWORD, PVOID)
 
BOOL WINAPI FlsFree (DWORD)
 
DWORD WINAPI FormatMessageA (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPSTR lpBuffer, DWORD nSize, va_list *Arguments)
 
DWORD WINAPI FormatMessageW (DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, va_list *Arguments)
 
BOOL WINAPI FreeEnvironmentStringsA (LPSTR)
 
BOOL WINAPI FreeEnvironmentStringsW (LPWSTR)
 
BOOL WINAPI FreeLibrary (HMODULE)
 
DECLSPEC_NORETURN void WINAPI FreeLibraryAndExitThread (HMODULE, DWORD)
 
BOOL WINAPI FreeResource (HGLOBAL)
 
PVOID WINAPI FreeSid (PSID)
 
BOOL WINAPI GetAce (PACL, DWORD, LPVOID *)
 
BOOL WINAPI GetAclInformation (PACL, PVOID, DWORD, ACL_INFORMATION_CLASS)
 
UINT WINAPI GetAtomNameA (_In_ ATOM nAtom, _Out_writes_to_(nSize, return+1) LPSTR lpBuffer, _In_ int nSize)
 
UINT WINAPI GetAtomNameW (_In_ ATOM nAtom, _Out_writes_to_(nSize, return+1) LPWSTR lpBuffer, _In_ int nSize)
 
BOOL WINAPI GetBinaryTypeA (_In_ LPCSTR, _Out_ PDWORD)
 
BOOL WINAPI GetBinaryTypeW (_In_ LPCWSTR, _Out_ PDWORD)
 
LPSTR WINAPI GetCommandLineA (VOID)
 
LPWSTR WINAPI GetCommandLineW (VOID)
 
 _Success_ (return !=FALSE) BOOL WINAPI GetCommConfig(_In_ HANDLE hCommDev
 
BOOL WINAPI GetCommMask (_In_ HANDLE, _Out_ PDWORD)
 
BOOL WINAPI GetCommModemStatus (_In_ HANDLE, _Out_ PDWORD)
 
BOOL WINAPI GetCommProperties (_In_ HANDLE, _Inout_ LPCOMMPROP)
 
BOOL WINAPI GetCommState (_In_ HANDLE, _Out_ LPDCB)
 
BOOL WINAPI GetCommTimeouts (_In_ HANDLE, _Out_ LPCOMMTIMEOUTS)
 
DWORD WINAPI GetCompressedFileSizeA (_In_ LPCSTR, _Out_opt_ PDWORD)
 
DWORD WINAPI GetCompressedFileSizeW (_In_ LPCWSTR, _Out_opt_ PDWORD)
 
DWORD WINAPI GetCurrentDirectoryA (DWORD, LPSTR)
 
DWORD WINAPI GetCurrentDirectoryW (DWORD, LPWSTR)
 
BOOL WINAPI GetCurrentHwProfileA (_Out_ LPHW_PROFILE_INFOA)
 
BOOL WINAPI GetCurrentHwProfileW (_Out_ LPHW_PROFILE_INFOW)
 
HANDLE WINAPI GetCurrentProcess (void)
 
DWORD WINAPI GetCurrentProcessId (void)
 
HANDLE WINAPI GetCurrentThread (void)
 
DWORD WINAPI GetCurrentThreadId (void)
 
BOOL WINAPI GetDefaultCommConfigA (_In_ LPCSTR lpszName, _Out_writes_bytes_to_(*lpdwSize, *lpdwSize) LPCOMMCONFIG lpCC, _Inout_ LPDWORD lpdwSize)
 
BOOL WINAPI GetDefaultCommConfigW (_In_ LPCWSTR lpszName, _Out_writes_bytes_to_(*lpdwSize, *lpdwSize) LPCOMMCONFIG lpCC, _Inout_ LPDWORD lpdwSize)
 
BOOL WINAPI GetDiskFreeSpaceA (LPCSTR, PDWORD, PDWORD, PDWORD, PDWORD)
 
BOOL WINAPI GetDiskFreeSpaceW (LPCWSTR, PDWORD, PDWORD, PDWORD, PDWORD)
 
BOOL WINAPI GetDiskFreeSpaceExA (LPCSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER)
 
BOOL WINAPI GetDiskFreeSpaceExW (LPCWSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER)
 
UINT WINAPI GetDriveTypeA (LPCSTR)
 
UINT WINAPI GetDriveTypeW (LPCWSTR)
 
LPSTR WINAPI GetEnvironmentStrings (void)
 
LPWSTR WINAPI GetEnvironmentStringsW (void)
 
DWORD WINAPI GetEnvironmentVariableA (LPCSTR, LPSTR, DWORD)
 
DWORD WINAPI GetEnvironmentVariableW (LPCWSTR, LPWSTR, DWORD)
 
BOOL WINAPI GetExitCodeProcess (HANDLE, PDWORD)
 
BOOL WINAPI GetExitCodeThread (HANDLE, PDWORD)
 
DWORD WINAPI GetFileAttributesA (LPCSTR lpFileName)
 
DWORD WINAPI GetFileAttributesW (LPCWSTR lpFileName)
 
BOOL WINAPI GetFileAttributesExA (LPCSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, PVOID lpFileInformation)
 
BOOL WINAPI GetFileAttributesExW (LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, PVOID lpFileInformation)
 
BOOL WINAPI GetFileInformationByHandle (HANDLE, LPBY_HANDLE_FILE_INFORMATION)
 
BOOL WINAPI GetFileSecurityA (_In_ LPCSTR lpFileName, _In_ SECURITY_INFORMATION RequestedInformation, _Out_writes_bytes_to_opt_(nLength, *lpnLengthNeeded) PSECURITY_DESCRIPTOR pSecurityDescriptor, _In_ DWORD nLength, _Out_ LPDWORD lpnLengthNeeded)
 
BOOL WINAPI GetFileSecurityW (LPCWSTR, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, DWORD, PDWORD)
 
DWORD WINAPI GetFileSize (HANDLE, PDWORD)
 
BOOL WINAPI GetFileSizeEx (HANDLE, PLARGE_INTEGER)
 
BOOL WINAPI GetFileTime (HANDLE, LPFILETIME, LPFILETIME, LPFILETIME)
 
DWORD WINAPI GetFileType (HANDLE)
 
DWORD WINAPI GetFullPathNameA (LPCSTR, DWORD, LPSTR, LPSTR *)
 
DWORD WINAPI GetFullPathNameW (LPCWSTR, DWORD, LPWSTR, LPWSTR *)
 
BOOL WINAPI GetHandleInformation (HANDLE, PDWORD)
 
BOOL WINAPI GetKernelObjectSecurity (HANDLE, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, DWORD, PDWORD)
 
DWORD WINAPI GetLastError (void)
 
DWORD WINAPI GetLengthSid (PSID)
 
void WINAPI GetLocalTime (LPSYSTEMTIME)
 
DWORD WINAPI GetLogicalDrives (void)
 
 _Out_writes_to_opt_ (nBufferLength, return+1) LPSTR lpBuffer)
 
DWORD WINAPI GetLogicalDriveStringsW (DWORD, LPWSTR)
 
BOOL WINAPI GetMailslotInfo (_In_ HANDLE, _Out_opt_ PDWORD, _Out_opt_ PDWORD, _Out_opt_ PDWORD, _Out_opt_ PDWORD)
 
DWORD WINAPI GetModuleFileNameA (HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
 
DWORD WINAPI GetModuleFileNameW (HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
 
HMODULE WINAPI GetModuleHandleA (LPCSTR)
 
HMODULE WINAPI GetModuleHandleW (LPCWSTR)
 
BOOL WINAPI GetNamedPipeHandleStateA (_In_ HANDLE hNamedPipe, _Out_opt_ LPDWORD lpState, _Out_opt_ LPDWORD lpCurInstances, _Out_opt_ LPDWORD lpMaxCollectionCount, _Out_opt_ LPDWORD lpCollectDataTimeout, _Out_writes_opt_(nMaxUserNameSize) LPSTR lpUserName, _In_ DWORD nMaxUserNameSize)
 
BOOL WINAPI GetNamedPipeHandleStateW (_In_ HANDLE hNamedPipe, _Out_opt_ LPDWORD lpState, _Out_opt_ LPDWORD lpCurInstances, _Out_opt_ LPDWORD lpMaxCollectionCount, _Out_opt_ LPDWORD lpCollectDataTimeout, _Out_writes_opt_(nMaxUserNameSize) LPWSTR lpUserName, _In_ DWORD nMaxUserNameSize)
 
BOOL WINAPI GetNamedPipeInfo (_In_ HANDLE, _Out_opt_ PDWORD, _Out_opt_ PDWORD, _Out_opt_ PDWORD, _Out_opt_ PDWORD)
 
BOOL WINAPI GetEventLogInformation (_In_ HANDLE hEventLog, _In_ DWORD dwInfoLevel, _Out_writes_bytes_to_(cbBufSize, *pcbBytesNeeded) LPVOID lpBuffer, _In_ DWORD cbBufSize, _Out_ LPDWORD pcbBytesNeeded)
 
BOOL WINAPI GetNumberOfEventLogRecords (_In_ HANDLE, _Out_ PDWORD)
 
BOOL WINAPI GetOldestEventLogRecord (_In_ HANDLE, _Out_ PDWORD)
 
BOOL WINAPI GetOverlappedResult (HANDLE, LPOVERLAPPED, PDWORD, BOOL)
 
DWORD WINAPI GetPriorityClass (HANDLE)
 
BOOL WINAPI GetPrivateObjectSecurity (PSECURITY_DESCRIPTOR, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, DWORD, PDWORD)
 
UINT WINAPI GetPrivateProfileIntA (_In_ LPCSTR, _In_ LPCSTR, _In_ INT, _In_opt_ LPCSTR)
 
UINT WINAPI GetPrivateProfileIntW (_In_ LPCWSTR, _In_ LPCWSTR, _In_ INT, _In_opt_ LPCWSTR)
 
DWORD WINAPI GetPrivateProfileSectionA (_In_ LPCSTR lpAppName, _Out_writes_to_opt_(nSize, return+1) LPSTR lpReturnedString, _In_ DWORD nSize, _In_opt_ LPCSTR lpFileName)
 
DWORD WINAPI GetPrivateProfileSectionW (_In_ LPCWSTR lpAppName, _Out_writes_to_opt_(nSize, return+1) LPWSTR lpReturnedString, _In_ DWORD nSize, _In_opt_ LPCWSTR lpFileName)
 
DWORD WINAPI GetPrivateProfileSectionNamesA (_Out_writes_to_opt_(nSize, return+1) LPSTR lpszReturnBuffer, _In_ DWORD nSize, _In_opt_ LPCSTR lpFileName)
 
DWORD WINAPI GetPrivateProfileSectionNamesW (_Out_writes_to_opt_(nSize, return+1) LPWSTR lpszReturnBuffer, _In_ DWORD nSize, _In_opt_ LPCWSTR lpFileName)
 
DWORD WINAPI GetPrivateProfileStringA (_In_opt_ LPCSTR lpAppName, _In_opt_ LPCSTR lpKeyName, _In_opt_ LPCSTR lpDefault, _Out_writes_to_opt_(nSize, return+1) LPSTR lpReturnedString, _In_ DWORD nSize, _In_opt_ LPCSTR lpFileName)
 
DWORD WINAPI GetPrivateProfileStringW (_In_opt_ LPCWSTR lpAppName, _In_opt_ LPCWSTR lpKeyName, _In_opt_ LPCWSTR lpDefault, _Out_writes_to_opt_(nSize, return+1) LPWSTR lpReturnedString, _In_ DWORD nSize, _In_opt_ LPCWSTR lpFileName)
 
BOOL WINAPI GetPrivateProfileStructA (_In_ LPCSTR lpszSection, _In_ LPCSTR lpszKey, _Out_writes_bytes_opt_(uSizeStruct) LPVOID lpStruct, _In_ UINT uSizeStruct, _In_opt_ LPCSTR szFile)
 
BOOL WINAPI GetPrivateProfileStructW (_In_ LPCWSTR lpszSection, _In_ LPCWSTR lpszKey, _Out_writes_bytes_opt_(uSizeStruct) LPVOID lpStruct, _In_ UINT uSizeStruct, _In_opt_ LPCWSTR szFile)
 
FARPROC WINAPI GetProcAddress (HINSTANCE, LPCSTR)
 
BOOL WINAPI GetProcessAffinityMask (_In_ HANDLE, _Out_ PDWORD_PTR, _Out_ PDWORD_PTR)
 
HANDLE WINAPI GetProcessHeap (VOID)
 
DWORD WINAPI GetProcessHeaps (DWORD, PHANDLE)
 
BOOL WINAPI GetProcessPriorityBoost (_In_ HANDLE, _Out_ PBOOL)
 
BOOL WINAPI GetProcessShutdownParameters (_Out_ PDWORD, _Out_ PDWORD)
 
BOOL WINAPI GetProcessTimes (HANDLE, LPFILETIME, LPFILETIME, LPFILETIME, LPFILETIME)
 
DWORD WINAPI GetProcessVersion (DWORD)
 
HWINSTA WINAPI GetProcessWindowStation (void)
 
BOOL WINAPI GetProcessWorkingSetSize (_In_ HANDLE, _Out_ PSIZE_T, _Out_ PSIZE_T)
 
UINT WINAPI GetProfileIntA (_In_ LPCSTR, _In_ LPCSTR, _In_ INT)
 
UINT WINAPI GetProfileIntW (_In_ LPCWSTR, _In_ LPCWSTR, _In_ INT)
 
DWORD WINAPI GetProfileSectionA (_In_ LPCSTR lpAppName, _Out_writes_to_opt_(nSize, return+1) LPSTR lpReturnedString, _In_ DWORD nSize)
 
DWORD WINAPI GetProfileSectionW (_In_ LPCWSTR lpAppName, _Out_writes_to_opt_(nSize, return+1) LPWSTR lpReturnedString, _In_ DWORD nSize)
 
DWORD WINAPI GetProfileStringA (_In_opt_ LPCSTR lpAppName, _In_opt_ LPCSTR lpKeyName, _In_opt_ LPCSTR lpDefault, _Out_writes_to_opt_(nSize, return+1) LPSTR lpReturnedString, _In_ DWORD nSize)
 
DWORD WINAPI GetProfileStringW (_In_opt_ LPCWSTR lpAppName, _In_opt_ LPCWSTR lpKeyName, _In_opt_ LPCWSTR lpDefault, _Out_writes_to_opt_(nSize, return+1) LPWSTR lpReturnedString, _In_ DWORD nSize)
 
BOOL WINAPI GetQueuedCompletionStatus (HANDLE, PDWORD, PULONG_PTR, LPOVERLAPPED *, DWORD)
 
BOOL WINAPI GetSecurityDescriptorControl (PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR_CONTROL, PDWORD)
 
BOOL WINAPI GetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR, LPBOOL, PACL *, LPBOOL)
 
BOOL WINAPI GetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR, PSID *, LPBOOL)
 
DWORD WINAPI GetSecurityDescriptorLength (PSECURITY_DESCRIPTOR)
 
BOOL WINAPI GetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR, PSID *, LPBOOL)
 
DWORD WINAPI GetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR, PUCHAR)
 
BOOL WINAPI GetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR, LPBOOL, PACL *, LPBOOL)
 
 _Success_ (return !=0 &&return< cchBuffer) DWORD WINAPI GetShortPathNameA(_In_ LPCSTR lpszLongPath
 
 _Out_writes_to_opt_ (cchBuffer, return+1) LPSTR lpszShortPath
 
DWORD WINAPI GetShortPathNameW (LPCWSTR, LPWSTR, DWORD)
 
PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority (PSID)
 
DWORD WINAPI GetSidLengthRequired (UCHAR)
 
PDWORD WINAPI GetSidSubAuthority (PSID, DWORD)
 
PUCHAR WINAPI GetSidSubAuthorityCount (PSID)
 
VOID WINAPI GetStartupInfoA (_Out_ LPSTARTUPINFOA)
 
VOID WINAPI GetStartupInfoW (LPSTARTUPINFOW)
 
HANDLE WINAPI GetStdHandle (_In_ DWORD)
 
UINT WINAPI GetSystemDirectoryA (LPSTR, UINT)
 
UINT WINAPI GetSystemDirectoryW (LPWSTR, UINT)
 
VOID WINAPI GetSystemInfo (LPSYSTEM_INFO)
 
BOOL WINAPI GetSystemPowerStatus (_Out_ LPSYSTEM_POWER_STATUS)
 
VOID WINAPI GetSystemTime (LPSYSTEMTIME lpSystemTime)
 
BOOL WINAPI GetSystemTimeAdjustment (PDWORD, PDWORD, PBOOL)
 
void WINAPI GetSystemTimeAsFileTime (LPFILETIME)
 
DWORD WINAPI GetTapeParameters (_In_ HANDLE hDevice, _In_ DWORD dwOperation, _Inout_ LPDWORD lpdwSize, _Out_writes_bytes_(*lpdwSize) LPVOID lpTapeInformation)
 
DWORD WINAPI GetTapePosition (_In_ HANDLE, _In_ DWORD, _Out_ PDWORD, _Out_ PDWORD, _Out_ PDWORD)
 
DWORD WINAPI GetTapeStatus (_In_ HANDLE)
 
UINT WINAPI GetTempFileNameA (_In_ LPCSTR lpPathName, _In_ LPCSTR lpPrefixString, _In_ UINT uUnique, _Out_writes_(MAX_PATH) LPSTR lpTempFileName)
 
UINT WINAPI GetTempFileNameW (LPCWSTR, LPCWSTR, UINT, LPWSTR)
 
DWORD WINAPI GetTempPathA (_In_ DWORD nBufferLength, _Out_writes_to_opt_(nBufferLength, return+1) LPSTR lpBuffer)
 
DWORD WINAPI GetTempPathW (DWORD, LPWSTR)
 
BOOL WINAPI GetThreadContext (HANDLE, LPCONTEXT)
 
int WINAPI GetThreadPriority (HANDLE)
 
BOOL WINAPI GetThreadPriorityBoost (HANDLE, PBOOL)
 
BOOL WINAPI GetThreadSelectorEntry (_In_ HANDLE, _In_ DWORD, _Out_ LPLDT_ENTRY)
 
BOOL WINAPI GetThreadTimes (HANDLE, LPFILETIME, LPFILETIME, LPFILETIME, LPFILETIME)
 
DWORD WINAPI GetTickCount (VOID)
 
DWORD WINAPI GetThreadId (HANDLE)
 
DWORD WINAPI GetTimeZoneInformation (LPTIME_ZONE_INFORMATION)
 
BOOL WINAPI GetTokenInformation (HANDLE, TOKEN_INFORMATION_CLASS, PVOID, DWORD, PDWORD)
 
BOOL WINAPI GetUserNameA (_Out_writes_to_opt_(*pcbBuffer, *pcbBuffer) LPSTR lpBuffer, _Inout_ LPDWORD pcbBuffer)
 
BOOL WINAPI GetUserNameW (_Out_writes_to_opt_(*pcbBuffer, *pcbBuffer) LPWSTR lpBuffer, _Inout_ LPDWORD pcbBuffer)
 
DWORD WINAPI GetVersion (void)
 
BOOL WINAPI GetVersionExA (LPOSVERSIONINFOA)
 
BOOL WINAPI GetVersionExW (LPOSVERSIONINFOW)
 
BOOL WINAPI GetVolumeInformationA (_In_opt_ LPCSTR lpRootPathName, _Out_writes_opt_(nVolumeNameSize) LPSTR lpVolumeNameBuffer, _In_ DWORD nVolumeNameSize, _Out_opt_ LPDWORD lpVolumeSerialNumber, _Out_opt_ LPDWORD lpMaximumComponentLength, _Out_opt_ LPDWORD lpFileSystemFlags, _Out_writes_opt_(nFileSystemNameSize) LPSTR lpFileSystemNameBuffer, _In_ DWORD nFileSystemNameSize)
 
BOOL WINAPI GetVolumeInformationW (LPCWSTR, LPWSTR, DWORD, PDWORD, PDWORD, PDWORD, LPWSTR, DWORD)
 
UINT WINAPI GetWindowsDirectoryA (LPSTR, UINT)
 
UINT WINAPI GetWindowsDirectoryW (LPWSTR, UINT)
 
DWORD WINAPI GetWindowThreadProcessId (HWND hWnd, PDWORD lpdwProcessId)
 
UINT WINAPI GetWriteWatch (DWORD, PVOID, SIZE_T, PVOID *, PULONG_PTR, PULONG)
 
ATOM WINAPI GlobalAddAtomA (_In_opt_ LPCSTR)
 
ATOM WINAPI GlobalAddAtomW (_In_opt_ LPCWSTR)
 
HGLOBAL WINAPI GlobalAlloc (UINT, SIZE_T)
 
SIZE_T WINAPI GlobalCompact (_In_ DWORD)
 
ATOM WINAPI GlobalDeleteAtom (_In_ ATOM)
 
ATOM WINAPI GlobalFindAtomA (_In_opt_ LPCSTR)
 
ATOM WINAPI GlobalFindAtomW (_In_opt_ LPCWSTR)
 
VOID WINAPI GlobalFix (_In_ HGLOBAL)
 
UINT WINAPI GlobalFlags (_In_ HGLOBAL)
 
HGLOBAL WINAPI GlobalFree (HGLOBAL)
 
UINT WINAPI GlobalGetAtomNameA (_In_ ATOM nAtom, _Out_writes_to_(nSize, return+1) LPSTR lpBuffer, _In_ int nSize)
 
UINT WINAPI GlobalGetAtomNameW (_In_ ATOM nAtom, _Out_writes_to_(nSize, return+1) LPWSTR lpBuffer, _In_ int nSize)
 
_Ret_maybenull_ HGLOBAL WINAPI GlobalHandle (_In_ LPCVOID)
 
_Ret_maybenull_ LPVOID WINAPI GlobalLock (_In_ HGLOBAL)
 
VOID WINAPI GlobalMemoryStatus (_Out_ LPMEMORYSTATUS)
 
HGLOBAL WINAPI GlobalReAlloc (HGLOBAL, SIZE_T, UINT)
 
SIZE_T WINAPI GlobalSize (_In_ HGLOBAL)
 
VOID WINAPI GlobalUnfix (_In_ HGLOBAL)
 
BOOL WINAPI GlobalUnlock (_In_ HGLOBAL)
 
BOOL WINAPI GlobalUnWire (_In_ HGLOBAL)
 
PVOID WINAPI GlobalWire (_In_ HGLOBAL)
 
PVOID WINAPI HeapAlloc (HANDLE, DWORD, SIZE_T)
 
SIZE_T WINAPI HeapCompact (HANDLE, DWORD)
 
HANDLE WINAPI HeapCreate (DWORD, SIZE_T, SIZE_T)
 
BOOL WINAPI HeapDestroy (HANDLE)
 
BOOL WINAPI HeapFree (HANDLE, DWORD, PVOID)
 
BOOL WINAPI HeapLock (HANDLE)
 
PVOID WINAPI HeapReAlloc (HANDLE, DWORD, PVOID, SIZE_T)
 
SIZE_T WINAPI HeapSize (HANDLE, DWORD, LPCVOID)
 
BOOL WINAPI HeapUnlock (HANDLE)
 
BOOL WINAPI HeapValidate (HANDLE, DWORD, LPCVOID)
 
BOOL WINAPI HeapWalk (HANDLE, LPPROCESS_HEAP_ENTRY)
 
BOOL WINAPI ImpersonateAnonymousToken (HANDLE)
 
BOOL WINAPI ImpersonateLoggedOnUser (HANDLE)
 
BOOL WINAPI ImpersonateNamedPipeClient (HANDLE)
 
BOOL WINAPI ImpersonateSelf (SECURITY_IMPERSONATION_LEVEL)
 
BOOL WINAPI InitAtomTable (_In_ DWORD)
 
BOOL WINAPI InitializeAcl (PACL, DWORD, DWORD)
 
VOID WINAPI InitializeCriticalSection (LPCRITICAL_SECTION)
 
BOOL WINAPI InitializeCriticalSectionAndSpinCount (LPCRITICAL_SECTION, DWORD)
 
DWORD WINAPI SetCriticalSectionSpinCount (LPCRITICAL_SECTION, DWORD)
 
BOOL WINAPI InitializeSecurityDescriptor (PSECURITY_DESCRIPTOR, DWORD)
 
BOOL WINAPI InitializeSid (PSID, PSID_IDENTIFIER_AUTHORITY, BYTE)
 
BOOL WINAPI IsBadCodePtr (_In_opt_ FARPROC)
 
BOOL WINAPI IsBadHugeReadPtr (_In_opt_ CONST VOID *, _In_ UINT_PTR)
 
BOOL WINAPI IsBadHugeWritePtr (_In_opt_ PVOID, _In_ UINT_PTR)
 
BOOL WINAPI IsBadReadPtr (_In_opt_ CONST VOID *, _In_ UINT_PTR)
 
BOOL WINAPI IsBadStringPtrA (_In_opt_ LPCSTR, _In_ UINT_PTR)
 
BOOL WINAPI IsBadStringPtrW (_In_opt_ LPCWSTR, _In_ UINT_PTR)
 
BOOL WINAPI IsBadWritePtr (_In_opt_ PVOID, _In_ UINT_PTR)
 
BOOL WINAPI IsDebuggerPresent (void)
 
BOOL WINAPI IsProcessorFeaturePresent (DWORD)
 
BOOL WINAPI IsSystemResumeAutomatic (void)
 
BOOL WINAPI IsTextUnicode (_In_reads_bytes_(iSize) CONST VOID *lpv, _In_ int iSize, _Inout_opt_ LPINT lpiResult)
 
BOOL WINAPI IsValidAcl (PACL)
 
BOOL WINAPI IsValidSecurityDescriptor (PSECURITY_DESCRIPTOR)
 
BOOL WINAPI IsValidSid (PSID)
 
void WINAPI LeaveCriticalSection (LPCRITICAL_SECTION)
 
_Ret_maybenull_ HINSTANCE WINAPI LoadLibraryA (_In_ LPCSTR)
 
_Ret_maybenull_ HINSTANCE WINAPI LoadLibraryW (_In_ LPCWSTR)
 
HINSTANCE WINAPI LoadLibraryExA (LPCSTR, HANDLE, DWORD)
 
HINSTANCE WINAPI LoadLibraryExW (LPCWSTR, HANDLE, DWORD)
 
DWORD WINAPI LoadModule (_In_ LPCSTR, _In_ PVOID)
 
HGLOBAL WINAPI LoadResource (HINSTANCE, HRSRC)
 
HLOCAL WINAPI LocalAlloc (UINT, SIZE_T)
 
SIZE_T WINAPI LocalCompact (_In_ UINT)
 
BOOL WINAPI LocalFileTimeToFileTime (CONST FILETIME *, LPFILETIME)
 
UINT WINAPI LocalFlags (_In_ HLOCAL)
 
HLOCAL WINAPI LocalFree (HLOCAL)
 
_Ret_maybenull_ HLOCAL WINAPI LocalHandle (_In_ LPCVOID)
 
PVOID WINAPI LocalLock (HLOCAL)
 
HLOCAL WINAPI LocalReAlloc (HLOCAL, SIZE_T, UINT)
 
SIZE_T WINAPI LocalShrink (_In_ HLOCAL, _In_ UINT)
 
SIZE_T WINAPI LocalSize (_In_ HLOCAL)
 
BOOL WINAPI LocalUnlock (HLOCAL)
 
BOOL WINAPI LockFile (HANDLE, DWORD, DWORD, DWORD, DWORD)
 
BOOL WINAPI LockFileEx (HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED)
 
PVOID WINAPI LockResource (HGLOBAL)
 
BOOL WINAPI LogonUserA (_In_ LPSTR, _In_opt_ LPSTR, _In_opt_ LPSTR, _In_ DWORD, _In_ DWORD, _Outptr_ PHANDLE)
 
BOOL WINAPI LogonUserW (_In_ LPWSTR, _In_opt_ LPWSTR, _In_opt_ LPWSTR, _In_ DWORD, _In_ DWORD, _Outptr_ PHANDLE)
 
BOOL WINAPI LookupPrivilegeValueA (_In_opt_ LPCSTR, _In_ LPCSTR, _Out_ PLUID)
 
BOOL WINAPI LookupPrivilegeValueW (_In_opt_ LPCWSTR, _In_ LPCWSTR, _Out_ PLUID)
 
LPSTR WINAPI lstrcatA (_Inout_updates_z_(_String_length_(lpString1)+_String_length_(lpString2)+1) LPSTR lpString1, _In_ LPCSTR lpString2)
 
LPWSTR WINAPI lstrcatW (_Inout_updates_z_(_String_length_(lpString1)+_String_length_(lpString2)+1) LPWSTR lpString1, _In_ LPCWSTR lpString2)
 
int WINAPI lstrcmpA (LPCSTR, LPCSTR)
 
int WINAPI lstrcmpiA (LPCSTR, LPCSTR)
 
int WINAPI lstrcmpiW (LPCWSTR, LPCWSTR)
 
int WINAPI lstrcmpW (LPCWSTR, LPCWSTR)
 
LPSTR WINAPI lstrcpyA (_Out_writes_(_String_length_(lpString2)+1) LPSTR lpString1, _In_ LPCSTR lpString2)
 
LPWSTR WINAPI lstrcpyW (_Out_writes_(_String_length_(lpString2)+1) LPWSTR lpString1, _In_ LPCWSTR lpString2)
 
LPSTR WINAPI lstrcpynA (LPSTR, LPCSTR, int)
 
LPWSTR WINAPI lstrcpynW (LPWSTR, LPCWSTR, int)
 
int WINAPI lstrlenA (LPCSTR)
 
int WINAPI lstrlenW (LPCWSTR)
 
BOOL WINAPI MakeAbsoluteSD (PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR, PDWORD, PACL, PDWORD, PACL, PDWORD, PSID, PDWORD, PSID, PDWORD)
 
BOOL WINAPI MakeSelfRelativeSD (PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR, PDWORD)
 
VOID WINAPI MapGenericMask (PDWORD, PGENERIC_MAPPING)
 
PVOID WINAPI MapViewOfFile (HANDLE, DWORD, DWORD, DWORD, SIZE_T)
 
PVOID WINAPI MapViewOfFileEx (HANDLE, DWORD, DWORD, DWORD, SIZE_T, PVOID)
 
BOOL WINAPI MoveFileA (_In_ LPCSTR, _In_ LPCSTR)
 
BOOL WINAPI MoveFileW (_In_ LPCWSTR, _In_ LPCWSTR)
 
BOOL WINAPI MoveFileExA (_In_ LPCSTR, _In_opt_ LPCSTR, _In_ DWORD)
 
BOOL WINAPI MoveFileExW (_In_ LPCWSTR, _In_opt_ LPCWSTR, _In_ DWORD)
 
BOOL WINAPI MoveFileWithProgressA (_In_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPPROGRESS_ROUTINE, _In_opt_ LPVOID, _In_ DWORD)
 
BOOL WINAPI MoveFileWithProgressW (_In_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPPROGRESS_ROUTINE, _In_opt_ LPVOID, _In_ DWORD)
 
int WINAPI MulDiv (_In_ int, _In_ int, _In_ int)
 
BOOL WINAPI NotifyChangeEventLog (_In_ HANDLE, _In_ HANDLE)
 
BOOL WINAPI ObjectCloseAuditAlarmA (_In_ LPCSTR, _In_ PVOID, _In_ BOOL)
 
BOOL WINAPI ObjectCloseAuditAlarmW (LPCWSTR, PVOID, BOOL)
 
BOOL WINAPI ObjectDeleteAuditAlarmA (_In_ LPCSTR, _In_ PVOID, _In_ BOOL)
 
BOOL WINAPI ObjectDeleteAuditAlarmW (LPCWSTR, PVOID, BOOL)
 
BOOL WINAPI ObjectOpenAuditAlarmA (_In_ LPCSTR, _In_ PVOID, _In_ LPSTR, _In_opt_ LPSTR, _In_ PSECURITY_DESCRIPTOR, _In_ HANDLE, _In_ DWORD, _In_ DWORD, _In_opt_ PPRIVILEGE_SET, _In_ BOOL, _In_ BOOL, _Out_ PBOOL)
 
BOOL WINAPI ObjectOpenAuditAlarmW (LPCWSTR, PVOID, LPWSTR, LPWSTR, PSECURITY_DESCRIPTOR, HANDLE, DWORD, DWORD, PPRIVILEGE_SET, BOOL, BOOL, PBOOL)
 
BOOL WINAPI ObjectPrivilegeAuditAlarmA (_In_ LPCSTR, _In_ PVOID, _In_ HANDLE, _In_ DWORD, _In_ PPRIVILEGE_SET, _In_ BOOL)
 
BOOL WINAPI ObjectPrivilegeAuditAlarmW (LPCWSTR, PVOID, HANDLE, DWORD, PPRIVILEGE_SET, BOOL)
 
HANDLE WINAPI OpenBackupEventLogA (_In_opt_ LPCSTR, _In_ LPCSTR)
 
HANDLE WINAPI OpenBackupEventLogW (_In_opt_ LPCWSTR, _In_ LPCWSTR)
 
HANDLE WINAPI OpenEventA (DWORD, BOOL, LPCSTR)
 
HANDLE WINAPI OpenEventLogA (_In_opt_ LPCSTR, _In_ LPCSTR)
 
HANDLE WINAPI OpenEventLogW (_In_opt_ LPCWSTR, _In_ LPCWSTR)
 
HANDLE WINAPI OpenEventW (DWORD, BOOL, LPCWSTR)
 
HFILE WINAPI OpenFile (_In_ LPCSTR, _Inout_ LPOFSTRUCT, _In_ UINT)
 
HANDLE WINAPI OpenFileMappingA (_In_ DWORD, _In_ BOOL, _In_ LPCSTR)
 
HANDLE WINAPI OpenFileMappingW (DWORD, BOOL, LPCWSTR)
 
_Ret_maybenull_ HANDLE WINAPI OpenMutexA (_In_ DWORD, _In_ BOOL, _In_ LPCSTR)
 
HANDLE WINAPI OpenMutexW (DWORD, BOOL, LPCWSTR)
 
HANDLE WINAPI OpenProcess (DWORD, BOOL, DWORD)
 
BOOL WINAPI OpenProcessToken (HANDLE, DWORD, PHANDLE)
 
_Ret_maybenull_ HANDLE WINAPI OpenSemaphoreA (_In_ DWORD, _In_ BOOL, _In_ LPCSTR)
 
HANDLE WINAPI OpenSemaphoreW (DWORD, BOOL, LPCWSTR)
 
BOOL WINAPI OpenThreadToken (HANDLE, DWORD, BOOL, PHANDLE)
 
_Ret_maybenull_ HANDLE WINAPI OpenWaitableTimerA (_In_ DWORD, _In_ BOOL, _In_ LPCSTR)
 
HANDLE WINAPI OpenWaitableTimerW (DWORD, BOOL, LPCWSTR)
 
WINBASEAPI void WINAPI OutputDebugStringA (LPCSTR)
 
WINBASEAPI void WINAPI OutputDebugStringW (LPCWSTR)
 
BOOL WINAPI PeekNamedPipe (HANDLE, PVOID, DWORD, PDWORD, PDWORD, PDWORD)
 
BOOL WINAPI PostQueuedCompletionStatus (HANDLE, DWORD, ULONG_PTR, LPOVERLAPPED)
 
DWORD WINAPI PrepareTape (_In_ HANDLE, _In_ DWORD, _In_ BOOL)
 
BOOL WINAPI PrivilegeCheck (HANDLE, PPRIVILEGE_SET, PBOOL)
 
BOOL WINAPI PrivilegedServiceAuditAlarmA (_In_ LPCSTR, _In_ LPCSTR, _In_ HANDLE, _In_ PPRIVILEGE_SET, _In_ BOOL)
 
BOOL WINAPI PrivilegedServiceAuditAlarmW (LPCWSTR, LPCWSTR, HANDLE, PPRIVILEGE_SET, BOOL)
 
BOOL WINAPI PulseEvent (HANDLE)
 
BOOL WINAPI PurgeComm (_In_ HANDLE, _In_ DWORD)
 
DWORD WINAPI QueryDosDeviceA (_In_opt_ LPCSTR lpDeviceName, _Out_writes_to_opt_(ucchMax, return) LPSTR lpTargetPath, _In_ DWORD ucchMax)
 
DWORD WINAPI QueryDosDeviceW (LPCWSTR, LPWSTR, DWORD)
 
BOOL WINAPI QueryPerformanceCounter (PLARGE_INTEGER)
 
BOOL WINAPI QueryPerformanceFrequency (PLARGE_INTEGER)
 
DWORD WINAPI QueueUserAPC (PAPCFUNC, HANDLE, ULONG_PTR)
 
void WINAPI RaiseException (DWORD, DWORD, DWORD, const ULONG_PTR *)
 
BOOL WINAPI QueryInformationJobObject (_In_opt_ HANDLE hJob, _In_ JOBOBJECTINFOCLASS JobObjectInformationClass, _Out_writes_bytes_to_(cbJobObjectInformationLength, *lpReturnLength) LPVOID lpJobObjectInformation, _In_ DWORD cbJobObjectInformationLength, _Out_opt_ LPDWORD lpReturnLength)
 
BOOL WINAPI ReadDirectoryChangesW (_In_ HANDLE hDirectory, _Out_writes_bytes_to_(nBufferLength, *lpBytesReturned) LPVOID lpBuffer, _In_ DWORD nBufferLength, _In_ BOOL bWatchSubtree, _In_ DWORD dwNotifyFilter, _Out_opt_ LPDWORD lpBytesReturned, _Inout_opt_ LPOVERLAPPED lpOverlapped, _In_opt_ LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 
BOOL WINAPI ReadEventLogA (_In_ HANDLE hEventLog, _In_ DWORD dwReadFlags, _In_ DWORD dwRecordOffset, _Out_writes_bytes_to_(nNumberOfBytesToRead, *pnBytesRead) LPVOID lpBuffer, _In_ DWORD nNumberOfBytesToRead, _Out_ DWORD *pnBytesRead, _Out_ DWORD *pnMinNumberOfBytesNeeded)
 
BOOL WINAPI ReadEventLogW (_In_ HANDLE hEventLog, _In_ DWORD dwReadFlags, _In_ DWORD dwRecordOffset, _Out_writes_bytes_to_(nNumberOfBytesToRead, *pnBytesRead) LPVOID lpBuffer, _In_ DWORD nNumberOfBytesToRead, _Out_ DWORD *pnBytesRead, _Out_ DWORD *pnMinNumberOfBytesNeeded)
 
BOOL WINAPI ReadFile (HANDLE, PVOID, DWORD, PDWORD, LPOVERLAPPED)
 
BOOL WINAPI ReadFileEx (HANDLE, PVOID, DWORD, LPOVERLAPPED, LPOVERLAPPED_COMPLETION_ROUTINE)
 
BOOL WINAPI ReadFileScatter (HANDLE, FILE_SEGMENT_ELEMENT *, DWORD, LPDWORD, LPOVERLAPPED)
 
BOOL WINAPI ReadProcessMemory (HANDLE, LPCVOID, LPVOID, SIZE_T, PSIZE_T)
 
HANDLE WINAPI RegisterEventSourceA (_In_opt_ LPCSTR, _In_ LPCSTR)
 
HANDLE WINAPI RegisterEventSourceW (_In_opt_ LPCWSTR, _In_ LPCWSTR)
 
BOOL WINAPI ReleaseMutex (HANDLE)
 
BOOL WINAPI ReleaseSemaphore (HANDLE, LONG, LPLONG)
 
BOOL WINAPI RemoveDirectoryA (LPCSTR)
 
BOOL WINAPI RemoveDirectoryW (LPCWSTR)
 
BOOL WINAPI ReportEventA (_In_ HANDLE hEventLog, _In_ WORD wType, _In_ WORD wCategory, _In_ DWORD dwEventID, _In_opt_ PSID lpUserSid, _In_ WORD wNumStrings, _In_ DWORD dwDataSize, _In_reads_opt_(wNumStrings) LPCSTR *lpStrings, _In_reads_bytes_opt_(dwDataSize) LPVOID lpRawData)
 
BOOL WINAPI ReportEventW (_In_ HANDLE hEventLog, _In_ WORD wType, _In_ WORD wCategory, _In_ DWORD dwEventID, _In_opt_ PSID lpUserSid, _In_ WORD wNumStrings, _In_ DWORD dwDataSize, _In_reads_opt_(wNumStrings) LPCWSTR *lpStrings, _In_reads_bytes_opt_(dwDataSize) LPVOID lpRawData)
 
BOOL WINAPI ResetEvent (HANDLE)
 
UINT WINAPI ResetWriteWatch (LPVOID, SIZE_T)
 
DWORD WINAPI ResumeThread (HANDLE)
 
BOOL WINAPI RevertToSelf (void)
 
DWORD WINAPI SearchPathW (_In_opt_ LPCWSTR lpPath, _In_ LPCWSTR lpFileName, _In_opt_ LPCWSTR lpExtension, _In_ DWORD nBufferLength, _Out_writes_to_opt_(nBufferLength, return+1) LPWSTR lpBuffer, _Out_opt_ LPWSTR *lpFilePart)
 
BOOL WINAPI SetAclInformation (PACL, PVOID, DWORD, ACL_INFORMATION_CLASS)
 
BOOL WINAPI SetCommBreak (_In_ HANDLE)
 
BOOL WINAPI SetCommConfig (_In_ HANDLE hCommDev, _In_reads_bytes_(dwSize) LPCOMMCONFIG lpCC, _In_ DWORD dwSize)
 
BOOL WINAPI SetCommMask (_In_ HANDLE, _In_ DWORD)
 
BOOL WINAPI SetCommState (_In_ HANDLE, _In_ LPDCB)
 
BOOL WINAPI SetCommTimeouts (_In_ HANDLE, _In_ LPCOMMTIMEOUTS)
 
BOOL WINAPI SetComputerNameA (_In_ LPCSTR)
 
BOOL WINAPI SetComputerNameW (_In_ LPCWSTR)
 
BOOL WINAPI SetCurrentDirectoryA (LPCSTR)
 
BOOL WINAPI SetCurrentDirectoryW (LPCWSTR)
 
BOOL WINAPI SetDefaultCommConfigA (_In_ LPCSTR lpszName, _In_reads_bytes_(dwSize) LPCOMMCONFIG lpCC, _In_ DWORD dwSize)
 
BOOL WINAPI SetDefaultCommConfigW (_In_ LPCWSTR lpszName, _In_reads_bytes_(dwSize) LPCOMMCONFIG lpCC, _In_ DWORD dwSize)
 
BOOL WINAPI SetEndOfFile (HANDLE)
 
BOOL WINAPI SetEnvironmentVariableA (LPCSTR, LPCSTR)
 
BOOL WINAPI SetEnvironmentVariableW (LPCWSTR, LPCWSTR)
 
UINT WINAPI SetErrorMode (UINT)
 
BOOL WINAPI SetEvent (HANDLE)
 
VOID WINAPI SetFileApisToANSI (void)
 
VOID WINAPI SetFileApisToOEM (void)
 
BOOL WINAPI SetFileAttributesA (LPCSTR lpFileName, DWORD dwFileAttributes)
 
BOOL WINAPI SetFileAttributesW (LPCWSTR lpFileName, DWORD dwFileAttributes)
 
DWORD WINAPI SetFilePointer (HANDLE, LONG, PLONG, DWORD)
 
BOOL WINAPI SetFilePointerEx (HANDLE, LARGE_INTEGER, PLARGE_INTEGER, DWORD)
 
BOOL WINAPI SetFileSecurityA (_In_ LPCSTR, _In_ SECURITY_INFORMATION, _In_ PSECURITY_DESCRIPTOR)
 
BOOL WINAPI SetFileSecurityW (LPCWSTR, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR)
 
BOOL WINAPI SetFileTime (HANDLE, const FILETIME *, const FILETIME *, const FILETIME *)
 
UINT WINAPI SetHandleCount (UINT)
 
BOOL WINAPI SetHandleInformation (HANDLE, DWORD, DWORD)
 
BOOL WINAPI SetInformationJobObject (_In_ HANDLE hJob, _In_ JOBOBJECTINFOCLASS JobObjectInformationClass, _In_reads_bytes_(cbJobObjectInformationLength) LPVOID lpJobObjectInformation, _In_ DWORD cbJobObjectInformationLength)
 
BOOL WINAPI SetKernelObjectSecurity (HANDLE, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR)
 
void WINAPI SetLastError (DWORD)
 
void WINAPI SetLastErrorEx (DWORD, DWORD)
 
BOOL WINAPI SetLocalTime (const SYSTEMTIME *)
 
BOOL WINAPI SetMailslotInfo (_In_ HANDLE, _In_ DWORD)
 
BOOL WINAPI SetNamedPipeHandleState (HANDLE, PDWORD, PDWORD, PDWORD)
 
BOOL WINAPI SetPriorityClass (HANDLE, DWORD)
 
BOOL WINAPI SetPrivateObjectSecurity (SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR *, PGENERIC_MAPPING, HANDLE)
 
BOOL WINAPI SetProcessAffinityMask (_In_ HANDLE, _In_ DWORD_PTR)
 
BOOL WINAPI SetProcessPriorityBoost (_In_ HANDLE, _In_ BOOL)
 
BOOL WINAPI SetProcessShutdownParameters (DWORD, DWORD)
 
BOOL WINAPI SetProcessWorkingSetSize (_In_ HANDLE, _In_ SIZE_T, _In_ SIZE_T)
 
BOOL WINAPI SetSecurityDescriptorControl (PSECURITY_DESCRIPTOR, SECURITY_DESCRIPTOR_CONTROL, SECURITY_DESCRIPTOR_CONTROL)
 
BOOL WINAPI SetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR, BOOL, PACL, BOOL)
 
BOOL WINAPI SetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR, PSID, BOOL)
 
BOOL WINAPI SetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR, PSID, BOOL)
 
DWORD WINAPI SetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR, PUCHAR)
 
BOOL WINAPI SetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR, BOOL, PACL, BOOL)
 
BOOL WINAPI SetStdHandle (_In_ DWORD, _In_ HANDLE)
 
BOOL WINAPI SetSystemPowerState (_In_ BOOL, _In_ BOOL)
 
BOOL WINAPI SetSystemTime (const SYSTEMTIME *)
 
BOOL WINAPI SetSystemTimeAdjustment (_In_ DWORD, _In_ BOOL)
 
DWORD WINAPI SetTapeParameters (_In_ HANDLE, _In_ DWORD, _In_ PVOID)
 
DWORD WINAPI SetTapePosition (_In_ HANDLE, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ BOOL)
 
DWORD_PTR WINAPI SetThreadAffinityMask (_In_ HANDLE, _In_ DWORD_PTR)
 
BOOL WINAPI SetThreadContext (HANDLE, const CONTEXT *)
 
DWORD WINAPI SetThreadIdealProcessor (_In_ HANDLE, _In_ DWORD)
 
BOOL WINAPI SetThreadPriority (HANDLE, int)
 
BOOL WINAPI SetThreadPriorityBoost (HANDLE, BOOL)
 
BOOL WINAPI SetThreadToken (PHANDLE, HANDLE)
 
BOOL WINAPI SetTimeZoneInformation (const TIME_ZONE_INFORMATION *)
 
BOOL WINAPI SetTokenInformation (HANDLE, TOKEN_INFORMATION_CLASS, PVOID, DWORD)
 
LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter (LPTOP_LEVEL_EXCEPTION_FILTER)
 
BOOL WINAPI SetupComm (_In_ HANDLE, _In_ DWORD, _In_ DWORD)
 
BOOL WINAPI SetVolumeLabelA (_In_opt_ LPCSTR, _In_opt_ LPCSTR)
 
BOOL WINAPI SetVolumeLabelW (_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
 
BOOL WINAPI SetWaitableTimer (HANDLE, const LARGE_INTEGER *, LONG, PTIMERAPCROUTINE, PVOID, BOOL)
 
DWORD WINAPI SignalObjectAndWait (_In_ HANDLE, _In_ HANDLE, _In_ DWORD, _In_ BOOL)
 
DWORD WINAPI SizeofResource (HINSTANCE, HRSRC)
 
WINBASEAPI void WINAPI Sleep (DWORD)
 
DWORD WINAPI SleepEx (DWORD, BOOL)
 
DWORD WINAPI SuspendThread (HANDLE)
 
void WINAPI SwitchToFiber (_In_ PVOID)
 
BOOL WINAPI SwitchToThread (void)
 
BOOL WINAPI SystemTimeToFileTime (const SYSTEMTIME *, LPFILETIME)
 
BOOL WINAPI SystemTimeToTzSpecificLocalTime (CONST TIME_ZONE_INFORMATION *, CONST SYSTEMTIME *, LPSYSTEMTIME)
 
BOOL WINAPI TerminateProcess (HANDLE hProcess, UINT uExitCode)
 
BOOL WINAPI TerminateThread (HANDLE hThread, DWORD dwExitCode)
 
DWORD WINAPI TlsAlloc (VOID)
 
BOOL WINAPI TlsFree (DWORD)
 
PVOID WINAPI TlsGetValue (DWORD)
 
BOOL WINAPI TlsSetValue (DWORD, PVOID)
 
BOOL WINAPI TransactNamedPipe (HANDLE, PVOID, DWORD, PVOID, DWORD, PDWORD, LPOVERLAPPED)
 
BOOL WINAPI TransmitCommChar (_In_ HANDLE, _In_ char)
 
BOOL WINAPI TryEnterCriticalSection (LPCRITICAL_SECTION)
 
BOOL WINAPI TzSpecificLocalTimeToSystemTime (LPTIME_ZONE_INFORMATION, LPSYSTEMTIME, LPSYSTEMTIME)
 
LONG WINAPI UnhandledExceptionFilter (LPEXCEPTION_POINTERS)
 
BOOL WINAPI UnlockFile (HANDLE, DWORD, DWORD, DWORD, DWORD)
 
BOOL WINAPI UnlockFileEx (HANDLE, DWORD, DWORD, DWORD, LPOVERLAPPED)
 
BOOL WINAPI UnmapViewOfFile (LPCVOID)
 
BOOL WINAPI UpdateResourceA (_In_ HANDLE hUpdate, _In_ LPCSTR lpType, _In_ LPCSTR lpName, _In_ WORD wLanguage, _In_reads_bytes_opt_(cb) LPVOID lpData, _In_ DWORD cb)
 
BOOL WINAPI UpdateResourceW (_In_ HANDLE hUpdate, _In_ LPCWSTR lpType, _In_ LPCWSTR lpName, _In_ WORD wLanguage, _In_reads_bytes_opt_(cb) LPVOID lpData, _In_ DWORD cb)
 
BOOL WINAPI VerifyVersionInfoA (_Inout_ LPOSVERSIONINFOEXA, _In_ DWORD, _In_ DWORDLONG)
 
BOOL WINAPI VerifyVersionInfoW (_Inout_ LPOSVERSIONINFOEXW, _In_ DWORD, _In_ DWORDLONG)
 
PVOID WINAPI VirtualAlloc (PVOID, SIZE_T, DWORD, DWORD)
 
PVOID WINAPI VirtualAllocEx (HANDLE, PVOID, SIZE_T, DWORD, DWORD)
 
BOOL WINAPI VirtualFree (PVOID, SIZE_T, DWORD)
 
BOOL WINAPI VirtualFreeEx (HANDLE, PVOID, SIZE_T, DWORD)
 
BOOL WINAPI VirtualLock (PVOID, SIZE_T)
 
BOOL WINAPI VirtualProtect (PVOID, SIZE_T, DWORD, PDWORD)
 
BOOL WINAPI VirtualProtectEx (HANDLE, PVOID, SIZE_T, DWORD, PDWORD)
 
SIZE_T WINAPI VirtualQuery (LPCVOID, PMEMORY_BASIC_INFORMATION, SIZE_T)
 
SIZE_T WINAPI VirtualQueryEx (HANDLE, LPCVOID, PMEMORY_BASIC_INFORMATION, SIZE_T)
 
BOOL WINAPI VirtualUnlock (PVOID, SIZE_T)
 
BOOL WINAPI WaitCommEvent (_In_ HANDLE, _Inout_ PDWORD, _Inout_opt_ LPOVERLAPPED)
 
BOOL WINAPI WaitForDebugEvent (LPDEBUG_EVENT, DWORD)
 
DWORD WINAPI WaitForMultipleObjects (_In_ DWORD nCount, _In_reads_(nCount) CONST HANDLE *lpHandles, _In_ BOOL bWaitAll, _In_ DWORD dwMilliseconds)
 
DWORD WINAPI WaitForMultipleObjectsEx (DWORD, const HANDLE *, BOOL, DWORD, BOOL)
 
DWORD WINAPI WaitForSingleObject (_In_ HANDLE hHandle, _In_ DWORD dwMilliseconds)
 
DWORD WINAPI WaitForSingleObjectEx (HANDLE, DWORD, BOOL)
 
BOOL WINAPI WaitNamedPipeA (_In_ LPCSTR, _In_ DWORD)
 
BOOL WINAPI WaitNamedPipeW (_In_ LPCWSTR, _In_ DWORD)
 
BOOL WINAPI WinLoadTrustProvider (GUID *)
 
BOOL WINAPI Wow64DisableWow64FsRedirection (PVOID *)
 
BOOLEAN WINAPI Wow64EnableWow64FsRedirection (_In_ BOOLEAN)
 
BOOL WINAPI Wow64RevertWow64FsRedirection (PVOID)
 
DWORD WINAPI WriteEncryptedFileRaw (_In_ PFE_IMPORT_FUNC, _In_opt_ PVOID, _In_ PVOID)
 
BOOL WINAPI WriteFile (HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED)
 
BOOL WINAPI WriteFileEx (HANDLE, LPCVOID, DWORD, LPOVERLAPPED, LPOVERLAPPED_COMPLETION_ROUTINE)
 
BOOL WINAPI WriteFileGather (HANDLE, FILE_SEGMENT_ELEMENT *, DWORD, LPDWORD, LPOVERLAPPED)
 
BOOL WINAPI WritePrivateProfileSectionA (_In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR)
 
BOOL WINAPI WritePrivateProfileSectionW (_In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
 
BOOL WINAPI WritePrivateProfileStringA (_In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR)
 
BOOL WINAPI WritePrivateProfileStringW (_In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
 
BOOL WINAPI WritePrivateProfileStructA (_In_ LPCSTR lpszSection, _In_ LPCSTR lpszKey, _In_reads_bytes_opt_(uSizeStruct) LPVOID lpStruct, _In_ UINT uSizeStruct, _In_opt_ LPCSTR szFile)
 
BOOL WINAPI WritePrivateProfileStructW (_In_ LPCWSTR lpszSection, _In_ LPCWSTR lpszKey, _In_reads_bytes_opt_(uSizeStruct) LPVOID lpStruct, _In_ UINT uSizeStruct, _In_opt_ LPCWSTR szFile)
 
BOOL WINAPI WriteProcessMemory (HANDLE, LPVOID, LPCVOID, SIZE_T, SIZE_T *)
 
BOOL WINAPI WriteProfileSectionA (_In_ LPCSTR, _In_ LPCSTR)
 
BOOL WINAPI WriteProfileSectionW (_In_ LPCWSTR, _In_ LPCWSTR)
 
BOOL WINAPI WriteProfileStringA (_In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_opt_ LPCSTR)
 
BOOL WINAPI WriteProfileStringW (_In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
 
DWORD WINAPI WriteTapemark (_In_ HANDLE, _In_ DWORD, _In_ DWORD, _In_ BOOL)
 
WINBASEAPI VOID WINAPI InitOnceInitialize (_Out_ PINIT_ONCE InitOnce)
 
WINBASEAPI BOOL WINAPI InitOnceBeginInitialize (_Inout_ LPINIT_ONCE lpInitOnce, _In_ DWORD dwFlags, _Out_ PBOOL fPending, _Outptr_opt_result_maybenull_ LPVOID *lpContext)
 
WINBASEAPI BOOL WINAPI InitOnceComplete (_Inout_ LPINIT_ONCE lpInitOnce, _In_ DWORD dwFlags, _In_opt_ LPVOID lpContext)
 
WINBASEAPI BOOL WINAPI InitOnceExecuteOnce (_Inout_ PINIT_ONCE InitOnce, _In_ __callback PINIT_ONCE_FN InitFn, _Inout_opt_ PVOID Parameter, _Outptr_opt_result_maybenull_ LPVOID *Context)
 

Variables

_Out_writes_bytes_opt_ lpdwSize LPCOMMCONFIG lpCC
 
_Out_writes_bytes_opt_ lpdwSize LPCOMMCONFIG _Inout_ LPDWORD lpdwSize
 
*nSize LPSTR lpBuffer
 
*nSize LPSTR _Inout_ LPDWORD nSize
 
_In_ DWORD cchBuffer
 
_In_opt_ LPSTR lpszDomain
 
_In_opt_ LPSTR _In_opt_ LPSTR lpszPassword
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD dwLogonType
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD dwLogonProvider
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE phToken
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE _Out_opt_ PSIDppLogonSid
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE _Out_opt_ PSID _Out_opt_ PVOIDppProfileBuffer
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE _Out_opt_ PSID _Out_opt_ PVOID _Out_opt_ LPDWORD pdwProfileLength
 
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE _Out_opt_ PSID _Out_opt_ PVOID _Out_opt_ LPDWORD _Out_opt_ PQUOTA_LIMITS pQuotaLimits
 
_In_ LPCSTR lpAccountName
 
_In_ LPCSTR _Out_writes_bytes_to_opt_ cbSid PSID Sid
 
_In_ LPCSTR _Out_writes_bytes_to_opt_ cbSid PSID _Inout_ LPDWORD cbSid
 
_In_ LPCSTR _Out_writes_bytes_to_opt_ cbSid PSID _Inout_ LPDWORD _Out_writes_to_opt_ cchReferencedDomainName LPSTR ReferencedDomainName
 
_In_ LPCSTR _Out_writes_bytes_to_opt_ cbSid PSID _Inout_ LPDWORD _Out_writes_to_opt_ cchReferencedDomainName LPSTR _Inout_ LPDWORD cchReferencedDomainName
 
_In_ LPCSTR _Out_writes_bytes_to_opt_ cbSid PSID _Inout_ LPDWORD _Out_writes_to_opt_ cchReferencedDomainName LPSTR _Inout_ LPDWORD _Out_ PSID_NAME_USE peUse
 
_In_ PSID _Out_writes_to_opt_ cchName LPSTR Name
 
_In_ PSID _Out_writes_to_opt_ cchName LPSTR _Inout_ LPDWORD cchName
 
_In_ LPCSTR lpName
 
_In_ LPCSTR _Out_writes_to_opt_ cchDisplayName LPSTR lpDisplayName
 
_In_ LPCSTR _Out_writes_to_opt_ cchDisplayName LPSTR _Inout_ LPDWORD cchDisplayName
 
_In_ LPCSTR _Out_writes_to_opt_ cchDisplayName LPSTR _Inout_ LPDWORD _Out_ LPDWORD lpLanguageId
 
_In_ PLUID lpLuid
 
_In_ LPCSTR lpFileName
 
_In_ LPCSTR _In_opt_ LPCSTR lpExtension
 
_In_ LPCSTR _In_opt_ LPCSTR _In_ DWORD nBufferLength
 
_In_ LPCSTR _In_opt_ LPCSTR _In_ DWORD _Out_opt_ LPSTRlpFilePart
 

Macro Definition Documentation

◆ _FILETIME_

#define _FILETIME_

Definition at line 625 of file winbase.h.

◆ _LDT_ENTRY_DEFINED

#define _LDT_ENTRY_DEFINED

Definition at line 1241 of file winbase.h.

◆ _SYSTEMTIME_

#define _SYSTEMTIME_

Definition at line 222 of file wtypes.idl.

◆ ABOVE_NORMAL_PRIORITY_CLASS

#define ABOVE_NORMAL_PRIORITY_CLASS   0x00008000

Definition at line 191 of file winbase.h.

◆ AC_LINE_BACKUP_POWER

#define AC_LINE_BACKUP_POWER   2

Definition at line 513 of file winbase.h.

◆ AC_LINE_OFFLINE

#define AC_LINE_OFFLINE   0

Definition at line 511 of file winbase.h.

◆ AC_LINE_ONLINE

#define AC_LINE_ONLINE   1

Definition at line 512 of file winbase.h.

◆ AC_LINE_UNKNOWN

#define AC_LINE_UNKNOWN   255

Definition at line 514 of file winbase.h.

◆ AccessCheckAndAuditAlarm

#define AccessCheckAndAuditAlarm   AccessCheckAndAuditAlarmA

Definition at line 3664 of file winbase.h.

◆ AddAtom

#define AddAtom   AddAtomA

Definition at line 3665 of file winbase.h.

◆ BACKUP_ALTERNATE_DATA

#define BACKUP_ALTERNATE_DATA   4

Definition at line 480 of file winbase.h.

◆ BACKUP_DATA

#define BACKUP_DATA   1

Definition at line 477 of file winbase.h.

◆ BACKUP_EA_DATA

#define BACKUP_EA_DATA   2

Definition at line 478 of file winbase.h.

◆ BACKUP_INVALID

#define BACKUP_INVALID   0

Definition at line 476 of file winbase.h.

◆ BACKUP_LINK

#define BACKUP_LINK   5

Definition at line 481 of file winbase.h.

◆ BACKUP_OBJECT_ID

#define BACKUP_OBJECT_ID   7

Definition at line 483 of file winbase.h.

◆ BACKUP_PROPERTY_DATA

#define BACKUP_PROPERTY_DATA   6

Definition at line 482 of file winbase.h.

◆ BACKUP_REPARSE_DATA

#define BACKUP_REPARSE_DATA   8

Definition at line 484 of file winbase.h.

◆ BACKUP_SECURITY_DATA

#define BACKUP_SECURITY_DATA   3

Definition at line 479 of file winbase.h.

◆ BACKUP_SPARSE_BLOCK

#define BACKUP_SPARSE_BLOCK   9

Definition at line 485 of file winbase.h.

◆ BackupEventLog

#define BackupEventLog   BackupEventLogA

Definition at line 3666 of file winbase.h.

◆ BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE

#define BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE   0x10000

Definition at line 608 of file winbase.h.

◆ BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE

#define BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE   0x00001

Definition at line 607 of file winbase.h.

◆ BASE_SEARCH_PATH_INVALID_FLAGS

#define BASE_SEARCH_PATH_INVALID_FLAGS   (~0x18001)

Definition at line 610 of file winbase.h.

◆ BASE_SEARCH_PATH_PERMANENT

#define BASE_SEARCH_PATH_PERMANENT   0x08000

Definition at line 609 of file winbase.h.

◆ BATTERY_FLAG_CHARGING

#define BATTERY_FLAG_CHARGING   8

Definition at line 518 of file winbase.h.

◆ BATTERY_FLAG_CRITICAL

#define BATTERY_FLAG_CRITICAL   4

Definition at line 517 of file winbase.h.

◆ BATTERY_FLAG_HIGH

#define BATTERY_FLAG_HIGH   1

Definition at line 515 of file winbase.h.

◆ BATTERY_FLAG_LOW

#define BATTERY_FLAG_LOW   2

Definition at line 516 of file winbase.h.

◆ BATTERY_FLAG_NO_BATTERY

#define BATTERY_FLAG_NO_BATTERY   128

Definition at line 519 of file winbase.h.

◆ BATTERY_FLAG_UNKNOWN

#define BATTERY_FLAG_UNKNOWN   255

Definition at line 520 of file winbase.h.

◆ BATTERY_LIFE_UNKNOWN

#define BATTERY_LIFE_UNKNOWN   0xFFFFFFFF

Definition at line 522 of file winbase.h.

◆ BATTERY_PERCENTAGE_UNKNOWN

#define BATTERY_PERCENTAGE_UNKNOWN   255

Definition at line 521 of file winbase.h.

◆ BAUD_075

#define BAUD_075   1

Definition at line 51 of file winbase.h.

◆ BAUD_110

#define BAUD_110   2

Definition at line 52 of file winbase.h.

◆ BAUD_115200

#define BAUD_115200   131072

Definition at line 68 of file winbase.h.

◆ BAUD_1200

#define BAUD_1200   64

Definition at line 57 of file winbase.h.

◆ BAUD_128K

#define BAUD_128K   65536

Definition at line 67 of file winbase.h.

◆ BAUD_134_5

#define BAUD_134_5   4

Definition at line 53 of file winbase.h.

◆ BAUD_14400

#define BAUD_14400   4096

Definition at line 63 of file winbase.h.

◆ BAUD_150

#define BAUD_150   8

Definition at line 54 of file winbase.h.

◆ BAUD_1800

#define BAUD_1800   128

Definition at line 58 of file winbase.h.

◆ BAUD_19200

#define BAUD_19200   8192

Definition at line 64 of file winbase.h.

◆ BAUD_2400

#define BAUD_2400   256

Definition at line 59 of file winbase.h.

◆ BAUD_300

#define BAUD_300   16

Definition at line 55 of file winbase.h.

◆ BAUD_38400

#define BAUD_38400   16384

Definition at line 65 of file winbase.h.

◆ BAUD_4800

#define BAUD_4800   512

Definition at line 60 of file winbase.h.

◆ BAUD_56K

#define BAUD_56K   32768

Definition at line 66 of file winbase.h.

◆ BAUD_57600

#define BAUD_57600   262144

Definition at line 69 of file winbase.h.

◆ BAUD_600

#define BAUD_600   32

Definition at line 56 of file winbase.h.

◆ BAUD_7200

#define BAUD_7200   1024

Definition at line 61 of file winbase.h.

◆ BAUD_9600

#define BAUD_9600   2048

Definition at line 62 of file winbase.h.

◆ BAUD_USER

#define BAUD_USER   0x10000000

Definition at line 70 of file winbase.h.

◆ BeginUpdateResource

#define BeginUpdateResource   BeginUpdateResourceA

Definition at line 3667 of file winbase.h.

◆ BELOW_NORMAL_PRIORITY_CLASS

#define BELOW_NORMAL_PRIORITY_CLASS   0x00004000

Definition at line 190 of file winbase.h.

◆ BuildCommDCB

#define BuildCommDCB   BuildCommDCBA

Definition at line 3668 of file winbase.h.

◆ BuildCommDCBAndTimeouts

#define BuildCommDCBAndTimeouts   BuildCommDCBAndTimeoutsA

Definition at line 3669 of file winbase.h.

◆ CALLBACK_CHUNK_FINISHED

#define CALLBACK_CHUNK_FINISHED   0

Definition at line 150 of file winbase.h.

◆ CALLBACK_STREAM_SWITCH

#define CALLBACK_STREAM_SWITCH   1

Definition at line 151 of file winbase.h.

◆ CallNamedPipe

#define CallNamedPipe   CallNamedPipeA

Definition at line 3670 of file winbase.h.

◆ CBR_110

#define CBR_110   110

Definition at line 461 of file winbase.h.

◆ CBR_115200

#define CBR_115200   115200

Definition at line 473 of file winbase.h.

◆ CBR_1200

#define CBR_1200   1200

Definition at line 464 of file winbase.h.

◆ CBR_128000

#define CBR_128000   128000

Definition at line 474 of file winbase.h.

◆ CBR_14400

#define CBR_14400   14400

Definition at line 468 of file winbase.h.

◆ CBR_19200

#define CBR_19200   19200

Definition at line 469 of file winbase.h.

◆ CBR_2400

#define CBR_2400   2400

Definition at line 465 of file winbase.h.

◆ CBR_256000

#define CBR_256000   256000

Definition at line 475 of file winbase.h.

◆ CBR_300

#define CBR_300   300

Definition at line 462 of file winbase.h.

◆ CBR_38400

#define CBR_38400   38400

Definition at line 470 of file winbase.h.

◆ CBR_4800

#define CBR_4800   4800

Definition at line 466 of file winbase.h.

◆ CBR_56000

#define CBR_56000   56000

Definition at line 471 of file winbase.h.

◆ CBR_57600

#define CBR_57600   57600

Definition at line 472 of file winbase.h.

◆ CBR_600

#define CBR_600   600

Definition at line 463 of file winbase.h.

◆ CBR_9600

#define CBR_9600   9600

Definition at line 467 of file winbase.h.

◆ CE_BREAK

#define CE_BREAK   16

Definition at line 135 of file winbase.h.

◆ CE_DNS

#define CE_DNS   2048

Definition at line 136 of file winbase.h.

◆ CE_FRAME

#define CE_FRAME   8

Definition at line 137 of file winbase.h.

◆ CE_IOE

#define CE_IOE   1024

Definition at line 138 of file winbase.h.

◆ CE_MODE

#define CE_MODE   32768

Definition at line 139 of file winbase.h.

◆ CE_OOP

#define CE_OOP   4096

Definition at line 140 of file winbase.h.

◆ CE_OVERRUN

#define CE_OVERRUN   2

Definition at line 141 of file winbase.h.

◆ CE_PTO

#define CE_PTO   512

Definition at line 142 of file winbase.h.

◆ CE_RXOVER

#define CE_RXOVER   1

Definition at line 143 of file winbase.h.

◆ CE_RXPARITY

#define CE_RXPARITY   4

Definition at line 144 of file winbase.h.

◆ CE_TXFULL

#define CE_TXFULL   256

Definition at line 145 of file winbase.h.

◆ ClearEventLog

#define ClearEventLog   ClearEventLogA

Definition at line 3674 of file winbase.h.

◆ CLRBREAK

#define CLRBREAK   9

Definition at line 232 of file winbase.h.

◆ CLRDTR

#define CLRDTR   6

Definition at line 224 of file winbase.h.

◆ CLRRTS

#define CLRRTS   4

Definition at line 225 of file winbase.h.

◆ CommConfigDialog

#define CommConfigDialog   CommConfigDialogA

Definition at line 3675 of file winbase.h.

◆ COMMPROP_INITIALIZED

#define COMMPROP_INITIALIZED   0xE73CF52E

Definition at line 36 of file winbase.h.

◆ CONTROL_C_EXIT

#define CONTROL_C_EXIT   ((DWORD)0xC000013A)

Definition at line 333 of file winbase.h.

◆ COPY_FILE_ALLOW_DECRYPTED_DESTINATION

#define COPY_FILE_ALLOW_DECRYPTED_DESTINATION   0x00000008

Definition at line 208 of file winbase.h.

◆ COPY_FILE_FAIL_IF_EXISTS

#define COPY_FILE_FAIL_IF_EXISTS   0x00000001

Definition at line 205 of file winbase.h.

◆ COPY_FILE_OPEN_SOURCE_FOR_WRITE

#define COPY_FILE_OPEN_SOURCE_FOR_WRITE   0x00000004

Definition at line 207 of file winbase.h.

◆ COPY_FILE_RESTARTABLE

#define COPY_FILE_RESTARTABLE   0x00000002

Definition at line 206 of file winbase.h.

◆ CopyFile

#define CopyFile   CopyFileA

Definition at line 3676 of file winbase.h.

◆ CopyFileEx

#define CopyFileEx   CopyFileExA

Definition at line 3677 of file winbase.h.

◆ CopyMemory

#define CopyMemory   RtlCopyMemory

Definition at line 1710 of file winbase.h.

◆ CREATE_ALWAYS

#define CREATE_ALWAYS   2

Definition at line 200 of file winbase.h.

◆ CREATE_BREAKAWAY_FROM_JOB

#define CREATE_BREAKAWAY_FROM_JOB   0x01000000

Definition at line 192 of file winbase.h.

◆ CREATE_DEFAULT_ERROR_MODE

#define CREATE_DEFAULT_ERROR_MODE   0x04000000

Definition at line 194 of file winbase.h.

◆ CREATE_FORCEDOS

#define CREATE_FORCEDOS   0x00002000

Definition at line 189 of file winbase.h.

◆ CREATE_NEW

#define CREATE_NEW   1

Definition at line 199 of file winbase.h.

◆ CREATE_NEW_CONSOLE

#define CREATE_NEW_CONSOLE   0x00000010

Definition at line 180 of file winbase.h.

◆ CREATE_NEW_PROCESS_GROUP

#define CREATE_NEW_PROCESS_GROUP   0x00000200

Definition at line 185 of file winbase.h.

◆ CREATE_NO_WINDOW

#define CREATE_NO_WINDOW   0x08000000

Definition at line 195 of file winbase.h.

◆ CREATE_PRESERVE_CODE_AUTHZ_LEVEL

#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL   0x02000000

Definition at line 193 of file winbase.h.

◆ CREATE_PROCESS_DEBUG_EVENT

#define CREATE_PROCESS_DEBUG_EVENT   3

Definition at line 104 of file winbase.h.

◆ CREATE_SEPARATE_WOW_VDM

#define CREATE_SEPARATE_WOW_VDM   0x00000800

Definition at line 187 of file winbase.h.

◆ CREATE_SHARED_WOW_VDM

#define CREATE_SHARED_WOW_VDM   0x00001000

Definition at line 188 of file winbase.h.

◆ CREATE_SUSPENDED

#define CREATE_SUSPENDED   0x00000004

Definition at line 178 of file winbase.h.

◆ CREATE_THREAD_DEBUG_EVENT

#define CREATE_THREAD_DEBUG_EVENT   2

Definition at line 103 of file winbase.h.

◆ CREATE_UNICODE_ENVIRONMENT

#define CREATE_UNICODE_ENVIRONMENT   0x00000400

Definition at line 186 of file winbase.h.

◆ CreateDirectory

#define CreateDirectory   CreateDirectoryA

Definition at line 3681 of file winbase.h.

◆ CreateDirectoryEx

#define CreateDirectoryEx   CreateDirectoryExA

Definition at line 3682 of file winbase.h.

◆ CreateEvent

#define CreateEvent   CreateEventA

Definition at line 3683 of file winbase.h.

◆ CreateFile

#define CreateFile   CreateFileA

Definition at line 3684 of file winbase.h.

◆ CreateFileMapping

#define CreateFileMapping   CreateFileMappingA

Definition at line 3685 of file winbase.h.

◆ CreateMailslot

#define CreateMailslot   CreateMailslotA

Definition at line 3690 of file winbase.h.

◆ CreateMutex

#define CreateMutex   CreateMutexA

Definition at line 3691 of file winbase.h.

◆ CreateNamedPipe

#define CreateNamedPipe   CreateNamedPipeA

Definition at line 3692 of file winbase.h.

◆ CreateProcess

#define CreateProcess   CreateProcessA

Definition at line 3693 of file winbase.h.

◆ CreateProcessAsUser

#define CreateProcessAsUser   CreateProcessAsUserA

Definition at line 3694 of file winbase.h.

◆ CreateSemaphore

#define CreateSemaphore   CreateSemaphoreA

Definition at line 3695 of file winbase.h.

◆ CreateWaitableTimer

#define CreateWaitableTimer   CreateWaitableTimerA

Definition at line 3696 of file winbase.h.

◆ DATABITS_16

#define DATABITS_16   16

Definition at line 92 of file winbase.h.

◆ DATABITS_16X

#define DATABITS_16X   32

Definition at line 93 of file winbase.h.

◆ DATABITS_5

#define DATABITS_5   1

Definition at line 88 of file winbase.h.

◆ DATABITS_6

#define DATABITS_6   2

Definition at line 89 of file winbase.h.

◆ DATABITS_7

#define DATABITS_7   4

Definition at line 90 of file winbase.h.

◆ DATABITS_8

#define DATABITS_8   8

Definition at line 91 of file winbase.h.

◆ DDD_EXACT_MATCH_ON_REMOVE

#define DDD_EXACT_MATCH_ON_REMOVE   4

Definition at line 525 of file winbase.h.

◆ DDD_LUID_BROADCAST_DRIVE

#define DDD_LUID_BROADCAST_DRIVE   16

Definition at line 527 of file winbase.h.

◆ DDD_NO_BROADCAST_SYSTEM

#define DDD_NO_BROADCAST_SYSTEM   8

Definition at line 526 of file winbase.h.

◆ DDD_RAW_TARGET_PATH

#define DDD_RAW_TARGET_PATH   1

Definition at line 523 of file winbase.h.

◆ DDD_REMOVE_DEFINITION

#define DDD_REMOVE_DEFINITION   2

Definition at line 524 of file winbase.h.

◆ DEBUG_ONLY_THIS_PROCESS

#define DEBUG_ONLY_THIS_PROCESS   0x00000002

Definition at line 177 of file winbase.h.

◆ DEBUG_PROCESS

#define DEBUG_PROCESS   0x00000001

Definition at line 176 of file winbase.h.

◆ DecryptFile

#define DecryptFile   DecryptFileA

Definition at line 3697 of file winbase.h.

◆ DefineDosDevice

#define DefineDosDevice   DefineDosDeviceA

Definition at line 3698 of file winbase.h.

◆ DefineHandleTable

#define DefineHandleTable (   w)    ((w),TRUE)

Definition at line 1859 of file winbase.h.

◆ DeleteFile

#define DeleteFile   DeleteFileA

Definition at line 3699 of file winbase.h.

◆ DETACHED_PROCESS

#define DETACHED_PROCESS   0x00000008

Definition at line 179 of file winbase.h.

◆ DOCKINFO_DOCKED

#define DOCKINFO_DOCKED   2

Definition at line 247 of file winbase.h.

◆ DOCKINFO_UNDOCKED

#define DOCKINFO_UNDOCKED   1

Definition at line 246 of file winbase.h.

◆ DOCKINFO_USER_DOCKED

#define DOCKINFO_USER_DOCKED   (DOCKINFO_USER_SUPPLIED|DOCKINFO_DOCKED)

Definition at line 250 of file winbase.h.

◆ DOCKINFO_USER_SUPPLIED

#define DOCKINFO_USER_SUPPLIED   4

Definition at line 248 of file winbase.h.

◆ DOCKINFO_USER_UNDOCKED

#define DOCKINFO_USER_UNDOCKED   (DOCKINFO_USER_SUPPLIED|DOCKINFO_UNDOCKED)

Definition at line 249 of file winbase.h.

◆ DONT_RESOLVE_DLL_REFERENCES

#define DONT_RESOLVE_DLL_REFERENCES   0x00000001

Definition at line 341 of file winbase.h.

◆ DRIVE_CDROM

#define DRIVE_CDROM   5

Definition at line 254 of file winbase.h.

◆ DRIVE_FIXED

#define DRIVE_FIXED   3

Definition at line 252 of file winbase.h.

◆ DRIVE_NO_ROOT_DIR

#define DRIVE_NO_ROOT_DIR   1

Definition at line 257 of file winbase.h.

◆ DRIVE_RAMDISK

#define DRIVE_RAMDISK   6

Definition at line 255 of file winbase.h.

◆ DRIVE_REMOTE

#define DRIVE_REMOTE   4

Definition at line 253 of file winbase.h.

◆ DRIVE_REMOVABLE

#define DRIVE_REMOVABLE   2

Definition at line 251 of file winbase.h.

◆ DRIVE_UNKNOWN

#define DRIVE_UNKNOWN   0

Definition at line 256 of file winbase.h.

◆ DTR_CONTROL_DISABLE

#define DTR_CONTROL_DISABLE   0

Definition at line 533 of file winbase.h.

◆ DTR_CONTROL_ENABLE

#define DTR_CONTROL_ENABLE   1

Definition at line 534 of file winbase.h.

◆ DTR_CONTROL_HANDSHAKE

#define DTR_CONTROL_HANDSHAKE   2

Definition at line 535 of file winbase.h.

◆ EncryptFile

#define EncryptFile   EncryptFileA

Definition at line 3704 of file winbase.h.

◆ EndUpdateResource

#define EndUpdateResource   EndUpdateResourceA

Definition at line 3705 of file winbase.h.

◆ EnumResourceLanguages

#define EnumResourceLanguages   EnumResourceLanguagesA

Definition at line 3706 of file winbase.h.

◆ EnumResourceNames

#define EnumResourceNames   EnumResourceNamesA

Definition at line 3707 of file winbase.h.

◆ EnumResourceTypes

#define EnumResourceTypes   EnumResourceTypesA

Definition at line 3708 of file winbase.h.

◆ EV_BREAK

#define EV_BREAK   64

Definition at line 426 of file winbase.h.

◆ EV_CTS

#define EV_CTS   8

Definition at line 427 of file winbase.h.

◆ EV_DSR

#define EV_DSR   16

Definition at line 428 of file winbase.h.

◆ EV_ERR

#define EV_ERR   128

Definition at line 429 of file winbase.h.

◆ EV_EVENT1

#define EV_EVENT1   2048

Definition at line 430 of file winbase.h.

◆ EV_EVENT2

#define EV_EVENT2   4096

Definition at line 431 of file winbase.h.

◆ EV_PERR

#define EV_PERR   512

Definition at line 432 of file winbase.h.

◆ EV_RING

#define EV_RING   256

Definition at line 433 of file winbase.h.

◆ EV_RLSD

#define EV_RLSD   32

Definition at line 434 of file winbase.h.

◆ EV_RX80FULL

#define EV_RX80FULL   1024

Definition at line 435 of file winbase.h.

◆ EV_RXCHAR

#define EV_RXCHAR   1

Definition at line 436 of file winbase.h.

◆ EV_RXFLAG

#define EV_RXFLAG   2

Definition at line 437 of file winbase.h.

◆ EV_TXEMPTY

#define EV_TXEMPTY   4

Definition at line 438 of file winbase.h.

◆ EVENPARITY

#define EVENPARITY   2

Definition at line 455 of file winbase.h.

◆ EVENT_ALL_ACCESS

#define EVENT_ALL_ACCESS   0x1f0003

Definition at line 162 of file winbase.h.

◆ EVENT_MODIFY_STATE

#define EVENT_MODIFY_STATE   2

Definition at line 163 of file winbase.h.

◆ EVENTLOG_FULL_INFO

#define EVENTLOG_FULL_INFO   0

Definition at line 1154 of file winbase.h.

◆ EXCEPTION_ACCESS_VIOLATION

#define EXCEPTION_ACCESS_VIOLATION   ((DWORD)0xC0000005)

Definition at line 311 of file winbase.h.

◆ EXCEPTION_ARRAY_BOUNDS_EXCEEDED

#define EXCEPTION_ARRAY_BOUNDS_EXCEEDED   ((DWORD)0xC000008C)

Definition at line 315 of file winbase.h.

◆ EXCEPTION_BREAKPOINT

#define EXCEPTION_BREAKPOINT   ((DWORD)0x80000003)

Definition at line 313 of file winbase.h.

◆ EXCEPTION_DATATYPE_MISALIGNMENT

#define EXCEPTION_DATATYPE_MISALIGNMENT   ((DWORD)0x80000002)

Definition at line 312 of file winbase.h.

◆ EXCEPTION_DEBUG_EVENT

#define EXCEPTION_DEBUG_EVENT   1

Definition at line 102 of file winbase.h.

◆ EXCEPTION_FLT_DENORMAL_OPERAND

#define EXCEPTION_FLT_DENORMAL_OPERAND   ((DWORD)0xC000008D)

Definition at line 316 of file winbase.h.

◆ EXCEPTION_FLT_DIVIDE_BY_ZERO

#define EXCEPTION_FLT_DIVIDE_BY_ZERO   ((DWORD)0xC000008E)

Definition at line 317 of file winbase.h.

◆ EXCEPTION_FLT_INEXACT_RESULT

#define EXCEPTION_FLT_INEXACT_RESULT   ((DWORD)0xC000008F)

Definition at line 318 of file winbase.h.

◆ EXCEPTION_FLT_INVALID_OPERATION

#define EXCEPTION_FLT_INVALID_OPERATION   ((DWORD)0xC0000090)

Definition at line 319 of file winbase.h.

◆ EXCEPTION_FLT_OVERFLOW

#define EXCEPTION_FLT_OVERFLOW   ((DWORD)0xC0000091)

Definition at line 320 of file winbase.h.

◆ EXCEPTION_FLT_STACK_CHECK

#define EXCEPTION_FLT_STACK_CHECK   ((DWORD)0xC0000092)

Definition at line 321 of file winbase.h.

◆ EXCEPTION_FLT_UNDERFLOW

#define EXCEPTION_FLT_UNDERFLOW   ((DWORD)0xC0000093)

Definition at line 322 of file winbase.h.

◆ EXCEPTION_GUARD_PAGE

#define EXCEPTION_GUARD_PAGE   ((DWORD)0x80000001)

Definition at line 331 of file winbase.h.

◆ EXCEPTION_ILLEGAL_INSTRUCTION

#define EXCEPTION_ILLEGAL_INSTRUCTION   ((DWORD)0xC000001D)

Definition at line 327 of file winbase.h.

◆ EXCEPTION_IN_PAGE_ERROR

#define EXCEPTION_IN_PAGE_ERROR   ((DWORD)0xC0000006)

Definition at line 326 of file winbase.h.

◆ EXCEPTION_INT_DIVIDE_BY_ZERO

#define EXCEPTION_INT_DIVIDE_BY_ZERO   ((DWORD)0xC0000094)

Definition at line 323 of file winbase.h.

◆ EXCEPTION_INT_OVERFLOW

#define EXCEPTION_INT_OVERFLOW   ((DWORD)0xC0000095)

Definition at line 324 of file winbase.h.

◆ EXCEPTION_INVALID_DISPOSITION

#define EXCEPTION_INVALID_DISPOSITION   ((DWORD)0xC0000026)

Definition at line 330 of file winbase.h.

◆ EXCEPTION_INVALID_HANDLE

#define EXCEPTION_INVALID_HANDLE   ((DWORD)0xC0000008L)

Definition at line 332 of file winbase.h.

◆ EXCEPTION_NONCONTINUABLE_EXCEPTION

#define EXCEPTION_NONCONTINUABLE_EXCEPTION   ((DWORD)0xC0000025)

Definition at line 328 of file winbase.h.

◆ EXCEPTION_PRIV_INSTRUCTION

#define EXCEPTION_PRIV_INSTRUCTION   ((DWORD)0xC0000096)

Definition at line 325 of file winbase.h.

◆ EXCEPTION_SINGLE_STEP

#define EXCEPTION_SINGLE_STEP   ((DWORD)0x80000004)

Definition at line 314 of file winbase.h.

◆ EXCEPTION_STACK_OVERFLOW

#define EXCEPTION_STACK_OVERFLOW   ((DWORD)0xC00000FD)

Definition at line 329 of file winbase.h.

◆ EXIT_PROCESS_DEBUG_EVENT

#define EXIT_PROCESS_DEBUG_EVENT   5

Definition at line 106 of file winbase.h.

◆ EXIT_THREAD_DEBUG_EVENT

#define EXIT_THREAD_DEBUG_EVENT   4

Definition at line 105 of file winbase.h.

◆ ExpandEnvironmentStrings

#define ExpandEnvironmentStrings   ExpandEnvironmentStringsA

Definition at line 3709 of file winbase.h.

◆ FatalAppExit

#define FatalAppExit   FatalAppExitA

Definition at line 3710 of file winbase.h.

◆ FILE_BEGIN

#define FILE_BEGIN   0

Definition at line 112 of file winbase.h.

◆ FILE_CURRENT

#define FILE_CURRENT   1

Definition at line 113 of file winbase.h.

◆ FILE_DIR_DISALLOWED

#define FILE_DIR_DISALLOWED   9

Definition at line 34 of file winbase.h.

◆ FILE_ENCRYPTABLE

#define FILE_ENCRYPTABLE   0

Definition at line 25 of file winbase.h.

◆ FILE_END

#define FILE_END   2

Definition at line 114 of file winbase.h.

◆ FILE_FLAG_BACKUP_SEMANTICS

#define FILE_FLAG_BACKUP_SEMANTICS   0x02000000

Definition at line 216 of file winbase.h.

◆ FILE_FLAG_DELETE_ON_CLOSE

#define FILE_FLAG_DELETE_ON_CLOSE   0x04000000

Definition at line 215 of file winbase.h.

◆ FILE_FLAG_NO_BUFFERING

#define FILE_FLAG_NO_BUFFERING   0x20000000

Definition at line 212 of file winbase.h.

◆ FILE_FLAG_OPEN_NO_RECALL

#define FILE_FLAG_OPEN_NO_RECALL   0x00100000

Definition at line 219 of file winbase.h.

◆ FILE_FLAG_OPEN_REPARSE_POINT

#define FILE_FLAG_OPEN_REPARSE_POINT   0x00200000

Definition at line 218 of file winbase.h.

◆ FILE_FLAG_OVERLAPPED

#define FILE_FLAG_OVERLAPPED   0x40000000

Definition at line 211 of file winbase.h.

◆ FILE_FLAG_POSIX_SEMANTICS

#define FILE_FLAG_POSIX_SEMANTICS   0x01000000

Definition at line 217 of file winbase.h.

◆ FILE_FLAG_RANDOM_ACCESS

#define FILE_FLAG_RANDOM_ACCESS   0x10000000

Definition at line 213 of file winbase.h.

◆ FILE_FLAG_SEQUENTIAL_SCAN

#define FILE_FLAG_SEQUENTIAL_SCAN   0x08000000

Definition at line 214 of file winbase.h.

◆ FILE_FLAG_WRITE_THROUGH

#define FILE_FLAG_WRITE_THROUGH   0x80000000

Definition at line 210 of file winbase.h.

◆ FILE_IS_ENCRYPTED

#define FILE_IS_ENCRYPTED   1

Definition at line 26 of file winbase.h.

◆ FILE_MAP_ALL_ACCESS

#define FILE_MAP_ALL_ACCESS   SECTION_ALL_ACCESS

Definition at line 156 of file winbase.h.

◆ FILE_MAP_COPY

#define FILE_MAP_COPY   SECTION_QUERY

Definition at line 153 of file winbase.h.

◆ FILE_MAP_EXECUTE

#define FILE_MAP_EXECUTE   SECTION_MAP_EXECUTE_EXPLICIT

Definition at line 157 of file winbase.h.

◆ FILE_MAP_READ

#define FILE_MAP_READ   SECTION_MAP_READ

Definition at line 155 of file winbase.h.

◆ FILE_MAP_WRITE

#define FILE_MAP_WRITE   SECTION_MAP_WRITE

Definition at line 154 of file winbase.h.

◆ FILE_READ_ONLY

#define FILE_READ_ONLY   8

Definition at line 33 of file winbase.h.

◆ FILE_ROOT_DIR

#define FILE_ROOT_DIR   3

Definition at line 28 of file winbase.h.

◆ FILE_SYSTEM_ATTR

#define FILE_SYSTEM_ATTR   2

Definition at line 27 of file winbase.h.

◆ FILE_SYSTEM_DIR

#define FILE_SYSTEM_DIR   4

Definition at line 29 of file winbase.h.

◆ FILE_SYSTEM_NOT_SUPPORT

#define FILE_SYSTEM_NOT_SUPPORT   6

Definition at line 31 of file winbase.h.

◆ FILE_TYPE_CHAR

#define FILE_TYPE_CHAR   2

Definition at line 260 of file winbase.h.

◆ FILE_TYPE_DISK

#define FILE_TYPE_DISK   1

Definition at line 259 of file winbase.h.

◆ FILE_TYPE_PIPE

#define FILE_TYPE_PIPE   3

Definition at line 261 of file winbase.h.

◆ FILE_TYPE_REMOTE

#define FILE_TYPE_REMOTE   0x8000

Definition at line 262 of file winbase.h.

◆ FILE_TYPE_UNKNOWN

#define FILE_TYPE_UNKNOWN   0

Definition at line 258 of file winbase.h.

◆ FILE_UNKNOWN

#define FILE_UNKNOWN   5

Definition at line 30 of file winbase.h.

◆ FILE_USER_DISALLOWED

#define FILE_USER_DISALLOWED   7

Definition at line 32 of file winbase.h.

◆ FileEncryptionStatus

#define FileEncryptionStatus   FileEncryptionStatusA

Definition at line 3711 of file winbase.h.

◆ FillMemory

#define FillMemory   RtlFillMemory

Definition at line 1711 of file winbase.h.

◆ FIND_FIRST_EX_CASE_SENSITIVE

#define FIND_FIRST_EX_CASE_SENSITIVE   1

Definition at line 234 of file winbase.h.

◆ FIND_FIRST_EX_LARGE_FETCH

#define FIND_FIRST_EX_LARGE_FETCH   2

Definition at line 235 of file winbase.h.

◆ FindAtom

#define FindAtom   FindAtomA

Definition at line 3715 of file winbase.h.

◆ FindFirstChangeNotification

#define FindFirstChangeNotification   FindFirstChangeNotificationA

Definition at line 3716 of file winbase.h.

◆ FindFirstFile

#define FindFirstFile   FindFirstFileA

Definition at line 3717 of file winbase.h.

◆ FindFirstFileEx

#define FindFirstFileEx   FindFirstFileExA

Definition at line 3718 of file winbase.h.

◆ FindNextFile

#define FindNextFile   FindNextFileA

Definition at line 3723 of file winbase.h.

◆ FindResource

#define FindResource   FindResourceA

Definition at line 3728 of file winbase.h.

◆ FindResourceEx

#define FindResourceEx   FindResourceExA

Definition at line 3729 of file winbase.h.

◆ FLS_OUT_OF_INDEXES

#define FLS_OUT_OF_INDEXES   0xFFFFFFFF

Definition at line 576 of file winbase.h.

◆ FORMAT_MESSAGE_ALLOCATE_BUFFER

#define FORMAT_MESSAGE_ALLOCATE_BUFFER   256

Definition at line 419 of file winbase.h.

◆ FORMAT_MESSAGE_ARGUMENT_ARRAY

#define FORMAT_MESSAGE_ARGUMENT_ARRAY   8192

Definition at line 424 of file winbase.h.

◆ FORMAT_MESSAGE_FROM_HMODULE

#define FORMAT_MESSAGE_FROM_HMODULE   2048

Definition at line 422 of file winbase.h.

◆ FORMAT_MESSAGE_FROM_STRING

#define FORMAT_MESSAGE_FROM_STRING   1024

Definition at line 421 of file winbase.h.

◆ FORMAT_MESSAGE_FROM_SYSTEM

#define FORMAT_MESSAGE_FROM_SYSTEM   4096

Definition at line 423 of file winbase.h.

◆ FORMAT_MESSAGE_IGNORE_INSERTS

#define FORMAT_MESSAGE_IGNORE_INSERTS   512

Definition at line 420 of file winbase.h.

◆ FORMAT_MESSAGE_MAX_WIDTH_MASK

#define FORMAT_MESSAGE_MAX_WIDTH_MASK   255

Definition at line 425 of file winbase.h.

◆ FormatMessage

#define FormatMessage   FormatMessageA

Definition at line 3730 of file winbase.h.

◆ FreeEnvironmentStrings

#define FreeEnvironmentStrings   FreeEnvironmentStringsA

Definition at line 3731 of file winbase.h.

◆ FreeModule

#define FreeModule (   m)    FreeLibrary(m)

Definition at line 2033 of file winbase.h.

◆ FreeProcInstance

#define FreeProcInstance (   p)    (void)(p)

Definition at line 2034 of file winbase.h.

◆ FS_CASE_IS_PRESERVED

#define FS_CASE_IS_PRESERVED   2

Definition at line 287 of file winbase.h.

◆ FS_CASE_SENSITIVE

#define FS_CASE_SENSITIVE   1

Definition at line 288 of file winbase.h.

◆ FS_FILE_COMPRESSION

#define FS_FILE_COMPRESSION   16

Definition at line 291 of file winbase.h.

◆ FS_PERSISTENT_ACLS

#define FS_PERSISTENT_ACLS   8

Definition at line 290 of file winbase.h.

◆ FS_UNICODE_STORED_ON_DISK

#define FS_UNICODE_STORED_ON_DISK   4

Definition at line 289 of file winbase.h.

◆ FS_VOL_IS_COMPRESSED

#define FS_VOL_IS_COMPRESSED   32768

Definition at line 292 of file winbase.h.

◆ GET_TAPE_DRIVE_INFORMATION

#define GET_TAPE_DRIVE_INFORMATION   1

Definition at line 272 of file winbase.h.

◆ GET_TAPE_MEDIA_INFORMATION

#define GET_TAPE_MEDIA_INFORMATION   0

Definition at line 271 of file winbase.h.

◆ GetAtomName

#define GetAtomName   GetAtomNameA

Definition at line 3732 of file winbase.h.

◆ GetBinaryType

#define GetBinaryType   GetBinaryTypeA

Definition at line 3733 of file winbase.h.

◆ GetCommandLine

#define GetCommandLine   GetCommandLineA

Definition at line 3734 of file winbase.h.

◆ GetCompressedFileSize

#define GetCompressedFileSize   GetCompressedFileSizeA

Definition at line 3739 of file winbase.h.

◆ GetComputerName

#define GetComputerName   GetComputerNameA

Definition at line 3735 of file winbase.h.

◆ GetCurrentDirectory

#define GetCurrentDirectory   GetCurrentDirectoryA

Definition at line 3740 of file winbase.h.

◆ GetCurrentTime

#define GetCurrentTime   GetTickCount

Definition at line 2108 of file winbase.h.

◆ GetDefaultCommConfig

#define GetDefaultCommConfig   GetDefaultCommConfigA

Definition at line 3741 of file winbase.h.

◆ GetDiskFreeSpace

#define GetDiskFreeSpace   GetDiskFreeSpaceA

Definition at line 3742 of file winbase.h.

◆ GetDiskFreeSpaceEx

#define GetDiskFreeSpaceEx   GetDiskFreeSpaceExA

Definition at line 3743 of file winbase.h.

◆ GetDriveType

#define GetDriveType   GetDriveTypeA

Definition at line 3747 of file winbase.h.

◆ GetEnvironmentStringsA

#define GetEnvironmentStringsA   GetEnvironmentStrings

Definition at line 3748 of file winbase.h.

◆ GetEnvironmentVariable

#define GetEnvironmentVariable   GetEnvironmentVariableA

Definition at line 3749 of file winbase.h.

◆ GetFileAttributes

#define GetFileAttributes   GetFileAttributesA

Definition at line 3750 of file winbase.h.

◆ GetFileAttributesEx

#define GetFileAttributesEx   GetFileAttributesExA

Definition at line 3751 of file winbase.h.

◆ GetFileSecurity

#define GetFileSecurity   GetFileSecurityA

Definition at line 3752 of file winbase.h.

◆ GetFreeSpace

#define GetFreeSpace (   w)    (0x100000L)

Definition at line 2193 of file winbase.h.

◆ GetFullPathName

#define GetFullPathName   GetFullPathNameA

Definition at line 3756 of file winbase.h.

◆ GetLogicalDriveStrings

#define GetLogicalDriveStrings   GetLogicalDriveStringsA

Definition at line 3757 of file winbase.h.

◆ GetModuleFileName

#define GetModuleFileName   GetModuleFileNameA

Definition at line 3766 of file winbase.h.

◆ GetModuleHandle

#define GetModuleHandle   GetModuleHandleA

Definition at line 3762 of file winbase.h.

◆ GetNamedPipeHandleState

#define GetNamedPipeHandleState   GetNamedPipeHandleStateA

Definition at line 3761 of file winbase.h.

◆ GetPrivateProfileInt

#define GetPrivateProfileInt   GetPrivateProfileIntA

Definition at line 3767 of file winbase.h.

◆ GetPrivateProfileSection

#define GetPrivateProfileSection   GetPrivateProfileSectionA

Definition at line 3768 of file winbase.h.

◆ GetPrivateProfileSectionNames

#define GetPrivateProfileSectionNames   GetPrivateProfileSectionNamesA

Definition at line 3769 of file winbase.h.

◆ GetPrivateProfileString

#define GetPrivateProfileString   GetPrivateProfileStringA

Definition at line 3770 of file winbase.h.

◆ GetPrivateProfileStruct

#define GetPrivateProfileStruct   GetPrivateProfileStructA

Definition at line 3771 of file winbase.h.

◆ GetProfileInt

#define GetProfileInt   GetProfileIntA

Definition at line 3772 of file winbase.h.

◆ GetProfileSection

#define GetProfileSection   GetProfileSectionA

Definition at line 3773 of file winbase.h.

◆ GetProfileString

#define GetProfileString   GetProfileStringA

Definition at line 3774 of file winbase.h.

◆ GetShortPathName

#define GetShortPathName   GetShortPathNameA

Definition at line 3775 of file winbase.h.

◆ GetStartupInfo

#define GetStartupInfo   GetStartupInfoA

Definition at line 3776 of file winbase.h.

◆ GetSystemDirectory

#define GetSystemDirectory   GetSystemDirectoryA

Definition at line 3777 of file winbase.h.

◆ GetTempFileName

#define GetTempFileName   GetTempFileNameA

Definition at line 3784 of file winbase.h.

◆ GetTempPath

#define GetTempPath   GetTempPathA

Definition at line 3785 of file winbase.h.

◆ GetUserName

#define GetUserName   GetUserNameA

Definition at line 3786 of file winbase.h.

◆ GetVersionEx

#define GetVersionEx   GetVersionExA

Definition at line 3787 of file winbase.h.

◆ GetVolumeInformation

#define GetVolumeInformation   GetVolumeInformationA

Definition at line 3788 of file winbase.h.

◆ GetVolumeNameForVolumeMountPoint

#define GetVolumeNameForVolumeMountPoint   GetVolumeNameForVolumeMountPointA

Definition at line 3789 of file winbase.h.

◆ GetVolumePathName

#define GetVolumePathName   GetVolumePathNameA

Definition at line 3790 of file winbase.h.

◆ GetVolumePathNamesForVolumeName

#define GetVolumePathNamesForVolumeName   GetVolumePathNamesForVolumeNameA

Definition at line 3791 of file winbase.h.

◆ GetWindowsDirectory

#define GetWindowsDirectory   GetWindowsDirectoryA

Definition at line 3792 of file winbase.h.

◆ GHND

#define GHND   66

Definition at line 297 of file winbase.h.

◆ GlobalAddAtom

#define GlobalAddAtom   GlobalAddAtomA

Definition at line 3793 of file winbase.h.

◆ GlobalDiscard

#define GlobalDiscard (   m)    GlobalReAlloc((m),0,GMEM_MOVEABLE)

Definition at line 2578 of file winbase.h.

◆ GlobalFindAtom

#define GlobalFindAtom   GlobalFindAtomA

Definition at line 3794 of file winbase.h.

◆ GlobalGetAtomName

#define GlobalGetAtomName   GlobalGetAtomNameA

Definition at line 3795 of file winbase.h.

◆ GMEM_DDESHARE

#define GMEM_DDESHARE   8192

Definition at line 298 of file winbase.h.

◆ GMEM_DISCARDABLE

#define GMEM_DISCARDABLE   256

Definition at line 299 of file winbase.h.

◆ GMEM_DISCARDED

#define GMEM_DISCARDED   16384

Definition at line 307 of file winbase.h.

◆ GMEM_FIXED

#define GMEM_FIXED   0

Definition at line 293 of file winbase.h.

◆ GMEM_INVALID_HANDLE

#define GMEM_INVALID_HANDLE   32768

Definition at line 308 of file winbase.h.

◆ GMEM_LOCKCOUNT

#define GMEM_LOCKCOUNT   255

Definition at line 309 of file winbase.h.

◆ GMEM_LOWER

#define GMEM_LOWER   4096

Definition at line 300 of file winbase.h.

◆ GMEM_MODIFY

#define GMEM_MODIFY   128

Definition at line 295 of file winbase.h.

◆ GMEM_MOVEABLE

#define GMEM_MOVEABLE   2

Definition at line 294 of file winbase.h.

◆ GMEM_NOCOMPACT

#define GMEM_NOCOMPACT   16

Definition at line 301 of file winbase.h.

◆ GMEM_NODISCARD

#define GMEM_NODISCARD   32

Definition at line 302 of file winbase.h.

◆ GMEM_NOT_BANKED

#define GMEM_NOT_BANKED   4096

Definition at line 303 of file winbase.h.

◆ GMEM_NOTIFY

#define GMEM_NOTIFY   16384

Definition at line 304 of file winbase.h.

◆ GMEM_SHARE

#define GMEM_SHARE   8192

Definition at line 305 of file winbase.h.

◆ GMEM_VALID_FLAGS

#define GMEM_VALID_FLAGS   32626

Definition at line 310 of file winbase.h.

◆ GMEM_ZEROINIT

#define GMEM_ZEROINIT   64

Definition at line 306 of file winbase.h.

◆ GPTR

#define GPTR   64

Definition at line 296 of file winbase.h.

◆ HANDLE_FLAG_INHERIT

#define HANDLE_FLAG_INHERIT   0x01

Definition at line 264 of file winbase.h.

◆ HANDLE_FLAG_PROTECT_FROM_CLOSE

#define HANDLE_FLAG_PROTECT_FROM_CLOSE   0x02

Definition at line 265 of file winbase.h.

◆ HasOverlappedIoCompleted

#define HasOverlappedIoCompleted (   lpOverlapped)    ((lpOverlapped)->Internal != STATUS_PENDING)

Definition at line 2611 of file winbase.h.

◆ HFILE_ERROR

#define HFILE_ERROR   ((HFILE)-1)

Definition at line 111 of file winbase.h.

◆ HIGH_PRIORITY_CLASS

#define HIGH_PRIORITY_CLASS   0x00000080

Definition at line 183 of file winbase.h.

◆ HINSTANCE_ERROR

#define HINSTANCE_ERROR   32

Definition at line 528 of file winbase.h.

◆ HW_PROFILE_GUIDLEN

#define HW_PROFILE_GUIDLEN   39

Definition at line 244 of file winbase.h.

◆ IDLE_PRIORITY_CLASS

#define IDLE_PRIORITY_CLASS   0x00000040

Definition at line 182 of file winbase.h.

◆ IGNORE

#define IGNORE   0

Definition at line 451 of file winbase.h.

◆ INFINITE

#define INFINITE   0xFFFFFFFF

Definition at line 452 of file winbase.h.

◆ INIT_ONCE_ASYNC

#define INIT_ONCE_ASYNC   RTL_RUN_ONCE_ASYNC

Definition at line 3871 of file winbase.h.

◆ INIT_ONCE_CHECK_ONLY

#define INIT_ONCE_CHECK_ONLY   RTL_RUN_ONCE_CHECK_ONLY

Definition at line 3870 of file winbase.h.

◆ INIT_ONCE_CTX_RESERVED_BITS

#define INIT_ONCE_CTX_RESERVED_BITS   RTL_RUN_ONCE_CTX_RESERVED_BITS

Definition at line 3874 of file winbase.h.

◆ INIT_ONCE_INIT_FAILED

#define INIT_ONCE_INIT_FAILED   RTL_RUN_ONCE_INIT_FAILED

Definition at line 3872 of file winbase.h.

◆ INIT_ONCE_STATIC_INIT

#define INIT_ONCE_STATIC_INIT   RTL_RUN_ONCE_INIT

Definition at line 612 of file winbase.h.

◆ INVALID_ATOM

#define INVALID_ATOM   ((ATOM)0)

Definition at line 450 of file winbase.h.

◆ INVALID_FILE_SIZE

#define INVALID_FILE_SIZE   0xFFFFFFFF

Definition at line 548 of file winbase.h.

◆ INVALID_HANDLE_VALUE

#define INVALID_HANDLE_VALUE   (HANDLE)(-1)

Definition at line 270 of file winbase.h.

◆ INVALID_SET_FILE_POINTER

#define INVALID_SET_FILE_POINTER   ((DWORD)-1)

Definition at line 115 of file winbase.h.

◆ IsBadStringPtr

#define IsBadStringPtr   IsBadStringPtrA

Definition at line 3796 of file winbase.h.

◆ LHND

#define LHND   66

Definition at line 382 of file winbase.h.

◆ LimitEmsPages

#define LimitEmsPages (   n)

Definition at line 2680 of file winbase.h.

◆ LMEM_DISCARDABLE

#define LMEM_DISCARDABLE   3840

Definition at line 372 of file winbase.h.

◆ LMEM_DISCARDED

#define LMEM_DISCARDED   16384

Definition at line 376 of file winbase.h.

◆ LMEM_FIXED

#define LMEM_FIXED   0

Definition at line 368 of file winbase.h.

◆ LMEM_INVALID_HANDLE

#define LMEM_INVALID_HANDLE   32768

Definition at line 378 of file winbase.h.

◆ LMEM_LOCKCOUNT

#define LMEM_LOCKCOUNT   255

Definition at line 379 of file winbase.h.

◆ LMEM_MODIFY

#define LMEM_MODIFY   128

Definition at line 377 of file winbase.h.

◆ LMEM_MOVEABLE

#define LMEM_MOVEABLE   2

Definition at line 369 of file winbase.h.

◆ LMEM_NOCOMPACT

#define LMEM_NOCOMPACT   16

Definition at line 373 of file winbase.h.

◆ LMEM_NODISCARD

#define LMEM_NODISCARD   32

Definition at line 374 of file winbase.h.

◆ LMEM_NONZEROLHND

#define LMEM_NONZEROLHND   2

Definition at line 370 of file winbase.h.

◆ LMEM_NONZEROLPTR

#define LMEM_NONZEROLPTR   0

Definition at line 371 of file winbase.h.

◆ LMEM_VALID_FLAGS

#define LMEM_VALID_FLAGS   0x0F72

Definition at line 380 of file winbase.h.

◆ LMEM_ZEROINIT

#define LMEM_ZEROINIT   64

Definition at line 375 of file winbase.h.

◆ LOAD_DLL_DEBUG_EVENT

#define LOAD_DLL_DEBUG_EVENT   6

Definition at line 107 of file winbase.h.

◆ LOAD_IGNORE_CODE_AUTHZ_LEVEL

#define LOAD_IGNORE_CODE_AUTHZ_LEVEL   0x00000010

Definition at line 345 of file winbase.h.

◆ LOAD_LIBRARY_AS_DATAFILE

#define LOAD_LIBRARY_AS_DATAFILE   0x00000002

Definition at line 342 of file winbase.h.

◆ LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE

#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE   0x00000040

Definition at line 348 of file winbase.h.

◆ LOAD_LIBRARY_AS_IMAGE_RESOURCE

#define LOAD_LIBRARY_AS_IMAGE_RESOURCE   0x00000020

Definition at line 347 of file winbase.h.

◆ LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY

#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY   0x00008000

Definition at line 365 of file winbase.h.

◆ LOAD_LIBRARY_REQUIRE_SIGNED_TARGET

#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET   0x00000080

Definition at line 349 of file winbase.h.

◆ LOAD_LIBRARY_SAFE_CURRENT_DIRS

#define LOAD_LIBRARY_SAFE_CURRENT_DIRS   0x00002000

Definition at line 357 of file winbase.h.

◆ LOAD_LIBRARY_SEARCH_APPLICATION_DIR

#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR   0x00000200

Definition at line 351 of file winbase.h.

◆ LOAD_LIBRARY_SEARCH_DEFAULT_DIRS

#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS   0x00001000

Definition at line 354 of file winbase.h.

◆ LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR

#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR   0x00000100

Definition at line 350 of file winbase.h.

◆ LOAD_LIBRARY_SEARCH_SYSTEM32

#define LOAD_LIBRARY_SEARCH_SYSTEM32   0x00000800

Definition at line 353 of file winbase.h.

◆ LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER

#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER   0x00004000

Definition at line 358 of file winbase.h.

◆ LOAD_LIBRARY_SEARCH_USER_DIRS

#define LOAD_LIBRARY_SEARCH_USER_DIRS   0x00000400

Definition at line 352 of file winbase.h.

◆ LOAD_WITH_ALTERED_SEARCH_PATH

#define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008

Definition at line 344 of file winbase.h.

◆ LoadLibrary

#define LoadLibrary   LoadLibraryA

Definition at line 3797 of file winbase.h.

◆ LoadLibraryEx

#define LoadLibraryEx   LoadLibraryExA

Definition at line 3798 of file winbase.h.

◆ LocalDiscard

#define LocalDiscard (   m)    (LocalReAlloc((m),0,LMEM_MOVEABLE))

Definition at line 2689 of file winbase.h.

◆ LOCKFILE_EXCLUSIVE_LOCK

#define LOCKFILE_EXCLUSIVE_LOCK   2

Definition at line 386 of file winbase.h.

◆ LOCKFILE_FAIL_IMMEDIATELY

#define LOCKFILE_FAIL_IMMEDIATELY   1

Definition at line 385 of file winbase.h.

◆ LockSegment

#define LockSegment (   w)    GlobalFix((HANDLE)(w)) /* Obsolete: Has no effect. */

Definition at line 2702 of file winbase.h.

◆ LOGON32_LOGON_BATCH

#define LOGON32_LOGON_BATCH   4

Definition at line 393 of file winbase.h.

◆ LOGON32_LOGON_INTERACTIVE

#define LOGON32_LOGON_INTERACTIVE   2

Definition at line 391 of file winbase.h.

◆ LOGON32_LOGON_NETWORK

#define LOGON32_LOGON_NETWORK   3

Definition at line 392 of file winbase.h.

◆ LOGON32_LOGON_NETWORK_CLEARTEXT

#define LOGON32_LOGON_NETWORK_CLEARTEXT   8

Definition at line 396 of file winbase.h.

◆ LOGON32_LOGON_NEW_CREDENTIALS

#define LOGON32_LOGON_NEW_CREDENTIALS   9

Definition at line 397 of file winbase.h.

◆ LOGON32_LOGON_SERVICE

#define LOGON32_LOGON_SERVICE   5

Definition at line 394 of file winbase.h.

◆ LOGON32_LOGON_UNLOCK

#define LOGON32_LOGON_UNLOCK   7

Definition at line 395 of file winbase.h.

◆ LOGON32_PROVIDER_DEFAULT

#define LOGON32_PROVIDER_DEFAULT   0

Definition at line 387 of file winbase.h.

◆ LOGON32_PROVIDER_WINNT35

#define LOGON32_PROVIDER_WINNT35   1

Definition at line 388 of file winbase.h.

◆ LOGON32_PROVIDER_WINNT40

#define LOGON32_PROVIDER_WINNT40   2

Definition at line 389 of file winbase.h.

◆ LOGON32_PROVIDER_WINNT50

#define LOGON32_PROVIDER_WINNT50   3

Definition at line 390 of file winbase.h.

◆ LOGON_NETCREDENTIALS_ONLY

#define LOGON_NETCREDENTIALS_ONLY   0x00000002

Definition at line 620 of file winbase.h.

◆ LOGON_WITH_PROFILE

#define LOGON_WITH_PROFILE   0x00000001

Definition at line 619 of file winbase.h.

◆ LogonUser

#define LogonUser   LogonUserA

Definition at line 3799 of file winbase.h.

◆ LogonUserEx

#define LogonUserEx   LogonUserExA

Definition at line 3800 of file winbase.h.

◆ LookupAccountName

#define LookupAccountName   LookupAccountNameA

Definition at line 3801 of file winbase.h.

◆ LookupAccountSid

#define LookupAccountSid   LookupAccountSidA

Definition at line 3802 of file winbase.h.

◆ LookupPrivilegeDisplayName

#define LookupPrivilegeDisplayName   LookupPrivilegeDisplayNameA

Definition at line 3803 of file winbase.h.

◆ LookupPrivilegeName

#define LookupPrivilegeName   LookupPrivilegeNameA

Definition at line 3804 of file winbase.h.

◆ LookupPrivilegeValue

#define LookupPrivilegeValue   LookupPrivilegeValueA

Definition at line 3805 of file winbase.h.

◆ LPTR

#define LPTR   64

Definition at line 381 of file winbase.h.

◆ lstrcat

#define lstrcat   lstrcatA

Definition at line 3806 of file winbase.h.

◆ lstrcmp

#define lstrcmp   lstrcmpA

Definition at line 3807 of file winbase.h.

◆ lstrcmpi

#define lstrcmpi   lstrcmpiA

Definition at line 3808 of file winbase.h.

◆ lstrcpy

#define lstrcpy   lstrcpyA

Definition at line 3809 of file winbase.h.

◆ lstrcpyn

#define lstrcpyn   lstrcpynA

Definition at line 3810 of file winbase.h.

◆ lstrlen

#define lstrlen   lstrlenA

Definition at line 3811 of file winbase.h.

◆ MAKEINTATOM

#define MAKEINTATOM (   i)    (LPTSTR)((ULONG_PTR)((WORD)(i)))

Definition at line 1463 of file winbase.h.

◆ MakeProcInstance

#define MakeProcInstance (   p,
  i 
)    (p)

Definition at line 2859 of file winbase.h.

◆ MARKPARITY

#define MARKPARITY   3

Definition at line 456 of file winbase.h.

◆ MAX_COMPUTERNAME_LENGTH

#define MAX_COMPUTERNAME_LENGTH   15

Definition at line 243 of file winbase.h.

◆ MAX_PROFILE_LEN

#define MAX_PROFILE_LEN   80

Definition at line 245 of file winbase.h.

◆ MAXIMUM_SUSPEND_COUNT

#define MAXIMUM_SUSPEND_COUNT   0x7F

Definition at line 405 of file winbase.h.

◆ MAXIMUM_WAIT_OBJECTS

#define MAXIMUM_WAIT_OBJECTS   64

Definition at line 404 of file winbase.h.

◆ MAXINTATOM

#define MAXINTATOM   0xC000

Definition at line 449 of file winbase.h.

◆ MoveFile

#define MoveFile   MoveFileA

Definition at line 3812 of file winbase.h.

◆ MOVEFILE_COPY_ALLOWED

#define MOVEFILE_COPY_ALLOWED   2

Definition at line 399 of file winbase.h.

◆ MOVEFILE_CREATE_HARDLINK

#define MOVEFILE_CREATE_HARDLINK   16

Definition at line 402 of file winbase.h.

◆ MOVEFILE_DELAY_UNTIL_REBOOT

#define MOVEFILE_DELAY_UNTIL_REBOOT   4

Definition at line 400 of file winbase.h.

◆ MOVEFILE_FAIL_IF_NOT_TRACKABLE

#define MOVEFILE_FAIL_IF_NOT_TRACKABLE   32

Definition at line 403 of file winbase.h.

◆ MOVEFILE_REPLACE_EXISTING

#define MOVEFILE_REPLACE_EXISTING   1

Definition at line 398 of file winbase.h.

◆ MOVEFILE_WRITE_THROUGH

#define MOVEFILE_WRITE_THROUGH   8

Definition at line 401 of file winbase.h.

◆ MoveFileEx

#define MoveFileEx   MoveFileExA

Definition at line 3813 of file winbase.h.

◆ MoveFileWithProgress

#define MoveFileWithProgress   MoveFileWithProgressA

Definition at line 3814 of file winbase.h.

◆ MoveMemory

#define MoveMemory   RtlMoveMemory

Definition at line 1709 of file winbase.h.

◆ MS_CTS_ON

#define MS_CTS_ON   16

Definition at line 529 of file winbase.h.

◆ MS_DSR_ON

#define MS_DSR_ON   32

Definition at line 530 of file winbase.h.

◆ MS_RING_ON

#define MS_RING_ON   64

Definition at line 531 of file winbase.h.

◆ MS_RLSD_ON

#define MS_RLSD_ON   128

Definition at line 532 of file winbase.h.

◆ MUTEX_ALL_ACCESS

#define MUTEX_ALL_ACCESS   0x1f0001

Definition at line 158 of file winbase.h.

◆ MUTEX_MODIFY_STATE

#define MUTEX_MODIFY_STATE   1

Definition at line 159 of file winbase.h.

◆ NMPWAIT_NOWAIT

#define NMPWAIT_NOWAIT   1

Definition at line 132 of file winbase.h.

◆ NMPWAIT_USE_DEFAULT_WAIT

#define NMPWAIT_USE_DEFAULT_WAIT   0

Definition at line 134 of file winbase.h.

◆ NMPWAIT_WAIT_FOREVER

#define NMPWAIT_WAIT_FOREVER   ((DWORD)-1)

Definition at line 133 of file winbase.h.

◆ NONZEROLHND

#define NONZEROLHND   2

Definition at line 383 of file winbase.h.

◆ NONZEROLPTR

#define NONZEROLPTR   0

Definition at line 384 of file winbase.h.

◆ NOPARITY

#define NOPARITY   0

Definition at line 453 of file winbase.h.

◆ NORMAL_PRIORITY_CLASS

#define NORMAL_PRIORITY_CLASS   0x00000020

Definition at line 181 of file winbase.h.

◆ ObjectCloseAuditAlarm

#define ObjectCloseAuditAlarm   ObjectCloseAuditAlarmA

Definition at line 3815 of file winbase.h.

◆ ObjectDeleteAuditAlarm

#define ObjectDeleteAuditAlarm   ObjectDeleteAuditAlarmA

Definition at line 3816 of file winbase.h.

◆ ObjectOpenAuditAlarm

#define ObjectOpenAuditAlarm   ObjectOpenAuditAlarmA

Definition at line 3817 of file winbase.h.

◆ ObjectPrivilegeAuditAlarm

#define ObjectPrivilegeAuditAlarm   ObjectPrivilegeAuditAlarmA

Definition at line 3818 of file winbase.h.

◆ ODDPARITY

#define ODDPARITY   1

Definition at line 454 of file winbase.h.

◆ OF_CANCEL

#define OF_CANCEL   2048

Definition at line 124 of file winbase.h.

◆ OF_CREATE

#define OF_CREATE   4096

Definition at line 125 of file winbase.h.

◆ OF_DELETE

#define OF_DELETE   512

Definition at line 126 of file winbase.h.

◆ OF_EXIST

#define OF_EXIST   16384

Definition at line 127 of file winbase.h.

◆ OF_PARSE

#define OF_PARSE   256

Definition at line 128 of file winbase.h.

◆ OF_PROMPT

#define OF_PROMPT   8192

Definition at line 129 of file winbase.h.

◆ OF_READ

#define OF_READ   0

Definition at line 116 of file winbase.h.

◆ OF_READWRITE

#define OF_READWRITE   2

Definition at line 117 of file winbase.h.

◆ OF_REOPEN

#define OF_REOPEN   32768

Definition at line 130 of file winbase.h.

◆ OF_SHARE_COMPAT

#define OF_SHARE_COMPAT   0

Definition at line 119 of file winbase.h.

◆ OF_SHARE_DENY_NONE

#define OF_SHARE_DENY_NONE   64

Definition at line 120 of file winbase.h.

◆ OF_SHARE_DENY_READ

#define OF_SHARE_DENY_READ   48

Definition at line 121 of file winbase.h.

◆ OF_SHARE_DENY_WRITE

#define OF_SHARE_DENY_WRITE   32

Definition at line 122 of file winbase.h.

◆ OF_SHARE_EXCLUSIVE

#define OF_SHARE_EXCLUSIVE   16

Definition at line 123 of file winbase.h.

◆ OF_VERIFY

#define OF_VERIFY   1024

Definition at line 131 of file winbase.h.

◆ OF_WRITE

#define OF_WRITE   1

Definition at line 118 of file winbase.h.

◆ OFS_MAXPATHNAME

#define OFS_MAXPATHNAME   128

Definition at line 152 of file winbase.h.

◆ ONE5STOPBITS

#define ONE5STOPBITS   1

Definition at line 459 of file winbase.h.

◆ ONESTOPBIT

#define ONESTOPBIT   0

Definition at line 458 of file winbase.h.

◆ OPEN_ALWAYS

#define OPEN_ALWAYS   4

Definition at line 202 of file winbase.h.

◆ OPEN_EXISTING

#define OPEN_EXISTING   3

Definition at line 201 of file winbase.h.

◆ OpenBackupEventLog

#define OpenBackupEventLog   OpenBackupEventLogA

Definition at line 3819 of file winbase.h.

◆ OpenEvent

#define OpenEvent   OpenEventA

Definition at line 3820 of file winbase.h.

◆ OpenEventLog

#define OpenEventLog   OpenEventLogA

Definition at line 3821 of file winbase.h.

◆ OpenFileMapping

#define OpenFileMapping   OpenFileMappingA

Definition at line 3822 of file winbase.h.

◆ OpenMutex

#define OpenMutex   OpenMutexA

Definition at line 3823 of file winbase.h.

◆ OpenSemaphore

#define OpenSemaphore   OpenSemaphoreA

Definition at line 3824 of file winbase.h.

◆ OUTPUT_DEBUG_STRING_EVENT

#define OUTPUT_DEBUG_STRING_EVENT   8

Definition at line 109 of file winbase.h.

◆ OutputDebugString

#define OutputDebugString   OutputDebugStringA

Definition at line 3825 of file winbase.h.

◆ PARITY_EVEN

#define PARITY_EVEN   1024

Definition at line 99 of file winbase.h.

◆ PARITY_MARK

#define PARITY_MARK   2048

Definition at line 100 of file winbase.h.

◆ PARITY_NONE

#define PARITY_NONE   256

Definition at line 97 of file winbase.h.

◆ PARITY_ODD

#define PARITY_ODD   512

Definition at line 98 of file winbase.h.

◆ PARITY_SPACE

#define PARITY_SPACE   4096

Definition at line 101 of file winbase.h.

◆ PCF_16BITMODE

#define PCF_16BITMODE   512

Definition at line 80 of file winbase.h.

◆ PCF_DTRDSR

#define PCF_DTRDSR   1

Definition at line 71 of file winbase.h.

◆ PCF_INTTIMEOUTS

#define PCF_INTTIMEOUTS   128

Definition at line 78 of file winbase.h.

◆ PCF_PARITY_CHECK

#define PCF_PARITY_CHECK   8

Definition at line 74 of file winbase.h.

◆ PCF_RLSD

#define PCF_RLSD   4

Definition at line 73 of file winbase.h.

◆ PCF_RTSCTS

#define PCF_RTSCTS   2

Definition at line 72 of file winbase.h.

◆ PCF_SETXCHAR

#define PCF_SETXCHAR   32

Definition at line 76 of file winbase.h.

◆ PCF_SPECIALCHARS

#define PCF_SPECIALCHARS   256

Definition at line 79 of file winbase.h.

◆ PCF_TOTALTIMEOUTS

#define PCF_TOTALTIMEOUTS   64

Definition at line 77 of file winbase.h.

◆ PCF_XONXOFF

#define PCF_XONXOFF   16

Definition at line 75 of file winbase.h.

◆ PIPE_ACCESS_DUPLEX

#define PIPE_ACCESS_DUPLEX   3

Definition at line 164 of file winbase.h.

◆ PIPE_ACCESS_INBOUND

#define PIPE_ACCESS_INBOUND   1

Definition at line 165 of file winbase.h.

◆ PIPE_ACCESS_OUTBOUND

#define PIPE_ACCESS_OUTBOUND   2

Definition at line 166 of file winbase.h.

◆ PIPE_CLIENT_END

#define PIPE_CLIENT_END   0

Definition at line 173 of file winbase.h.

◆ PIPE_NOWAIT

#define PIPE_NOWAIT   1

Definition at line 172 of file winbase.h.

◆ PIPE_READMODE_BYTE

#define PIPE_READMODE_BYTE   0

Definition at line 169 of file winbase.h.

◆ PIPE_READMODE_MESSAGE

#define PIPE_READMODE_MESSAGE   2

Definition at line 170 of file winbase.h.

◆ PIPE_SERVER_END

#define PIPE_SERVER_END   1

Definition at line 174 of file winbase.h.

◆ PIPE_TYPE_BYTE

#define PIPE_TYPE_BYTE   0

Definition at line 167 of file winbase.h.

◆ PIPE_TYPE_MESSAGE

#define PIPE_TYPE_MESSAGE   4

Definition at line 168 of file winbase.h.

◆ PIPE_UNLIMITED_INSTANCES

#define PIPE_UNLIMITED_INSTANCES   255

Definition at line 175 of file winbase.h.

◆ PIPE_WAIT

#define PIPE_WAIT   0

Definition at line 171 of file winbase.h.

◆ PrivilegedServiceAuditAlarm

#define PrivilegedServiceAuditAlarm   PrivilegedServiceAuditAlarmA

Definition at line 3826 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_ADDITIVE

#define PROC_THREAD_ATTRIBUTE_ADDITIVE   0x00040000

Definition at line 1411 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_HANDLE_LIST

#define PROC_THREAD_ATTRIBUTE_HANDLE_LIST   (ProcThreadAttributeHandleList | PROC_THREAD_ATTRIBUTE_INPUT)

Definition at line 1430 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR

Definition at line 1429 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_INPUT

#define PROC_THREAD_ATTRIBUTE_INPUT   0x00020000

Definition at line 1410 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_NUMBER

#define PROC_THREAD_ATTRIBUTE_NUMBER   0x0000ffff

Definition at line 1408 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_PARENT_PROCESS

#define PROC_THREAD_ATTRIBUTE_PARENT_PROCESS   (ProcThreadAttributeParentProcess | PROC_THREAD_ATTRIBUTE_INPUT)

Definition at line 1431 of file winbase.h.

◆ PROC_THREAD_ATTRIBUTE_THREAD

#define PROC_THREAD_ATTRIBUTE_THREAD   0x00010000

Definition at line 1409 of file winbase.h.

◆ PROCESS_HEAP_ENTRY_BUSY

#define PROCESS_HEAP_ENTRY_BUSY   4

Definition at line 336 of file winbase.h.

◆ PROCESS_HEAP_ENTRY_DDESHARE

#define PROCESS_HEAP_ENTRY_DDESHARE   32

Definition at line 338 of file winbase.h.

◆ PROCESS_HEAP_ENTRY_MOVEABLE

#define PROCESS_HEAP_ENTRY_MOVEABLE   16

Definition at line 337 of file winbase.h.

◆ PROCESS_HEAP_REGION

#define PROCESS_HEAP_REGION   1

Definition at line 334 of file winbase.h.

◆ PROCESS_HEAP_UNCOMMITTED_RANGE

#define PROCESS_HEAP_UNCOMMITTED_RANGE   2

Definition at line 335 of file winbase.h.

◆ PROCESS_NAME_NATIVE

#define PROCESS_NAME_NATIVE   1

Definition at line 23 of file winbase.h.

◆ PROFILE_KERNEL

#define PROFILE_KERNEL   0x20000000

Definition at line 197 of file winbase.h.

◆ PROFILE_SERVER

#define PROFILE_SERVER   0x40000000

Definition at line 198 of file winbase.h.

◆ PROFILE_USER

#define PROFILE_USER   0x10000000

Definition at line 196 of file winbase.h.

◆ PROGRESS_CANCEL

#define PROGRESS_CANCEL   1

Definition at line 147 of file winbase.h.

◆ PROGRESS_CONTINUE

#define PROGRESS_CONTINUE   0

Definition at line 146 of file winbase.h.

◆ PROGRESS_QUIET

#define PROGRESS_QUIET   3

Definition at line 149 of file winbase.h.

◆ PROGRESS_STOP

#define PROGRESS_STOP   2

Definition at line 148 of file winbase.h.

◆ PST_FAX

#define PST_FAX   0x21

Definition at line 45 of file winbase.h.

◆ PST_LAT

#define PST_LAT   0x101

Definition at line 48 of file winbase.h.

◆ PST_MODEM

#define PST_MODEM   6

Definition at line 44 of file winbase.h.

◆ PST_NETWORK_BRIDGE

#define PST_NETWORK_BRIDGE   0x100

Definition at line 47 of file winbase.h.

◆ PST_PARALLELPORT

#define PST_PARALLELPORT   2

Definition at line 40 of file winbase.h.

◆ PST_RS232

#define PST_RS232   1

Definition at line 39 of file winbase.h.

◆ PST_RS422

#define PST_RS422   3

Definition at line 41 of file winbase.h.

◆ PST_RS423

#define PST_RS423   4

Definition at line 42 of file winbase.h.

◆ PST_RS449

#define PST_RS449   5

Definition at line 43 of file winbase.h.

◆ PST_SCANNER

#define PST_SCANNER   0x22

Definition at line 46 of file winbase.h.

◆ PST_TCPIP_TELNET

#define PST_TCPIP_TELNET   0x102

Definition at line 49 of file winbase.h.

◆ PST_UNSPECIFIED

#define PST_UNSPECIFIED   0

Definition at line 38 of file winbase.h.

◆ PST_X25

#define PST_X25   0x103

Definition at line 50 of file winbase.h.

◆ PURGE_RXABORT

#define PURGE_RXABORT   2

Definition at line 415 of file winbase.h.

◆ PURGE_RXCLEAR

#define PURGE_RXCLEAR   8

Definition at line 417 of file winbase.h.

◆ PURGE_TXABORT

#define PURGE_TXABORT   1

Definition at line 414 of file winbase.h.

◆ PURGE_TXCLEAR

#define PURGE_TXCLEAR   4

Definition at line 416 of file winbase.h.

◆ QueryDosDevice

#define QueryDosDevice   QueryDosDeviceA

Definition at line 3827 of file winbase.h.

◆ ReadEventLog

#define ReadEventLog   ReadEventLogA

Definition at line 3828 of file winbase.h.

◆ REALTIME_PRIORITY_CLASS

#define REALTIME_PRIORITY_CLASS   0x00000100

Definition at line 184 of file winbase.h.

◆ RegisterEventSource

#define RegisterEventSource   RegisterEventSourceA

Definition at line 3829 of file winbase.h.

◆ RemoveDirectory

#define RemoveDirectory   RemoveDirectoryA

Definition at line 3830 of file winbase.h.

◆ ReportEvent

#define ReportEvent   ReportEventA

Definition at line 3834 of file winbase.h.

◆ RESETDEV

#define RESETDEV   7

Definition at line 230 of file winbase.h.

◆ RIP_EVENT

#define RIP_EVENT   9

Definition at line 110 of file winbase.h.

◆ RTS_CONTROL_DISABLE

#define RTS_CONTROL_DISABLE   0

Definition at line 536 of file winbase.h.

◆ RTS_CONTROL_ENABLE

#define RTS_CONTROL_ENABLE   1

Definition at line 537 of file winbase.h.

◆ RTS_CONTROL_HANDSHAKE

#define RTS_CONTROL_HANDSHAKE   2

Definition at line 538 of file winbase.h.

◆ RTS_CONTROL_TOGGLE

#define RTS_CONTROL_TOGGLE   3

Definition at line 539 of file winbase.h.

◆ SCS_32BIT_BINARY

#define SCS_32BIT_BINARY   0

Definition at line 236 of file winbase.h.

◆ SCS_64BIT_BINARY

#define SCS_64BIT_BINARY   6

Definition at line 237 of file winbase.h.

◆ SCS_DOS_BINARY

#define SCS_DOS_BINARY   1

Definition at line 238 of file winbase.h.

◆ SCS_OS216_BINARY

#define SCS_OS216_BINARY   5

Definition at line 239 of file winbase.h.

◆ SCS_PIF_BINARY

#define SCS_PIF_BINARY   3

Definition at line 240 of file winbase.h.

◆ SCS_POSIX_BINARY

#define SCS_POSIX_BINARY   4

Definition at line 241 of file winbase.h.

◆ SCS_WOW_BINARY

#define SCS_WOW_BINARY   2

Definition at line 242 of file winbase.h.

◆ SearchPath

#define SearchPath   SearchPathA

Definition at line 3835 of file winbase.h.

◆ SecureZeroMemory

#define SecureZeroMemory   RtlSecureZeroMemory

Definition at line 1713 of file winbase.h.

◆ SECURITY_ANONYMOUS

#define SECURITY_ANONYMOUS   (SecurityAnonymous<<16)

Definition at line 540 of file winbase.h.

◆ SECURITY_CONTEXT_TRACKING

#define SECURITY_CONTEXT_TRACKING   0x40000

Definition at line 544 of file winbase.h.

◆ SECURITY_DELEGATION

#define SECURITY_DELEGATION   (SecurityDelegation<<16)

Definition at line 543 of file winbase.h.

◆ SECURITY_EFFECTIVE_ONLY

#define SECURITY_EFFECTIVE_ONLY   0x80000

Definition at line 545 of file winbase.h.

◆ SECURITY_IDENTIFICATION

#define SECURITY_IDENTIFICATION   (SecurityIdentification<<16)

Definition at line 541 of file winbase.h.

◆ SECURITY_IMPERSONATION

#define SECURITY_IMPERSONATION   (SecurityImpersonation<<16)

Definition at line 542 of file winbase.h.

◆ SECURITY_SQOS_PRESENT

#define SECURITY_SQOS_PRESENT   0x100000

Definition at line 546 of file winbase.h.

◆ SECURITY_VALID_SQOS_FLAGS

#define SECURITY_VALID_SQOS_FLAGS   0x1F0000

Definition at line 547 of file winbase.h.

◆ SEM_FAILCRITICALERRORS

#define SEM_FAILCRITICALERRORS   0x0001

Definition at line 440 of file winbase.h.

◆ SEM_NOALIGNMENTFAULTEXCEPT

#define SEM_NOALIGNMENTFAULTEXCEPT   0x0004

Definition at line 442 of file winbase.h.

◆ SEM_NOGPFAULTERRORBOX

#define SEM_NOGPFAULTERRORBOX   0x0002

Definition at line 441 of file winbase.h.

◆ SEM_NOOPENFILEERRORBOX

#define SEM_NOOPENFILEERRORBOX   0x8000

Definition at line 443 of file winbase.h.

◆ SEMAPHORE_ALL_ACCESS

#define SEMAPHORE_ALL_ACCESS   0x1f0003

Definition at line 160 of file winbase.h.

◆ SEMAPHORE_MODIFY_STATE

#define SEMAPHORE_MODIFY_STATE   2

Definition at line 161 of file winbase.h.

◆ SET_TAPE_DRIVE_INFORMATION

#define SET_TAPE_DRIVE_INFORMATION   1

Definition at line 274 of file winbase.h.

◆ SET_TAPE_MEDIA_INFORMATION

#define SET_TAPE_MEDIA_INFORMATION   0

Definition at line 273 of file winbase.h.

◆ SETBREAK

#define SETBREAK   8

Definition at line 231 of file winbase.h.

◆ SetComputerName

#define SetComputerName   SetComputerNameA

Definition at line 3836 of file winbase.h.

◆ SetComputerNameEx

#define SetComputerNameEx   SetComputerNameExA

Definition at line 3837 of file winbase.h.

◆ SetCurrentDirectory

#define SetCurrentDirectory   SetCurrentDirectoryA

Definition at line 3838 of file winbase.h.

◆ SetDefaultCommConfig

#define SetDefaultCommConfig   SetDefaultCommConfigA

Definition at line 3839 of file winbase.h.

◆ SETDTR

#define SETDTR   5

Definition at line 226 of file winbase.h.

◆ SetEnvironmentVariable

#define SetEnvironmentVariable   SetEnvironmentVariableA

Definition at line 3843 of file winbase.h.

◆ SetFileAttributes

#define SetFileAttributes   SetFileAttributesA

Definition at line 3844 of file winbase.h.

◆ SetFileSecurity

#define SetFileSecurity   SetFileSecurityA

Definition at line 3845 of file winbase.h.

◆ SETRTS

#define SETRTS   3

Definition at line 227 of file winbase.h.

◆ SetSwapAreaSize

#define SetSwapAreaSize (   w)    (w)

Definition at line 3258 of file winbase.h.

◆ SetVolumeLabel

#define SetVolumeLabel   SetVolumeLabelA

Definition at line 3852 of file winbase.h.

◆ SetVolumeMountPoint

#define SetVolumeMountPoint   SetVolumeMountPointA

Definition at line 3853 of file winbase.h.

◆ SETXOFF

#define SETXOFF   1

Definition at line 228 of file winbase.h.

◆ SETXON

#define SETXON   2

Definition at line 229 of file winbase.h.

◆ SHUTDOWN_NORETRY

#define SHUTDOWN_NORETRY   1

Definition at line 448 of file winbase.h.

◆ SLE_ERROR

#define SLE_ERROR   1

Definition at line 445 of file winbase.h.

◆ SLE_MINORERROR

#define SLE_MINORERROR   2

Definition at line 446 of file winbase.h.

◆ SLE_WARNING

#define SLE_WARNING   3

Definition at line 447 of file winbase.h.

◆ SP_BAUD

#define SP_BAUD   2

Definition at line 82 of file winbase.h.

◆ SP_DATABITS

#define SP_DATABITS   4

Definition at line 83 of file winbase.h.

◆ SP_HANDSHAKING

#define SP_HANDSHAKING   16

Definition at line 85 of file winbase.h.

◆ SP_PARITY

#define SP_PARITY   1

Definition at line 81 of file winbase.h.

◆ SP_PARITY_CHECK

#define SP_PARITY_CHECK   32

Definition at line 86 of file winbase.h.

◆ SP_RLSD

#define SP_RLSD   64

Definition at line 87 of file winbase.h.

◆ SP_SERIALCOMM

#define SP_SERIALCOMM   1

Definition at line 37 of file winbase.h.

◆ SP_STOPBITS

#define SP_STOPBITS   8

Definition at line 84 of file winbase.h.

◆ SPACEPARITY

#define SPACEPARITY   4

Definition at line 457 of file winbase.h.

◆ STACK_SIZE_PARAM_IS_A_RESERVATION

#define STACK_SIZE_PARAM_IS_A_RESERVATION   0x00010000

Definition at line 577 of file winbase.h.

◆ STARTF_FORCEOFFFEEDBACK

#define STARTF_FORCEOFFFEEDBACK   0x00000080

Definition at line 498 of file winbase.h.

◆ STARTF_FORCEONFEEDBACK

#define STARTF_FORCEONFEEDBACK   0x00000040

Definition at line 497 of file winbase.h.

◆ STARTF_RUNFULLSCREEN

#define STARTF_RUNFULLSCREEN   0x00000020

Definition at line 496 of file winbase.h.

◆ STARTF_USECOUNTCHARS

#define STARTF_USECOUNTCHARS   0x00000008

Definition at line 494 of file winbase.h.

◆ STARTF_USEFILLATTRIBUTE

#define STARTF_USEFILLATTRIBUTE   0x00000010

Definition at line 495 of file winbase.h.

◆ STARTF_USEPOSITION

#define STARTF_USEPOSITION   0x00000004

Definition at line 493 of file winbase.h.

◆ STARTF_USESHOWWINDOW

#define STARTF_USESHOWWINDOW   0x00000001

Definition at line 491 of file winbase.h.

◆ STARTF_USESIZE

#define STARTF_USESIZE   0x00000002

Definition at line 492 of file winbase.h.

◆ STARTF_USESTDHANDLES

#define STARTF_USESTDHANDLES   0x00000100

Definition at line 499 of file winbase.h.

◆ STD_ERROR_HANDLE

#define STD_ERROR_HANDLE   (DWORD)(0xfffffff4)

Definition at line 269 of file winbase.h.

◆ STD_INPUT_HANDLE

#define STD_INPUT_HANDLE   (DWORD)(0xfffffff6)

Definition at line 267 of file winbase.h.

◆ STD_OUTPUT_HANDLE

#define STD_OUTPUT_HANDLE   (DWORD)(0xfffffff5)

Definition at line 268 of file winbase.h.

◆ STILL_ACTIVE

#define STILL_ACTIVE   0x103

Definition at line 233 of file winbase.h.

◆ STOPBITS_10

#define STOPBITS_10   1

Definition at line 94 of file winbase.h.

◆ STOPBITS_15

#define STOPBITS_15   2

Definition at line 95 of file winbase.h.

◆ STOPBITS_20

#define STOPBITS_20   4

Definition at line 96 of file winbase.h.

◆ STREAM_CONTAINS_PROPERTIES

#define STREAM_CONTAINS_PROPERTIES   4

Definition at line 489 of file winbase.h.

◆ STREAM_CONTAINS_SECURITY

#define STREAM_CONTAINS_SECURITY   2

Definition at line 488 of file winbase.h.

◆ STREAM_MODIFIED_WHEN_READ

#define STREAM_MODIFIED_WHEN_READ   1

Definition at line 487 of file winbase.h.

◆ STREAM_NORMAL_ATTRIBUTE

#define STREAM_NORMAL_ATTRIBUTE   0

Definition at line 486 of file winbase.h.

◆ TC_GP_TRAP

#define TC_GP_TRAP   2

Definition at line 509 of file winbase.h.

◆ TC_HARDERR

#define TC_HARDERR   1

Definition at line 508 of file winbase.h.

◆ TC_NORMAL

#define TC_NORMAL   0

Definition at line 507 of file winbase.h.

◆ TC_SIGNAL

#define TC_SIGNAL   3

Definition at line 510 of file winbase.h.

◆ THREAD_PRIORITY_ABOVE_NORMAL

#define THREAD_PRIORITY_ABOVE_NORMAL   1

Definition at line 275 of file winbase.h.

◆ THREAD_PRIORITY_BELOW_NORMAL

#define THREAD_PRIORITY_BELOW_NORMAL   (-1)

Definition at line 276 of file winbase.h.

◆ THREAD_PRIORITY_ERROR_RETURN

#define THREAD_PRIORITY_ERROR_RETURN   2147483647

Definition at line 282 of file winbase.h.

◆ THREAD_PRIORITY_HIGHEST

#define THREAD_PRIORITY_HIGHEST   2

Definition at line 277 of file winbase.h.

◆ THREAD_PRIORITY_IDLE

#define THREAD_PRIORITY_IDLE   (-15)

Definition at line 278 of file winbase.h.

◆ THREAD_PRIORITY_LOWEST

#define THREAD_PRIORITY_LOWEST   (-2)

Definition at line 279 of file winbase.h.

◆ THREAD_PRIORITY_NORMAL

#define THREAD_PRIORITY_NORMAL   0

Definition at line 280 of file winbase.h.

◆ THREAD_PRIORITY_TIME_CRITICAL

#define THREAD_PRIORITY_TIME_CRITICAL   15

Definition at line 281 of file winbase.h.

◆ TIME_ZONE_ID_DAYLIGHT

#define TIME_ZONE_ID_DAYLIGHT   2

Definition at line 285 of file winbase.h.

◆ TIME_ZONE_ID_INVALID

#define TIME_ZONE_ID_INVALID   0xFFFFFFFF

Definition at line 286 of file winbase.h.

◆ TIME_ZONE_ID_STANDARD

#define TIME_ZONE_ID_STANDARD   1

Definition at line 284 of file winbase.h.

◆ TIME_ZONE_ID_UNKNOWN

#define TIME_ZONE_ID_UNKNOWN   0

Definition at line 283 of file winbase.h.

◆ TLS_OUT_OF_INDEXES

#define TLS_OUT_OF_INDEXES   (DWORD)0xFFFFFFFF

Definition at line 549 of file winbase.h.

◆ TRUNCATE_EXISTING

#define TRUNCATE_EXISTING   5

Definition at line 203 of file winbase.h.

◆ TWOSTOPBITS

#define TWOSTOPBITS   2

Definition at line 460 of file winbase.h.

◆ UNLOAD_DLL_DEBUG_EVENT

#define UNLOAD_DLL_DEBUG_EVENT   7

Definition at line 108 of file winbase.h.

◆ UnlockResource

#define UnlockResource (   handle)    ((handle), 0)

Definition at line 3307 of file winbase.h.

◆ UnlockSegment

#define UnlockSegment (   w)    GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */

Definition at line 3308 of file winbase.h.

◆ UpdateResource

#define UpdateResource   UpdateResourceA

Definition at line 3854 of file winbase.h.

◆ VerifyVersionInfo

#define VerifyVersionInfo   VerifyVersionInfoA

Definition at line 3855 of file winbase.h.

◆ WAIT_ABANDONED

#define WAIT_ABANDONED   128

Definition at line 412 of file winbase.h.

◆ WAIT_ABANDONED_0

#define WAIT_ABANDONED_0   128

Definition at line 407 of file winbase.h.

◆ WAIT_FAILED

#define WAIT_FAILED   ((DWORD)0xFFFFFFFF)

Definition at line 413 of file winbase.h.

◆ WAIT_IO_COMPLETION

#define WAIT_IO_COMPLETION   0xC0

Definition at line 411 of file winbase.h.

◆ WAIT_OBJECT_0

#define WAIT_OBJECT_0   0

Definition at line 406 of file winbase.h.

◆ WAIT_TIMEOUT

#define WAIT_TIMEOUT   258

Definition at line 409 of file winbase.h.

◆ WaitNamedPipe

#define WaitNamedPipe   WaitNamedPipeA

Definition at line 3856 of file winbase.h.

◆ WINBASEAPI

#define WINBASEAPI   DECLSPEC_IMPORT

Definition at line 5 of file winbase.h.

◆ WritePrivateProfileSection

#define WritePrivateProfileSection   WritePrivateProfileSectionA

Definition at line 3857 of file winbase.h.

◆ WritePrivateProfileString

#define WritePrivateProfileString   WritePrivateProfileStringA

Definition at line 3858 of file winbase.h.

◆ WritePrivateProfileStruct

#define WritePrivateProfileStruct   WritePrivateProfileStructA

Definition at line 3859 of file winbase.h.

◆ WriteProfileSection

#define WriteProfileSection   WriteProfileSectionA

Definition at line 3860 of file winbase.h.

◆ WriteProfileString

#define WriteProfileString   WriteProfileStringA

Definition at line 3861 of file winbase.h.

◆ Yield

#define Yield ( )

Definition at line 3405 of file winbase.h.

◆ ZeroMemory

#define ZeroMemory   RtlZeroMemory

Definition at line 1712 of file winbase.h.

Typedef Documentation

◆ BY_HANDLE_FILE_INFORMATION

◆ COMMCONFIG

◆ COMMPROP

◆ COMMTIMEOUTS

◆ COMSTAT

◆ CREATE_PROCESS_DEBUG_INFO

◆ CREATE_THREAD_DEBUG_INFO

◆ CRITICAL_SECTION

◆ CRITICAL_SECTION_DEBUG

◆ DCB

typedef struct _DCB DCB

◆ DEBUG_EVENT

◆ DYNAMIC_TIME_ZONE_INFORMATION

◆ ENUMRESLANGPROC

Definition at line 3661 of file winbase.h.

◆ ENUMRESLANGPROCA

typedef BOOL(CALLBACK * ENUMRESLANGPROCA) (HMODULE, LPCSTR, LPCSTR, WORD, LONG_PTR)

Definition at line 1445 of file winbase.h.

◆ ENUMRESLANGPROCW

typedef BOOL(CALLBACK * ENUMRESLANGPROCW) (HMODULE, LPCWSTR, LPCWSTR, WORD, LONG_PTR)

Definition at line 1446 of file winbase.h.

◆ ENUMRESNAMEPROC

Definition at line 3662 of file winbase.h.

◆ ENUMRESNAMEPROCA

typedef BOOL(CALLBACK * ENUMRESNAMEPROCA) (HMODULE, LPCSTR, LPSTR, LONG_PTR)

Definition at line 1447 of file winbase.h.

◆ ENUMRESNAMEPROCW

typedef BOOL(CALLBACK * ENUMRESNAMEPROCW) (HMODULE, LPCWSTR, LPWSTR, LONG_PTR)

Definition at line 1448 of file winbase.h.

◆ ENUMRESTYPEPROC

Definition at line 3663 of file winbase.h.

◆ ENUMRESTYPEPROCA

typedef BOOL(CALLBACK * ENUMRESTYPEPROCA) (HMODULE, LPSTR, LONG_PTR)

Definition at line 1449 of file winbase.h.

◆ ENUMRESTYPEPROCW

typedef BOOL(CALLBACK * ENUMRESTYPEPROCW) (HMODULE, LPWSTR, LONG_PTR)

Definition at line 1450 of file winbase.h.

◆ EVENTLOG_FULL_INFORMATION

◆ EXCEPTION_DEBUG_INFO

◆ EXIT_PROCESS_DEBUG_INFO

◆ EXIT_THREAD_DEBUG_INFO

◆ FILETIME

◆ FINDEX_INFO_LEVELS

◆ FINDEX_SEARCH_OPS

◆ GET_FILEEX_INFO_LEVELS

◆ HW_PROFILE_INFO

Definition at line 3656 of file winbase.h.

◆ HW_PROFILE_INFOA

◆ HW_PROFILE_INFOW

◆ INIT_ONCE

Definition at line 3866 of file winbase.h.

◆ LDT_ENTRY

◆ LOAD_DLL_DEBUG_INFO

◆ LPBY_HANDLE_FILE_INFORMATION

◆ LPCOMMCONFIG

static LPCOMMCONFIG

Definition at line 35 of file confdlg.c.

◆ LPCOMMPROP

◆ LPCOMMTIMEOUTS

◆ LPCOMSTAT

◆ LPCONTEXT

Definition at line 805 of file winbase.h.

◆ LPCREATE_PROCESS_DEBUG_INFO

◆ LPCREATE_THREAD_DEBUG_INFO

◆ LPCRITICAL_SECTION

◆ LPCRITICAL_SECTION_DEBUG

◆ LPDCB

typedef struct _DCB* LPDCB

◆ LPDEBUG_EVENT

◆ LPEVENTLOG_FULL_INFORMATION

◆ LPEXCEPTION_DEBUG_INFO

◆ LPEXCEPTION_POINTERS

Definition at line 807 of file winbase.h.

◆ LPEXCEPTION_RECORD

Definition at line 806 of file winbase.h.

◆ LPEXIT_PROCESS_DEBUG_INFO

◆ LPEXIT_THREAD_DEBUG_INFO

◆ LPFIBER_START_ROUTINE

Definition at line 1442 of file winbase.h.

◆ LPFILETIME

◆ LPHW_PROFILE_INFO

Definition at line 3656 of file winbase.h.

◆ LPHW_PROFILE_INFOA

◆ LPHW_PROFILE_INFOW

◆ LPINIT_ONCE

Definition at line 3868 of file winbase.h.

◆ LPLDT_ENTRY

◆ LPLOAD_DLL_DEBUG_INFO

◆ LPMEMORYSTATUS

◆ LPOFSTRUCT

◆ LPOUTPUT_DEBUG_STRING_INFO

◆ LPOVERLAPPED

◆ LPOVERLAPPED_COMPLETION_ROUTINE

typedef void(CALLBACK * LPOVERLAPPED_COMPLETION_ROUTINE) (DWORD, DWORD, LPOVERLAPPED)

Definition at line 1451 of file winbase.h.

◆ LPOVERLAPPED_ENTRY

◆ LPPROC_THREAD_ATTRIBUTE_LIST

◆ LPPROCESS_HEAP_ENTRY

◆ LPPROCESS_INFORMATION

◆ LPPROGRESS_ROUTINE

◆ LPRIP_INFO

◆ LPSTARTUPINFO

Definition at line 3654 of file winbase.h.

◆ LPSTARTUPINFOA

◆ LPSTARTUPINFOW

◆ LPSYSTEM_INFO

◆ LPSYSTEM_POWER_STATUS

◆ LPSYSTEMTIME

static LPSYSTEMTIME

Definition at line 27 of file time.c.

◆ LPTHREAD_START_ROUTINE

typedef DWORD(WINAPI * LPTHREAD_START_ROUTINE) (LPVOID)

Definition at line 729 of file winbase.h.

◆ LPTIME_ZONE_INFORMATION

◆ LPTOP_LEVEL_EXCEPTION_FILTER

◆ LPUNLOAD_DLL_DEBUG_INFO

◆ LPWIN32_FILE_ATTRIBUTE_DATA

◆ LPWIN32_FIND_DATA

Definition at line 3655 of file winbase.h.

◆ LPWIN32_FIND_DATAA

◆ LPWIN32_FIND_DATAW

◆ LPWIN32_STREAM_ID

◆ MEMORYSTATUS

◆ OFSTRUCT

◆ OUTPUT_DEBUG_STRING_INFO

◆ OVERLAPPED

◆ OVERLAPPED_ENTRY

◆ PAPCFUNC

Definition at line 1454 of file winbase.h.

◆ PBY_HANDLE_FILE_INFORMATION

◆ PCRITICAL_SECTION

◆ PCRITICAL_SECTION_DEBUG

◆ PDYNAMIC_TIME_ZONE_INFORMATION

◆ PFE_EXPORT_FUNC

typedef DWORD(WINAPI * PFE_EXPORT_FUNC) (_In_reads_bytes_(ulLength) PBYTE pbData, _In_opt_ PVOID pvCallbackContext, _In_ ULONG ulLength)

Definition at line 1433 of file winbase.h.

◆ PFE_IMPORT_FUNC

typedef DWORD(WINAPI * PFE_IMPORT_FUNC) (_Out_writes_bytes_to_(*ulLength, *ulLength) PBYTE pbData, _In_opt_ PVOID pvCallbackContext, _Inout_ PULONG ulLength)

Definition at line 1466 of file winbase.h.

◆ PFIBER_START_ROUTINE

typedef VOID(WINAPI * PFIBER_START_ROUTINE) (LPVOID lpFiberParameter)

Definition at line 1441 of file winbase.h.

◆ PFILETIME

◆ PFLS_CALLBACK_FUNCTION

typedef VOID(WINAPI * PFLS_CALLBACK_FUNCTION) (PVOID)

Definition at line 1444 of file winbase.h.

◆ PINIT_ONCE

Definition at line 3867 of file winbase.h.

◆ PINIT_ONCE_FN

Definition at line 3876 of file winbase.h.

◆ PLDT_ENTRY

◆ POFSTRUCT

◆ POVERLAPPED

◆ PPROC_THREAD_ATTRIBUTE_LIST

◆ PPROCESS_HEAP_ENTRY

◆ PPROCESS_INFORMATION

◆ PROC_THREAD_ATTRIBUTE_NUM

◆ PROCESS_HEAP_ENTRY

◆ PROCESS_INFORMATION

◆ PSYSTEMTIME

static PSYSTEMTIME

Definition at line 32 of file cert.c.

◆ PTIME_ZONE_INFORMATION

◆ PTIMERAPCROUTINE

typedef void(CALLBACK * PTIMERAPCROUTINE) (PVOID, DWORD, DWORD)

Definition at line 1455 of file winbase.h.

◆ PTOP_LEVEL_EXCEPTION_FILTER

typedef LONG(CALLBACK * PTOP_LEVEL_EXCEPTION_FILTER) (LPEXCEPTION_POINTERS)

Definition at line 1452 of file winbase.h.

◆ PWIN32_FIND_DATA

Definition at line 3655 of file winbase.h.

◆ PWIN32_FIND_DATAA

◆ PWIN32_FIND_DATAW

◆ RIP_INFO

◆ STARTUPINFO

Definition at line 3654 of file winbase.h.

◆ STARTUPINFOA

◆ STARTUPINFOW

◆ SYSTEM_INFO

◆ SYSTEM_POWER_STATUS

◆ SYSTEMTIME

◆ TIME_ZONE_INFORMATION

◆ UNLOAD_DLL_DEBUG_INFO

◆ WIN32_FILE_ATTRIBUTE_DATA

◆ WIN32_FIND_DATA

Definition at line 3655 of file winbase.h.

◆ WIN32_FIND_DATAA

◆ WIN32_FIND_DATAW

◆ WIN32_STREAM_ID

Enumeration Type Documentation

◆ _FINDEX_INFO_LEVELS

Enumerator
FindExInfoStandard 
FindExInfoBasic 
FindExInfoMaxInfoLevel 

Definition at line 1127 of file winbase.h.

1127 {
enum _FINDEX_INFO_LEVELS FINDEX_INFO_LEVELS
@ FindExInfoStandard
Definition: winbase.h:1128
@ FindExInfoMaxInfoLevel
Definition: winbase.h:1130
@ FindExInfoBasic
Definition: winbase.h:1129

◆ _FINDEX_SEARCH_OPS

Enumerator
FindExSearchNameMatch 
FindExSearchLimitToDirectories 
FindExSearchLimitToDevices 
FindExSearchMaxSearchOp 

Definition at line 1133 of file winbase.h.

1133 {
enum _FINDEX_SEARCH_OPS FINDEX_SEARCH_OPS
@ FindExSearchLimitToDevices
Definition: winbase.h:1136
@ FindExSearchMaxSearchOp
Definition: winbase.h:1137
@ FindExSearchLimitToDirectories
Definition: winbase.h:1135
@ FindExSearchNameMatch
Definition: winbase.h:1134

◆ _GET_FILEEX_INFO_LEVELS

Enumerator
GetFileExInfoStandard 
GetFileExMaxInfoLevel 

Definition at line 1160 of file winbase.h.

1160 {
enum _GET_FILEEX_INFO_LEVELS GET_FILEEX_INFO_LEVELS
@ GetFileExInfoStandard
Definition: winbase.h:1161
@ GetFileExMaxInfoLevel
Definition: winbase.h:1162

◆ _PROC_THREAD_ATTRIBUTE_NUM

Enumerator
ProcThreadAttributeParentProcess 
ProcThreadAttributeHandleList 
ProcThreadAttributeGroupAffinity 
ProcThreadAttributeIdealProcessor 
ProcThreadAttributeUmsThread 
ProcThreadAttributeMitigationPolicy 
ProcThreadAttributeSecurityCapabilities 
ProcThreadAttributeProtectionLevel 
ProcThreadAttributeJobList 
ProcThreadAttributeChildProcessPolicy 
ProcThreadAttributeAllApplicationPackagesPolicy 
ProcThreadAttributeWin32kFilter 
ProcThreadAttributeSafeOpenPromptOriginClaim 

Definition at line 1413 of file winbase.h.

1413 {
@ ProcThreadAttributeAllApplicationPackagesPolicy
Definition: winbase.h:1424
@ ProcThreadAttributeUmsThread
Definition: winbase.h:1418
@ ProcThreadAttributeSecurityCapabilities
Definition: winbase.h:1420
@ ProcThreadAttributeChildProcessPolicy
Definition: winbase.h:1423
@ ProcThreadAttributeWin32kFilter
Definition: winbase.h:1425
@ ProcThreadAttributeMitigationPolicy
Definition: winbase.h:1419
@ ProcThreadAttributeProtectionLevel
Definition: winbase.h:1421
@ ProcThreadAttributeSafeOpenPromptOriginClaim
Definition: winbase.h:1426
@ ProcThreadAttributeJobList
Definition: winbase.h:1422
@ ProcThreadAttributeIdealProcessor
Definition: winbase.h:1417
@ ProcThreadAttributeParentProcess
Definition: winbase.h:1414
@ ProcThreadAttributeGroupAffinity
Definition: winbase.h:1416
@ ProcThreadAttributeHandleList
Definition: winbase.h:1415
enum _PROC_THREAD_ATTRIBUTE_NUM PROC_THREAD_ATTRIBUTE_NUM

Function Documentation

◆ _hread()

long WINAPI _hread ( _In_ HFILE  hFile,
_Out_writes_bytes_to_(lBytes, return) LPVOID  lpBuffer,
_In_ long  lBytes 
)

◆ _hwrite()

long WINAPI _hwrite ( _In_ HFILE  hFile,
_In_reads_bytes_(lBytes) LPCCH  lpBuffer,
_In_ long  lBytes 
)

◆ _lclose()

HFILE WINAPI _lclose ( _In_  HFILE)

◆ _lcreat()

HFILE WINAPI _lcreat ( _In_  LPCSTR,
_In_ int   
)

◆ _llseek()

LONG WINAPI _llseek ( _In_  HFILE,
_In_  LONG,
_In_ int   
)

◆ _lopen()

HFILE WINAPI _lopen ( _In_  LPCSTR,
_In_ int   
)

◆ _lread()

UINT WINAPI _lread ( _In_ HFILE  hFile,
_Out_writes_bytes_to_(uBytes, return) LPVOID  lpBuffer,
_In_ UINT  uBytes 
)

◆ _lwrite()

UINT WINAPI _lwrite ( _In_ HFILE  hFile,
_In_reads_bytes_(uBytes) LPCCH  lpBuffer,
_In_ UINT  uBytes 
)

Referenced by LZCopy(), and test__lwrite().

◆ _Out_writes_to_opt_() [1/2]

_Out_writes_to_opt_ ( cchBuffer  ,
return 1 
)

◆ _Out_writes_to_opt_() [2/2]

_In_ LPCSTR _In_opt_ LPCSTR _In_ DWORD _Out_writes_to_opt_ ( nBufferLength  ,
return 1 
)

◆ _Success_() [1/2]

_Success_ ( )

◆ _Success_() [2/2]

_Success_ ( return = FALSE)

Definition at line 1028 of file fsctrl.c.

3189{
3191
3192 PVPB Vpb = Vcb->Vpb;
3193 PVPB OldVpb;
3194
3195 BOOLEAN Remount = FALSE;
3196
3197 PAGED_CODE();
3198
3199 UNREFERENCED_PARAMETER( IrpContext );
3200
3201 //
3202 // Check whether we are looking for a device only Mvcb.
3203 //
3204
3205 for (Link = CdData.VcbQueue.Flink;
3206 Link != &CdData.VcbQueue;
3207 Link = Link->Flink) {
3208
3209 *OldVcb = CONTAINING_RECORD( Link, VCB, VcbLinks );
3210
3211 //
3212 // Skip ourselves.
3213 //
3214
3215 if (Vcb == *OldVcb) { continue; }
3216
3217 //
3218 // Look at the Vpb and state of the previous Vcb.
3219 //
3220
3221 OldVpb = (*OldVcb)->Vpb;
3222
3223 if ((OldVpb != Vpb) &&
3224 (OldVpb->RealDevice == Vpb->RealDevice) &&
3225 ((*OldVcb)->VcbCondition == VcbNotMounted)) {
3226
3227 //
3228 // If the current disk is a raw disk then it can match a previous music or
3229 // raw disk.
3230 //
3231
3232 if (FlagOn( Vcb->VcbState, VCB_STATE_AUDIO_DISK)) {
3233
3234 if (FlagOn( (*OldVcb)->VcbState, VCB_STATE_AUDIO_DISK )) {
3235
3236 //
3237 // If we have both TOC then fail the remount if the lengths
3238 // are different or they don't match.
3239 //
3240
3241 if ((Vcb->TocLength != (*OldVcb)->TocLength) ||
3242 ((Vcb->TocLength != 0) &&
3243 !RtlEqualMemory( Vcb->CdromToc,
3244 (*OldVcb)->CdromToc,
3245 Vcb->TocLength ))) {
3246
3247 continue;
3248 }
3249
3250 Remount = TRUE;
3251 break;
3252 }
3253
3254 //
3255 // The current disk is not a raw disk. Go ahead and compare
3256 // serial numbers, volume label and TOC.
3257 //
3258
3259 }
3260 else if ((OldVpb->SerialNumber == Vpb->SerialNumber) &&
3261 (Vcb->TocLength == (*OldVcb)->TocLength) &&
3262 ((Vcb->TocLength == 0) || RtlEqualMemory( Vcb->CdromToc,
3263 (*OldVcb)->CdromToc,
3264 Vcb->TocLength )) &&
3265 (Vpb->VolumeLabelLength == OldVpb->VolumeLabelLength) &&
3266 (RtlEqualMemory( OldVpb->VolumeLabel,
3267 Vpb->VolumeLabel,
3268 Vpb->VolumeLabelLength ))) {
3269 //
3270 // Remember the old Vcb. Then set the return value to
3271 // TRUE and break.
3272 //
3273
3274 Remount = TRUE;
3275 break;
3276 }
3277 }
3278 }
3279
3280 return Remount;
3281}
#define PAGED_CODE()
unsigned char BOOLEAN
CD_DATA CdData
Definition: cddata.c:42
#define VCB_STATE_AUDIO_DISK
Definition: cdstruc.h:712
@ VcbNotMounted
Definition: cdstruc.h:490
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define FlagOn(_F, _SF)
Definition: ext2fs.h:179
IN OUT PVCB IN PDEVICE_OBJECT IN PVPB Vpb
Definition: fatprocs.h:1675
#define RtlEqualMemory(a, b, c)
Definition: kdvm.h:18
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define Vcb
Definition: cdprocs.h:1415
LIST_ENTRY VcbQueue
Definition: cdstruc.h:334
Definition: typedefs.h:120
struct _LIST_ENTRY * Flink
Definition: typedefs.h:121
Definition: cdstruc.h:498
Definition: iotypes.h:189
WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH/sizeof(WCHAR)]
Definition: iotypes.h:198
USHORT VolumeLabelLength
Definition: iotypes.h:193
ULONG SerialNumber
Definition: iotypes.h:196
struct _DEVICE_OBJECT * RealDevice
Definition: iotypes.h:195
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
static int Link(const char **args)
Definition: vfdcmd.c:2414

◆ AccessCheck()

BOOL WINAPI AccessCheck ( PSECURITY_DESCRIPTOR  ,
HANDLE  ,
DWORD  ,
PGENERIC_MAPPING  ,
PPRIVILEGE_SET  ,
PDWORD  ,
PDWORD  ,
PBOOL   
)

◆ AccessCheckAndAuditAlarmA()

BOOL WINAPI AccessCheckAndAuditAlarmA ( _In_ LPCSTR  SubsystemName,
_In_opt_ LPVOID  HandleId,
_In_ LPSTR  ObjectTypeName,
_In_opt_ LPSTR  ObjectName,
_In_ PSECURITY_DESCRIPTOR  SecurityDescriptor,
_In_ DWORD  DesiredAccess,
_In_ PGENERIC_MAPPING  GenericMapping,
_In_ BOOL  ObjectCreation,
_Out_ LPDWORD  GrantedAccess,
_Out_ LPBOOL  AccessStatus,
_Out_ LPBOOL  pfGenerateOnClose 
)

◆ AccessCheckAndAuditAlarmW()

BOOL WINAPI AccessCheckAndAuditAlarmW ( LPCWSTR  ,
LPVOID  ,
LPWSTR  ,
LPWSTR  ,
PSECURITY_DESCRIPTOR  ,
DWORD  ,
PGENERIC_MAPPING  ,
BOOL  ,
PDWORD  ,
PBOOL  ,
PBOOL   
)

◆ AccessCheckByType()

BOOL WINAPI AccessCheckByType ( _In_ PSECURITY_DESCRIPTOR  pSecurityDescriptor,
_In_opt_ PSID  PrincipalSelfSid,
_In_ HANDLE  ClientToken,
_In_ DWORD  DesiredAccess,
_In_reads_opt_(ObjectTypeListLength) POBJECT_TYPE_LIST  ObjectTypeList,
_In_ DWORD  ObjectTypeListLength,
_In_ PGENERIC_MAPPING  GenericMapping,
_Out_writes_bytes_ *PrivilegeSetLength PPRIVILEGE_SET  PrivilegeSet,
_Inout_ LPDWORD  PrivilegeSetLength,
_Out_ LPDWORD  GrantedAccess,
_Out_ LPBOOL  AccessStatus 
)

◆ AccessCheckByTypeResultList()

BOOL WINAPI AccessCheckByTypeResultList ( _In_ PSECURITY_DESCRIPTOR  pSecurityDescriptor,
_In_opt_ PSID  PrincipalSelfSid,
_In_ HANDLE  ClientToken,
_In_ DWORD  DesiredAccess,
_In_reads_(ObjectTypeListLength) POBJECT_TYPE_LIST  ObjectTypeList,
_In_ DWORD  ObjectTypeListLength,
_In_ PGENERIC_MAPPING  GenericMapping,
_Out_writes_bytes_ *PrivilegeSetLength PPRIVILEGE_SET  PrivilegeSet,
_Inout_ LPDWORD  PrivilegeSetLength,
_Out_writes_(ObjectTypeListLength) LPDWORD  GrantedAccess,
_Out_writes_(ObjectTypeListLength) LPBOOL  AccessStatus 
)

Determines whether security access can be granted to a client that requests such access on the object type list. Unlike the AccessCheckByType variant, this function will grant or deny access to each individual object and sub-object in the list.

Parameters
[in]pSecurityDescriptorA pointer to a security descriptor that identifies the security information of an object being accessed. This function walks through this descriptor for any ACLs and respective access rights if access can be granted.
[in]PrincipalSelfSidA pointer to a principal self SID. This parameter can be NULL if the associated object being checked for access does not represent a principal.
[in]ClientTokenA handle to an access token, that identifies the client of which requests access to the target object.
[in]DesiredAccessThe access right bitmask where the client wants to acquire. This can be an OR'ed set of multiple access rights or MAXIMUM_ALLOWED to request all of possible access rights the target object allows. If only some rights were granted but not all the access is deemed as denied.
[in]ObjectTypeListA pointer to a given object type list. This function will perform an access check against the main object and sub-objects of this list. This parameter must not be NULL!
[in]ObjectTypeListLengthThe length of the object type list array, pointed by ObjectTypeList. This length in question represents the number of elements in such array. This parameter must be 0 if no array list is provided.
[in]GenericMappingThe generic mapping of access rights of an object type.
[out]PrivilegeSetA pointer to a set of privileges that were used to perform the access check, returned to caller. This function will return no privileges (privilege count set to 0) if no privileges were used to accomplish the access check. This parameter must not be NULL!
[in,out]PrivilegeSetLengthThe total length size of a set of privileges. This length represents the count of elements in the privilege set array.
[out]GrantedAccessA pointer to granted access rights. This parameter is an array of granted rights for the object and each sub-object of an object type list.
[out]AccessStatusA pointer to a boolean value that indicates whether access is granted or denied to the client that requests access to the object and sub-objects of an object type list. This parameter is an array of boolean values for the object and each individual sub-object of the list.
Returns
The function returns TRUE if the access check operation has completed successfully, otherwise it returns FALSE.

Definition at line 1881 of file security.c.

1893{
1895 DWORD ResultListIndex;
1896 PNTSTATUS NtAccessStatus = NULL;
1897
1898 Status = NtAccessCheckByTypeResultList(pSecurityDescriptor,
1899 PrincipalSelfSid,
1900 ClientToken,
1902 ObjectTypeList,
1903 ObjectTypeListLength,
1905 PrivilegeSet,
1906 PrivilegeSetLength,
1908 NtAccessStatus);
1909 if (!NT_SUCCESS(Status))
1910 {
1912 return FALSE;
1913 }
1914
1915 for (ResultListIndex = 0; ResultListIndex < ObjectTypeListLength; ResultListIndex++)
1916 {
1917 AccessStatus[ResultListIndex] = RtlNtStatusToDosError(NtAccessStatus[ResultListIndex]);
1918 }
1919
1920 return TRUE;
1921}
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
NTSTATUS NTAPI NtAccessCheckByTypeResultList(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_opt_ PSID PrincipalSelfSid, _In_ HANDLE ClientToken, _In_ ACCESS_MASK DesiredAccess, _In_reads_(ObjectTypeListLength) POBJECT_TYPE_LIST ObjectTypeList, _In_ ULONG ObjectTypeListLength, _In_ PGENERIC_MAPPING GenericMapping, _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet, _Inout_ PULONG PrivilegeSetLength, _Out_writes_(ObjectTypeListLength) PACCESS_MASK GrantedAccess, _Out_writes_(ObjectTypeListLength) PNTSTATUS AccessStatus)
Determines whether security access can be granted to a client that requests such access on the object...
Definition: accesschk.c:2297
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define SetLastError(x)
Definition: compat.h:752
unsigned long DWORD
Definition: ntddk_ex.h:95
Status
Definition: gdiplustypes.h:25
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
* PNTSTATUS
Definition: strlen.c:14
ACCESS_MASK * PACCESS_MASK
Definition: nt_native.h:41
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2658
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET _In_ PGENERIC_MAPPING _In_ KPROCESSOR_MODE _Out_ PACCESS_MASK _Out_ PNTSTATUS AccessStatus
Definition: sefuncs.h:21
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET _In_ PGENERIC_MAPPING _In_ KPROCESSOR_MODE _Out_ PACCESS_MASK GrantedAccess
Definition: sefuncs.h:20

◆ AddAccessAllowedAce()

BOOL WINAPI AddAccessAllowedAce ( PACL  pAcl,
DWORD  dwAceRevision,
DWORD  AccessMask,
PSID  pSid 
)

◆ AddAccessDeniedAce()

BOOL WINAPI AddAccessDeniedAce ( PACL  pAcl,
DWORD  dwAceRevision,
DWORD  AccessMask,
PSID  pSid 
)

Definition at line 1090 of file security.c.

1094{
1096
1099 AccessMask,
1100 pSid);
1101 if (!NT_SUCCESS(Status))
1102 {
1104 return FALSE;
1105 }
1106
1107 return TRUE;
1108}
NTSYSAPI NTSTATUS NTAPI RtlAddAccessDeniedAce(_Inout_ PACL Acl, _In_ ULONG Revision, _In_ ACCESS_MASK AccessMask, _In_ PSID Sid)

Referenced by AccRewriteSetEntriesInAcl(), convert_nfs4acl_2_dacl(), GetShellSecurityDescriptor(), test_AccessCheck(), and test_process_security().

◆ AddAce()

BOOL WINAPI AddAce ( PACL  pAcl,
DWORD  dwAceRevision,
DWORD  dwStartingAceIndex,
PVOID  pAceList,
DWORD  nAceListLength 
)

Definition at line 1141 of file security.c.

1146{
1148
1149 Status = RtlAddAce(pAcl,
1151 dwStartingAceIndex,
1152 pAceList,
1153 nAceListLength);
1154 if (!NT_SUCCESS(Status))
1155 {
1157 return FALSE;
1158 }
1159
1160 return TRUE;
1161}
NTSYSAPI NTSTATUS NTAPI RtlAddAce(_Inout_ PACL Acl, _In_ ULONG AceRevision, _In_ ULONG StartingAceIndex, _In_reads_bytes_(AceListLength) PVOID AceList, _In_ ULONG AceListLength)

Referenced by test_AddAce().

◆ AddAtomA()

ATOM WINAPI AddAtomA ( _In_opt_  LPCSTR)

◆ AddAtomW()

ATOM WINAPI AddAtomW ( _In_opt_  LPCWSTR)

◆ AddAuditAccessAce()

BOOL WINAPI AddAuditAccessAce ( PACL  pAcl,
DWORD  dwAceRevision,
DWORD  dwAccessMask,
PSID  pSid,
BOOL  bAuditSuccess,
BOOL  bAuditFailure 
)

Definition at line 1951 of file security.c.

1957{
1959
1962 dwAccessMask,
1963 pSid,
1964 bAuditSuccess,
1965 bAuditFailure);
1966 if (!NT_SUCCESS(Status))
1967 {
1969 return FALSE;
1970 }
1971
1972 return TRUE;
1973}
NTSYSAPI NTSTATUS NTAPI RtlAddAuditAccessAce(_Inout_ PACL Acl, _In_ ULONG Revision, _In_ ACCESS_MASK AccessMask, _In_ PSID Sid, _In_ BOOLEAN Success, _In_ BOOLEAN Failure)

◆ AdjustTokenGroups()

BOOL WINAPI AdjustTokenGroups ( HANDLE  TokenHandle,
BOOL  ResetToDefault,
PTOKEN_GROUPS  NewState,
DWORD  BufferLength,
PTOKEN_GROUPS  PreviousState,
PDWORD  ReturnLength 
)

Definition at line 346 of file security.c.

352{
354
356 ResetToDefault,
357 NewState,
361 if (!NT_SUCCESS(Status))
362 {
364 return FALSE;
365 }
366
367 return TRUE;
368}
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:43
_In_ ACCESS_MASK _In_ ULONG _Out_ PHANDLE TokenHandle
Definition: psfuncs.h:726
NTSTATUS NTAPI NtAdjustGroupsToken(_In_ HANDLE TokenHandle, _In_ BOOLEAN ResetToDefault, _In_ PTOKEN_GROUPS NewState, _In_ ULONG BufferLength, _Out_writes_bytes_to_opt_(BufferLength, *ReturnLength) PTOKEN_GROUPS PreviousState, _When_(PreviousState !=NULL, _Out_) PULONG ReturnLength)
Changes the list of groups by enabling or disabling them in an access token. Unlike NtAdjustPrivilege...
Definition: tokenadj.c:695
uint32_t * PULONG
Definition: typedefs.h:59
_In_ WDF_POWER_DEVICE_STATE PreviousState
Definition: wdfdevice.h:829
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3771

◆ AdjustTokenPrivileges()

BOOL WINAPI AdjustTokenPrivileges ( HANDLE  TokenHandle,
BOOL  DisableAllPrivileges,
PTOKEN_PRIVILEGES  NewState,
DWORD  BufferLength,
PTOKEN_PRIVILEGES  PreviousState,
PDWORD  ReturnLength 
)

Definition at line 374 of file security.c.

380{
382
384 DisableAllPrivileges,
385 NewState,
390 {
392 return TRUE;
393 }
394
395 if (!NT_SUCCESS(Status))
396 {
398 return FALSE;
399 }
400
401 /* AdjustTokenPrivileges is documented to do this */
403
404 return TRUE;
405}
#define ERROR_SUCCESS
Definition: deptool.c:10
#define STATUS_NOT_ALL_ASSIGNED
Definition: ntstatus.h:85
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtAdjustPrivilegesToken(_In_ HANDLE TokenHandle, _In_ BOOLEAN DisableAllPrivileges, _In_opt_ PTOKEN_PRIVILEGES NewState, _In_ ULONG BufferLength, _Out_writes_bytes_to_opt_(BufferLength, *ReturnLength) PTOKEN_PRIVILEGES PreviousState, _When_(PreviousState!=NULL, _Out_) PULONG ReturnLength)
Removes a certain amount of privileges of a token based upon the request by the caller.
Definition: tokenadj.c:451
#define ERROR_NOT_ALL_ASSIGNED
Definition: winerror.h:782

Referenced by AcquireRemoveRestorePrivilege(), AddDeviceW(), DisablePrivilege(), DisableTokenPrivileges(), EnablePrivilege(), EnableProcessPrivileges(), enableTokenPrivilege(), CShellCommandSACL::Execute(), FormatEx2(), InstallReactOS(), named_pipe_client_func(), PauseBalanceW(), Privilege(), pSetupEnablePrivilege(), RecvSubvolGUIW(), RecvSubvolW(), RemoveDeviceW(), ResetStatsW(), ResizeDeviceW(), ScmEnableBackupRestorePrivileges(), SendSubvolGUIW(), SendSubvolW(), set_privileges(), SetDriverLoadPrivilege(), SetPrivilege(), SHInvokePrivilegedFunctionW(), ShowScrubW(), ShutdownSystem(), StartBalanceW(), StartScrubW(), StopBalanceW(), StopScrubW(), SystemSetLocalTime(), SystemSetTime(), test8(), test_AdjustTokenPrivileges(), test_SetFileValidData(), test_system_security_access(), UpdateDriver(), WinMain(), and wWinMain().

◆ AllocateAndInitializeSid()

BOOL WINAPI AllocateAndInitializeSid ( PSID_IDENTIFIER_AUTHORITY  pIdentifierAuthority,
BYTE  nSubAuthorityCount,
DWORD  nSubAuthority0,
DWORD  nSubAuthority1,
DWORD  nSubAuthority2,
DWORD  nSubAuthority3,
DWORD  nSubAuthority4,
DWORD  nSubAuthority5,
DWORD  nSubAuthority6,
DWORD  nSubAuthority7,
PSID pSid 
)

Definition at line 674 of file security.c.

681{
683 pIdentifierAuthority, nSubAuthorityCount,
684 nSubAuthority0, nSubAuthority1, nSubAuthority2, nSubAuthority3,
685 nSubAuthority4, nSubAuthority5, nSubAuthority6, nSubAuthority7,
686 pSid ));
687}
static __inline BOOL set_ntstatus(NTSTATUS status)
Definition: security.c:227
NTSYSAPI NTSTATUS NTAPI RtlAllocateAndInitializeSid(IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount, IN ULONG SubAuthority0, IN ULONG SubAuthority1, IN ULONG SubAuthority2, IN ULONG SubAuthority3, IN ULONG SubAuthority4, IN ULONG SubAuthority5, IN ULONG SubAuthority6, IN ULONG SubAuthority7, OUT PSID *Sid)
Definition: sid.c:290

Referenced by AllowDesktopAccessToUser(), AllowWinstaAccessToUser(), check_wellknown_name(), CheckForGuestsAndAdmins(), CreateApplicationDesktopSecurity(), CreateDefaultProcessSecurityCommon(), CreateDefaultSecurityDescriptor(), CreateDhcpPipeSecurity(), CreateLogoffSecurityAttributes(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), CreateScreenSaverSecurity(), CreateWinlogonDesktopSecurity(), CreateWinstaSecurity(), GetShellSecurityDescriptor(), Imm32IsInteractiveUserLogon(), is_process_limited(), is_token_admin(), IsCallerInteractive(), IsInteractiveUserLogon(), IsNTAdmin(), IsUserAdmin(), PerfDataInitialize(), pSetupIsUserAdmin(), SHTestTokenMembership(), START_TEST(), test_AccessCheck(), test_AddMandatoryAce(), test_CreateWellKnownSid(), test_EqualSid(), test_GetExplicitEntriesFromAclW(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_LookupAccountSid(), test_process_security(), test_reg_create_key(), test_reg_open_key(), test_SetEntriesInAclA(), test_SetEntriesInAclW(), test_sid(), and test_trustee().

◆ AllocateLocallyUniqueId()

BOOL WINAPI AllocateLocallyUniqueId ( PLUID  Luid)

Definition at line 1218 of file security.c.

1219{
1221
1223 if (!NT_SUCCESS (Status))
1224 {
1226 return FALSE;
1227 }
1228
1229 return TRUE;
1230}
NTSTATUS NTAPI NtAllocateLocallyUniqueId(OUT LUID *LocallyUniqueId)
Definition: uuid.c:348

Referenced by CookupNodeId(), LogonUserExW(), MyLogonUser(), and wined3d_adapter_init().

◆ AreAllAccessesGranted()

BOOL WINAPI AreAllAccessesGranted ( DWORD  GrantedAccess,
DWORD  DesiredAccess 
)

Definition at line 2532 of file security.c.

2534{
2537}
unsigned int BOOL
Definition: ntddk_ex.h:94
NTSYSAPI BOOLEAN NTAPI RtlAreAllAccessesGranted(ACCESS_MASK GrantedAccess, ACCESS_MASK DesiredAccess)

◆ AreAnyAccessesGranted()

BOOL WINAPI AreAnyAccessesGranted ( DWORD  GrantedAccess,
DWORD  DesiredAccess 
)

Definition at line 2544 of file security.c.

2546{
2549}
NTSYSAPI BOOLEAN NTAPI RtlAreAnyAccessesGranted(ACCESS_MASK GrantedAccess, ACCESS_MASK DesiredAccess)

◆ AreFileApisANSI()

BOOL WINAPI AreFileApisANSI ( void  )

Definition at line 866 of file utils.c.

867{
869}
PRTL_CONVERT_STRING Basep8BitStringToUnicodeString
Definition: utils.c:26
NTSYSAPI NTSTATUS NTAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString, PANSI_STRING SourceString, BOOLEAN AllocateDestinationString)

Referenced by cmpStrAW(), FilenameA2W(), FilenameA2W_N(), FilenameU2A_FitOrFail(), and FilenameW2A_N().

◆ BackupEventLogA()

BOOL WINAPI BackupEventLogA ( _In_  HANDLE,
_In_  LPCSTR 
)

◆ BackupEventLogW()

BOOL WINAPI BackupEventLogW ( _In_  HANDLE,
_In_  LPCWSTR 
)

◆ BackupRead()

BOOL WINAPI BackupRead ( _In_ HANDLE  hFile,
_Out_writes_bytes_to_(nNumberOfBytesToRead, *lpNumberOfBytesRead) LPBYTE  lpBuffer,
_In_ DWORD  nNumberOfBytesToRead,
_Out_ LPDWORD  lpNumberOfBytesRead,
_In_ BOOL  bAbort,
_In_ BOOL  bProcessSecurity,
_Inout_ LPVOID lpContext 
)

◆ BackupSeek()

BOOL WINAPI BackupSeek ( _In_  HANDLE,
_In_  DWORD,
_In_  DWORD,
_Out_  LPDWORD,
_Out_  LPDWORD,
_Inout_ LPVOID  
)

◆ BackupWrite()

BOOL WINAPI BackupWrite ( _In_ HANDLE  hFile,
_In_reads_bytes_(nNumberOfBytesToWrite) LPBYTE  lpBuffer,
_In_ DWORD  nNumberOfBytesToWrite,
_Out_ LPDWORD  lpNumberOfBytesWritten,
_In_ BOOL  bAbort,
_In_ BOOL  bProcessSecurity,
_Inout_ LPVOID lpContext 
)

◆ Beep()

BOOL WINAPI Beep ( DWORD  ,
DWORD   
)

◆ BeginUpdateResourceA()

HANDLE WINAPI BeginUpdateResourceA ( _In_  LPCSTR,
_In_  BOOL 
)

◆ BeginUpdateResourceW()

HANDLE WINAPI BeginUpdateResourceW ( _In_  LPCWSTR,
_In_  BOOL 
)

◆ BuildCommDCBA()

BOOL WINAPI BuildCommDCBA ( _In_  LPCSTR,
_Out_  LPDCB 
)

◆ BuildCommDCBAndTimeoutsA()

BOOL WINAPI BuildCommDCBAndTimeoutsA ( _In_  LPCSTR,
_Out_  LPDCB,
_Out_  LPCOMMTIMEOUTS 
)

◆ BuildCommDCBAndTimeoutsW()

BOOL WINAPI BuildCommDCBAndTimeoutsW ( _In_  LPCWSTR,
_Out_  LPDCB,
_Out_  LPCOMMTIMEOUTS 
)

◆ BuildCommDCBW()

BOOL WINAPI BuildCommDCBW ( _In_  LPCWSTR,
_Out_  LPDCB 
)

◆ CallNamedPipeA()

BOOL WINAPI CallNamedPipeA ( _In_ LPCSTR  lpNamedPipeName,
_In_reads_bytes_opt_(nInBufferSize) LPVOID  lpInBuffer,
_In_ DWORD  nInBufferSize,
_Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesRead) LPVOID  lpOutBuffer,
_In_ DWORD  nOutBufferSize,
_Out_ LPDWORD  lpBytesRead,
_In_ DWORD  nTimeOut 
)

◆ CallNamedPipeW()

BOOL WINAPI CallNamedPipeW ( _In_ LPCWSTR  lpNamedPipeName,
_In_reads_bytes_opt_(nInBufferSize) LPVOID  lpInBuffer,
_In_ DWORD  nInBufferSize,
_Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesRead) LPVOID  lpOutBuffer,
_In_ DWORD  nOutBufferSize,
_Out_ LPDWORD  lpBytesRead,
_In_ DWORD  nTimeOut 
)

◆ CancelDeviceWakeupRequest()

BOOL WINAPI CancelDeviceWakeupRequest ( _In_  HANDLE)

◆ CancelIo()

BOOL WINAPI CancelIo ( HANDLE  )

◆ CancelWaitableTimer()

BOOL WINAPI CancelWaitableTimer ( HANDLE  )

◆ CheckTokenMembership()

BOOL WINAPI CheckTokenMembership ( HANDLE  ,
PSID  ,
PBOOL   
)

◆ ClearCommBreak()

BOOL WINAPI ClearCommBreak ( _In_  HANDLE)

◆ ClearCommError()

BOOL WINAPI ClearCommError ( _In_  HANDLE,
_Out_opt_  PDWORD,
_Out_opt_  LPCOMSTAT 
)

◆ ClearEventLogA()

BOOL WINAPI ClearEventLogA ( _In_  HANDLE,
_In_opt_  LPCSTR 
)

◆ ClearEventLogW()

BOOL WINAPI ClearEventLogW ( _In_  HANDLE,
_In_opt_  LPCWSTR 
)

◆ CloseEventLog()

BOOL WINAPI CloseEventLog ( _In_  HANDLE)

◆ CloseHandle()

BOOL WINAPI CloseHandle ( HANDLE  )

◆ CommConfigDialogA()

BOOL WINAPI CommConfigDialogA ( _In_  LPCSTR,
_In_opt_  HWND,
_Inout_  LPCOMMCONFIG 
)

◆ CommConfigDialogW()

BOOL WINAPI CommConfigDialogW ( _In_  LPCWSTR,
_In_opt_  HWND,
_Inout_  LPCOMMCONFIG 
)

◆ CompareFileTime()

LONG WINAPI CompareFileTime ( CONST FILETIME ,
CONST FILETIME  
)

◆ ConnectNamedPipe()

BOOL WINAPI ConnectNamedPipe ( HANDLE  ,
LPOVERLAPPED   
)

◆ ContinueDebugEvent()

BOOL WINAPI ContinueDebugEvent ( DWORD  ,
DWORD  ,
DWORD   
)

◆ ConvertThreadToFiber()

_Ret_maybenull_ PVOID WINAPI ConvertThreadToFiber ( _In_opt_  PVOID)

◆ CopyFileA()

BOOL WINAPI CopyFileA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_  BOOL 
)

◆ CopyFileExA()

BOOL WINAPI CopyFileExA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_opt_  LPPROGRESS_ROUTINE,
_In_opt_  LPVOID,
_In_opt_  LPBOOL,
_In_  DWORD 
)

◆ CopyFileExW()

BOOL WINAPI CopyFileExW ( _In_  LPCWSTR,
_In_  LPCWSTR,
_In_opt_  LPPROGRESS_ROUTINE,
_In_opt_  LPVOID,
_In_opt_  LPBOOL,
_In_  DWORD 
)

◆ CopyFileW()

BOOL WINAPI CopyFileW ( _In_ LPCWSTR  lpExistingFileName,
_In_ LPCWSTR  lpNewFileName,
_In_ BOOL  bFailIfExists 
)

◆ CopySid()

BOOL WINAPI CopySid ( DWORD  nDestinationSidLength,
PSID  pDestinationSid,
PSID  pSourceSid 
)

◆ CreateDirectoryA()

BOOL WINAPI CreateDirectoryA ( LPCSTR  lpPathName,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes 
)

◆ CreateDirectoryExA()

BOOL WINAPI CreateDirectoryExA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_opt_  LPSECURITY_ATTRIBUTES 
)

◆ CreateDirectoryExW()

BOOL WINAPI CreateDirectoryExW ( _In_  LPCWSTR,
_In_  LPCWSTR,
_In_opt_  LPSECURITY_ATTRIBUTES 
)

◆ CreateDirectoryW()

BOOL WINAPI CreateDirectoryW ( LPCWSTR  lpPathName,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes 
)

◆ CreateEventA()

HANDLE WINAPI CreateEventA ( _In_opt_ LPSECURITY_ATTRIBUTES  lpEventAttributes,
_In_ BOOL  bManualReset,
_In_ BOOL  bInitialState,
_In_opt_ LPCSTR  lpName 
)

◆ CreateEventW()

HANDLE WINAPI CreateEventW ( _In_opt_  LPSECURITY_ATTRIBUTES,
_In_ BOOL  bManualReset,
_In_ BOOL  bInitialState,
_In_opt_ LPCWSTR  lpName 
)

◆ CreateFiber()

_Ret_maybenull_ LPVOID WINAPI CreateFiber ( _In_  SIZE_T,
_In_  LPFIBER_START_ROUTINE,
_In_opt_  LPVOID 
)

Definition at line 174 of file fiber.c.

177{
178 /* Call the Newer Function */
179 return CreateFiberEx(dwStackSize,
180 0,
181 0,
182 lpStartAddress,
183 lpParameter);
184}
LPVOID WINAPI CreateFiberEx(_In_ SIZE_T dwStackCommitSize, _In_ SIZE_T dwStackReserveSize, _In_ DWORD dwFlags, _In_ LPFIBER_START_ROUTINE lpStartAddress, _In_opt_ LPVOID lpParameter)
Definition: fiber.c:191

Referenced by Fbt_CreateFiber(), and init_funcs().

◆ CreateFileA()

HANDLE WINAPI CreateFileA ( LPCSTR  lpFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreationDisposition,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)

Definition at line 29 of file create.c.

36{
37 PWCHAR FileNameW;
39
40 TRACE("CreateFileA(lpFileName %s)\n",lpFileName);
41
42 if (!(FileNameW = FilenameA2W(lpFileName, FALSE)))
44
45 FileHandle = CreateFileW (FileNameW,
46 dwDesiredAccess,
47 dwShareMode,
48 lpSecurityAttributes,
49 dwCreationDisposition,
50 dwFlagsAndAttributes,
51 hTemplateFile);
52
53 return FileHandle;
54}
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
#define CreateFileW
Definition: compat.h:741
PWCHAR FilenameA2W(LPCSTR NameA, BOOL alloc)
Definition: fileutils.c:18
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
Definition: fltkernel.h:1231
#define TRACE(s)
Definition: solgame.cpp:4
uint16_t * PWCHAR
Definition: typedefs.h:56
_In_ LPCSTR lpFileName
Definition: winbase.h:3071

◆ CreateFileMappingA()

_Ret_maybenull_ HANDLE WINAPI CreateFileMappingA ( _In_  HANDLE,
_In_opt_  LPSECURITY_ATTRIBUTES,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_opt_  LPCSTR 
)

◆ CreateFileMappingW()

HANDLE WINAPI CreateFileMappingW ( HANDLE  hFile,
LPSECURITY_ATTRIBUTES  lpFileMappingAttributes,
DWORD  flProtect,
DWORD  dwMaximumSizeHigh,
DWORD  dwMaximumSizeLow,
LPCWSTR  lpName 
)

Definition at line 45 of file filemap.c.

51{
53 HANDLE SectionHandle;
54 OBJECT_ATTRIBUTES LocalAttributes;
56 UNICODE_STRING SectionName;
59 PLARGE_INTEGER SectionSize = NULL;
61
62 /* Set default access */
64
65 /* Get the attributes for the actual allocation and cleanup flProtect */
67 flProtect ^= Attributes;
68
69 /* If the caller didn't say anything, assume SEC_COMMIT */
71
72 /* Now check if the caller wanted write access */
73 if (flProtect == PAGE_READWRITE)
74 {
75 /* Give it */
77 }
78 else if (flProtect == PAGE_EXECUTE_READWRITE)
79 {
80 /* Give it */
82 }
83 else if (flProtect == PAGE_EXECUTE_READ)
84 {
85 /* Give it */
87 }
88 else if ((flProtect == PAGE_EXECUTE_WRITECOPY) &&
89 (NtCurrentPeb()->OSMajorVersion >= 6))
90 {
91 /* Give it */
93 }
94 else if ((flProtect != PAGE_READONLY) && (flProtect != PAGE_WRITECOPY))
95 {
97 return NULL;
98 }
99
100 /* Now check if we got a name */
101 if (lpName) RtlInitUnicodeString(&SectionName, lpName);
102
103 /* Now convert the object attributes */
105 lpFileMappingAttributes,
106 lpName ? &SectionName : NULL);
107
108 /* Check if we got a size */
109 if (dwMaximumSizeLow || dwMaximumSizeHigh)
110 {
111 /* Use a LARGE_INTEGER and convert */
112 SectionSize = &LocalSize;
113 SectionSize->LowPart = dwMaximumSizeLow;
114 SectionSize->HighPart = dwMaximumSizeHigh;
115 }
116
117 /* Make sure the handle is valid */
119 {
120 /* It's not, we'll only go on if we have a size */
121 hFile = NULL;
122 if (!SectionSize)
123 {
124 /* No size, so this isn't a valid non-mapped section */
126 return NULL;
127 }
128 }
129
130 /* Now create the actual section */
131 Status = NtCreateSection(&SectionHandle,
134 SectionSize,
135 flProtect,
137 hFile);
138 if (!NT_SUCCESS(Status))
139 {
140 /* We failed */
142 return NULL;
143 }
145 {
147 }
148 else
149 {
151 }
152
153 /* Return the section */
154 return SectionHandle;
155}
NTSTATUS NTAPI NtCreateSection(OUT PHANDLE SectionHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN PLARGE_INTEGER MaximumSize OPTIONAL, IN ULONG SectionPageProtection OPTIONAL, IN ULONG AllocationAttributes, IN HANDLE FileHandle OPTIONAL)
Definition: section.c:3441
#define NtCurrentPeb()
Definition: FLS.c:22
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:36
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define PAGE_READONLY
Definition: compat.h:138
#define SECTION_MAP_READ
Definition: compat.h:139
POBJECT_ATTRIBUTES WINAPI BaseFormatObjectAttributes(OUT POBJECT_ATTRIBUTES ObjectAttributes, IN PSECURITY_ATTRIBUTES SecurityAttributes OPTIONAL, IN PUNICODE_STRING ObjectName)
Definition: utils.c:304
SIZE_T NTAPI LocalSize(HLOCAL hMem)
Definition: heapmem.c:1794
#define ERROR_ALREADY_EXISTS
Definition: disk.h:80
_In_ HANDLE hFile
Definition: mswsock.h:90
#define SEC_NOCACHE
Definition: mmtypes.h:101
#define SEC_COMMIT
Definition: mmtypes.h:100
#define SEC_IMAGE
Definition: mmtypes.h:97
#define SEC_FILE
Definition: mmtypes.h:96
#define SEC_LARGE_PAGES
Definition: mmtypes.h:103
#define SECTION_MAP_EXECUTE
Definition: nt_native.h:1290
#define PAGE_WRITECOPY
Definition: nt_native.h:1305
#define SECTION_MAP_WRITE
Definition: nt_native.h:1288
ULONG ACCESS_MASK
Definition: nt_native.h:40
#define PAGE_READWRITE
Definition: nt_native.h:1304
#define PAGE_EXECUTE_READ
Definition: nt_native.h:1307
#define SECTION_QUERY
Definition: nt_native.h:1287
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define SEC_RESERVE
Definition: nt_native.h:1323
#define PAGE_EXECUTE_WRITECOPY
Definition: nt_native.h:1309
#define PAGE_EXECUTE_READWRITE
Definition: nt_native.h:1308
#define STANDARD_RIGHTS_REQUIRED
Definition: nt_native.h:63
#define STATUS_OBJECT_NAME_EXISTS
Definition: ntstatus.h:114
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
uint32_t ULONG
Definition: typedefs.h:59
ULONG LowPart
Definition: typedefs.h:106
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_In_ LPCSTR lpName
Definition: winbase.h:2789

◆ CreateFileW()

HANDLE WINAPI CreateFileW ( LPCWSTR  lpFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreationDisposition,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)

Definition at line 60 of file create.c.

67{
70 UNICODE_STRING NtPathU;
71 LPCWSTR pszConsoleFileName;
76 ULONG EaLength = 0;
77 BOOLEAN TrailingBackslash;
78
79 if (!lpFileName || !lpFileName[0])
80 {
83 }
84
85 TRACE("CreateFileW(lpFileName %S)\n",lpFileName);
86
87 /* validate & translate the creation disposition */
88 switch (dwCreationDisposition)
89 {
90 case CREATE_NEW:
91 dwCreationDisposition = FILE_CREATE;
92 break;
93
94 case CREATE_ALWAYS:
95 dwCreationDisposition = FILE_OVERWRITE_IF;
96 break;
97
98 case OPEN_EXISTING:
99 dwCreationDisposition = FILE_OPEN;
100 break;
101
102 case OPEN_ALWAYS:
103 dwCreationDisposition = FILE_OPEN_IF;
104 break;
105
107 dwCreationDisposition = FILE_OVERWRITE;
108 break;
109
110 default:
112 return (INVALID_HANDLE_VALUE);
113 }
114
115 /* check for console input/output */
116 pszConsoleFileName = IntCheckForConsoleFileName(lpFileName, dwDesiredAccess);
117 if (pszConsoleFileName)
118 {
119 return OpenConsoleW(pszConsoleFileName,
120 dwDesiredAccess,
121 lpSecurityAttributes ? lpSecurityAttributes->bInheritHandle : FALSE,
123 }
124
125 /* validate & translate the flags */
126
127 /* translate the flags that need no validation */
128 if (!(dwFlagsAndAttributes & FILE_FLAG_OVERLAPPED))
129 {
130 /* yes, nonalert is correct! apc's are not delivered
131 while waiting for file io to complete */
133 }
134
135 if(dwFlagsAndAttributes & FILE_FLAG_WRITE_THROUGH)
137
138 if(dwFlagsAndAttributes & FILE_FLAG_NO_BUFFERING)
140
141 if(dwFlagsAndAttributes & FILE_FLAG_RANDOM_ACCESS)
143
144 if(dwFlagsAndAttributes & FILE_FLAG_SEQUENTIAL_SCAN)
146
147 if(dwFlagsAndAttributes & FILE_FLAG_DELETE_ON_CLOSE)
148 {
150 dwDesiredAccess |= DELETE;
151 }
152
153 if(dwFlagsAndAttributes & FILE_FLAG_BACKUP_SEMANTICS)
154 {
155 if(dwDesiredAccess & GENERIC_ALL)
157 else
158 {
159 if(dwDesiredAccess & GENERIC_READ)
161
162 if(dwDesiredAccess & GENERIC_WRITE)
164 }
165 }
166 else
168
169 if(dwFlagsAndAttributes & FILE_FLAG_OPEN_REPARSE_POINT)
171
172 if(dwFlagsAndAttributes & FILE_FLAG_OPEN_NO_RECALL)
174
175 FileAttributes = (dwFlagsAndAttributes & (FILE_ATTRIBUTE_VALID_FLAGS & ~FILE_ATTRIBUTE_DIRECTORY));
176
177 /* handle may always be waited on and querying attributes are always allowed */
178 dwDesiredAccess |= SYNCHRONIZE | FILE_READ_ATTRIBUTES;
179
180 /* FILE_FLAG_POSIX_SEMANTICS is handled later */
181
182 /* validate & translate the filename */
184 &NtPathU,
185 NULL,
186 NULL))
187 {
188 WARN("Invalid path\n");
191 }
192
193 TRACE("NtPathU \'%wZ\'\n", &NtPathU);
194
195 TrailingBackslash = FALSE;
196 if (NtPathU.Length >= sizeof(WCHAR) &&
197 NtPathU.Buffer[NtPathU.Length / sizeof(WCHAR) - 1])
198 {
199 TrailingBackslash = TRUE;
200 }
201
202 if (hTemplateFile != NULL)
203 {
204 FILE_EA_INFORMATION EaInformation;
205
206 for (;;)
207 {
208 /* try to get the size of the extended attributes, if we fail just continue
209 creating the file without copying the attributes! */
210 Status = NtQueryInformationFile(hTemplateFile,
212 &EaInformation,
213 sizeof(FILE_EA_INFORMATION),
215 if (NT_SUCCESS(Status) && (EaInformation.EaSize != 0))
216 {
217 /* there's extended attributes to read, let's give it a try */
218 EaBuffer = RtlAllocateHeap(RtlGetProcessHeap(),
219 0,
220 EaInformation.EaSize);
221 if (EaBuffer == NULL)
222 {
223 RtlFreeHeap(RtlGetProcessHeap(),
224 0,
225 NtPathU.Buffer);
226
227 /* the template file handle is valid and has extended attributes,
228 however we seem to lack some memory here. We should fail here! */
231 }
232
233 Status = NtQueryEaFile(hTemplateFile,
235 EaBuffer,
236 EaInformation.EaSize,
237 FALSE,
238 NULL,
239 0,
240 NULL,
241 TRUE);
242
243 if (NT_SUCCESS(Status))
244 {
245 /* we successfully read the extended attributes, break the loop
246 and continue */
247 EaLength = EaInformation.EaSize;
248 break;
249 }
250 else
251 {
252 RtlFreeHeap(RtlGetProcessHeap(),
253 0,
254 EaBuffer);
255 EaBuffer = NULL;
256
258 {
259 /* unless we just allocated not enough memory, break the loop
260 and just continue without copying extended attributes */
261 break;
262 }
263 }
264 }
265 else
266 {
267 /* we either failed to get the size of the extended attributes or
268 they're empty, just continue as there's no need to copy
269 attributes */
270 break;
271 }
272 }
273 }
274
275 /* build the object attributes */
277 &NtPathU,
278 0,
279 NULL,
280 NULL);
281
282 if (lpSecurityAttributes)
283 {
284 if(lpSecurityAttributes->bInheritHandle)
285 ObjectAttributes.Attributes |= OBJ_INHERIT;
286
287 ObjectAttributes.SecurityDescriptor = lpSecurityAttributes->lpSecurityDescriptor;
288 }
289
290 if(!(dwFlagsAndAttributes & FILE_FLAG_POSIX_SEMANTICS))
292
293 /* perform the call */
295 dwDesiredAccess,
298 NULL,
300 dwShareMode,
301 dwCreationDisposition,
302 Flags,
303 EaBuffer,
304 EaLength);
305
306 RtlFreeHeap(RtlGetProcessHeap(),
307 0,
308 NtPathU.Buffer);
309
310 /* free the extended attributes buffer if allocated */
311 if (EaBuffer != NULL)
312 {
313 RtlFreeHeap(RtlGetProcessHeap(),
314 0,
315 EaBuffer);
316 }
317
318 /* error */
319 if (!NT_SUCCESS(Status))
320 {
321 /* In the case file creation was rejected due to CREATE_NEW flag
322 * was specified and file with that name already exists, correct
323 * last error is ERROR_FILE_EXISTS and not ERROR_ALREADY_EXISTS.
324 * Note: RtlNtStatusToDosError is not the subject to blame here.
325 */
327 dwCreationDisposition == FILE_CREATE)
328 {
330 }
332 TrailingBackslash)
333 {
335 }
336 else
337 {
339 }
340
342 }
343
344 /*
345 create with OPEN_ALWAYS (FILE_OPEN_IF) returns info = FILE_OPENED or FILE_CREATED
346 create with CREATE_ALWAYS (FILE_OVERWRITE_IF) returns info = FILE_OVERWRITTEN or FILE_CREATED
347 */
348 if (dwCreationDisposition == FILE_OPEN_IF)
349 {
351 }
352 else if (dwCreationDisposition == FILE_OVERWRITE_IF)
353 {
355 }
356 else
357 {
359 }
360
361 return FileHandle;
362}
#define FILE_NON_DIRECTORY_FILE
Definition: constants.h:492
#define FILE_DELETE_ON_CLOSE
Definition: constants.h:494
#define WARN(fmt,...)
Definition: debug.h:112
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
Definition: heap.c:590
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
Definition: heap.c:608
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
#define OPEN_EXISTING
Definition: compat.h:775
#define GENERIC_READ
Definition: compat.h:135
#define FILE_SHARE_READ
Definition: compat.h:136
LPCWSTR IntCheckForConsoleFileName(IN LPCWSTR pszName, IN DWORD dwDesiredAccess)
Definition: console.c:345
HANDLE WINAPI OpenConsoleW(LPCWSTR wsName, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwShareMode)
Definition: console.c:791
IN PVCB IN PDIRENT OUT PULONG EaLength
Definition: fatprocs.h:878
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE _In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG FileAttributes
Definition: fltkernel.h:1236
@ FileEaInformation
Definition: from_kernel.h:68
#define FILE_OPEN
Definition: from_kernel.h:54
#define FILE_CREATE
Definition: from_kernel.h:55
#define FILE_OVERWRITE_IF
Definition: from_kernel.h:58
#define FILE_OPEN_REPARSE_POINT
Definition: from_kernel.h:46
#define FILE_SYNCHRONOUS_IO_NONALERT
Definition: from_kernel.h:31
#define FILE_NO_INTERMEDIATE_BUFFERING
Definition: from_kernel.h:28
#define FILE_RANDOM_ACCESS
Definition: from_kernel.h:38
#define FILE_OVERWRITE
Definition: from_kernel.h:57
#define FILE_WRITE_THROUGH
Definition: from_kernel.h:26
#define FILE_OPEN_NO_RECALL
Definition: from_kernel.h:47
#define FILE_OPEN_IF
Definition: from_kernel.h:56
#define FILE_SEQUENTIAL_ONLY
Definition: from_kernel.h:27
#define FILE_OPEN_REMOTE_INSTANCE
Definition: from_kernel.h:37
#define FILE_OPEN_FOR_BACKUP_INTENT
Definition: from_kernel.h:42
#define OBJ_CASE_INSENSITIVE
Definition: winternl.h:228
#define OBJ_INHERIT
Definition: winternl.h:225
NTSTATUS NTAPI NtQueryEaFile(IN HANDLE FileHandle, OUT PIO_STATUS_BLOCK IoStatusBlock, OUT PVOID Buffer, IN ULONG Length, IN BOOLEAN ReturnSingleEntry, IN PVOID EaList OPTIONAL, IN ULONG EaListLength, IN PULONG EaIndex OPTIONAL, IN BOOLEAN RestartScan)
Definition: iofunc.c:2256
#define FILE_FLAG_OPEN_REPARSE_POINT
Definition: disk.h:39
#define CREATE_ALWAYS
Definition: disk.h:72
#define TRUNCATE_EXISTING
Definition: disk.h:71
#define FILE_FLAG_OVERLAPPED
Definition: disk.h:46
#define FILE_FLAG_NO_BUFFERING
Definition: disk.h:45
#define FILE_FLAG_POSIX_SEMANTICS
Definition: disk.h:40
#define FILE_FLAG_BACKUP_SEMANTICS
Definition: disk.h:41
#define FILE_FLAG_OPEN_NO_RECALL
Definition: disk.h:38
#define FILE_FLAG_RANDOM_ACCESS
Definition: disk.h:44
#define FILE_FLAG_DELETE_ON_CLOSE
Definition: disk.h:42
#define CREATE_NEW
Definition: disk.h:69
#define OPEN_ALWAYS
Definition: disk.h:70
#define FILE_FLAG_SEQUENTIAL_SCAN
Definition: disk.h:43
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define FILE_FLAG_WRITE_THROUGH
Definition: disk.h:47
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
NTSYSAPI BOOLEAN NTAPI RtlDosPathNameToNtPathName_U(_In_opt_z_ PCWSTR DosPathName, _Out_ PUNICODE_STRING NtPathName, _Out_opt_ PCWSTR *NtFileNamePart, _Out_opt_ PRTL_RELATIVE_NAME_U DirectoryInfo)
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define SYNCHRONIZE
Definition: nt_native.h:61
#define FILE_ATTRIBUTE_VALID_FLAGS
Definition: nt_native.h:714
#define FILE_READ_ATTRIBUTES
Definition: nt_native.h:647
NTSYSAPI NTSTATUS NTAPI NtQueryInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, OUT PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
#define FILE_OVERWRITTEN
Definition: nt_native.h:771
#define GENERIC_ALL
Definition: nt_native.h:92
#define DELETE
Definition: nt_native.h:57
#define FILE_OPENED
Definition: nt_native.h:769
NTSTATUS NTAPI NtCreateFile(OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK IoStatusBlock, IN PLARGE_INTEGER AllocationSize OPTIONAL, IN ULONG FileAttributes, IN ULONG ShareAccess, IN ULONG CreateDisposition, IN ULONG CreateOptions, IN PVOID EaBuffer OPTIONAL, IN ULONG EaLength)
#define GENERIC_WRITE
Definition: nt_native.h:90
#define STATUS_BUFFER_TOO_SMALL
Definition: shellext.h:69
LPVOID lpSecurityDescriptor
Definition: compat.h:193
#define STATUS_FILE_IS_A_DIRECTORY
Definition: udferr_usr.h:164
#define STATUS_OBJECT_NAME_COLLISION
Definition: udferr_usr.h:150
#define ERROR_PATH_NOT_FOUND
Definition: winerror.h:106
#define ERROR_FILE_EXISTS
Definition: winerror.h:165
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _In_ ULONG _In_ ULONG _In_opt_ PVOID EaBuffer
Definition: iofuncs.h:845
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

◆ CreateIoCompletionPort()

HANDLE WINAPI CreateIoCompletionPort ( HANDLE  ,
HANDLE  ,
ULONG_PTR  ,
DWORD   
)

◆ CreateMailslotA()

HANDLE WINAPI CreateMailslotA ( _In_  LPCSTR,
_In_  DWORD,
_In_  DWORD,
_In_opt_  LPSECURITY_ATTRIBUTES 
)

◆ CreateMailslotW()

HANDLE WINAPI CreateMailslotW ( _In_  LPCWSTR,
_In_  DWORD,
_In_  DWORD,
_In_opt_  LPSECURITY_ATTRIBUTES 
)

◆ CreateMutexA()

HANDLE WINAPI CreateMutexA ( LPSECURITY_ATTRIBUTES  ,
BOOL  ,
LPCSTR   
)

◆ CreateMutexW()

HANDLE WINAPI CreateMutexW ( LPSECURITY_ATTRIBUTES  ,
BOOL  ,
LPCWSTR   
)

◆ CreateNamedPipeA()

HANDLE WINAPI CreateNamedPipeA ( _In_  LPCSTR,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_opt_  LPSECURITY_ATTRIBUTES 
)

◆ CreateNamedPipeW()

HANDLE WINAPI CreateNamedPipeW ( _In_  LPCWSTR,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_opt_  LPSECURITY_ATTRIBUTES 
)

◆ CreatePipe()

BOOL WINAPI CreatePipe ( PHANDLE  hReadPipe,
PHANDLE  hWritePipe,
LPSECURITY_ATTRIBUTES  lpPipeAttributes,
DWORD  nSize 
)

Definition at line 117 of file npipe.c.

121{
122 WCHAR Buffer[64];
123 UNICODE_STRING PipeName;
125 IO_STATUS_BLOCK StatusBlock;
126 LARGE_INTEGER DefaultTimeout;
128 HANDLE ReadPipeHandle;
129 HANDLE WritePipeHandle;
130 LONG PipeId;
133
134 /* Set the timeout to 120 seconds */
135 DefaultTimeout.QuadPart = -1200000000;
136
137 /* Use default buffer size if desired */
138 if (!nSize) nSize = 0x1000;
139
140 /* Increase the Pipe ID */
142
143 /* Create the pipe name */
145 L"\\Device\\NamedPipe\\Win32Pipes.%p.%08x",
147 PipeId);
148 RtlInitUnicodeString(&PipeName, Buffer);
149
150 /* Always use case insensitive */
152
153 /* Check if we got attributes */
154 if (lpPipeAttributes)
155 {
156 /* Use the attributes' SD instead */
157 SecurityDescriptor = lpPipeAttributes->lpSecurityDescriptor;
158
159 /* Set OBJ_INHERIT if requested */
160 if (lpPipeAttributes->bInheritHandle) Attributes |= OBJ_INHERIT;
161 }
162
163 /* Initialize the attributes */
165 &PipeName,
167 NULL,
169
170 /* Create the named pipe */
171 Status = NtCreateNamedPipeFile(&ReadPipeHandle,
174 &StatusBlock,
181 1,
182 nSize,
183 nSize,
184 &DefaultTimeout);
185 if (!NT_SUCCESS(Status))
186 {
187 /* Convert error and fail */
188 WARN("Status: %lx\n", Status);
190 return FALSE;
191 }
192
193 /* Now try opening it for write access */
194 Status = NtOpenFile(&WritePipeHandle,
197 &StatusBlock,
200 if (!NT_SUCCESS(Status))
201 {
202 /* Convert error and fail */
203 WARN("Status: %lx\n", Status);
204 NtClose(ReadPipeHandle);
206 return FALSE;
207 }
208
209 /* Return both handles */
210 *hReadPipe = ReadPipeHandle;
211 *hWritePipe = WritePipeHandle;
212 return TRUE;
213}
#define InterlockedIncrement
Definition: armddk.h:53
Definition: bufpool.h:45
#define swprintf
Definition: precomp.h:40
#define NtCurrentTeb
#define FILE_PIPE_BYTE_STREAM_TYPE
Definition: iotypes.h:75
#define FILE_PIPE_BYTE_STREAM_MODE
Definition: iotypes.h:77
#define FILE_PIPE_QUEUE_OPERATION
Definition: iotypes.h:79
LONG ProcessPipeId
Definition: npipe.c:19
NTSYSAPI NTSTATUS NTAPI NtOpenFile(OUT PHANDLE phFile, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN ULONG ShareMode, IN ULONG OpenMode)
Definition: file.c:3952
#define FILE_WRITE_ATTRIBUTES
Definition: nt_native.h:649
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3402
#define FILE_GENERIC_WRITE
Definition: nt_native.h:660
NTSTATUS NTAPI NtCreateNamedPipeFile(OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK IoStatusBlock, IN ULONG ShareAccess, IN ULONG CreateDisposition, IN ULONG CreateOptions, IN ULONG NamedPipeType, IN ULONG ReadMode, IN ULONG CompletionMode, IN ULONG MaximumInstances, IN ULONG InboundQuota, IN ULONG OutboundQuota, IN PLARGE_INTEGER DefaultTimeout)
Definition: file.c:3858
#define L(x)
Definition: ntvdm.h:50
long LONG
Definition: pedump.c:60
HANDLE UniqueProcess
Definition: compat.h:825
LONGLONG QuadPart
Definition: typedefs.h:114
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2084
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:191
_Out_ PCLIENT_ID ClientId
Definition: kefuncs.h:1151

Referenced by _pipe(), _tpopen(), CreateClientProcess(), CreateHiddenConsoleProcess(), ExecutePipeline(), main(), PrepareForRedirect(), read_reg_output_(), RunShell(), test__open_osfhandle(), test_Console(), and test_CreatePipe().

◆ CreatePrivateObjectSecurity()

BOOL WINAPI CreatePrivateObjectSecurity ( PSECURITY_DESCRIPTOR  ParentDescriptor,
PSECURITY_DESCRIPTOR  CreatorDescriptor,
PSECURITY_DESCRIPTOR NewDescriptor,
BOOL  IsDirectoryObject,
HANDLE  Token,
PGENERIC_MAPPING  GenericMapping 
)

Definition at line 1340 of file misc.c.

1346{
1348
1349 Status = RtlNewSecurityObject(ParentDescriptor,
1350 CreatorDescriptor,
1353 Token,
1355 if (!NT_SUCCESS(Status))
1356 {
1358 return FALSE;
1359 }
1360
1361 return TRUE;
1362}
NTSYSAPI NTSTATUS NTAPI RtlNewSecurityObject(_In_ PSECURITY_DESCRIPTOR ParentDescriptor, _In_ PSECURITY_DESCRIPTOR CreatorDescriptor, _Out_ PSECURITY_DESCRIPTOR *NewDescriptor, _In_ BOOLEAN IsDirectoryObject, _In_ HANDLE Token, _In_ PGENERIC_MAPPING GenericMapping)
_In_opt_ PSECURITY_DESCRIPTOR _Out_ PSECURITY_DESCRIPTOR _In_ BOOLEAN IsDirectoryObject
Definition: sefuncs.h:31
_In_opt_ PSECURITY_DESCRIPTOR _Out_ PSECURITY_DESCRIPTOR * NewDescriptor
Definition: sefuncs.h:30

Referenced by CreatePrivateObjectSecurityWithMultipleInheritance().

◆ CreateProcessA()

BOOL WINAPI CreateProcessA ( LPCSTR  lpApplicationName,
LPSTR  lpCommandLine,
LPSECURITY_ATTRIBUTES  lpProcessAttributes,
LPSECURITY_ATTRIBUTES  lpThreadAttributes,
BOOL  bInheritHandles,
DWORD  dwCreationFlags,
PVOID  lpEnvironment,
LPCSTR  lpCurrentDirectory,
LPSTARTUPINFOA  lpStartupInfo,
LPPROCESS_INFORMATION  lpProcessInformation 
)

Definition at line 4741 of file proc.c.

4751{
4752 /* Call the internal (but exported) version */
4754 lpApplicationName,
4755 lpCommandLine,
4756 lpProcessAttributes,
4757 lpThreadAttributes,
4758 bInheritHandles,
4759 dwCreationFlags,
4760 lpEnvironment,
4761 lpCurrentDirectory,
4762 lpStartupInfo,
4763 lpProcessInformation,
4764 NULL);
4765}
BOOL WINAPI CreateProcessInternalA(HANDLE hToken, LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation, PHANDLE hNewToken)
Definition: proc.c:4623

Referenced by _create_process(), cmd_available(), CommandThreadProc(), crash_and_debug(), crash_and_winedbg(), create_proc(), create_process(), create_server_process(), create_target_process(), create_writepipe_process(), CreateProcessAsUserA(), do_parent(), doChildren(), DosCreateProcess(), DoTestEntry(), fork_helper(), IDirectPlayLobby3AImpl_RunApplication(), LoadModule(), read_reg_output_(), run_child_process(), run_client(), run_cmd(), run_ex(), run_process(), run_reg_exe_(), run_regedit_exe_(), run_script_file(), runcmd(), start_server(), START_TEST(), system(), test___getmainargs_parent(), test_alloc_shared(), test_apc_deadlock(), test_BreakawayOk(), test_comctl32_classes(), test_CommandLine(), test_Console(), test_CreateProcessWithDesktop(), test_debug_children(), test_debug_heap(), test_debug_loop(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_EnumProcessModules(), test_Environment(), test_ExitCode(), test_ExitProcess(), test_GetProcessVersion(), test_internet_features(), test_invalid_stdin(), test_IsWow64Process(), test_jobInheritance(), test_LresultFromObject(), test_NonExistentPath(), test_NtSuspendProcess(), test_process_access(), test_process_security(), test_query_process_debug_flags(), test_query_process_debug_object_handle(), test_query_process_debug_port(), test_section_access(), test_shared_memory(), test_shared_memory_ro(), test_Startup(), test_StartupNoConsole(), test_stdout_handle(), test_SuspendFlag(), test_TerminateProcess(), test_token_security_descriptor(), test_Toolhelp(), test_WaitForInputIdle(), test_window_from_point(), test_winproc_handles(), and WinExec().

◆ CreateProcessAsUserA()

BOOL WINAPI CreateProcessAsUserA ( _In_opt_  HANDLE,
_In_opt_  LPCSTR,
_Inout_opt_  LPSTR,
_In_opt_  LPSECURITY_ATTRIBUTES,
_In_opt_  LPSECURITY_ATTRIBUTES,
_In_  BOOL,
_In_  DWORD,
_In_opt_  PVOID,
_In_opt_  LPCSTR,
_In_  LPSTARTUPINFOA,
_Out_  LPPROCESS_INFORMATION 
)

◆ CreateProcessAsUserW()

◆ CreateProcessW()

BOOL WINAPI CreateProcessW ( LPCWSTR  lpApplicationName,
LPWSTR  lpCommandLine,
LPSECURITY_ATTRIBUTES  lpProcessAttributes,
LPSECURITY_ATTRIBUTES  lpThreadAttributes,
BOOL  bInheritHandles,
DWORD  dwCreationFlags,
PVOID  lpEnvironment,
LPCWSTR  lpCurrentDirectory,
LPSTARTUPINFOW  lpStartupInfo,
LPPROCESS_INFORMATION  lpProcessInformation 
)

Definition at line 4592 of file proc.c.

4602{
4603 /* Call the internal (but exported) version */
4605 lpApplicationName,
4606 lpCommandLine,
4607 lpProcessAttributes,
4608 lpThreadAttributes,
4609 bInheritHandles,
4610 dwCreationFlags,
4611 lpEnvironment,
4612 lpCurrentDirectory,
4613 lpStartupInfo,
4614 lpProcessInformation,
4615 NULL);
4616}
BOOL WINAPI CreateProcessInternalW(IN HANDLE hUserToken, IN LPCWSTR lpApplicationName, IN LPWSTR lpCommandLine, IN LPSECURITY_ATTRIBUTES lpProcessAttributes, IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN BOOL bInheritHandles, IN DWORD dwCreationFlags, IN LPVOID lpEnvironment, IN LPCWSTR lpCurrentDirectory, IN LPSTARTUPINFOW lpStartupInfo, IN LPPROCESS_INFORMATION lpProcessInformation, OUT PHANDLE hNewToken)
Definition: proc.c:2234

Referenced by _wsystem(), AudioDlgProc(), CorDebug_CreateProcess(), CProcess::CProcess(), create_server(), CreateClientProcess(), CreateProcessAsUserW(), CreateProcessWithTokenW(), do_register_dll(), execute_command(), HotkeyThread(), IDirectInputAImpl_RunControlPanel(), install_wine_gecko(), InstallDevice(), InstallLiveCD(), ITERATE_RemoveExistingProducts(), CNetConnectionPropertyUi::LANPropertiesUIDlg(), launch_exe(), CNewMenu::NewItemByCommand(), ProcessPage_OnDebug(), register_dll(), run_child(), run_rapps(), run_winemenubuilder(), runCmd(), RunControlPanelApplet(), RunCurrentJobs(), RunSetupThreadProc(), ScmStartUserModeService(), SHELL_ExecuteW(), START_TEST(), StartChild(), StartLsass(), StartProcess(), StartServicesManager(), Test_CommandLine(), TestStaticDestruct(), UnhandledExceptionFilter(), WshExec_create(), and wWinMain().

◆ CreateProcessWithLogonW()

BOOL WINAPI CreateProcessWithLogonW ( LPCWSTR  ,
LPCWSTR  ,
LPCWSTR  ,
DWORD  ,
LPCWSTR  ,
LPWSTR  ,
DWORD  ,
LPVOID  ,
LPCWSTR  ,
LPSTARTUPINFOW  ,
LPPROCESS_INFORMATION   
)

◆ CreateProcessWithTokenW()

BOOL WINAPI CreateProcessWithTokenW ( HANDLE  ,
DWORD  ,
LPCWSTR  ,
LPWSTR  ,
DWORD  ,
LPVOID  ,
LPCWSTR  ,
LPSTARTUPINFOW  ,
LPPROCESS_INFORMATION   
)

◆ CreateRemoteThread()

HANDLE WINAPI CreateRemoteThread ( HANDLE  ,
LPSECURITY_ATTRIBUTES  ,
DWORD  ,
LPTHREAD_START_ROUTINE  ,
LPVOID  ,
DWORD  ,
LPDWORD   
)

◆ CreateRestrictedToken()

BOOL WINAPI CreateRestrictedToken ( _In_ HANDLE  ExistingTokenHandle,
_In_ DWORD  Flags,
_In_ DWORD  DisableSidCount,
_In_reads_opt_(DisableSidCount) PSID_AND_ATTRIBUTES  SidsToDisable,
_In_ DWORD  DeletePrivilegeCount,
_In_reads_opt_(DeletePrivilegeCount) PLUID_AND_ATTRIBUTES  PrivilegesToDelete,
_In_ DWORD  RestrictedSidCount,
_In_reads_opt_(RestrictedSidCount) PSID_AND_ATTRIBUTES  SidsToRestrict,
_Outptr_ PHANDLE  NewTokenHandle 
)

Creates a filtered token that is a restricted one of the regular access token. A restricted token can have disabled SIDs, deleted privileges and/or restricted SIDs added.

Parameters
[in]ExistingTokenHandleAn existing handle to a token where it's to be filtered.
[in]FlagsPrivilege flag options. This parameter argument influences how the token is filtered. Such parameter can be 0.
[in]DisableSidCountThe count number of SIDs to disable.
[in]SidsToDisableAn array list with SIDs that have to be disabled in a token.
[in]DeletePrivilegeCountThe count number of privileges to be deleted.
[in]PrivilegesToDeleteAn array list with privileges that have to be deleted in a token.
[in]RestrictedSidCountThe count number of restricted SIDs.
[in]SidsToRestrictAn array list with restricted SIDs to be added into the token. If the token already has restricted SIDs then the array provided by the caller is redundant information alongside with the existing restricted SIDs in the token.
[out]NewTokenHandleThe newly received handle to a restricted (filtered) token. The caller can use such handle to duplicate a new token.
Returns
Returns TRUE if the function has successfully completed the operations, otherwise FALSE is returned to indicate failure. For further details the caller has to invoke GetLastError() API call for extended information about the failure.

Definition at line 533 of file security.c.

543{
546 ULONG Index;
547 PTOKEN_GROUPS DisableSids = NULL;
548 PTOKEN_GROUPS RestrictedSids = NULL;
549 PTOKEN_PRIVILEGES DeletePrivileges = NULL;
550
551 /*
552 * Capture the elements we're being given from
553 * the caller and allocate the groups and/or
554 * privileges that have to be filtered in
555 * the token.
556 */
557 if (SidsToDisable != NULL)
558 {
559 DisableSids = (PTOKEN_GROUPS)LocalAlloc(LMEM_FIXED, DisableSidCount * sizeof(TOKEN_GROUPS));
560 if (DisableSids == NULL)
561 {
562 /* We failed, bail out */
564 return FALSE;
565 }
566
567 /* Copy the counter and loop the elements to copy the rest */
568 DisableSids->GroupCount = DisableSidCount;
569 for (Index = 0; Index < DisableSidCount; Index++)
570 {
571 DisableSids->Groups[Index].Sid = SidsToDisable[Index].Sid;
572 DisableSids->Groups[Index].Attributes = SidsToDisable[Index].Attributes;
573 }
574 }
575
576 if (PrivilegesToDelete != NULL)
577 {
578 DeletePrivileges = (PTOKEN_PRIVILEGES)LocalAlloc(LMEM_FIXED, DeletePrivilegeCount * sizeof(TOKEN_PRIVILEGES));
579 if (DeletePrivileges == NULL)
580 {
581 /* We failed, bail out */
583 Success = FALSE;
584 goto Cleanup;
585 }
586
587 /* Copy the counter and loop the elements to copy the rest */
588 DeletePrivileges->PrivilegeCount = DeletePrivilegeCount;
589 for (Index = 0; Index < DeletePrivilegeCount; Index++)
590 {
591 DeletePrivileges->Privileges[Index].Luid = PrivilegesToDelete[Index].Luid;
592 DeletePrivileges->Privileges[Index].Attributes = PrivilegesToDelete[Index].Attributes;
593 }
594 }
595
596 if (SidsToRestrict != NULL)
597 {
598 RestrictedSids = (PTOKEN_GROUPS)LocalAlloc(LMEM_FIXED, RestrictedSidCount * sizeof(TOKEN_GROUPS));
599 if (RestrictedSids == NULL)
600 {
601 /* We failed, bail out */
603 Success = FALSE;
604 goto Cleanup;
605 }
606
607 /* Copy the counter and loop the elements to copy the rest */
608 RestrictedSids->GroupCount = RestrictedSidCount;
609 for (Index = 0; Index < RestrictedSidCount; Index++)
610 {
611 RestrictedSids->Groups[Index].Sid = SidsToRestrict[Index].Sid;
612 RestrictedSids->Groups[Index].Attributes = SidsToRestrict[Index].Attributes;
613 }
614 }
615
616 /*
617 * Call the NT API to request a token filtering
618 * operation for us.
619 */
620 Status = NtFilterToken(ExistingTokenHandle,
621 Flags,
622 DisableSids,
623 DeletePrivileges,
624 RestrictedSids,
626 if (!NT_SUCCESS(Status))
627 {
628 /* We failed to do the job, bail out */
630 Success = FALSE;
631 goto Cleanup;
632 }
633
634 /* If we reach here then we've successfully filtered the token */
635 Success = TRUE;
636
637Cleanup:
638 /* Free whatever we allocated before */
639 if (DisableSids != NULL)
640 {
641 LocalFree(DisableSids);
642 }
643
644 if (DeletePrivileges != NULL)
645 {
646 LocalFree(DeletePrivileges);
647 }
648
649 if (RestrictedSids != NULL)
650 {
651 LocalFree(RestrictedSids);
652 }
653
654 return Success;
655}
static const WCHAR Cleanup[]
Definition: register.c:80
@ Success
Definition: eventcreate.c:712
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1390
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1594
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ BOOLEAN _In_ TOKEN_TYPE _Out_ PHANDLE NewTokenHandle
Definition: sefuncs.h:412
SID_AND_ATTRIBUTES Groups[ANYSIZE_ARRAY]
Definition: setypes.h:1018
$ULONG GroupCount
Definition: setypes.h:1014
$ULONG PrivilegeCount
Definition: setypes.h:1023
LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY]
Definition: setypes.h:1024
NTSTATUS NTAPI NtFilterToken(_In_ HANDLE ExistingTokenHandle, _In_ ULONG Flags, _In_opt_ PTOKEN_GROUPS SidsToDisable, _In_opt_ PTOKEN_PRIVILEGES PrivilegesToDelete, _In_opt_ PTOKEN_GROUPS RestrictedSids, _Out_ PHANDLE NewTokenHandle)
Creates an access token in a restricted form from the original existing token, that is,...
Definition: tokenlif.c:2075
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
_In_ WDFCOLLECTION _In_ ULONG Index
#define LMEM_FIXED
Definition: winbase.h:368
struct _TOKEN_GROUPS * PTOKEN_GROUPS
struct _TOKEN_PRIVILEGES * PTOKEN_PRIVILEGES

Referenced by test_token_security_descriptor().

◆ CreateSemaphoreA()

_Ret_maybenull_ HANDLE WINAPI CreateSemaphoreA ( _In_opt_  LPSECURITY_ATTRIBUTES,
_In_  LONG,
_In_  LONG,
_In_opt_  LPCSTR 
)

◆ CreateSemaphoreW()

_Ret_maybenull_ HANDLE WINAPI CreateSemaphoreW ( _In_opt_  LPSECURITY_ATTRIBUTES,
_In_  LONG,
_In_  LONG,
_In_opt_  LPCWSTR 
)

◆ CreateTapePartition()

DWORD WINAPI CreateTapePartition ( _In_  HANDLE,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD 
)

◆ CreateThread()

HANDLE WINAPI CreateThread ( LPSECURITY_ATTRIBUTES  ,
DWORD  ,
LPTHREAD_START_ROUTINE  ,
PVOID  ,
DWORD  ,
PDWORD   
)

◆ CreateWaitableTimerA()

_Ret_maybenull_ HANDLE WINAPI CreateWaitableTimerA ( _In_opt_  LPSECURITY_ATTRIBUTES,
_In_  BOOL,
_In_opt_  LPCSTR 
)

◆ CreateWaitableTimerW()

_Ret_maybenull_ HANDLE WINAPI CreateWaitableTimerW ( _In_opt_  LPSECURITY_ATTRIBUTES,
_In_  BOOL,
_In_opt_  LPCWSTR 
)

◆ DebugActiveProcess()

BOOL WINAPI DebugActiveProcess ( DWORD  )

◆ DebugBreak()

◆ DecodePointer()

PVOID WINAPI DecodePointer ( PVOID  )

◆ DecodeSystemPointer()

PVOID WINAPI DecodeSystemPointer ( PVOID  )

◆ DecryptFileA()

BOOL WINAPI DecryptFileA ( _In_  LPCSTR,
_Reserved_  DWORD 
)

◆ DecryptFileW()

BOOL WINAPI DecryptFileW ( _In_  LPCWSTR,
_Reserved_  DWORD 
)

◆ DefineDosDeviceA()

BOOL WINAPI DefineDosDeviceA ( _In_  DWORD,
_In_  LPCSTR,
_In_opt_  LPCSTR 
)

◆ DefineDosDeviceW()

BOOL WINAPI DefineDosDeviceW ( DWORD  dwFlags,
LPCWSTR  lpDeviceName,
LPCWSTR  lpTargetPath 
)

Definition at line 232 of file dosdev.c.

237{
238 ULONG ArgumentCount;
240 BASE_API_MESSAGE ApiMessage;
241 PBASE_DEFINE_DOS_DEVICE DefineDosDeviceRequest = &ApiMessage.Data.DefineDosDeviceRequest;
242 PCSR_CAPTURE_BUFFER CaptureBuffer;
243 UNICODE_STRING NtTargetPathU;
244 UNICODE_STRING DeviceNameU;
245 HANDLE hUser32;
247 DWORD dwRecipients;
248 typedef long (WINAPI *BSM_type)(DWORD, LPDWORD, UINT, WPARAM, LPARAM);
249 BSM_type BSM_ptr;
250 BOOLEAN LUIDDeviceMapsEnabled;
253
254 /* Get status about local device mapping */
255 LUIDDeviceMapsEnabled = BaseStaticServerData->LUIDDeviceMapsEnabled;
256
257 /* Validate input & flags */
258 if ((dwFlags & 0xFFFFFFE0) ||
261 (lpTargetPath == NULL && !(dwFlags & (DDD_LUID_BROADCAST_DRIVE | DDD_REMOVE_DEFINITION))) ||
263 (lpDeviceName == NULL || lpTargetPath != NULL || dwFlags & (DDD_NO_BROADCAST_SYSTEM | DDD_EXACT_MATCH_ON_REMOVE | DDD_RAW_TARGET_PATH) || !LUIDDeviceMapsEnabled)))
264 {
266 return FALSE;
267 }
268
269 /* Initialize device unicode string to ease its use */
270 RtlInitUnicodeString(&DeviceNameU, lpDeviceName);
271
272 /* The buffer for CSR call will contain it */
273 BufferSize = DeviceNameU.MaximumLength;
274 ArgumentCount = 1;
275
276 /* If we don't have target path, use empty string */
277 if (lpTargetPath == NULL)
278 {
279 RtlInitUnicodeString(&NtTargetPathU, NULL);
280 }
281 else
282 {
283 /* Else, use it raw if asked to */
285 {
286 RtlInitUnicodeString(&NtTargetPathU, lpTargetPath);
287 }
288 else
289 {
290 /* Otherwise, use it converted */
291 if (!RtlDosPathNameToNtPathName_U(lpTargetPath,
292 &NtTargetPathU,
293 NULL,
294 NULL))
295 {
296 WARN("RtlDosPathNameToNtPathName_U() failed\n");
298 return FALSE;
299 }
300 }
301
302 /* This target path will be the second arg */
303 ArgumentCount = 2;
304 BufferSize += NtTargetPathU.MaximumLength;
305 }
306
307 /* Allocate the capture buffer for our strings */
308 CaptureBuffer = CsrAllocateCaptureBuffer(ArgumentCount,
309 BufferSize);
310 if (CaptureBuffer == NULL)
311 {
313 {
314 RtlFreeUnicodeString(&NtTargetPathU);
315 }
316
318 return FALSE;
319 }
320
321 /* Set the flags */
322 DefineDosDeviceRequest->Flags = dwFlags;
323
324 /* Allocate a buffer for the device name */
325 DefineDosDeviceRequest->DeviceName.MaximumLength = CsrAllocateMessagePointer(CaptureBuffer,
326 DeviceNameU.MaximumLength,
327 (PVOID*)&DefineDosDeviceRequest->DeviceName.Buffer);
328 /* And copy it while upcasing it */
329 RtlUpcaseUnicodeString(&DefineDosDeviceRequest->DeviceName, &DeviceNameU, FALSE);
330
331 /* If we have a target path, copy it too, and free it if allocated */
332 if (NtTargetPathU.Length != 0)
333 {
334 DefineDosDeviceRequest->TargetPath.MaximumLength = CsrAllocateMessagePointer(CaptureBuffer,
335 NtTargetPathU.MaximumLength,
336 (PVOID*)&DefineDosDeviceRequest->TargetPath.Buffer);
337 RtlCopyUnicodeString(&DefineDosDeviceRequest->TargetPath, &NtTargetPathU);
338
340 {
341 RtlFreeUnicodeString(&NtTargetPathU);
342 }
343 }
344 /* Otherwise, null initialize the string */
345 else
346 {
347 RtlInitUnicodeString(&DefineDosDeviceRequest->TargetPath, NULL);
348 }
349
350 /* Finally, call the server */
352 CaptureBuffer,
354 sizeof(*DefineDosDeviceRequest));
355 CsrFreeCaptureBuffer(CaptureBuffer);
356
357 /* Return failure if any */
358 if (!NT_SUCCESS(ApiMessage.Status))
359 {
360 WARN("CsrClientCallServer() failed (Status %lx)\n", ApiMessage.Status);
361 BaseSetLastNTError(ApiMessage.Status);
362 return FALSE;
363 }
364
365 /* Here is the success path, we will always return true */
366
367 /* Should broadcast the event? Only do if not denied and if drive letter */
369 DeviceNameU.Length == 2 * sizeof(WCHAR) &&
370 DeviceNameU.Buffer[1] == L':')
371 {
372 /* Make sure letter is valid and there are no local device mappings */
373 Letter = RtlUpcaseUnicodeChar(DeviceNameU.Buffer[0]) - L'A';
374 if (Letter < 26 && !LUIDDeviceMapsEnabled)
375 {
376 /* Rely on user32 for broadcasting */
377 hUser32 = LoadLibraryW(L"user32.dll");
378 if (hUser32 != 0)
379 {
380 /* Get the function pointer */
381 BSM_ptr = (BSM_type)GetProcAddress(hUser32, "BroadcastSystemMessageW");
382 if (BSM_ptr)
383 {
384 /* Set our target */
385 dwRecipients = BSM_APPLICATIONS;
386
387 /* And initialize our structure */
388 dbcv.dbcv_size = sizeof(DEV_BROADCAST_VOLUME);
390 dbcv.dbcv_reserved = 0;
391
392 /* Set the volume which had the event */
393 dbcv.dbcv_unitmask = 1 << Letter;
394 dbcv.dbcv_flags = DBTF_NET;
395
396 /* And properly set the event (removal or arrival?) */
398
399 /* And broadcast! */
400 BSM_ptr(BSF_SENDNOTIFYMESSAGE | BSF_FLUSHDISK,
401 &dwRecipients,
403 wParam,
404 (LPARAM)&dbcv);
405 }
406
407 /* We're done! */
408 FreeLibrary(hUser32);
409 }
410 }
411 }
412
413 return TRUE;
414}
WCHAR Letter
@ BasepDefineDosDevice
Definition: basemsg.h:44
#define BASESRV_SERVERDLL_INDEX
Definition: basemsg.h:15
WPARAM wParam
Definition: combotst.c:138
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define BSF_FLUSHDISK
Definition: dbt.h:53
#define DBT_DEVTYP_VOLUME
Definition: dbt.h:21
#define DBTF_NET
Definition: dbt.h:44
#define BSM_APPLICATIONS
Definition: dbt.h:48
#define DBT_DEVICEARRIVAL
Definition: dbt.h:12
#define DBT_DEVICEREMOVECOMPLETE
Definition: dbt.h:16
struct _DEV_BROADCAST_VOLUME DEV_BROADCAST_VOLUME
#define BufferSize
Definition: mmc.h:75
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
PBASE_STATIC_SERVER_DATA BaseStaticServerData
Definition: dllmain.c:19
NTSTATUS RtlUpcaseUnicodeString(PUNICODE_STRING dst, PUNICODE_STRING src, BOOLEAN Alloc)
Definition: string_lib.cpp:46
unsigned int UINT
Definition: ndis.h:50
WCHAR NTAPI RtlUpcaseUnicodeChar(_In_ WCHAR Source)
Definition: nlsboot.c:176
NTSYSAPI VOID NTAPI RtlCopyUnicodeString(PUNICODE_STRING DestinationString, PUNICODE_STRING SourceString)
#define LPDWORD
Definition: nt_native.h:46
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define DWORD
Definition: nt_native.h:44
#define long
Definition: qsort.c:33
PCSR_CAPTURE_BUFFER NTAPI CsrAllocateCaptureBuffer(_In_ ULONG ArgumentCount, _In_ ULONG BufferSize)
Definition: capture.c:87
ULONG NTAPI CsrAllocateMessagePointer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
Definition: capture.c:152
VOID NTAPI CsrFreeCaptureBuffer(_In_ _Frees_ptr_ PCSR_CAPTURE_BUFFER CaptureBuffer)
Definition: capture.c:210
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
Definition: connect.c:366
BASE_DEFINE_DOS_DEVICE DefineDosDeviceRequest
Definition: basemsg.h:300
union _BASE_API_MESSAGE::@3533 Data
UNICODE_STRING TargetPath
Definition: basemsg.h:257
UNICODE_STRING DeviceName
Definition: basemsg.h:256
BOOLEAN LUIDDeviceMapsEnabled
Definition: base.h:141
NTSTATUS Status
Definition: csrmsg.h:110
DWORD dbcv_reserved
Definition: dbt.h:103
DWORD dbcv_unitmask
Definition: dbt.h:104
DWORD dbcv_devicetype
Definition: dbt.h:102
USHORT MaximumLength
Definition: env_spec_w32.h:370
#define STATUS_OBJECT_NAME_INVALID
Definition: udferr_usr.h:148
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
#define DDD_NO_BROADCAST_SYSTEM
Definition: winbase.h:526
#define DDD_EXACT_MATCH_ON_REMOVE
Definition: winbase.h:525
#define DDD_RAW_TARGET_PATH
Definition: winbase.h:523
#define DDD_LUID_BROADCAST_DRIVE
Definition: winbase.h:527
#define DDD_REMOVE_DEFINITION
Definition: winbase.h:524
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
#define WM_DEVICECHANGE
Definition: winuser.h:1811

Referenced by _ClosePortHandles(), _CreateNonspooledPort(), AddSubst(), DefineDosDeviceA(), DeleteSubst(), and SetParallelState().

◆ DeleteAce()

BOOL WINAPI DeleteAce ( PACL  pAcl,
DWORD  dwAceIndex 
)

Definition at line 1166 of file security.c.

1167{
1168 return set_ntstatus(RtlDeleteAce(pAcl, dwAceIndex));
1169}
NTSYSAPI NTSTATUS NTAPI RtlDeleteAce(PACL Acl, ULONG AceIndex)

◆ DeleteAtom()

ATOM WINAPI DeleteAtom ( _In_  ATOM)

◆ DeleteCriticalSection()

void WINAPI DeleteCriticalSection ( PCRITICAL_SECTION  )

Referenced by __mingw_TLScallback(), __xmlGlobalInitMutexDestroy(), __xmlGlobalInitMutexLock(), _Locale_final(), ANIMATE_Destroy(), apartment_release(), ApiFree(), AsyncInetFree(), AudioMediaStreamImpl_IAMMediaStream_Release(), BackgroundCopyJob_Release(), BackgroundCopyJobConstructor(), BaseFilter_Destroy(), BaseRendererImpl_Release(), Binding_Release(), BindProtocol_Release(), BitmapClipper_Release(), BitmapImpl_Release(), BitmapScaler_Release(), BmpDecoder_Release(), chm_close(), Cleanup(), cleanup_tests(), CleanupSidCacheMgr(), close_gecko(), Collection_release(), COMPOBJ_DllList_Free(), ComponentEnum_Release(), ConDrvDeleteConsole(), ConDrvInitConsole(), ContextPropertyList_Free(), createtestfilter(), CRYPT_RegCloseStore(), crypt_sip_free(), destroy_handle_table(), destroy_serverprotoseq(), DirectDrawMediaStreamImpl_IAMMediaStream_Release(), DirectSoundCaptureDevice_Release(), DirectSoundDevice_Release(), DllMain(), DnsIntCacheFree(), dplay_destroy(), dplobby_destroy(), EventsQueue_Destroy(), fclose(), file_device_free(), FileAsyncReaderPin_Release(), FilterGraph_create(), FilterGraphInner_Release(), FlipRotator_Release(), fnCaptureGraphBuilder2_Release(), FormatConverter_Release(), free_function_sets(), free_oid_info(), FreeChangeNotifications(), GdiProcessShutdown(), GifDecoder_Release(), GifEncoder_Release(), GuiDeinitFrontEnd(), handle_release(), HTTPREQ_Destroy(), IcoDecoder_Release(), IDirectInputDevice2WImpl_Release(), install_addon(), IPropData_fnRelease(), IPropertyStorage_fnRelease(), ITextServicesImpl_Release(), LocalmonShutdown(), LogfCloseAll(), main(), MCIAVI_drvClose(), MCICDA_drvClose(), MemStore_release(), MessageCleanup(), MetadataHandler_Release(), MimeInternat_Release(), MMDevice_Destroy(), msi_free_handle_table(), msvcrt_free_io(), msvcrt_uninitialize_mlock(), NBCmdQueueDestroy(), NBNameCacheDestroy(), nbShutdownAdapter(), NetBIOSShutdown(), NetBTHangup(), NETCON_unload(), nfs41_client_free(), nfs41_session_free(), OutputQueue_Destroy(), PaletteImpl_Release(), path_Release(), PerfDataUninitialize(), pnfs_file_device_list_free(), pnfs_layout_list_free(), ProcessDetach(), PropertyStorage_BaseConstruct(), PropertyStore_Release(), proxy_manager_destroy(), PullPin_Release(), release_typelib(), root_free(), RPC_UnregisterAllChannelHooks(), RpcAssoc_Release(), RpcHttpAsyncData_Release(), RPCRT4_destroy_all_protseqs(), RPCRT4_ServerFreeAllRegisteredAuthInfo(), RpcThreadRoutine(), RunningObjectTableImpl_Destroy(), RuntimeHost_Destroy(), ScmDeleteNamedPipeCriticalSection(), SECUR32_freeProviders(), SeekInner_Release(), session_destroy(), START_TEST(), StdMemAllocator_Destroy(), StreamOnMemory_Release(), StreamOnStreamRange_Release(), stub_manager_delete(), SystemClockImpl_Release(), task_proc(), ATL::CComCriticalSection::Term(), test_async_HttpSendRequestEx(), test_messages(), test_RtlIsCriticalSectionLocked(), TestFilter_Release(), TgaDecoder_Release(), TransformFilterImpl_Release(), uninitialize_directinput_instance(), UninitializeGPNotifications(), WahDestroyHandleContextTable(), wbem_services_Release(), wined3d_dll_destroy(), winhttp_request_Release(), WINMM_DeleteIData(), WsAsyncGlobalTerminate(), WsDestroyStartupSynchronization(), WsNcDelete(), WsNqDelete(), WsProcDelete(), WsRasUninitializeAutodial(), WsTcDelete(), xmlCleanupThreads(), xmlFreeMutex(), xmlFreeRMutex(), ATL::CCriticalSection::~CCriticalSection(), CIconWatcher::~CIconWatcher(), ATL::CImage::CInitGDIPlus::~CInitGDIPlus(), and CProgressDialog::~CProgressDialog().

◆ DeleteFiber()

void WINAPI DeleteFiber ( _In_  PVOID)

◆ DeleteFileA()

BOOL WINAPI DeleteFileA ( LPCSTR  )

◆ DeleteFileW()

BOOL WINAPI DeleteFileW ( LPCWSTR  )

◆ DeregisterEventSource()

BOOL WINAPI DeregisterEventSource ( _In_  HANDLE)

◆ DestroyPrivateObjectSecurity()

BOOL WINAPI DestroyPrivateObjectSecurity ( PSECURITY_DESCRIPTOR ObjectDescriptor)

Definition at line 1409 of file misc.c.

1410{
1412
1413 Status = RtlDeleteSecurityObject(ObjectDescriptor);
1414 if (!NT_SUCCESS(Status))
1415 {
1417 return FALSE;
1418 }
1419
1420 return TRUE;
1421}
NTSYSAPI NTSTATUS NTAPI RtlDeleteSecurityObject(_In_ PSECURITY_DESCRIPTOR *ObjectDescriptor)

◆ DeviceIoControl()

BOOL WINAPI DeviceIoControl ( HANDLE  ,
DWORD  ,
PVOID  ,
DWORD  ,
PVOID  ,
DWORD  ,
PDWORD  ,
POVERLAPPED   
)

◆ DisableThreadLibraryCalls()

BOOL WINAPI DisableThreadLibraryCalls ( HMODULE  )

◆ DisconnectNamedPipe()

BOOL WINAPI DisconnectNamedPipe ( HANDLE  hNamedPipe)

Definition at line 961 of file npipe.c.

962{
965
966 /* Send the FSCTL to the driver */
967 Status = NtFsControlFile(hNamedPipe,
968 NULL,
969 NULL,
970 NULL,
971 &Iosb,
973 NULL,
974 0,
975 NULL,
976 0);
977 if (Status == STATUS_PENDING)
978 {
979 /* Wait on NPFS to finish and get updated status */
980 Status = NtWaitForSingleObject(hNamedPipe, FALSE, NULL);
981 if (NT_SUCCESS(Status))
982 Status = Iosb.Status;
983 }
984
985 /* Check for error */
986 if (!NT_SUCCESS(Status))
987 {
988 /* Fail */
990 return FALSE;
991 }
992
993 return TRUE;
994}
return Iosb
Definition: create.c:4402
NTSYSAPI NTSTATUS NTAPI NtWaitForSingleObject(IN HANDLE hObject, IN BOOLEAN bAlertable, IN PLARGE_INTEGER Timeout)
NTSYSAPI NTSTATUS NTAPI NtFsControlFile(IN HANDLE hFile, IN HANDLE hEvent OPTIONAL, IN PIO_APC_ROUTINE IoApcRoutine OPTIONAL, IN PVOID IoApcContext OPTIONAL, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN ULONG DeviceIoControlCode, IN PVOID InBuffer OPTIONAL, IN ULONG InBufferLength, OUT PVOID OutBuffer OPTIONAL, IN ULONG OutBufferLength)
#define STATUS_PENDING
Definition: ntstatus.h:82
#define FSCTL_PIPE_DISCONNECT
Definition: winioctl.h:194

Referenced by InstanceThread(), local_server_thread(), main(), overlapped_server(), pipe_thread(), pipeserver(), PipeThreadProc(), serverThreadMain1(), serverThreadMain2(), serverThreadMain3(), serverThreadMain4(), serverThreadMain5(), test_alertable(), test_CreateNamedPipe(), test_DisconnectNamedPipe(), test_file_info(), test_overlapped_transport(), test_ReadFile(), and test_security_info().

◆ DosDateTimeToFileTime()

BOOL WINAPI DosDateTimeToFileTime ( _In_  WORD,
_In_  WORD,
_Out_  LPFILETIME 
)

◆ DuplicateHandle()

BOOL WINAPI DuplicateHandle ( HANDLE  ,
HANDLE  ,
HANDLE  ,
PHANDLE  ,
DWORD  ,
BOOL  ,
DWORD   
)

◆ DuplicateToken()

BOOL WINAPI DuplicateToken ( HANDLE  ,
SECURITY_IMPERSONATION_LEVEL  ,
PHANDLE   
)

◆ DuplicateTokenEx()

◆ EncodePointer()

PVOID WINAPI EncodePointer ( PVOID  )

◆ EncodeSystemPointer()

PVOID WINAPI EncodeSystemPointer ( PVOID  )

◆ EncryptFileA()

BOOL WINAPI EncryptFileA ( _In_  LPCSTR)

◆ EncryptFileW()

BOOL WINAPI EncryptFileW ( _In_  LPCWSTR)

◆ EndUpdateResourceA()

BOOL WINAPI EndUpdateResourceA ( _In_  HANDLE,
_In_  BOOL 
)

◆ EndUpdateResourceW()

BOOL WINAPI EndUpdateResourceW ( _In_  HANDLE,
_In_  BOOL 
)

◆ EnterCriticalSection()

void WINAPI EnterCriticalSection ( LPCRITICAL_SECTION  )

Referenced by ___w64_mingwthr_add_key_dtor(), ___w64_mingwthr_remove_key_dtor(), __GetLCID(), __mingwthr_run_key_dtors(), __xmlGlobalInitMutexLock(), _HandleDeletePort(), _kbhit(), _lock(), _lock_file(), ACMWrapper_Receive(), AcquireDDThreadLock(), ACTION_FinishCustomActions(), add_cookie(), add_cookie_headers(), add_hfontitem(), add_message_(), AddDll(), CStaticIconList::AddIcon(), CIconWatcher::AddIconToWatcher(), AddNewEventSource(), alloc_bstr(), alloc_device(), alloc_handle(), alloc_msi_remote_handle(), alloc_msihandle(), alloc_object(), AllocateEnumContext(), ANIMATE_AnimationThread(), ANIMATE_DoStop(), ANIMATE_Timer(), ANIMATE_WindowProc(), apartment_find_mta(), apartment_findfromoxid(), apartment_findfromtid(), apartment_findmain(), apartment_freeunusedlibraries(), apartment_get_or_create(), apartment_getclassobject(), apartment_hostobject_in_hostapt(), apartment_release(), ApiLock(), async_read_file_proc(), AsyncInetAcquire(), AsyncInetCancel(), AsyncInetIsCanceled(), AsyncInetRelease(), AtlModuleAddCreateWndData(), AtlModuleExtractCreateWndData(), AVIDec_NotifyDrop(), AVIDec_Receive(), AVISplitter_Receive(), AVISplitter_seek(), BackgroundCopyFile_GetProgress(), BackgroundCopyJob_AddFileSet(), BackgroundCopyJob_Cancel(), BackgroundCopyJob_Complete(), BackgroundCopyJob_GetProgress(), BackgroundCopyJob_RemoveCredentials(), BackgroundCopyJob_Resume(), BackgroundCopyJob_SetCredentials(), BackgroundCopyJob_SetDescription(), BackgroundCopyManager_CreateJob(), BackgroundCopyManager_GetJob(), BaseFilterImpl_GetState(), BaseFilterImpl_GetSyncSource(), BaseFilterImpl_JoinFilterGraph(), BaseFilterImpl_SetSyncSource(), BaseInputPinImpl_BeginFlush(), BaseInputPinImpl_EndFlush(), BaseInputPinImpl_EndOfStream(), BaseInputPinImpl_ReceiveConnection(), BaseMemAllocator_Commit(), BaseMemAllocator_Decommit(), BaseMemAllocator_GetBuffer(), BaseMemAllocator_GetProperties(), BaseMemAllocator_ReleaseBuffer(), BaseMemAllocator_SetProperties(), BaseOutputPinImpl_Active(), BaseOutputPinImpl_BreakConnect(), BaseOutputPinImpl_Connect(), BaseOutputPinImpl_Deliver(), BaseOutputPinImpl_Disconnect(), BaseOutputPinImpl_Inactive(), BasePinImpl_ConnectedTo(), BasePinImpl_ConnectionMediaType(), BasePinImpl_Disconnect(), BaseRenderer_InputPin_BeginFlush(), BaseRenderer_InputPin_Disconnect(), BaseRenderer_InputPin_EndFlush(), BaseRenderer_InputPin_EndOfStream(), BaseRenderer_InputPin_ReceiveConnection(), BaseRendererImpl_Pause(), BaseRendererImpl_Receive(), BaseRendererImpl_Run(), BaseRendererImpl_SetSyncSource(), BaseRendererImpl_Stop(), BasicAudio_get_Balance(), BasicAudio_get_Volume(), BasicAudio_GetIDsOfNames(), BasicAudio_GetTypeInfo(), BasicAudio_GetTypeInfoCount(), BasicAudio_Invoke(), BasicAudio_put_Balance(), BasicAudio_put_Volume(), BasicVideo2_GetPreferredAspectRatio(), BasicVideo_get_AvgTimePerFrame(), BasicVideo_get_BitErrorRate(), BasicVideo_get_BitRate(), BasicVideo_get_DestinationHeight(), BasicVideo_get_DestinationLeft(), BasicVideo_get_DestinationTop(), BasicVideo_get_DestinationWidth(), BasicVideo_get_SourceHeight(), BasicVideo_get_SourceLeft(), BasicVideo_get_SourceTop(), BasicVideo_get_SourceWidth(), BasicVideo_get_VideoHeight(), BasicVideo_get_VideoWidth(), BasicVideo_GetCurrentImage(), BasicVideo_GetDestinationPosition(), BasicVideo_GetIDsOfNames(), BasicVideo_GetSourcePosition(), BasicVideo_GetTypeInfo(), BasicVideo_GetTypeInfoCount(), BasicVideo_GetVideoPaletteEntries(), BasicVideo_GetVideoSize(), BasicVideo_Invoke(), BasicVideo_IsUsingDefaultDestination(), BasicVideo_IsUsingDefaultSource(), BasicVideo_put_DestinationHeight(), BasicVideo_put_DestinationLeft(), BasicVideo_put_DestinationTop(), BasicVideo_put_DestinationWidth(), BasicVideo_put_SourceHeight(), BasicVideo_put_SourceLeft(), BasicVideo_put_SourceTop(), BasicVideo_put_SourceWidth(), BasicVideo_SetDefaultDestinationPosition(), BasicVideo_SetDefaultSourcePosition(), BasicVideo_SetDestinationPosition(), BasicVideo_SetSourcePosition(), BitmapClipper_Initialize(), BitmapImpl_GetResolution(), BitmapImpl_SetResolution(), BitmapScaler_CopyPixels(), BitmapScaler_Initialize(), BmpDecoder_Initialize(), BmpFrameDecode_CopyPalette(), BmpFrameDecode_CopyPixels(), build_request_header(), build_response_header(), BuildServiceArray(), BuildServiceTable(), cache_authorization(), cache_basic_authorization(), cache_connection(), callwndproc_proc(), cancel_lock(), cancel_request(), CertAddStoreToCollection(), CertRemoveStoreFromCollection(), ChannelHooks_ClientFillBuffer(), ChannelHooks_ClientGetSize(), ChannelHooks_ClientNotify(), ChannelHooks_ServerFillBuffer(), ChannelHooks_ServerGetSize(), ChannelHooks_ServerNotify(), check_codebase(), check_dinput_hooks(), check_hook_thread(), check_notification(), clear_font_cache(), client_state_add(), client_state_remove(), clipboard_thread(), clipboard_wnd_proc(), ClipTestProc(), ClipThread(), CLRRuntimeInfo_GetRuntimeHost(), CoAddRefServerProcess(), CoGetPSClsid(), collect_connections_proc(), collect_query_thread(), Collection_control(), Collection_enumCert(), Collection_enumCRL(), Collection_enumCTL(), COM_GetRegisteredClassObject(), COM_RevokeAllClasses(), CKsAllocator::Commit(), COMPOBJ_DllList_Add(), COMPOBJ_DllList_Free(), COMPOBJ_DllList_Get(), COMPOBJ_DllList_ReleaseRef(), ComponentEnum_Clone(), ComponentEnum_Next(), ComponentEnum_Reset(), ComponentEnum_Skip(), ComputeRouteMetric(), ConDrvValidateConsoleUnsafe(), condvar_base_consumer(), condvar_base_producer(), condvar_consumer(), condvar_producer(), connection_collector(), ContextPropertyList_Copy(), ContextPropertyList_EnumPropIDs(), ContextPropertyList_FindProperty(), ContextPropertyList_RemoveProperty(), ContextPropertyList_SetProperty(), copy_handle(), CoRegisterClassObject(), CoRegisterMallocSpy(), CoRegisterMessageFilter(), CoRegisterPSClsid(), CoReleaseServerProcess(), CoRevokeClassObject(), CoRevokeMallocSpy(), create_cache_entry(), CreateComponentInfo(), CreateSession(), CredUIConfirmCredentialsW(), CredUIPromptForCredentialsW(), critsect_locked_thread(), CRYPT_CacheSIP(), CRYPT_CollectionAddContext(), CRYPT_GetCachedSIP(), CRYPT_RegDeleteContext(), CRYPT_RegWriteToReg(), CryptEnumOIDInfo(), CryptFindOIDInfo(), CryptGetOIDFunctionAddress(), CryptInitOIDFunctionSet(), CryptInstallOIDFunctionAddress(), custom_client_thread(), D3D9BaseObject_LockDevice(), D3DAssemble(), D3DCompile2(), D3DPreprocess(), D3DXAssembleShaderFromFileW(), D3DXCompileShaderFromFileW(), D3DXCreateEffectFromFileExW(), D3DXPreprocessShaderFromFileW(), DdeAddPair(), DdeGetPair(), dec_ext_ref(), dec_int_ref(), CKsAllocator::Decommit(), ATL::CImage::CInitGDIPlus::DecreaseCImageCount(), deleg_open_find(), delegation_find(), delegation_remove(), delete_dc(), dequeue_task(), DequeueSidLookup(), DestroyAcceleratorTable(), DestroySession(), detach_thread(), dialog_proc(), dinput_mouse_hook(), RdpClientUI::Display_BeginUpdate(), RdpClientUI::DisplayWindowProc(), DllMain(), do_msidbCustomActionTypeDll(), do_msidbCustomActionTypeScript(), DP_MSG_BuildAndLinkReplyStruct(), DP_MSG_ReplyReceived(), drain_content(), DRIVER_AddToList(), DRIVER_Dump(), DRIVER_GetNumberOfModuleRefs(), DRIVER_RemoveFromList(), DRIVER_UnloadAll(), DSOUND_callback(), DSOUND_capture_callback(), DSOUND_PerformMix(), DSOUND_PrimaryClose(), DSOUND_PrimaryDestroy(), DSOUND_PrimaryStop(), DSOUND_WaveQueue(), DSoundRender_BreakConnect(), DSoundRender_HandleEndOfStream(), DSoundRender_Pause(), DSoundRender_SendSampleData(), DumpEventSourceList(), ElfCreateBackupLogHandle(), ElfCreateEventLogHandle(), ElfDeleteEventLogHandle(), ElfGetLogHandleEntryByHandle(), EMF_Delete_HENHMETAFILE(), EMF_GetEnhMetaHeader(), ensure_cred_handle(), ATL::CCriticalSection::Enter(), enum_copy_job_create(), EnumBackgroundCopyFilesConstructor(), EnumerateSecurityPackagesW(), ept_delete(), ept_insert(), ept_map(), EventsQueue_GetEvent(), EventsQueue_PutEvent(), Execute(), ExecutePipeline(), expect_event(), CStaticIconList::ExtractIcon(), file_device_find_or_create(), file_layout_recall_all(), file_layout_recall_file(), file_layout_recall_fsid(), FileAsyncReader_BeginFlush(), FileAsyncReader_EndFlush(), FileAsyncReader_Request(), FileAsyncReader_WaitForNext(), FileOpenDlgProc95(), fileTransfer(), FillBuffer(), FilterGraph2_Connect(), FilterGraph2_Render(), FilterGraph2_SetDefaultSyncSource(), find_action_by_guid(), find_proxy_manager(), find_runtimes(), FindDll(), FlipRotator_Initialize(), flush_sequence(), FormatConverter_Initialize(), free_authorization_cache(), free_cookie(), free_custom_action_data(), free_global_proxy(), free_handle(), FreeEnumContext(), FreeViewStatePropertyBagCache(), GdiCreateClientObjLink(), GdiGetClientObjLink(), GdiRemoveClientObjLink(), get_cookie_header(), get_dc(), get_dc_data_ex(), get_delegating_vtbl(), get_dispex_data(), get_ea_list(), get_feature_from_process(), get_handle_object(), get_host_header(), get_ioinfo(), get_local_server_stream(), get_mime_filter(), get_or_create_threaddata(), get_protocol_handler(), get_protocol_info(), get_server(), get_stub_manager(), get_stub_manager_from_ipid(), get_stub_manager_from_object(), get_tls_data(), get_useragent(), CKsAllocator::GetBuffer(), GetEventSourceByName(), CStaticIconList::GetIconSize(), CStaticIconList::GetImageCount(), GetPriorityInfo(), GetSession(), GetSocketStructure(), CProgressDialog::GetWindow(), GifDecoder_GetFrameCount(), GifDecoder_Initialize(), GifEncoder_Commit(), GifEncoder_CreateNewFrame(), GifEncoder_Initialize(), GifEncoder_SetPalette(), GifFrameEncode_Commit(), GifFrameEncode_Initialize(), GifFrameEncode_SetPalette(), GifFrameEncode_SetPixelFormat(), GifFrameEncode_SetResolution(), GifFrameEncode_SetSize(), GifFrameEncode_WritePixels(), GifFrameEncode_WriteSource(), GPNotificationThreadProc(), grab_object(), GraphConfig_Reconfigure(), GuiReleaseScreenBuffer(), GuiSetActiveScreenBuffer(), handle_lock(), handle_read(), handle_setsize(), handle_unlock(), handle_write(), hook_thread_proc(), HTTP_clear_response_headers(), HTTP_HttpQueryInfoW(), HTTP_HttpSendRequestW(), http_options_GetCustomHeaders(), http_options_SetCustomHeaders(), http_process_keep_alive(), HTTP_ProcessCookies(), HTTP_ProcessExpires(), HTTP_ProcessHeader(), HTTP_ProcessLastModified(), HTTP_ReceiveRequestData(), http_release_netconn(), HTTPREQ_QueryDataAvailable(), HTTPREQ_Read(), HTTPREQ_ReadFile(), IcoDecoder_GetFrame(), IcoDecoder_GetFrameCount(), IcoDecoder_Initialize(), IDirect3D9Impl_Release(), IDirect3DDevice9Base_Release(), IDirectInputDevice2WImpl_Acquire(), IDirectInputDevice2WImpl_GetDeviceData(), IDirectInputDevice2WImpl_Release(), IDirectInputDevice2WImpl_SetCooperativeLevel(), IDirectInputDevice2WImpl_SetDataFormat(), IDirectInputDevice2WImpl_SetEventNotification(), IDirectInputDevice2WImpl_SetProperty(), IDirectInputDevice2WImpl_Unacquire(), IDirectPlayLobby3AImpl_EnumLocalApplications(), IDirectPlayLobby3AImpl_GetConnectionSettings(), IDirectPlayLobby3AImpl_RunApplication(), IDirectPlayLobby3AImpl_SetConnectionSettings(), IDirectPlayLobby3Impl_GetConnectionSettings(), IDirectPlayLobby3Impl_SetConnectionSettings(), IDirectSoundCaptureBufferImpl_GetCurrentPosition(), IDirectSoundCaptureBufferImpl_GetStatus(), IDirectSoundCaptureBufferImpl_Lock(), IDirectSoundCaptureBufferImpl_Start(), IDirectSoundCaptureBufferImpl_Stop(), IMalloc_fnAlloc(), IMalloc_fnDidAlloc(), IMalloc_fnFree(), IMalloc_fnGetSize(), IMalloc_fnHeapMinimize(), IMalloc_fnRealloc(), IMAPIPROP_Lock(), inc_ext_ref(), inc_int_ref(), ATL::CImage::CInitGDIPlus::IncreaseCImageCount(), ATL::CImage::CInitGDIPlus::Init(), CStaticIconList::Init(), init_script_cache(), init_slot_table(), InitDisplayAttrbuteLib(), initialize_directinput_instance(), InitLangChangeHotKey(), InstallCallback_OnStartBinding(), InstallCallback_OnStopBinding(), installer_proc(), IntDeleteAllICDs(), INTERNET_LoadProxySettings(), InternetDeInitializeAutoProxyDll(), InternetGetCookieExW(), InternetGetProxyInfo(), InternetSession_RegisterMimeFilter(), InternetSession_UnregisterMimeFilter(), InternetSetOptionW(), IntGetIcdData(), IntProtectHandle(), IntUnprotectHandle(), IPropertyStorage_fnCommit(), IPropertyStorage_fnDeleteMultiple(), IPropertyStorage_fnDeletePropertyNames(), IPropertyStorage_fnReadMultiple(), IPropertyStorage_fnReadPropertyNames(), IPropertyStorage_fnRevert(), IPropertyStorage_fnWriteMultiple(), IPropertyStorage_fnWritePropertyNames(), IrotContextHandle_rundown(), IrotEnumRunning(), IrotGetObject(), IrotGetTimeOfLastChange(), IrotIsRunning(), IrotNoteChangeTime(), IrotRegister(), IrotRevoke(), is_dst_name_opened(), is_module_registered(), is_supported_algid(), is_valid_handle(), ITypeLib2_fnRelease(), JSPROXY_InternetInitializeAutoProxyDll(), KeyboardCallback(), keylist_GetCount(), keylist_RemoveAllKeys(), layout_state_find_and_delete(), layout_state_find_or_create(), LL_hook_proc(), load_gecko(), LocalmonClosePort(), LocalmonDeletePort(), LocalmonEnumPorts(), LocalmonOpenPort(), LocalmonXcvClosePort(), LocalServer_QueryService(), ATL::CComCriticalSection::Lock(), LogfCloseAll(), LogfListAddItem(), LogfListItemByIndex(), LogfListItemByName(), LogfListItemCount(), LogfListRemoveItem(), lookup_handle(), LookupEnumContext(), LookupSidCache(), LookupThreadProc(), Main_DirectDraw_CreatePalette(), Main_DirectDraw_CreateSurface(), Main_DirectDraw_CreateSurface4(), Main_DirectDraw_GetCaps(), Main_DirectDraw_GetDeviceIdentifier7(), map_font(), MCI_Close(), MCI_GetDriver(), MCI_GetDriverFromString(), MCI_LoadMciDriver(), MCI_SysInfo(), MCI_UnLoadMciDriver(), MCIAVI_drvClose(), MCIAVI_mciBreak(), MCIAVI_mciClose(), MCIAVI_mciGetDevCaps(), MCIAVI_mciInfo(), MCIAVI_mciOpen(), MCIAVI_mciPause(), MCIAVI_mciPlay(), MCIAVI_mciPut(), MCIAVI_mciResume(), MCIAVI_mciSeek(), MCIAVI_mciSet(), MCIAVI_mciStatus(), MCIAVI_mciStep(), MCIAVI_mciStop(), MCIAVI_mciUpdate(), MCIAVI_mciWhere(), MCIAVI_mciWindow(), MCIAVI_player(), MCIAVI_waveCallback(), MCIAVI_WindowProc(), MCICDA_playLoop(), MediaControl_GetState(), MediaControl_Pause(), MediaControl_Run(), MediaControl_Stop(), MediaEventSink_Notify(), MediaFilter_GetSyncSource(), MediaFilter_SetSyncSource(), MediaSeeking_CheckCapabilities(), MediaSeeking_GetCapabilities(), MediaSeeking_GetDuration(), MediaSeeking_GetPositions(), MediaSeeking_SetPositions(), MediaSeekingPassThru_GetCurrentPosition(), MemStore_addContext(), MemStore_deleteContext(), MemStore_enumContext(), MetadataHandler_GetValue(), MetadataHandler_GetValueByIndex(), MetadataHandler_LoadEx(), MetadataHandlerEnum_Clone(), MetadataHandlerEnum_Next(), MetadataHandlerEnum_Reset(), MetadataHandlerEnum_Skip(), MimeInternat_FindCharset(), MimeInternat_GetCharsetInfo(), MMDevEnum_RegisterEndpointNotificationCallback(), MMDevEnum_UnregisterEndpointNotificationCallback(), MMIO_Create(), MMIO_Destroy(), MMIO_Get(), MPEGSplitter_seek(), msi_get_remote(), MsiCloseAllHandles(), MsiCloseHandle(), msihandle2msiinfo(), msiobj_lock(), MULTIMEDIA_PlaySound(), nbCall(), NBCmdQueueAdd(), NBCmdQueueCancel(), NBCmdQueueCancelAll(), NBCmdQueueComplete(), nbInternalEnum(), nbInternalHangup(), NBNameCacheAddEntry(), NBNameCacheFindEntry(), nbReset(), nbSStat(), NDRCContextBinding(), NDRCContextMarshall(), NDRCContextUnmarshall(), NetBIOSEnableAdapter(), NetBIOSEnumAdapters(), NetBIOSRegisterAdapter(), NetBIOSShutdown(), NetBTRecv(), new_stub_manager(), nfs41_client_delegation_free(), nfs41_client_delegation_return_lru(), nfs41_client_state_revoked(), nfs41_delegation_granted(), nfs41_recover_client_state(), nfs41_recover_stateid(), nfs41_recovery_finish(), nfs41_recovery_start_or_wait(), nfs41_root_mount_addrs(), nfs41_root_session(), nfs41_server_deref(), nfs41_server_find_or_create(), nfs41_server_ref(), nfs41_session_bad_slot(), nfs41_session_bump_seq(), nfs41_session_free_slot(), nfs41_session_get_slot(), nfs41_session_recall_slot(), notif_thread_proc(), ObtainUserAgentString(), OLEFontImpl_Release(), OleGetClipboard(), OnPaint(), open_connection(), open_http_connection(), OutputQueue_Construct(), OutputQueue_Destroy(), OutputQueue_EOS(), OutputQueue_ReceiveMultiple(), OutputQueue_SendAnyway(), OutputQueueImpl_ThreadProc(), PaletteImpl_GetColorCount(), PaletteImpl_GetColors(), PaletteImpl_GetType(), PaletteImpl_HasAlpha(), PaletteImpl_InitializeCustom(), PaletteImpl_InitializeFromPalette(), PaletteImpl_InitializePredefined(), PaletteImpl_IsBlackWhite(), PaletteImpl_IsGrayscale(), Parser_GetState(), Parser_OutputPin_BreakConnect(), Parser_OutputPin_Connect(), Parser_Pause(), Parser_PullPin_Disconnect(), Parser_PullPin_ReceiveConnection(), Parser_Run(), Parser_SetSyncSource(), Parser_Stop(), path_GetClassName(), path_GetInfo(), path_GetKeyList(), path_GetNamespaceAt(), path_GetNamespaceCount(), path_GetServer(), path_GetText(), path_RemoveAllNamespaces(), path_RemoveNamespaceAt(), path_SetClassName(), path_SetNamespaceAt(), path_SetServer(), path_SetText(), CKsProxy::Pause(), PdhAddCounterW(), PdhCalculateCounterFromRawValue(), PdhCloseQuery(), PdhCollectQueryData(), PdhCollectQueryDataEx(), PdhCollectQueryDataWithTime(), PdhGetCounterInfoA(), PdhGetCounterInfoW(), PdhGetCounterTimeBase(), PdhGetFormattedCounterValue(), PdhGetRawCounterValue(), PdhRemoveCounter(), PdhSetCounterScaleFactor(), PerfDataGet(), PerfDataGetBasePriority(), PerfDataGetCommitChargeLimitK(), PerfDataGetCommitChargePeakK(), PerfDataGetCommitChargeTotalK(), PerfDataGetCPUTime(), PerfDataGetCPUUsage(), PerfDataGetGDIObjectCount(), PerfDataGetHandleCount(), PerfDataGetImageName(), PerfDataGetIOCounters(), PerfDataGetKernelMemoryNonPagedK(), PerfDataGetKernelMemoryPagedK(), PerfDataGetKernelMemoryTotalK(), PerfDataGetNonPagedPoolUsagePages(), PerfDataGetPagedPoolUsagePages(), PerfDataGetPageFaultCount(), PerfDataGetPageFaultCountDelta(), PerfDataGetPeakWorkingSetSizeBytes(), PerfDataGetPhysicalMemoryAvailableK(), PerfDataGetPhysicalMemorySystemCacheK(), PerfDataGetPhysicalMemoryTotalK(), PerfDataGetProcessCount(), PerfDataGetProcessId(), PerfDataGetProcessIndex(), PerfDataGetProcessorSystemUsage(), PerfDataGetProcessorUsage(), PerfDataGetSessionId(), PerfDataGetSystemHandleCount(), PerfDataGetThreadCount(), PerfDataGetTotalThreadCount(), PerfDataGetUserName(), PerfDataGetUSERObjectCount(), PerfDataGetVirtualMemorySizeBytes(), PerfDataGetWorkingSetSizeBytes(), PerfDataGetWorkingSetSizeDelta(), PerfDataRefresh(), pipe_thread(), PlayNote(), PlaySound_Free(), pnfs_file_device_get(), pnfs_file_device_list_free(), pnfs_file_device_list_invalidate(), pnfs_file_device_notify(), pnfs_file_device_put(), pnfs_layout_list_free(), primarybuffer_SetFormat(), PrimaryBufferImpl_GetCurrentPosition(), PrimaryBufferImpl_Play(), PrimaryBufferImpl_SetPan(), PrimaryBufferImpl_SetVolume(), PrimaryBufferImpl_Stop(), PrimaryDirectSoundBuffer_AcquireLock(), proc_PlaySound(), process_tasks(), processFile(), processJob(), ProcessPlayingNotes(), progress_callback_http(), progress_callback_local(), PropertyStore_GetAt(), PropertyStore_GetCount(), PropertyStore_GetState(), PropertyStore_GetValue(), PropertyStore_GetValueAndState(), PropertyStore_SetState(), PropertyStore_SetValue(), PropertyStore_SetValueAndState(), proxy_manager_construct(), proxy_manager_create_ifproxy(), proxy_manager_destroy(), proxy_manager_disconnect(), proxy_manager_find_ifproxy(), proxy_manager_get_remunknown(), PullPin_BeginFlush(), PullPin_Disconnect(), PullPin_EndFlush(), PullPin_EndOfStream(), PullPin_Flush(), PullPin_InitProcessing(), PullPin_PauseProcessing(), PullPin_ReceiveConnection(), PullPin_Thread_Pause(), PullPin_Thread_Process(), PullPin_Thread_Stop(), push_task(), queue_task(), read_line(), ReadPipeCompletion(), RecordAndDispatch(), ReferenceClock_AdvisePeriodic(), ReferenceClock_AdviseTime(), ReferenceClock_GetTime(), register_namespace(), RegisterGPNotification(), RegisterMessagePumpHook(), release_delegating_vtbl(), release_font(), release_handle(), release_host(), CKsAllocator::ReleaseBuffer(), ATL::CImage::CInitGDIPlus::ReleaseGDIPlus(), remove_header(), CStaticIconList::RemoveAll(), CIconWatcher::RemoveIconFromWatcher(), RendererPosPassThru_EOS(), RendererPosPassThru_RegisterMediaTime(), RendererPosPassThru_ResetMediaTime(), request_wait(), retrieve_cached_authorization(), retrieve_cached_basic_authorization(), revoke_registered_psclsids(), rpc_cancel_thread(), RPC_RegisterChannelHook(), RPC_RegisterInterface(), RPC_UnregisterAllChannelHooks(), RPC_UnregisterInterface(), RpcAssoc_GetIdleConnection(), RpcAssoc_Release(), RpcAssoc_ReleaseIdleConnection(), RpcMgmtIsServerListening(), RpcMgmtWaitServerListen(), RpcpStartRpcServer(), RpcpStopRpcServer(), RpcpStopRpcServerEx(), RPCRT4_destroy_all_protseqs(), RPCRT4_find_interface(), RPCRT4_get_or_create_serverprotseq(), RPCRT4_GetAssociation(), RPCRT4_protseq_is_endpoint_registered(), rpcrt4_protseq_ncacn_ip_tcp_open_endpoint(), rpcrt4_protseq_ncacn_np_open_endpoint(), rpcrt4_protseq_ncalrpc_open_endpoint(), rpcrt4_protseq_np_get_wait_array(), rpcrt4_protseq_np_wait_for_new_connection(), rpcrt4_protseq_sock_get_wait_array(), rpcrt4_protseq_sock_wait_for_new_connection(), RPCRT4_ReleaseConnection(), RPCRT4_server_thread(), RPCRT4_ServerFreeAllRegisteredAuthInfo(), RPCRT4_ServerGetRegisteredAuthInfo(), RPCRT4_SetThreadCurrentConnection(), rpcrt4_spawn_connection(), RPCRT4_start_listen(), RPCRT4_start_listen_protseq(), RPCRT4_stop_listen(), RPCRT4_use_protseq(), RpcServerAssoc_AllocateContextHandle(), RpcServerAssoc_FindContextHandle(), RpcServerAssoc_GetAssociation(), RpcServerAssoc_ReleaseContextHandle(), RpcServerAssoc_UpdateContextHandle(), RpcServerInqBindings(), RpcServerRegisterAuthInfoW(), RpcServerRegisterIf3(), RpcServerUnregisterIf(), RpcSmDestroyClientContext(), RpcThreadRoutine(), CKsProxy::Run(), RunningObjectTableImpl_GetObject(), RunningObjectTableImpl_GetTimeOfLastChange(), RunningObjectTableImpl_IsRunning(), RunningObjectTableImpl_NoteChangeTime(), RunningObjectTableImpl_Register(), RunningObjectTableImpl_Revoke(), RuntimeHost_AddDomain(), RuntimeHost_DeleteDomain(), RuntimeHost_GetDefaultDomain(), SampleGrabber_callback(), SampleGrabber_ISampleGrabber_GetCurrentBuffer(), SampleGrabber_ISampleGrabber_SetBufferSamples(), schan_EnumerateSecurityPackagesW(), ScmAutoStartServices(), ScmControlService(), ScmStartService(), ScriptFreeCache(), SECUR32_addPackages(), SECUR32_addProvider(), SECUR32_freeProviders(), server_release(), ServiceStarter(), session_set_option(), set_content_length(), set_cookie(), set_feature_on_process(), CProgressDialog::SetCancelMsg(), CProgressDialog::SetLine(), CKsAllocator::SetNotify(), SetPriorityInfo(), CProgressDialog::SetProgress64(), CKsAllocator::SetProperties(), CProgressDialog::SetTitle(), SetupCloseLog(), SetupLogErrorA(), SetupOpenLog(), SHChangeNotifyRegister(), SHGetViewStatePropertyBag(), SIC_Destroy(), SIC_GetIconIndex(), SIC_IconAppend(), SmartTeeFilter_Run(), SmartTeeFilter_Stop(), SmartTeeFilterCapture_EnumMediaTypes(), SmartTeeFilterInput_GetMediaType(), SmartTeeFilterInput_Receive(), SmartTeeFilterPreview_EnumMediaTypes(), snapshot_Release(), SourceSeekingImpl_GetAvailable(), SourceSeekingImpl_GetCurrentPosition(), SourceSeekingImpl_GetDuration(), SourceSeekingImpl_GetPositions(), SourceSeekingImpl_GetRate(), SourceSeekingImpl_GetStopPosition(), SourceSeekingImpl_GetTimeFormat(), SourceSeekingImpl_IsUsingTimeFormat(), SourceSeekingImpl_SetPositions(), SourceSeekingImpl_SetRate(), start_apartment_remote_unknown(), CProgressDialog::StartProgressDialog(), StdGlobalInterfaceTable_GetInterfaceFromGlobal(), StdGlobalInterfaceTable_RegisterInterfaceInGlobal(), StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(), CKsProxy::Stop(), StopNote(), CProgressDialog::StopProgressDialog(), StreamOnMemory_Read(), StreamOnMemory_Seek(), StreamOnMemory_Write(), StreamOnStreamRange_Read(), StreamOnStreamRange_Seek(), StreamOnStreamRange_Stat(), StreamOnStreamRange_Write(), stub_manager_disconnect(), stub_manager_ext_addref(), stub_manager_ext_release(), stub_manager_find_ifstub(), stub_manager_int_addref(), stub_manager_int_release(), stub_manager_ipid_to_ifstub(), stub_manager_new_ifstub(), stub_manager_notify_unmarshal(), SvchostStopCallback(), SvcNetBiosClose(), SvcNetBiosOpen(), SvcNetBiosReset(), SvcRegisterStopCallback(), SysFreeString(), SysKeyboardWImpl_GetDeviceState(), SysMouseWImpl_GetDeviceState(), SystemClockAdviseThread(), SystemClockImpl_AdvisePeriodic(), SystemClockImpl_AdviseTime(), SystemClockImpl_GetTime(), SystemClockImpl_Unadvise(), test_condvars_base(), test_RtlIsCriticalSectionLocked(), TestFilter_GetState(), TestFilter_InputPin_ReceiveConnection(), TestFilter_JoinFilterGraph(), TestFilter_OutputPin_Connect(), TestFilter_Pin_ConnectedTo(), TestFilter_Pin_ConnectionMediaType(), TestFilter_Pin_Disconnect(), TF_GetMlngHKL(), TF_GetMlngIconIndex(), TF_InitMlngInfo(), TgaDecoder_Frame_CopyPalette(), TgaDecoder_Initialize(), TgaDecoder_ReadImage(), TIME_MMSysTimeCallback(), TIME_SetEventInternal(), timeKillEvent(), TLB_ReadTypeLib(), transfer_file_http(), TransformFilter_Input_Receive(), TransformFilter_InputPin_BeginFlush(), TransformFilter_InputPin_EndFlush(), TransformFilter_InputPin_NewSegment(), TransformFilterImpl_Pause(), TransformFilterImpl_Run(), TransformFilterImpl_Stop(), transitionJobState(), U32LoadAccelerators(), CIconWatcher::Uninitialize(), uninitialize_directinput_instance(), UninitializeGPNotifications(), UnloadServiceDll(), unregister_namespace(), UnregisterGPNotification(), UnregisterMessagePumpHook(), UrlMkGetSessionOption(), UrlMkSetSessionOption(), UuidCreateSequential(), VARIANT_GetLocalisedNumberChars(), VideoRenderer_EndFlush(), VideoRenderer_GetStaticImage(), VideoRenderer_Pause(), VideoWindow_get_AutoShow(), VideoWindow_get_BackgroundPalette(), VideoWindow_get_BorderColor(), VideoWindow_get_Caption(), VideoWindow_get_FullScreenMode(), VideoWindow_get_Height(), VideoWindow_get_Left(), VideoWindow_get_MessageDrain(), VideoWindow_get_Owner(), VideoWindow_get_Top(), VideoWindow_get_Visible(), VideoWindow_get_Width(), VideoWindow_get_WindowState(), VideoWindow_get_WindowStyle(), VideoWindow_get_WindowStyleEx(), VideoWindow_GetIDsOfNames(), VideoWindow_GetMaxIdealImageSize(), VideoWindow_GetMinIdealImageSize(), VideoWindow_GetRestorePosition(), VideoWindow_GetTypeInfo(), VideoWindow_GetTypeInfoCount(), VideoWindow_GetWindowPosition(), VideoWindow_HideCursor(), VideoWindow_Invoke(), VideoWindow_IsCursorHidden(), VideoWindow_NotifyOwnerMessage(), VideoWindow_put_AutoShow(), VideoWindow_put_BackgroundPalette(), VideoWindow_put_BorderColor(), VideoWindow_put_Caption(), VideoWindow_put_FullScreenMode(), VideoWindow_put_Height(), VideoWindow_put_Left(), VideoWindow_put_MessageDrain(), VideoWindow_put_Owner(), VideoWindow_put_Top(), VideoWindow_put_Visible(), VideoWindow_put_Width(), VideoWindow_put_WindowState(), VideoWindow_put_WindowStyle(), VideoWindow_put_WindowStyleEx(), VideoWindow_SetWindowForeground(), VideoWindow_SetWindowPosition(), VMR7WindowlessControl_SetVideoPosition(), VMR9_GetStaticImage(), VMR9FilterConfig_SetRenderingMode(), VMR9WindowlessControl_RepaintVideo(), VMR9WindowlessControl_SetVideoClippingWindow(), VMR9WindowlessControl_SetVideoPosition(), CIconWatcher::WatcherThread(), WAVEParserImpl_seek(), wbem_services_CancelAsyncCall(), wbem_services_ExecNotificationQueryAsync(), wbem_services_ExecQueryAsync(), wbem_services_Release(), WDML_GetInstance(), WDML_Initialize(), WDML_NotifyThreadDetach(), wined3d_mutex_lock(), wined3d_wndproc_mutex_lock(), winhttp_request_Abort(), winhttp_request_get_Option(), winhttp_request_get_ResponseBody(), winhttp_request_get_ResponseStream(), winhttp_request_get_ResponseText(), winhttp_request_get_Status(), winhttp_request_get_StatusText(), winhttp_request_GetAllResponseHeaders(), winhttp_request_GetResponseHeader(), winhttp_request_Open(), winhttp_request_put_Option(), winhttp_request_Release(), winhttp_request_Send(), winhttp_request_SetAutoLogonPolicy(), winhttp_request_SetCredentials(), winhttp_request_SetProxy(), winhttp_request_SetRequestHeader(), winhttp_request_SetTimeouts(), winhttp_request_WaitForResponse(), WININET_Release(), WritePipeCompletion(), Ws2helpInitialize(), WSPCloseSocket(), WSPSocket(), xmlCleanupThreads(), xmlGetGlobalState(), xmlMutexLock(), and xmlRMutexLock().

◆ EnumResourceLanguagesA()

BOOL WINAPI EnumResourceLanguagesA ( _In_opt_  HMODULE,
_In_  LPCSTR,
_In_  LPCSTR,
_In_  ENUMRESLANGPROCA,
_In_  LONG_PTR 
)

◆ EnumResourceLanguagesW()

BOOL WINAPI EnumResourceLanguagesW ( _In_opt_  HMODULE,
_In_  LPCWSTR,
_In_  LPCWSTR,
_In_  ENUMRESLANGPROCW,
_In_  LONG_PTR 
)

◆ EnumResourceNamesA()

BOOL WINAPI EnumResourceNamesA ( _In_opt_  HMODULE,
_In_  LPCSTR,
_In_  ENUMRESNAMEPROCA,
_In_  LONG_PTR 
)

◆ EnumResourceNamesW()

BOOL WINAPI EnumResourceNamesW ( _In_opt_  HMODULE,
_In_  LPCWSTR,
_In_  ENUMRESNAMEPROCW,
_In_  LONG_PTR 
)

◆ EnumResourceTypesA()

BOOL WINAPI EnumResourceTypesA ( _In_opt_  HMODULE,
_In_  ENUMRESTYPEPROCA,
_In_  LONG_PTR 
)

◆ EnumResourceTypesW()

BOOL WINAPI EnumResourceTypesW ( _In_opt_  HMODULE,
_In_  ENUMRESTYPEPROCW,
_In_  LONG_PTR 
)

◆ EqualPrefixSid()

BOOL WINAPI EqualPrefixSid ( PSID  pSid1,
PSID  pSid2 
)

Definition at line 841 of file security.c.

843{
844 return RtlEqualPrefixSid (pSid1, pSid2);
845}
NTSYSAPI BOOLEAN NTAPI RtlEqualPrefixSid(PSID Sid1, PSID Sid2)

Referenced by test_process_security().

◆ EqualSid()

◆ EraseTape()

DWORD WINAPI EraseTape ( _In_  HANDLE,
_In_  DWORD,
_In_  BOOL 
)

◆ EscapeCommFunction()

BOOL WINAPI EscapeCommFunction ( _In_  HANDLE,
_In_  DWORD 
)

◆ ExitProcess()

DECLSPEC_NORETURN void WINAPI ExitProcess ( UINT  )

◆ ExitThread()

DECLSPEC_NORETURN void WINAPI ExitThread ( _In_ DWORD  dwExitCode)

◆ ExpandEnvironmentStringsA()

DWORD WINAPI ExpandEnvironmentStringsA ( LPCSTR  ,
LPSTR  ,
DWORD   
)

◆ ExpandEnvironmentStringsW()

DWORD WINAPI ExpandEnvironmentStringsW ( LPCWSTR  ,
LPWSTR  ,
DWORD   
)

◆ FatalAppExitA()

void WINAPI FatalAppExitA ( UINT  uAction,
LPCSTR  lpMessageText 
)

Definition at line 1562 of file proc.c.

1564{
1565 PUNICODE_STRING MessageTextU;
1566 ANSI_STRING MessageText;
1568
1569 /* Initialize the string using the static TEB pointer */
1570 MessageTextU = &NtCurrentTeb()->StaticUnicodeString;
1571 RtlInitAnsiString(&MessageText, (LPSTR)lpMessageText);
1572
1573 /* Convert to unicode, or just exit normally if this failed */
1574 Status = RtlAnsiStringToUnicodeString(MessageTextU, &MessageText, FALSE);
1575 if (!NT_SUCCESS(Status)) ExitProcess(0);
1576
1577 /* Call the Wide function */
1578 FatalAppExitW(uAction, MessageTextU->Buffer);
1579}
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1487
VOID WINAPI FatalAppExitW(IN UINT uAction, IN LPCWSTR lpMessageText)
Definition: proc.c:1586
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
char * LPSTR
Definition: xmlstorage.h:182

◆ FatalAppExitW()

void WINAPI FatalAppExitW ( UINT  ,
LPCWSTR   
)

◆ FatalExit()

◆ FileEncryptionStatusA()

BOOL WINAPI FileEncryptionStatusA ( _In_  LPCSTR,
_Out_  LPDWORD 
)

◆ FileEncryptionStatusW()

BOOL WINAPI FileEncryptionStatusW ( _In_  LPCWSTR,
_Out_  LPDWORD 
)

◆ FileTimeToDosDateTime()

BOOL WINAPI FileTimeToDosDateTime ( _In_ CONST FILETIME ,
_Out_  LPWORD,
_Out_  LPWORD 
)

◆ FileTimeToLocalFileTime()

BOOL WINAPI FileTimeToLocalFileTime ( CONST FILETIME ,
LPFILETIME   
)

◆ FileTimeToSystemTime()

BOOL WINAPI FileTimeToSystemTime ( CONST FILETIME ,
LPSYSTEMTIME   
)

◆ FindAtomA()

ATOM WINAPI FindAtomA ( _In_opt_  LPCSTR)

◆ FindAtomW()

ATOM WINAPI FindAtomW ( _In_opt_  LPCWSTR)

◆ FindClose()

BOOL WINAPI FindClose ( HANDLE  hFindFile)

Definition at line 502 of file find.c.

503{
504 TRACE("FindClose(hFindFile %p)\n", hFindFile);
505
506 if (hFindFile == FIND_DEVICE_HANDLE)
507 return TRUE;
508
509 if (!hFindFile || hFindFile == INVALID_HANDLE_VALUE)
510 {
512 return FALSE;
513 }
514
515 /* Protect with SEH against closing attempts on invalid handles. */
517 {
518 PFIND_DATA_HANDLE FindDataHandle = (PFIND_DATA_HANDLE)hFindFile;
519
520 switch (FindDataHandle->Type)
521 {
522 case FindFile:
523 {
524 RtlEnterCriticalSection(&FindDataHandle->Lock);
525 NtClose(FindDataHandle->u.FindFileData->Handle);
526 RtlLeaveCriticalSection(&FindDataHandle->Lock);
527 RtlDeleteCriticalSection(&FindDataHandle->Lock);
528 break;
529 }
530
531 case FindStream:
532 {
533 RtlEnterCriticalSection(&FindDataHandle->Lock);
534 if (FindDataHandle->u.FindStreamData->FileStreamInfo != NULL)
535 {
536 RtlFreeHeap(RtlGetProcessHeap(), 0,
537 FindDataHandle->u.FindStreamData->FileStreamInfo);
538 }
539 RtlLeaveCriticalSection(&FindDataHandle->Lock);
540 RtlDeleteCriticalSection(&FindDataHandle->Lock);
541 break;
542 }
543
544 default:
545 {
547 _SEH2_YIELD(return FALSE);
548 }
549 }
550
551 RtlFreeHeap(RtlGetProcessHeap(), 0, FindDataHandle);
552 }
554 {
556 _SEH2_YIELD(return FALSE);
557 }
558 _SEH2_END;
559
560 return TRUE;
561}
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
struct _FIND_DATA_HANDLE * PFIND_DATA_HANDLE
@ FindStream
Definition: find.c:29
@ FindFile
Definition: find.c:28
#define FIND_DEVICE_HANDLE
Definition: find.c:24
#define _SEH2_END
Definition: filesup.c:22
#define _SEH2_TRY
Definition: filesup.c:19
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
NTSYSAPI NTSTATUS NTAPI RtlDeleteCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
NTSYSAPI NTSTATUS NTAPI RtlEnterCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
NTSYSAPI NTSTATUS NTAPI RtlLeaveCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:159
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:34
#define _SEH2_YIELD(__stmt)
Definition: pseh2_64.h:162
PFIND_FILE_DATA FindFileData
Definition: find.c:107
FIND_DATA_TYPE Type
Definition: find.c:98
RTL_CRITICAL_SECTION Lock
Definition: find.c:99
union _FIND_DATA_HANDLE::@460 u
PFIND_STREAM_DATA FindStreamData
Definition: find.c:108
HANDLE Handle
Definition: find.c:70
PFILE_STREAM_INFORMATION FileStreamInfo
Definition: find.c:92

Referenced by _FileOpCount(), _findclose(), _ILCreateFromPathW(), _RunRemoteTest(), add_favs_to_menu(), AddDesktopItemW(), AddItemW(), CDirectoryList::AddPathsFromDirectory(), AddUserProfile(), AddWallpapersFromDirectory(), aexpand(), apply_patch(), AutoStartupApplications(), ChangeACLsOfFiles(), ChangeACLsOfFilesInCurDir(), cmd_copy(), cmd_move(), cmd_rename(), cmd_type(), compat_dirclose(), CompleteFilename(), Control_DoWindow(), ConvertPathCase(), copy_file(), copy_folder(), CopyDirectory(), CFileDefExt::CountFolderAndFiles(), CControlPanelEnum::CreateCPanelEnumList(), CCabinet::CreateSimpleCabinet(), CryptCATAdminEnumCatalogFromHash(), CryptCATAdminReleaseContext(), delete_file(), delete_folder(), DeleteFiles(), DeleteFolder(), DeleteWithWildcard(), DELNODE_recurse_dirtree(), demFileFindFirst(), demFileFindNext(), DirList(), do_searchW(), DoAddFilesFromItem(), DoDeleteSpecW(), DoLoadImageFile(), DoSpecExistsW(), enum_gac_assemblies(), enum_gac_assembly_dirs(), EnumColorProfilesA(), EnumColorProfilesW(), EnumDirs(), CAppDB::EnumerateFiles(), EnumFilesInDirectory(), EnumFilesWorker(), EnumThemes(), ExecuteIf(), exists_path(), expand(), expect_files(), file_get_Size(), filecoll_enumvariant_Release(), filecoll_enumvariant_Reset(), filecoll_get_Count(), FileCompareOneSideWild(), FileCompareWildTitle(), FILEDLG95_InitControls(), FileExists(), FileQueryFiles(), filesys_GetAbsolutePathName(), fill_datafile(), fill_directory(), FindFirstFileA(), FindFirstFileExA(), foldercoll_enumvariant_Release(), foldercoll_enumvariant_Reset(), foldercoll_get_Count(), ForDir(), ForRecursive(), fsbd_GetFindData_valid(), get_long_path_name(), get_number_of_folders(), GetDirectoryStructure(), GetEnhancedVar(), GetLongPathNameW(), GetPathCase(), GetProfileSize(), GetShortPathNameW(), gl_local_filename_completion_proc(), HasSubFolder(), have_profile(), CFileDefExt::InitFileAttr(), CFileSysEnum::Initialize(), InitializeGlobalJobList(), InitPropertiesDlg(), InstallScreenSaverW(), IntDeleteRecursive(), LISTBOX_Directory(), LoadSoundFiles(), main(), move_files_wildcard(), msi_dialog_update_directory_list(), MyFileExists(), OnSelChange(), OpenUserEventLogFile(), fff_handle::operator=(), parse_wildcard_files(), PathIsDirectoryEmptyW(), pBuildFileList(), PrintDaclsOfFiles(), ProcessDirectory(), ShellDirectory::read_directory(), WinDirectory::read_directory(), CFontInfo::ReadAttrs(), RecentHasShortcut(), recFindSubDirs(), recReplace(), recurse_search_directory(), RecursiveCreateDirectory(), RecursiveFind(), RecursiveRemoveDir(), remove_dir(), SaveDIBToFile(), DriveVolume::ScanDirectory(), ScanForInfFile(), SdbpBuildSignMediaId(), SearchDriverRecursive(), SearchScreenSavers(), SetupCopyOEMInfW(), SetupGetInfFileListW(), SHAddToRecentDocs(), SHELL_DeleteDirectoryW(), SHFindAttrW(), SHNotifyDeleteFileW(), start_enumeration(), START_TEST(), test__lcreat(), test_DefineDosDeviceA(), test_filemodeT(), test_FindFirstFile_wildcards(), test_FindFirstFileA(), test_FindFirstFileExA(), test_FindNextFileA(), test_GetAbsolutePathName(), test_MoveFileA(), test_request_groups(), Test_ShortTests(), testKeyboardLayouts(), wexpand(), WhereSearchGeneric(), wmain(), XCOPY_DoCopy(), CWineTest::~CWineTest(), and fff_handle::~fff_handle().

◆ FindCloseChangeNotification()

BOOL WINAPI FindCloseChangeNotification ( HANDLE  )

◆ FindFirstChangeNotificationA()

HANDLE WINAPI FindFirstChangeNotificationA ( LPCSTR  ,
BOOL  ,
DWORD   
)

◆ FindFirstChangeNotificationW()

HANDLE WINAPI FindFirstChangeNotificationW ( LPCWSTR  ,
BOOL  ,
DWORD   
)

◆ FindFirstFileA()

HANDLE WINAPI FindFirstFileA ( LPCSTR  ,
LPWIN32_FIND_DATAA   
)

◆ FindFirstFileExA()

HANDLE WINAPI FindFirstFileExA ( LPCSTR  ,
FINDEX_INFO_LEVELS  ,
PVOID  ,
FINDEX_SEARCH_OPS  ,
PVOID  ,
DWORD   
)

◆ FindFirstFileExW()

HANDLE WINAPI FindFirstFileExW ( LPCWSTR  ,
FINDEX_INFO_LEVELS  ,
PVOID  ,
FINDEX_SEARCH_OPS  ,
PVOID  ,
DWORD   
)

◆ FindFirstFileW()

HANDLE WINAPI FindFirstFileW ( LPCWSTR  ,
LPWIN32_FIND_DATAW   
)

◆ FindFirstFreeAce()

BOOL WINAPI FindFirstFreeAce ( PACL  pAcl,
PVOID pAce 
)

Definition at line 1176 of file security.c.

1178{
1179 return RtlFirstFreeAce(pAcl,
1180 (PACE*)pAce);
1181}
NTSYSAPI BOOLEAN NTAPI RtlFirstFreeAce(PACL Acl, PACE *Ace)
Definition: rtltypes.h:993

◆ FindNextChangeNotification()

BOOL WINAPI FindNextChangeNotification ( HANDLE  )

◆ FindNextFileA()

BOOL WINAPI FindNextFileA ( HANDLE  ,
LPWIN32_FIND_DATAA   
)

◆ FindNextFileW()

BOOL WINAPI FindNextFileW ( HANDLE  ,
LPWIN32_FIND_DATAW   
)

◆ FindResourceA()

_Ret_maybenull_ HRSRC WINAPI FindResourceA ( _In_opt_  HMODULE,
_In_  LPCSTR,
_In_  LPCSTR 
)

◆ FindResourceExA()

_Ret_maybenull_ HRSRC WINAPI FindResourceExA ( _In_opt_  HMODULE,
_In_  LPCSTR,
_In_  LPCSTR,
_In_  WORD 
)

◆ FindResourceExW()

HRSRC WINAPI FindResourceExW ( HINSTANCE  hModule,
LPCWSTR  type,
LPCWSTR  name,
WORD  lang 
)

Definition at line 164 of file res.c.

165{
166 TRACE( "%p %s %s %04x\n", hModule, debugstr_w(type), debugstr_w(name), lang );
167
169 return find_resourceW( hModule, type, name, lang );
170}
HMODULE hModule
Definition: animate.c:44
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
static HRSRC find_resourceW(HMODULE hModule, LPCWSTR type, LPCWSTR name, WORD lang)
Definition: res.c:109
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define debugstr_w
Definition: kernel32.h:32
Definition: name.c:39
static const WCHAR lang[]
Definition: wbemdisp.c:287

Referenced by ATL::AtlGetStringResourceImage(), FindResourceW(), GetFileVersionInfoExW(), GetFileVersionInfoSizeExW(), GetLocaleInfoW(), GetLocalisedText(), IsValidLocale(), K32LoadStringExW(), LoadAcceleratorsW(), MsiLoadStringW(), NLS_GetLanguageGroupName(), test_find_resource(), and VARIANT_GetLocalisedText().

◆ FindResourceW()

_Ret_maybenull_ HRSRC WINAPI FindResourceW ( _In_opt_  HMODULE,
_In_  LPCWSTR,
_In_  LPCWSTR 
)

◆ FlsAlloc()

DWORD WINAPI FlsAlloc ( PFLS_CALLBACK_FUNCTION  lpCallback)

Definition at line 341 of file fiber.c.

342{
343 DWORD dwFlsIndex;
345 PRTL_FLS_DATA pFlsData;
346
348
349 pFlsData = NtCurrentTeb()->FlsData;
350
351 if (!Peb->FlsCallback &&
352 !(Peb->FlsCallback = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
353 FLS_MAXIMUM_AVAILABLE * sizeof(PVOID))))
354 {
356 dwFlsIndex = FLS_OUT_OF_INDEXES;
357 }
358 else
359 {
360 dwFlsIndex = RtlFindClearBitsAndSet(Peb->FlsBitmap, 1, 1);
361 if (dwFlsIndex != FLS_OUT_OF_INDEXES)
362 {
363 if (!pFlsData &&
364 !(pFlsData = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(RTL_FLS_DATA))))
365 {
366 RtlClearBits(Peb->FlsBitmap, dwFlsIndex, 1);
367 dwFlsIndex = FLS_OUT_OF_INDEXES;
369 }
370 else
371 {
372 if (!NtCurrentTeb()->FlsData)
373 {
374 NtCurrentTeb()->FlsData = pFlsData;
376 }
377
378 pFlsData->Data[dwFlsIndex] = NULL; /* clear the value */
379 Peb->FlsCallback[dwFlsIndex] = lpCallback;
380
381 if (dwFlsIndex > Peb->FlsHighIndex)
382 Peb->FlsHighIndex = dwFlsIndex;
383 }
384 }
385 else
386 {
388 }
389 }
391 return dwFlsIndex;
392}
#define ERROR_NO_MORE_ITEMS
Definition: compat.h:105
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
PPEB Peb
Definition: dllmain.c:27
#define InsertTailList(ListHead, Entry)
NTSYSAPI void WINAPI RtlReleasePebLock(void)
Definition: libsupp.c:82
NTSYSAPI void WINAPI RtlAcquirePebLock(void)
Definition: libsupp.c:72
NTSYSAPI ULONG WINAPI RtlFindClearBitsAndSet(PRTL_BITMAP, ULONG, ULONG)
NTSYSAPI void WINAPI RtlClearBits(PRTL_BITMAP, ULONG, ULONG)
PVOID * FlsCallback
Definition: winternl.h:359
LIST_ENTRY FlsListHead
Definition: winternl.h:360
PRTL_BITMAP FlsBitmap
Definition: winternl.h:361
LIST_ENTRY ListEntry
Definition: rtltypes.h:1223
PVOID Data[RTL_FLS_MAXIMUM_AVAILABLE]
Definition: rtltypes.h:1224
#define FLS_OUT_OF_INDEXES
Definition: winbase.h:576
#define FLS_MAXIMUM_AVAILABLE
Definition: winnt_old.h:1070

Referenced by init_funcs().

◆ FlsFree()

BOOL WINAPI FlsFree ( DWORD  dwFlsIndex)

Definition at line 400 of file fiber.c.

401{
402 BOOL ret;
404
405 if (dwFlsIndex >= FLS_MAXIMUM_AVAILABLE)
406 {
408 return FALSE;
409 }
410
412
414 {
415 ret = RtlAreBitsSet(Peb->FlsBitmap, dwFlsIndex, 1);
416 if (ret)
417 {
419 PFLS_CALLBACK_FUNCTION lpCallback;
420
421 RtlClearBits(Peb->FlsBitmap, dwFlsIndex, 1);
422 lpCallback = Peb->FlsCallback[dwFlsIndex];
423
424 for (Entry = Peb->FlsListHead.Flink; Entry != &Peb->FlsListHead; Entry = Entry->Flink)
425 {
426 PRTL_FLS_DATA pFlsData;
427
428 pFlsData = CONTAINING_RECORD(Entry, RTL_FLS_DATA, ListEntry);
429 if (pFlsData->Data[dwFlsIndex])
430 {
431 if (lpCallback)
432 {
433 lpCallback(pFlsData->Data[dwFlsIndex]);
434 }
435 pFlsData->Data[dwFlsIndex] = NULL;
436 }
437 }
438 Peb->FlsCallback[dwFlsIndex] = NULL;
439 }
440 else
441 {
443 }
444 }
446 {
448 }
449 _SEH2_END;
450
451 return ret;
452}
#define _SEH2_FINALLY
Definition: filesup.c:21
NTSYSAPI BOOLEAN WINAPI RtlAreBitsSet(PCRTL_BITMAP, ULONG, ULONG)
base of all file and directory entries
Definition: entries.h:83
int ret
VOID(WINAPI * PFLS_CALLBACK_FUNCTION)(PVOID)
Definition: winbase.h:1444

Referenced by init_funcs().

◆ FlsGetValue()

PVOID WINAPI FlsGetValue ( DWORD  dwFlsIndex)

Definition at line 460 of file fiber.c.

461{
462 PRTL_FLS_DATA pFlsData;
463
464 pFlsData = NtCurrentTeb()->FlsData;
465 if (!dwFlsIndex || dwFlsIndex >= FLS_MAXIMUM_AVAILABLE || !pFlsData)
466 {
468 return NULL;
469 }
470
472 return pFlsData->Data[dwFlsIndex];
473}

Referenced by init_funcs().

◆ FlsSetValue()

BOOL WINAPI FlsSetValue ( DWORD  dwFlsIndex,
PVOID  lpFlsData 
)

Definition at line 481 of file fiber.c.

483{
484 PRTL_FLS_DATA pFlsData;
485
486 if (!dwFlsIndex || dwFlsIndex >= FLS_MAXIMUM_AVAILABLE)
487 {
489 return FALSE;
490 }
491
492 pFlsData = NtCurrentTeb()->FlsData;
493
494 if (!NtCurrentTeb()->FlsData &&
495 !(NtCurrentTeb()->FlsData = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
496 sizeof(RTL_FLS_DATA))))
497 {
499 return FALSE;
500 }
501 if (!pFlsData)
502 {
503 pFlsData = NtCurrentTeb()->FlsData;
505 InsertTailList(&NtCurrentPeb()->FlsListHead, &pFlsData->ListEntry);
507 }
508 pFlsData->Data[dwFlsIndex] = lpFlsData;
509 return TRUE;
510}

Referenced by init_funcs().

◆ FlushFileBuffers()

BOOL WINAPI FlushFileBuffers ( HANDLE  )

◆ FlushInstructionCache()

BOOL WINAPI FlushInstructionCache ( HANDLE  ,
LPCVOID  ,
SIZE_T   
)

◆ FlushViewOfFile()

BOOL WINAPI FlushViewOfFile ( LPCVOID  ,
SIZE_T   
)

◆ FormatMessageA()

DWORD WINAPI FormatMessageA ( DWORD  dwFlags,
LPCVOID  lpSource,
DWORD  dwMessageId,
DWORD  dwLanguageId,
LPSTR  lpBuffer,
DWORD  nSize,
va_list Arguments 
)

◆ FormatMessageW()

DWORD WINAPI FormatMessageW ( DWORD  dwFlags,
LPCVOID  lpSource,
DWORD  dwMessageId,
DWORD  dwLanguageId,
LPWSTR  lpBuffer,
DWORD  nSize,
va_list Arguments 
)

◆ FreeEnvironmentStringsA()

BOOL WINAPI FreeEnvironmentStringsA ( LPSTR  )

◆ FreeEnvironmentStringsW()

BOOL WINAPI FreeEnvironmentStringsW ( LPWSTR  )

◆ FreeLibrary()

BOOL WINAPI FreeLibrary ( HMODULE  hModule)

Definition at line 23 of file ignorefreelib.c.

24{
25 char Buffer[MAX_PATH], *Ptr = Buffer;
26 DWORD len, wanted = ARRAYSIZE(Buffer);
27 for (;;)
28 {
30 if (len < wanted)
31 break;
32
33 wanted *= 2;
34 if (Ptr != Buffer)
36
37 Ptr = ShimLib_ShimMalloc(wanted);
38 if (!Ptr)
39 break;
40 }
41
42 if (Ptr && len)
43 {
44 char* ModuleName = NULL;
45 int n;
46 for (; len; len--)
47 {
48 ModuleName = Ptr + len;
49 if (ModuleName[-1] == '/' || ModuleName[-1] == '\\')
50 break;
51 }
52 for (n = 0; n < g_NameCount; ++n)
53 {
55 {
56 SHIM_INFO("Prevented unload of %s\n", ModuleName);
57 if (Ptr && Ptr != Buffer)
59 return TRUE;
60 }
61 }
62 }
63
64 if (Ptr && Ptr != Buffer)
66
67 return CALL_SHIM(0, FREELIBRARYPROC)(hModule);
68}
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char * ModuleName
Definition: acpixf.h:1280
static int g_NameCount
Definition: ignorefreelib.c:21
BOOL(WINAPI * FREELIBRARYPROC)(HMODULE)
Definition: ignorefreelib.c:18
const char ** g_Names
Definition: ignorefreelib.c:20
#define ARRAYSIZE(array)
Definition: filtermapper.c:47
#define stricmp(_String1, _String2)
Definition: compat.h:24
#define MAX_PATH
Definition: compat.h:34
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
Definition: loader.c:539
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
GLdouble n
Definition: glext.h:7729
GLenum GLsizei len
Definition: glext.h:6722
#define SHIM_INFO(fmt,...)
Definition: sdbpapi.h:78
PVOID ShimLib_ShimMalloc(SIZE_T dwSize)
Definition: shimlib.c:45
void ShimLib_ShimFree(PVOID pData)
Definition: shimlib.c:50

◆ FreeLibraryAndExitThread()

DECLSPEC_NORETURN void WINAPI FreeLibraryAndExitThread ( HMODULE  hLibModule,
DWORD  dwExitCode 
)

Definition at line 507 of file loader.c.

509{
510
512 {
513 /* This is a LOAD_LIBRARY_AS_DATAFILE module */
515 {
516 /* Unmap view */
518
519 /* Unload alternate resource module */
521 }
522 }
523 else
524 {
525 /* Just unload it */
527 }
528
529 /* Exit thread */
530 ExitThread(dwExitCode);
531}
NTSTATUS NTAPI NtUnmapViewOfSection(IN HANDLE ProcessHandle, IN PVOID BaseAddress)
Definition: section.c:3848
#define RtlImageNtHeader
Definition: compat.h:806
VOID WINAPI ExitThread(IN DWORD uExitCode)
Definition: thread.c:365
NTSTATUS NTAPI LdrUnloadDll(_In_ PVOID BaseAddress)
Definition: ldrapi.c:1331
BOOLEAN NTAPI LdrUnloadAlternateResourceModule(_In_ PVOID BaseAddress)
Definition: ldrapi.c:1641
#define LDR_IS_DATAFILE(handle)
Definition: ldrtypes.h:103
#define NtCurrentProcess()
Definition: nt_native.h:1657
HINSTANCE hLibModule
Definition: sfc.c:23
uint32_t ULONG_PTR
Definition: typedefs.h:65

Referenced by collect_connections_proc(), connection_collector(), ExitThreadApc(), GPNotificationThreadProc(), hook_thread_proc(), LookupThreadProc(), CSysTray::SysTrayThreadProc(), wined3d_cs_run(), and WsAsyncThread().

◆ FreeResource()

◆ FreeSid()

◆ GetAce()

BOOL WINAPI GetAce ( PACL  pAcl,
DWORD  dwAceIndex,
LPVOID pAce 
)

Definition at line 1186 of file security.c.

1187{
1188 return set_ntstatus(RtlGetAce(pAcl, dwAceIndex, pAce));
1189}
NTSYSAPI NTSTATUS NTAPI RtlGetAce(PACL Acl, ULONG AceIndex, PVOID *Ace)

Referenced by AccRewriteGetExplicitEntriesFromAcl(), AccRewriteSetEntriesInAcl(), DumpAcl(), CSecurityDescriptor::GetDACLEntry(), CSecurityDescriptor::GetSACLEntry(), map_dacl_2_nfs4acl(), PrintFileDacl(), ReloadPrincipalsList(), and test_GetShellSecurityDescriptor().

◆ GetAclInformation()

BOOL WINAPI GetAclInformation ( PACL  pAcl,
PVOID  pAclInformation,
DWORD  nAclInformationLength,
ACL_INFORMATION_CLASS  dwAclInformationClass 
)

Definition at line 1194 of file security.c.

1199{
1200 return set_ntstatus(RtlQueryInformationAcl(pAcl, pAclInformation,
1201 nAclInformationLength, dwAclInformationClass));
1202}
NTSYSAPI NTSTATUS WINAPI RtlQueryInformationAcl(PACL, LPVOID, DWORD, ACL_INFORMATION_CLASS)

Referenced by AccRewriteSetEntriesInAcl(), CSecurityDescriptor::GetDACLEntriesCount(), CSecurityDescriptor::GetSACLEntriesCount(), and test_GetShellSecurityDescriptor().

◆ GetAtomNameA()

UINT WINAPI GetAtomNameA ( _In_ ATOM  nAtom,
_Out_writes_to_(nSize, return+1) LPSTR  lpBuffer,
_In_ int  nSize 
)

◆ GetAtomNameW()

UINT WINAPI GetAtomNameW ( _In_ ATOM  nAtom,
_Out_writes_to_(nSize, return+1) LPWSTR  lpBuffer,
_In_ int  nSize 
)

◆ GetBinaryTypeA()

BOOL WINAPI GetBinaryTypeA ( _In_  LPCSTR,
_Out_  PDWORD 
)

◆ GetBinaryTypeW()

BOOL WINAPI GetBinaryTypeW ( _In_  LPCWSTR,
_Out_  PDWORD 
)

◆ GetCommandLineA()

LPSTR WINAPI GetCommandLineA ( VOID  )

Definition at line 2003 of file proc.c.

2004{
2006}
ANSI_STRING BaseAnsiCommandLine
Definition: proc.c:22

Referenced by crt_process_init(), DllMain(), doChild(), main(), START_TEST(), and wmain().

◆ GetCommandLineW()

◆ GetCommMask()

BOOL WINAPI GetCommMask ( _In_  HANDLE,
_Out_  PDWORD 
)

◆ GetCommModemStatus()

BOOL WINAPI GetCommModemStatus ( _In_  HANDLE,
_Out_  PDWORD 
)

◆ GetCommProperties()

BOOL WINAPI GetCommProperties ( _In_  HANDLE,
_Inout_  LPCOMMPROP 
)

◆ GetCommState()

BOOL WINAPI GetCommState ( _In_  HANDLE,
_Out_  LPDCB 
)

◆ GetCommTimeouts()

BOOL WINAPI GetCommTimeouts ( _In_  HANDLE,
_Out_  LPCOMMTIMEOUTS 
)

◆ GetCompressedFileSizeA()

DWORD WINAPI GetCompressedFileSizeA ( _In_  LPCSTR,
_Out_opt_  PDWORD 
)

◆ GetCompressedFileSizeW()

DWORD WINAPI GetCompressedFileSizeW ( _In_  LPCWSTR,
_Out_opt_  PDWORD 
)

◆ GetCurrentDirectoryA()

DWORD WINAPI GetCurrentDirectoryA ( DWORD  ,
LPSTR   
)

◆ GetCurrentDirectoryW()

DWORD WINAPI GetCurrentDirectoryW ( DWORD  ,
LPWSTR   
)

◆ GetCurrentHwProfileA()

BOOL WINAPI GetCurrentHwProfileA ( _Out_  LPHW_PROFILE_INFOA)

◆ GetCurrentHwProfileW()

BOOL WINAPI GetCurrentHwProfileW ( _Out_  LPHW_PROFILE_INFOW)

◆ GetCurrentProcess()

HANDLE WINAPI GetCurrentProcess ( void  )

Definition at line 1138 of file proc.c.

1139{
1140 return (HANDLE)NtCurrentProcess();
1141}

◆ GetCurrentProcessId()

DWORD WINAPI GetCurrentProcessId ( void  )

Definition at line 1158 of file proc.c.

1159{
1161}
#define HandleToUlong(h)
Definition: basetsd.h:79

Referenced by __security_init_cookie(), _getpid(), _mktemp(), _wmktemp(), _wtmpnam(), AddPortW(), adns_getpid(), apartment_construct(), child_process(), ClientLoadLibrary(), CloseProcess(), CMP_RegisterNotification(), CoGetCurrentProcess(), CommitSpoolData(), ConfigurePortW(), CreateNotificationParamAndSend(), CreateProcessWithLogonW(), CreateToolhelp32Snapshot(), CURSORICON_CopyImage(), custom_start_server(), DirectDrawClipper_Initialize(), dll_entry_point(), do_msidbCustomActionTypeDll(), doChild(), doCrash(), DPLAYX_CreateLobbyApplication(), DPLAYX_IsAppIdLobbied(), EnumWindowsProc(), FreeChangeNotifications(), generate_ipid(), get_cmdline(), GetProcessVersion(), GetSpoolFileHandle(), handle_msi_break(), IDirectPlayLobby3AImpl_SetConnectionSettings(), IDirectPlayLobby3Impl_SetConnectionSettings(), ImmGetImeMenuItemsAW(), Internal_CreatePalette(), Internal_CreateSurface(), IsBlockFromHeap(), LresultFromObject(), main(), NotifyInfo::modify(), new_stub_manager(), NotifyLogon(), ole_server(), openlog(), OutputDebugStringA(), ParseSharedPacket(), RegisterDragDrop(), RPC_ExecuteCall(), rpcrt4_protseq_ncacn_np_open_endpoint(), rpcrt4_protseq_ncalrpc_open_endpoint(), ScConnectControlPipe(), send_close_messages(), CNotifyToolbar::SendNotifyCallback(), ServerThread(), service_main(), SHAllocShared(), SHAppBarMessage(), SHFreeShared(), SHLockShared(), SHMapHandle(), START_TEST(), StartDirectDraw(), TelnetGetConsoleWindow(), terminate_processes(), test_AddSelfToJob(), test_alloc_shared(), test_alloc_shared_remote(), test_BreakawayOk(), Test_CloseDuplicatedSocket(), Test_CloseWhileSelectDuplicatedSocket(), test_debug_loop(), test_GetConsoleProcessList(), test_GetProcessVersion(), test_handles(), test_jobInheritance(), test_MessageBox(), test_OpenProcess(), test_process_info(), test_process_security_child(), Test_ProcessModules(), test_query_handle(), test_query_handle_ex(), test_query_object_types(), test_query_process_vm(), test_QueryFullProcessImageNameW(), test_readvirtualmemory(), test_session_info(), test_set_hook(), test_SHCreateSessionKey(), test_tcp(), test_Toolhelp(), test_udp(), test_Win32_Process(), test_winevents(), test_WithWSAStartup(), test_ws_functions(), TestChannelHook_ClientFillBuffer(), TestChannelHook_ClientGetSize(), TestChannelHook_ClientNotify(), TestChannelHook_ServerGetSize(), TestChannelHook_ServerNotify(), ThemeDestroyWndData(), tmpnam(), WDML_AddServer(), WinMain(), NotifyArea::WndProc(), FlatButton::WndProc(), and wWinMain().

◆ GetCurrentThread()

◆ GetCurrentThreadId()

DWORD WINAPI GetCurrentThreadId ( void  )

Definition at line 459 of file thread.c.

460{
462}
HANDLE UniqueThread
Definition: compat.h:826

Referenced by __security_init_cookie(), __threadid(), CTipbarThread::_UninitItemList(), alloc_msi_remote_handle(), alloc_msihandle(), ANIMATE_DoStop(), AnotherThreadFunc(), apartment_construct(), AtlModuleAddCreateWndData(), AtlModuleExtractCreateWndData(), ATL::AtlWinModuleAddCreateWndData(), ATL::AtlWinModuleExtractCreateWndData(), CTipbarWnd::AttachFocusThread(), callback(), callback_func(), cbt_global_hook_proc(), cbt_hook_proc(), check_active_state_(), check_dinput_hooks(), check_notification(), check_wnd_state_(), clipboard_thread(), clnt_cb_thread(), clnt_vc_create(), clnt_vc_destroy(), CMenuFocusManager::CMenuFocusManager(), context_create(), context_destroy(), context_reacquire(), CoRegisterInitializeSpy(), CoRevokeInitializeSpy(), create_binding_protocol(), Window::create_mdi_child(), create_test_windows(), CreateD3D9(), CtfImmGenerateMessage(), CtfImmTIMCreateInputContext(), DECLARE_INTERFACE_(), dialog_proc(), dialog_register_class(), dialog_run_message_loop(), DlgMainProc(), do_InitialDesktop_child(), do_wait_idle_child(), dprintf(), enum_thread(), EnumThreadWindows(), eprintf(), event_client(), fetch_thread_info(), FileOpenDlgProc95(), get_ime_window(), get_or_create_threaddata(), GetThreadFromCurrentProcess(), group_cancel_cleanup_increment_cb(), group_cancel_cleanup_release2_cb(), group_cancel_cleanup_release_cb(), HttpNegotiate_BeginningTransaction(), HttpNegotiate_GetRootSecurityId(), HttpNegotiate_OnResponse(), IDirectSoundBufferImpl_GetStatus(), IDirectSoundCaptureBufferImpl_GetStatus(), image_lock(), Imm32InternalLockIMC(), Imm32IsCrossThreadAccess(), ImmSetCompositionStringAW(), init_tests(), InitChildWindow(), InitD3D9BaseDevice(), InitThreads(), InitUniqueString(), is_apartment_thread(), JScript_AddNamedItem(), JScript_Close(), JScript_GetScriptDispatch(), JScript_GetScriptState(), JScript_SetScriptSite(), JScript_SetScriptState(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), load_gecko(), log_debug(), log_hexdump(), MainDialogProc(), MainWndProc(), MCI_Close(), MCI_LoadMciDriver(), MCI_SendCommandFrom32(), mmGetCurrentTask(), msg_spy_init(), msi_dialog_check_messages(), msi_dialog_destroy(), MsiCloseAllHandles(), msvcrt_get_thread_data(), mutex_thread_proc(), new_stub_manager(), nfs41_open(), noop_thread_proc(), OLEMenu_CallWndProc(), OLEMenu_GetMsgProc(), OLEMenu_InstallHooks(), OleSetMenuDescriptor(), OnInitDialog(), CAutoComplete::OnShowWindow(), oob_client(), oob_server(), PersistMoniker_Load(), print_sr_status_flags(), Protocol_Continue(), RegisterConsoleIME(), Rs232Thread(), rtl_wait_cb(), ScriptThread(), select_server(), semaphore_thread_proc(), server_stop(), set_cursor_thread(), CTipbarWnd::SetFocusThread(), SetupWindowsHook(), show_cursor_thread(), simple_client(), simple_mixed_client(), simple_server(), SPY_EnterMessage(), START_TEST(), CTipbarWnd::StartModalInput(), statusclb_GetBindInfo(), statusclb_OnDataAvailable(), statusclb_OnProgress(), statusclb_OnStartBinding(), statusclb_OnStopBinding(), statusclb_QueryInterface(), CTipbarWnd::StopModalInput(), Stream_Read(), sw_SetContext(), swapchain_create_context(), swapchain_get_context(), Test_Acquire(), test_alertable(), test_async_HttpSendRequestEx(), test_attach_input(), test_capture_4_proc(), test_CoWaitForMultipleHandles_thread(), test_CreateThread_basic(), test_crypt_ui_wiz_import(), test_dbcs_wm_char(), test_dde_default_app(), test_default_ime_disabled_cb(), Test_DesktopAccess(), test_foregroundwindow(), test_fragmentsize(), test_handles(), test_IInitializeSpy(), test_Input_mouse(), test_inputdesktop(), test_inputdesktop2(), test_IsDialogMessage(), test_keyboard_input(), test_message_conversion(), test_MessageBox(), test_notify_message(), test_ole_initialization(), Test_OpenInputDesktop(), test_PeekMessage(), test_process_security_child(), test_quit_message(), test_recursive_hook(), Test_References(), test_RtlLeaveCriticalSection(), test_set_hook(), test_SetCursor(), Test_SetCursorPos(), test_SetFocus(), test_ShowCursor(), test_thread_info(), test_thread_priority(), test_tp_group_cancel(), test_winmodule(), test_wiznavigation(), TestGetUserObjectInfoA(), TestGetUserObjectInfoW(), thread(), thread_proc(), threadFunc1(), ThreadShutdownNotify(), TIME_TriggerCallBack(), MxLockNoDynam::TryToAcquire(), UnregisterConsoleIME(), VBScript_AddNamedItem(), VBScript_Close(), VBScript_GetScriptDispatch(), VBScript_GetScriptState(), VBScript_SetScriptSite(), VBScript_SetScriptState(), VBScriptParse_ParseScriptText(), VBScriptParseProcedure_ParseProcedureText(), wave_out_test_deviceOut(), WDML_GetConv(), WDML_GetInstance(), WDML_Initialize(), WDML_NotifyThreadDetach(), WDML_ServerNameProc(), WDML_SetAllLastError(), wglDeleteContext(), wglMakeCurrent(), win_event_global_hook_proc(), win_event_proc(), WindowThreadProc(), wined3d_cs_mt_finish(), wined3d_cs_mt_require_space(), wined3d_cs_mt_submit(), wined3d_cs_run(), wined3d_from_cs(), wined3d_not_from_cs(), wined3d_resource_wait_idle(), WndProc(), xmlGetThreadId(), and xmlIsMainThread().

◆ GetDefaultCommConfigA()

BOOL WINAPI GetDefaultCommConfigA ( _In_ LPCSTR  lpszName,
_Out_writes_bytes_to_ *, *lpdwSize LPCOMMCONFIG  lpCC,
_Inout_ LPDWORD  lpdwSize 
)

◆ GetDefaultCommConfigW()

BOOL WINAPI GetDefaultCommConfigW ( _In_ LPCWSTR  lpszName,
_Out_writes_bytes_to_ *, *lpdwSize LPCOMMCONFIG  lpCC,
_Inout_ LPDWORD  lpdwSize 
)

◆ GetDiskFreeSpaceA()

BOOL WINAPI GetDiskFreeSpaceA ( LPCSTR  ,
PDWORD  ,
PDWORD  ,
PDWORD  ,
PDWORD   
)

◆ GetDiskFreeSpaceExA()

BOOL WINAPI GetDiskFreeSpaceExA ( LPCSTR  ,
PULARGE_INTEGER  ,
PULARGE_INTEGER  ,
PULARGE_INTEGER   
)

◆ GetDiskFreeSpaceExW()

BOOL WINAPI GetDiskFreeSpaceExW ( LPCWSTR  ,
PULARGE_INTEGER  ,
PULARGE_INTEGER  ,
PULARGE_INTEGER   
)

◆ GetDiskFreeSpaceW()

BOOL WINAPI GetDiskFreeSpaceW ( LPCWSTR  ,
PDWORD  ,
PDWORD  ,
PDWORD  ,
PDWORD   
)

◆ GetDriveTypeA()

UINT WINAPI GetDriveTypeA ( LPCSTR  )

◆ GetDriveTypeW()

UINT WINAPI GetDriveTypeW ( LPCWSTR  )

◆ GetEnvironmentStrings()

LPSTR WINAPI GetEnvironmentStrings ( void  )

◆ GetEnvironmentStringsW()

LPWSTR WINAPI GetEnvironmentStringsW ( void  )

Definition at line 344 of file environ.c.

345{
348
350
351 p = Environment = NtCurrentPeb()->ProcessParameters->Environment;
352
353 do
354 {
355 p += wcslen(p) + 1;
356 } while (*p);
357
358 Length = p - Environment + 1;
359
360 p = RtlAllocateHeap(RtlGetProcessHeap(), 0, Length * sizeof(WCHAR));
361 if (p)
362 {
364 }
365 else
366 {
368 }
369
371 return p;
372}
GLfloat GLfloat p
Definition: glext.h:8902
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
PVOID PVOID PWCHAR PVOID Environment
Definition: env.c:47
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define STATUS_NO_MEMORY
Definition: ntstatus.h:260
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263

Referenced by BlockEnvToEnvironW(), doChild(), service_main(), SHELL_BuildEnvW(), Test_ApphelpCheckRunApp(), and wmain().

◆ GetEnvironmentVariableA()

DWORD WINAPI GetEnvironmentVariableA ( LPCSTR  ,
LPSTR  ,
DWORD   
)

◆ GetEnvironmentVariableW()

DWORD WINAPI GetEnvironmentVariableW ( LPCWSTR  ,
LPWSTR  ,
DWORD   
)

◆ GetEventLogInformation()

BOOL WINAPI GetEventLogInformation ( _In_ HANDLE  hEventLog,
_In_ DWORD  dwInfoLevel,
_Out_writes_bytes_to_(cbBufSize, *pcbBytesNeeded) LPVOID  lpBuffer,
_In_ DWORD  cbBufSize,
_Out_ LPDWORD  pcbBytesNeeded 
)

◆ GetExitCodeProcess()

BOOL WINAPI GetExitCodeProcess ( HANDLE  ,
PDWORD   
)

◆ GetExitCodeThread()

BOOL WINAPI GetExitCodeThread ( HANDLE  ,
PDWORD   
)

◆ GetFileAttributesA()

DWORD WINAPI GetFileAttributesA ( LPCSTR  lpFileName)

Definition at line 636 of file fileinfo.c.

637{
638 PWSTR FileNameW;
639
640 if (!lpFileName || !(FileNameW = FilenameA2W(lpFileName, FALSE)))
642
643 return GetFileAttributesW(FileNameW);
644}
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
Definition: fileinfo.c:652
uint16_t * PWSTR
Definition: typedefs.h:56
#define INVALID_FILE_ATTRIBUTES
Definition: vfdcmd.c:23

Referenced by _access(), _chmod(), _mktemp(), check_exists(), check_ini_file_attr(), create_backup(), create_file(), delete_file(), dir_exists(), does_folder_or_file_exist(), DosChangeDirectory(), DosCreateFile(), DosCreateFileEx(), DosInt21h(), DosOpenFile(), enum_gac_assembly_dirs(), Extract(), ExtractFilesA(), fci_open(), fdi_notify_extract(), file_exists(), get_open_info(), init_test(), MACRO_FileExist(), MMIO_Open(), OpenFile(), PathFileExistsA(), PathFileExistsAndAttributesA(), PathIsDirectoryA(), PathIsSystemFolderA(), PathUnmakeSystemFolderA(), pf_exists(), register_service(), search_absolute_directory(), SHAddToRecentDocs(), shell_execute_(), shell_execute_ex_(), START_TEST(), system(), test__creat(), test__lcreat(), test_AddDelBackupEntry(), test_autocreation(), test_backup(), test_catalog_properties(), test_clear(), test_context(), test_CopyFileEx(), test_create_catalog_file(), test_CreateScalableFontResource(), test_CryptCATAdminAddRemoveCatalog(), test_date_format(), Test_DelNodeA(), test_driver_install(), test_ExitCode(), test_file_disposition_information(), test_FileSecurity(), test_find_file(), test_FindFirstChangeNotification(), test_get_file_info(), test_GetDisplayName(), test_getfile(), test_GetFileInformationByHandleEx(), test_info_size(), test_InstallAssembly(), test_keep_attributes(), test_LocalizedNames(), test_LZOpenFileA(), test_msidatabase(), test_openbackup(), test_OpenFile(), test_OpenFileById(), test_parms_syntax(), test_profile_items(), test_QueryAssemblyInfo(), test_relative_path(), test_settargetpath(), test_SHGetFolderPathAndSubDirA(), test_summary_binary(), test_WritePrivateProfileString(), tmpnam(), VerInstallFileA(), VfdInstallDriver(), and xsltCheckFilename().

◆ GetFileAttributesExA()

BOOL WINAPI GetFileAttributesExA ( LPCSTR  lpFileName,
GET_FILEEX_INFO_LEVELS  fInfoLevelId,
PVOID  lpFileInformation 
)

Definition at line 619 of file fileinfo.c.

622{
623 PWCHAR FileNameW;
624
625 if (!(FileNameW = FilenameA2W(lpFileName, FALSE)))
626 return FALSE;
627
628 return GetFileAttributesExW(FileNameW, fInfoLevelId, lpFileInformation);
629}
BOOL WINAPI GetFileAttributesExW(LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
Definition: fileinfo.c:552

◆ GetFileAttributesExW()

BOOL WINAPI GetFileAttributesExW ( LPCWSTR  lpFileName,
GET_FILEEX_INFO_LEVELS  fInfoLevelId,
PVOID  lpFileInformation 
)

Definition at line 552 of file fileinfo.c.

555{
560 WIN32_FILE_ATTRIBUTE_DATA* FileAttributeData;
561
562 TRACE("GetFileAttributesExW(%S) called\n", lpFileName);
563
564
565 if (fInfoLevelId != GetFileExInfoStandard || lpFileInformation == NULL)
566 {
568 return FALSE;
569 }
570
571 /* Validate and translate the filename */
573 &FileName,
574 NULL,
575 NULL))
576 {
577 WARN ("Invalid path '%S'\n", lpFileName);
579 return FALSE;
580 }
581
582 /* build the object attributes */
584 &FileName,
586 NULL,
587 NULL);
588
589 /* Get file attributes */
592
594 if (!NT_SUCCESS (Status))
595 {
596 WARN ("NtQueryFullAttributesFile() failed (Status %lx)\n", Status);
598 return FALSE;
599 }
600
601 FileAttributeData = (WIN32_FILE_ATTRIBUTE_DATA*)lpFileInformation;
602 FileAttributeData->dwFileAttributes = FileInformation.FileAttributes;
603 FileAttributeData->ftCreationTime.dwLowDateTime = FileInformation.CreationTime.u.LowPart;
604 FileAttributeData->ftCreationTime.dwHighDateTime = FileInformation.CreationTime.u.HighPart;
605 FileAttributeData->ftLastAccessTime.dwLowDateTime = FileInformation.LastAccessTime.u.LowPart;
606 FileAttributeData->ftLastAccessTime.dwHighDateTime = FileInformation.LastAccessTime.u.HighPart;
607 FileAttributeData->ftLastWriteTime.dwLowDateTime = FileInformation.LastWriteTime.u.LowPart;
608 FileAttributeData->ftLastWriteTime.dwHighDateTime = FileInformation.LastWriteTime.u.HighPart;
609 FileAttributeData->nFileSizeLow = FileInformation.EndOfFile.u.LowPart;
610 FileAttributeData->nFileSizeHigh = FileInformation.EndOfFile.u.HighPart;
611
612 return TRUE;
613}
struct _FileName FileName
Definition: fatprocs.h:896
static OUT PIO_STATUS_BLOCK OUT PVOID FileInformation
Definition: pipe.c:75
NTSTATUS NTAPI NtQueryFullAttributesFile(IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation)
Definition: file.c:3990
DWORD dwHighDateTime
Definition: mapidefs.h:66
DWORD dwLowDateTime
Definition: mapidefs.h:65
#define ERROR_BAD_PATHNAME
Definition: winerror.h:233

Referenced by file_get_DateLastModified(), FileMonikerImpl_GetTimeOfLastChange(), GetFileAttributesExA(), CFileDefExt::InitFileAttr(), InitPropertiesDlg(), test_GetFileAttributesExW(), urlcache_delete_file(), and urlcache_entry_commit().

◆ GetFileAttributesW()

DWORD WINAPI GetFileAttributesW ( LPCWSTR  lpFileName)

Definition at line 652 of file fileinfo.c.

653{
658
659 /* Get the NT path name */
661 {
664 }
665
666 /* Prepare for querying attributes */
669 NULL, NULL);
670 /* Simply query attributes */
672 if (!NT_SUCCESS(Status))
673 {
674 /* It failed? Is it a DOS device? */
676 {
678 }
679
680 /* Set the error otherwise */
683 }
684
685 /* Return the file attributes */
686 return FileInformation.FileAttributes;
687}
NTSYSAPI ULONG NTAPI RtlIsDosDeviceName_U(_In_ PCWSTR Name)
#define FILE_ATTRIBUTE_ARCHIVE
Definition: nt_native.h:706
NTSTATUS NTAPI NtQueryAttributesFile(IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PFILE_BASIC_INFORMATION FileInformation)
Definition: file.c:3978

Referenced by _tWinMain(), _waccess(), _wchmod(), _wmktemp(), _wsystem(), _wtmpnam(), ACTION_ResolveSource(), AddSubst(), cabinet_next_cabinet(), cache_QueryAssemblyInfo(), CJournaledTestList::CJournaledTestList(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_rmdir(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_truncate(), BtrfsRecv::cmd_unlink(), BtrfsRecv::cmd_write(), compat_isdir(), copy_file(), copy_folder(), create_file(), create_fileW(), create_temp_dir(), CreateProcessInternalW(), delete_fileW(), DELNODE_recurse_dirtree(), DllRegisterServer(), do_file_copyW(), BtrfsRecv::do_recv(), DoEntry(), DoWriteSoundEvents(), file_dlg_proc(), file_exists(), file_existsW(), file_get_Attributes(), FileExists(), FileMoniker_CreateFromDisplayName(), filesys_FileExists(), filesys_FolderExists(), filesys_GetFolder(), find_mono_dll(), find_published_source(), find_runtimes(), CFileDefExt::GeneralPageProc(), get_empty_cddrive(), get_fusion_filename(), get_unique_folder_name(), get_working_dir(), CSearchBar::GetAddressEditBoxPath(), CConfiguration::GetConfigurationFromFile(), GetFileAttributesA(), GetLongPathNameW(), GetShortPathNameW(), GetTempFileNameW(), GetVersionFromFileExW(), IAssemblyCacheImpl_InstallAssembly(), InstallSoftwareBusPnpEnumerator(), IntDeleteRecursive(), IntLoadKeyboardLayout(), LayoutList_ReadLayout(), LoadUserProfileW(), LocalScheduleJob(), MainWnd_OnInstall(), msi_create_temp_file(), msi_get_file_attributes(), MSI_GetComponentPath(), MSI_OpenPackageW(), MSI_OpenProductW(), NewActionDlg_OnOK(), CFileDefExt::OnFolderCustApply(), open_package(), parse_file_list(), PathFileExistsAndAttributesW(), PathFileExistsW(), PathIsDirectoryW(), PathIsSystemFolderW(), PathIsTemporaryW(), PathMakeSystemFolderW(), PathUnmakeSystemFolderW(), pendingRename(), PickIconDlg(), ready_media(), RecycleBin5_RecycleBin5_DeleteFile(), RecycleBin5File_Constructor(), RecycleBin5File_RecycleBinFile_GetAttributes(), RecycleBin5File_RecycleBinFile_GetFileSize(), RecycleBin5File_RecycleBinFile_GetLastModificationTime(), resolve_filename(), RunDlg_GetParentDir(), SdbpFileExists(), anonymous_namespace{settingsdlg.cpp}::SettingsDlgProc(), SetupPromptForDiskW(), SHELL_ExecuteW(), SHELL_ExistsFileW(), SHELL_FindExecutable(), shell_item_exists(), SHELL_translate_idlist(), ShellExecCmdLine(), SHGetFileInfoW(), SHGetFolderPathAndSubDirW(), SHGetNewLinkInfoW(), SHNotifyCopyFileW(), SHNotifyDeleteFileW(), SHNotifyMoveFileW(), SHNotifyRemoveDirectoryW(), SHPathPrepareForWriteW(), START_TEST(), StartDocDlgW(), StartInstaller(), test_CopyFolder(), Test_DelNodeW(), test_file_link_information(), test_file_rename_information(), test_GetFile(), test_junction_points(), test_knownFolders(), test_LZOpenFileW(), test_NtCreateFile(), test_wshshell(), CDownloadManager::ThreadFunc(), WhereIsRecursiveDirOK(), XCOPY_DoCopy(), XCOPY_ProcessDestParm(), and XCOPY_ProcessSourceParm().

◆ GetFileInformationByHandle()

BOOL WINAPI GetFileInformationByHandle ( HANDLE  hFile,
LPBY_HANDLE_FILE_INFORMATION  lpFileInformation 
)

Definition at line 458 of file fileinfo.c.

460{
461 struct
462 {
463 FILE_FS_VOLUME_INFORMATION FileFsVolume;
464 WCHAR Name[255];
465 }
466 FileFsVolume;
467
468 FILE_BASIC_INFORMATION FileBasic;
469 FILE_INTERNAL_INFORMATION FileInternal;
470 FILE_STANDARD_INFORMATION FileStandard;
471 NTSTATUS errCode;
473
475 {
477 return FALSE;
478 }
479
482 &FileBasic,
485 if (!NT_SUCCESS(errCode))
486 {
487 BaseSetLastNTError(errCode);
488 return FALSE;
489 }
490
491 lpFileInformation->dwFileAttributes = (DWORD)FileBasic.FileAttributes;
492
493 lpFileInformation->ftCreationTime.dwHighDateTime = FileBasic.CreationTime.u.HighPart;
494 lpFileInformation->ftCreationTime.dwLowDateTime = FileBasic.CreationTime.u.LowPart;
495
496 lpFileInformation->ftLastAccessTime.dwHighDateTime = FileBasic.LastAccessTime.u.HighPart;
497 lpFileInformation->ftLastAccessTime.dwLowDateTime = FileBasic.LastAccessTime.u.LowPart;
498
499 lpFileInformation->ftLastWriteTime.dwHighDateTime = FileBasic.LastWriteTime.u.HighPart;
500 lpFileInformation->ftLastWriteTime.dwLowDateTime = FileBasic.LastWriteTime.u.LowPart;
501
504 &FileInternal,
507 if (!NT_SUCCESS(errCode))
508 {
509 BaseSetLastNTError(errCode);
510 return FALSE;
511 }
512
513 lpFileInformation->nFileIndexHigh = FileInternal.IndexNumber.u.HighPart;
514 lpFileInformation->nFileIndexLow = FileInternal.IndexNumber.u.LowPart;
515
518 &FileFsVolume,
519 sizeof(FileFsVolume),
521 if (!NT_SUCCESS(errCode))
522 {
523 BaseSetLastNTError(errCode);
524 return FALSE;
525 }
526
527 lpFileInformation->dwVolumeSerialNumber = FileFsVolume.FileFsVolume.VolumeSerialNumber;
528
531 &FileStandard,
534 if (!NT_SUCCESS(errCode))
535 {
536 BaseSetLastNTError(errCode);
537 return FALSE;
538 }
539
540 lpFileInformation->nNumberOfLinks = FileStandard.NumberOfLinks;
541 lpFileInformation->nFileSizeHigh = FileStandard.EndOfFile.u.HighPart;
542 lpFileInformation->nFileSizeLow = FileStandard.EndOfFile.u.LowPart;
543
544 return TRUE;
545}
@ FileInternalInformation
Definition: from_kernel.h:67
@ FileBasicInformation
Definition: from_kernel.h:65
@ FileFsVolumeInformation
Definition: from_kernel.h:219
#define FileStandardInformation
Definition: propsheet.cpp:61
#define IsConsoleHandle(h)
Definition: console.h:14
NTSTATUS NTAPI NtQueryVolumeInformationFile(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FsInformation, ULONG Length, FS_INFORMATION_CLASS FsInformationClass)
LARGE_INTEGER LastWriteTime
Definition: nt_native.h:941
LARGE_INTEGER CreationTime
Definition: nt_native.h:939
LARGE_INTEGER LastAccessTime
Definition: nt_native.h:940
struct _LARGE_INTEGER::@2290 u

Referenced by __is_regular_file(), _fstat64(), BtrfsPropSheet::apply_changes_file(), BtrfsPropSheet::check_file(), count_blocks(), ShellDirectory::fill_w32fdata_shell(), FTP_SendData(), get_open_info(), DriveVolume::GetClusterInfo(), IStream_fnStat(), MountDisk(), ShellDirectory::read_directory(), WinDirectory::read_directory(), ReflinkCopyW(), BtrfsPropSheet::set_cmdline(), test_CreateFileA(), test_file_id_information(), BtrfsSend::Thread(), and VfdOpenImage().

◆ GetFileSecurityA()

BOOL WINAPI GetFileSecurityA ( _In_ LPCSTR  lpFileName,
_In_ SECURITY_INFORMATION  RequestedInformation,
_Out_writes_bytes_to_opt_(nLength, *lpnLengthNeeded) PSECURITY_DESCRIPTOR  pSecurityDescriptor,
_In_ DWORD  nLength,
_Out_ LPDWORD  lpnLengthNeeded 
)

◆ GetFileSecurityW()

BOOL WINAPI GetFileSecurityW ( LPCWSTR  ,
SECURITY_INFORMATION  ,
PSECURITY_DESCRIPTOR  ,
DWORD  ,
PDWORD   
)

◆ GetFileSize()

DWORD WINAPI GetFileSize ( HANDLE  ,
PDWORD   
)

◆ GetFileSizeEx()

BOOL WINAPI GetFileSizeEx ( HANDLE  hFile,
PLARGE_INTEGER  lpFileSize 
)

Definition at line 367 of file fileinfo.c.

371{
372 NTSTATUS errCode;
373 FILE_STANDARD_INFORMATION FileStandard;
375
378 &FileStandard,
381 if (!NT_SUCCESS(errCode))
382 {
383 BaseSetLastNTError(errCode);
384 return FALSE;
385 }
386 if (lpFileSize)
387 *lpFileSize = FileStandard.EndOfFile;
388
389 return TRUE;
390}

◆ GetFileTime()

BOOL WINAPI GetFileTime ( HANDLE  ,
LPFILETIME  ,
LPFILETIME  ,
LPFILETIME   
)

◆ GetFileType()

DWORD WINAPI GetFileType ( HANDLE  hFile)

Definition at line 269 of file fileinfo.c.

270{
272 IO_STATUS_BLOCK StatusBlock;
274
275 /* Get real handle */
277
278 /* Check for console handle */
280 {
282 return FILE_TYPE_CHAR;
283 }
284
286 &StatusBlock,
287 &DeviceInfo,
290 if (!NT_SUCCESS(Status))
291 {
293 return FILE_TYPE_UNKNOWN;
294 }
295
296 switch (DeviceInfo.DeviceType)
297 {
302 case FILE_DEVICE_DFS:
303 case FILE_DEVICE_DISK:
306 return FILE_TYPE_DISK;
307
310 case FILE_DEVICE_NULL:
317 return FILE_TYPE_CHAR;
318
320 return FILE_TYPE_PIPE;
321 }
322
323 return FILE_TYPE_UNKNOWN;
324}
BOOL WINAPI DECLSPEC_HOTPATCH VerifyConsoleIoHandle(HANDLE hIoHandle)
Definition: console.c:1110
HANDLE TranslateStdHandle(IN HANDLE hHandle)
Definition: handle.c:19
@ FileFsDeviceInformation
Definition: from_kernel.h:222
#define FILE_DEVICE_SERIAL_PORT
Definition: serial.c:44
#define FILE_DEVICE_DISK_FILE_SYSTEM
Definition: winioctl.h:114
#define FILE_DEVICE_NAMED_PIPE
Definition: winioctl.h:123
#define FILE_DEVICE_MOUSE
Definition: winioctl.h:121
#define FILE_DEVICE_NULL
Definition: winioctl.h:127
#define FILE_DEVICE_CD_ROM
Definition: winioctl.h:108
#define FILE_DEVICE_SCREEN
Definition: winioctl.h:134
#define FILE_DEVICE_DFS
Definition: winioctl.h:112
#define FILE_DEVICE_KEYBOARD
Definition: winioctl.h:117
#define FILE_DEVICE_DATALINK
Definition: winioctl.h:111
#define FILE_DEVICE_CD_ROM_FILE_SYSTEM
Definition: winioctl.h:109
#define FILE_DEVICE_MODEM
Definition: winioctl.h:149
#define FILE_DEVICE_PARALLEL_PORT
Definition: winioctl.h:128
#define FILE_DEVICE_CONTROLLER
Definition: winioctl.h:110
#define FILE_DEVICE_SOUND
Definition: winioctl.h:135
#define FILE_DEVICE_DISK
Definition: winioctl.h:113
#define FILE_DEVICE_PRINTER
Definition: winioctl.h:130
#define FILE_DEVICE_VIRTUAL_DISK
Definition: winioctl.h:142
#define FILE_TYPE_UNKNOWN
Definition: winbase.h:258
#define FILE_TYPE_CHAR
Definition: winbase.h:260
#define FILE_TYPE_PIPE
Definition: winbase.h:261
#define FILE_TYPE_DISK
Definition: winbase.h:259

Referenced by _fstat64(), _open_osfhandle(), _wsopen_s(), DoTypeFile(), FormatOutput(), getpass(), IsConsoleHandle(), IsTTYHandle(), main(), msvcrt_init_io(), run_open_osfhandle(), test_GetFileType(), and wmain().

◆ GetFullPathNameA()

DWORD WINAPI GetFullPathNameA ( LPCSTR  ,
DWORD  ,
LPSTR  ,
LPSTR  
)

◆ GetFullPathNameW()

DWORD WINAPI GetFullPathNameW ( LPCWSTR  ,
DWORD  ,
LPWSTR  ,
LPWSTR  
)

◆ GetHandleInformation()

BOOL WINAPI GetHandleInformation ( HANDLE  ,
PDWORD   
)

◆ GetKernelObjectSecurity()

BOOL WINAPI GetKernelObjectSecurity ( HANDLE  ,
SECURITY_INFORMATION  ,
PSECURITY_DESCRIPTOR  ,
DWORD  ,
PDWORD   
)

◆ GetLastError()

DWORD WINAPI GetLastError ( void  )

Definition at line 1042 of file except.c.

1043{
1044 /* Return the current value */
1045 return NtCurrentTeb()->LastErrorValue;
1046}

Referenced by __delayLoadHelper2(), __drv_when(), __file_size(), __mbtowc(), __mingwthr_run_key_dtors(), __wine_msi_call_dll_function(), _access(), _ActivateCtx(), _AddPrintProviderToList(), _async_query_data_available(), _beginthreadex(), _cancel_overlapped(), _chdrive(), _check_file_exists(), _chmod(), _chsize_s(), _close(), _close_request(), _commit(), _ConvertAtoW(), _cowait_msgs_expect_queued(), _create_process(), _CreateActCtxFromFile(), CBandSiteMenu::_CreateMenuPart(), _CreateNonspooledPort(), _cwait(), _DeactivateCtx(), _delete_testfontfile(), _DoDLLInjection(), _dup2(), _expect_data_available(), _findclose(), _fstat64(), _futime(), _GetNonspooledPortName(), _GetUserSidStringFromToken(), _HandleAddPort(), _HandleConfigureLPTPortCommandOK(), _HandleDeletePort(), _HandleGetDefaultCommConfig(), _HandlePortExists(), _HandlePortIsValid(), _HandleSetDefaultCommConfig(), _heapchk(), _heapmin(), _heapwalk(), _LocalEnumPrintersCheckName(), _LocalGetJobLevel2(), _LocalGetPrintServerHandleData(), _LocalOpenPortHandle(), _LocalOpenPrinterHandle(), _LocalOpenXcvHandle(), _LocalSetJobLevel1(), _LocalSetJobLevel2(), _lseeki64(), _open_osfhandle(), _open_simple_request(), _overlapped_read_async(), _overlapped_read_sync(), _overlapped_write_async(), _overlapped_write_sync(), _pclose(), _pipe(), _PrinterJobListCompareRoutine(), _read_expect_sync_data_len(), _read_request_data(), _readex_expect_async(), _readex_expect_sync_data_len(), _receive_simple_request(), _RpcAbortPrinter(), _RpcAddForm(), _RpcAddJob(), _RpcAddMonitor(), _RpcAddPort(), _RpcAddPortEx(), _RpcAddPrinterDriver(), _RpcAddPrinterDriverEx(), _RpcAddPrintProcessor(), _RpcAddPrintProvidor(), _RpcClosePrinter(), _RpcCloseSpoolFileHandle(), _RpcCommitSpoolData(), _RpcCommitSpoolData2(), _RpcConfigurePort(), _RpcDeleteForm(), _RpcDeleteMonitor(), _RpcDeletePort(), _RpcDeletePrinter(), _RpcDeletePrinterDriver(), _RpcDeletePrinterDriverEx(), _RpcDeletePrintProcessor(), _RpcDeletePrintProvidor(), _RpcEndDocPrinter(), _RpcEndPagePrinter(), _RpcEnumForms(), _RpcEnumJobs(), _RpcEnumMonitors(), _RpcEnumPorts(), _RpcEnumPrinterDrivers(), _RpcEnumPrinters(), _RpcEnumPrintProcessorDatatypes(), _RpcEnumPrintProcessors(), _RpcGetForm(), _RpcGetJob(), _RpcGetPrinter(), _RpcGetPrinterDriver(), _RpcGetPrinterDriver2(), _RpcGetPrinterDriverDirectory(), _RpcGetPrintProcessorDirectory(), _RpcGetSpoolFileInfo(), _RpcGetSpoolFileInfo2(), _RpcOpenPrinter(), _RpcPrinterMessageBox(), _RpcReadPrinter(), _RpcResetPrinterEx(), _RpcScheduleJob(), _RpcSeekPrinter(), _RpcSetForm(), _RpcSetJob(), _RpcSetPort(), _RpcSpoolerInit(), _RpcStartDocPrinter(), _RpcStartPagePrinter(), _RpcWritePrinter(), _RpcXcvData(), _RunRemoteTest(), _ServiceMain(), _set_secflags(), _setmbcp_l(), _SHExpandEnvironmentStrings(), _StartDocPrinterSpooled(), _tchdir(), _tempnam(), _test_accounting(), _test_assigned_proc(), _test_completion(), _test_file_access(), _test_flush_async(), _test_flush_done(), _test_flush_sync(), _test_hkey_main_Value_A(), _test_hkey_main_Value_W(), _test_http_version(), _test_language_string(), _test_not_signaled(), _test_overlapped_failure(), _test_overlapped_result(), _test_peek_pipe(), _test_request_flags(), _test_request_url(), _test_secflags_option(), _test_security_info(), _test_status_code(), _test_store_is_empty(), _tfindfirst(), _tfindnext(), _tfullpath(), _tgetcwd(), _tiffSeekProc(), _tmain(), _tmkdir(), CMenuBand::_TrackContextMenu(), _trmdir(), _tsearchenv_s(), _tstat64(), _tWinMain(), _unlink(), CicIMCCLock< T_DATA >::_UnlockIMCC(), _waccess(), _wchmod(), _wfreopen(), _wmktemp(), _wremove(), _wrename(), _write(), _wsopen_s(), _wsystem(), _wtempnam(), _wtmpnam(), _wunlink(), AbortSvchostService(), access_dirT(), AccpLookupCurrentUser(), AccpLookupSidByName(), AccpOpenNamedObject(), AccRewriteGetExplicitEntriesFromAcl(), AccRewriteGetHandleRights(), AccRewriteGetNamedRights(), AccRewriteSetEntriesInAcl(), AccRewriteSetHandleRights(), AccRewriteSetNamedRights(), AcquireRemoveRestorePrivilege(), ACTION_RemoveFiles(), activate_context(), StartMenu::ActivateEntry(), add_lv_column(), add_ms_root_certs(), CMenuToolbarBase::AddButton(), BtrfsSend::AddClone(), BtrfsDeviceAdd::AddDevice(), AddDeviceW(), AddMonitorW(), CMenuToolbarBase::AddPlaceholder(), AddPortExW(), AddPortW(), AddPrinterDriverExA(), AddPrinterDriverExW(), AddPrinterExW(), AddPrinterW(), AddPrintMonitorList(), CMenuToolbarBase::AddSeparator(), AddSubst(), AddToMessageLog(), AddUserProfiles(), AddVolumeToList(), AdjustEnableDefaultPriv(), AdvInstallFileW(), CTrayWindow::AlignControls(), AllocAndGetEntityArray(), AllocStringA(), AllocStringW(), AllowAccessOnSession(), AllowDesktopAccessToUser(), AllowWinstaAccessToUser(), alpha_blend_image(), AlphaBlendProc(), apartment_createwindowifneeded(), apd_copyfile(), append_file(), append_file_test(), AppendFullPathURL(), AppendSystemPostfix(), Applet1(), BtrfsPropSheet::apply_changes_file(), apply_patch(), ApplyGeneralSettings(), ApplyPatchToFileByHandles(), ApplyRegistryValues(), are_all_privileges_disabled(), assembly_create(), AsyncInetDownload(), AsyncInetReadFileLoop(), ata_send_ioctl(), ata_send_scsi(), ATL::AtlHresultFromLastError(), AtlLoadTypeLib(), ATL::AtlLoadTypeLib(), AttachToConsoleInternal(), attr_cache_init(), AutoStartupApplications(), BackgroundCopyJob_Cancel(), BackupBootSector(), BtrfsBalance::BalanceOptsDlgProc(), BaseCheckVDM(), BaseMemAllocator_Commit(), BaseMemAllocator_ReleaseBuffer(), BasepCopyFileExW(), BasepDoTapeOperation(), BasepGetComputerNameFromNtPath(), BaseWindowImpl_PrepareWindow(), BatteryClassInstall(), CSecurityDescriptor::BeginDACLInteration(), CSecurityDescriptor::BeginSACLInteration(), bind_image(), BiosInitialize(), BtrfsSend::BrowseParent(), BuildLogListAndFilterList(), cabinet_copy_file(), cache_container_clean_index(), cache_container_lock_index(), cache_container_open_index(), cache_container_set_size(), cache_containers_add(), cache_containers_init(), cache_entry_exists(), cache_file_available(), cache_insert(), cache_UninstallAssembly(), callback_child(), CallBackConvertToAscii(), can_do_https(), capCreateCaptureWindowW(), CapTest(), CRecycleBinEnum::CBEnumRecycleBin(), CBSearchRecycleBin(), CertCreateSelfSignCertificate(), CertGetValidUsages(), CertRemoveEnhancedKeyUsageIdentifier(), CertUnregisterSystemStore(), ChangeACLsOfFiles(), ChangeACLsOfFilesInCurDir(), ChangeOutputCP_(), ChangePortNumber(), check_dc_state(), check_device_iface_(), check_device_info_(), check_dirid(), check_exe(), check_for_files(), check_instance_(), check_key(), check_menu_item_info(), check_param(), check_result(), check_thread_instance(), check_wellknown_name(), checkChainPolicyStatus(), checkCRLHash(), CheckForGuestsAndAdmins(), checkHash(), CheckTestFile(), child_process(), ClassTest(), clean_up_aes_environment(), clean_up_base_environment(), cleanup_eventlog(), cleanup_gcc_dll(), cleanup_msvc_dll(), cleanup_tests(), clear_clipboard_(), clear_frontbuffer(), ClearEvents(), ClientRpcChannelBuffer_SendReceive(), ClientSideInstallW(), clip_emf_enum_proc(), clipboard_render_data_thread(), clipboard_thread(), clipboard_wnd_proc(), clnt_vc_create(), Close(), close_async_handle(), close_request(), CloseProcess(), CloseProcessAndVerify_(), CloseSharedMemory(), closetest_callback(), BtrfsRecv::cmd_chmod(), BtrfsRecv::cmd_chown(), BtrfsRecv::cmd_clone(), cmd_copy(), BtrfsRecv::cmd_link(), cmd_mkdir(), BtrfsRecv::cmd_mkfile(), cmd_mklink(), cmd_move(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_rename(), cmd_rename(), BtrfsRecv::cmd_rmdir(), cmd_rmdir(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_snapshot(), cmd_start(), BtrfsRecv::cmd_subvol(), BtrfsRecv::cmd_truncate(), cmd_type(), BtrfsRecv::cmd_unlink(), BtrfsRecv::cmd_utimes(), BtrfsRecv::cmd_write(), cmdContinue(), cmdPause(), CmdSetExitCode(), CmdStartProcess(), cmdStop(), CmosCleanup(), CmosInitialize(), MainFrameBase::Command(), MDIMainFrame::Command(), CommandThreadProc(), commit_cache_entry(), ATL::CAtlModule::CommonInitRegistrar(), CommonInstall(), compare_bitmap_bits_(), compare_emf_bits(), compare_export_(), compare_file_(), compare_mf_disk_bits(), compareStore(), CompleteFilename(), condvar_base_consumer(), condvar_consumer(), condvar_producer(), config_init(), ConfigurePortW(), ConsoleEventThread(), context_create(), context_create_wgl_attribs(), context_destroy_gl_resources(), context_restore_gl_context(), context_set_current(), context_set_gl_context(), context_set_pixel_format(), Control(), control_service(), convert_nfs4acl_2_dacl(), ConvertAddrinfoFromUnicodeToAnsi(), _com_util::ConvertBSTRToString(), ConvertPath(), CClassNode::ConvertResourceDescriptorToString(), _com_util::ConvertStringToBSTR(), ConvertToSelfRelative(), ConvertUTF8StringToBSTR(), copy_file(), copy_folder(), copy_install_file(), CopyDirectory(), CopySdbToAppPatch(), CopySystemProfile(), count_blocks(), CoWaitForMultipleHandles(), crash_and_debug(), crash_and_winedbg(), Create(), CicFileMappingStatic::Create(), create_actctx(), create_and_write_file(), create_async_message_window(), create_avi_file(), create_backup(), create_bitmap_file(), create_cache_entry(), create_cdf_file(), create_converted_emf(), create_cookie_url(), create_desk(), create_dialog(), create_file(), create_file_test(), create_fileW(), create_full_path(), create_full_pathW(), create_ico_file(), create_internet_session(), create_listview_control(), create_listview_controlW(), create_manifest(), create_manifest_file(), create_menu_from_data(), create_menuitem_from_data(), create_open_state(), create_overlapped_pipe(), create_package(), create_pipe_pair(), create_process(), create_req_file(), create_server(), create_server_process(), create_silly_rename(), create_snapshot(), create_storagefile(), create_stream(), create_target_process(), create_test_actctx(), create_test_dll(), create_test_dll_sections(), create_test_file(), create_testfontfile(), create_textstream(), create_unknownsid(), create_window(), create_window_thread(), create_winsta(), create_writepipe_process(), CreateApplicationDesktopSecurity(), CreateAssemblyCache(), CreateAudioDeviceList(), CKsProxy::CreateClockInstance(), SEALED_::CreateControlWindow(), CreateDefaultProcessSecurityCommon(), CreateDhcpPipeSecurity(), CreateDirectoryPath(), CreateEnvironmentBlock(), CreateInheritableDesktop(), CreateInheritableWinsta(), CreateJob(), CreateLogoffSecurityAttributes(), CreateMain(), CreateMemoryDialog(), CreatePerfWindows(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), CreatePrinterFriendlyName(), CreateProcessAsUserA(), CreateProcessAsUserW(), CreateProcessInternalW(), CreateProfile(), CreateProfileMutex(), CreateScreenSaverSecurity(), CreateServers(), CreateServiceThread(), CCabinet::CreateSimpleCabinet(), CreateSoundThread(), CreateStandardProfile(), CreateSymbolicLinkW(), CreateTempDir(), CreateTestDir(), CreateTestFile(), CreateUserEnvironment(), CreateUserProfileExW(), CreateWindowStationAndDesktops(), CreateWinlogonDesktopSecurity(), CreateWinstaSecurity(), CredUIPromptForCredentialsW(), CriticalDeviceCoInstaller(), CRYPT_AsnDecodeBits(), CRYPT_AsnDecodeBitsInternal(), CRYPT_AsnDecodeBitsSwapBytes(), CRYPT_AsnDecodeBool(), CRYPT_AsnDecodeCert(), CRYPT_AsnDecodeCertInfo(), CRYPT_AsnDecodeCertSignedContent(), CRYPT_AsnDecodeCRL(), CRYPT_AsnDecodeCRLEntries(), CRYPT_AsnDecodeCRLInfo(), CRYPT_AsnDecodeExtension(), CRYPT_AsnDecodePathLenConstraint(), CRYPT_AsnDecodePolicyQualifiers(), CRYPT_AsnDecodeRdnAttr(), CRYPT_AsnDecodeSequence(), CRYPT_AsnDecodeSequenceItems(), CRYPT_AsnDecodeSubtreeConstraints(), CRYPT_AsnDecodeUnicodeRdnAttr(), CRYPT_AsnEncodeAltName(), CRYPT_AsnEncodeAltNameEntry(), CRYPT_AsnEncodeBool(), CRYPT_AsnEncodeCRLDistPoints(), CRYPT_AsnEncodeCRLEntry(), CRYPT_AsnEncodeExtension(), CRYPT_AsnEncodeOctets(), CRYPT_AsnEncodeSequence(), CRYPT_CacheURL(), CRYPT_DownloadObject(), CRYPT_EncodeValueWithType(), CRYPT_FindIssuer(), CRYPT_GetObjectFromCache(), CRYPT_ImportSystemRootCertsToReg(), CRYPT_LoadProvider(), CRYPT_SaveSerializedToMem(), CryptCATAdminEnumCatalogFromHash(), CryptEnumProvidersA(), CryptEnumProviderTypesA(), CryptGetDefaultProviderA(), CryptProtectData(), CryptUnprotectData(), CSR_API(), CURSORICON_CopyImage(), custom_action_server(), custom_client_thread(), custom_start_server(), D3DReadFileToBlob(), d3dx_include_from_file_open(), ddraw_attach_d3d_device(), ddraw_set_cooperative_level(), debug_init(), debug_target_init_modules_info(), debugdataspaces_ReadVirtual(), debugstr_sid(), DECLARE_INTERFACE_(), decodeAndCompareBase64_A(), decodeBase64WithLenFmt(), decompress_file_cab(), delegation_create(), delegation_return(), Delete(), delete_chm(), delete_file(), delete_file_(), delete_files(), delete_folder(), delete_object(), delete_test_service(), DeleteFiles(), DeleteFolder(), DeleteMonitorW(), DeletePortW(), DeletePrinterDriverExA(), DeletePrinterDriverExW(), DeleteProfileW(), DeleteSubst(), CChangeNotifyServer::DeliverNotification(), demClientErrorEx(), demFileDelete(), demFileFindFirst(), demFileFindNext(), DemLoadNTDOSKernel(), derive_key(), DestroyService(), detect_nt(), device_tests(), BtrfsVolPropSheet::DeviceDlgProc(), DeviceIdMatch(), DevInstallW(), DhcpCApiInitialize(), DisablePrivilege(), DisableTokenPrivileges(), CNetConnection::Disconnect(), DiskClassInstaller(), DiskFreeMain(), DismountMain(), dispatch_rpc(), DispatcherThread(), display_error(), DisplayClassInstaller(), DisplayDeviceAdvancedProperties(), DisplayDevicePropertyText(), DisplayDns(), DisplayError(), DisplayPageSetDeviceDetails(), DisplayPendingOps(), DisplayStuffUsingWin32Setup(), dlg_configure_lpt(), DlgProc(), DlgThreadProc(), dll_entry_point(), DllMain(), DllRegisterServer(), do_child(), do_error_dialog(), do_file_copyW(), do_parent(), BtrfsRecv::do_recv(), do_register_dll(), do_request(), BtrfsDeviceResize::do_resize(), do_spawnT(), do_typelib_reg_key(), do_wait_idle_child(), DoAction2(), DoAction3(), DoAction4(), DoAction5(), DoAction6(), DoAction7(), DoAction8(), doChild(), doChildren(), DoControlService(), doDebugger(), DoEjectDrive(), DoEntry(), DoesPortExist(), DoesUserHavePrivilege(), DoFileSave(), DoFormatMessage(), CFontExt::DoGetFontTitle(), Telnet::DoInit(), DoOpenFile(), DoRegServer(), DoSaveFile(), DosChangeDirectory(), DosCmdInterpreterBop(), DosCreateFile(), DosCreateFileEx(), DosCreateProcess(), DosGetCountryInfo(), DosInitialize(), DosInt21h(), DosKRNLInitialize(), DosLoadDriver(), DosLoadExecutable(), DosLockFile(), DosOpenFile(), DosReadFile(), DosSeekFile(), DosStart(), DosStartProcess32(), DoStartService(), DoStartStartupItems(), DoStopService(), DosUnlockFile(), DosWriteFile(), DoTest(), dotest_spi_iconhorizontalspacing(), dotest_spi_iconverticalspacing(), DoTestComputerName(), DoTestEntry(), DoTypeFile(), DoUnregServer(), CVfdShExt::DoVfdDrop(), CVfdShExt::DoVfdProtect(), DownloadBSC_OnStopBinding(), downloadcb_OnStopBinding(), DPLAYX_ConstructData(), DrawDibBegin(), driver_load(), DrivesContextMenuCallback(), DrivesMain(), drop_window_therad(), dsm_RegisterWindowClasses(), DSoundRender_create(), dump_emf_records(), DumpFont(), DumpMemory(), DumpParams(), DwInitializeSdFromThreadToken(), elf_map_section(), empty_clipboard_thread(), CDeviceNode::EnableDevice(), EnableDevice(), EnablePrivilege(), EnablePrivilegeInCurrentProcess(), EnableThemeDialogTexture(), EnableUserModePnpManager(), encode_compare_base64_W(), encodeAndCompareBase64_A(), end_host_object(), Enum(), enum_thread(), EnumDepend(), EnumerateDevices(), EnumerateRecycleBinW(), EnumerateRunningServices(), EnumEventsThread(), EnumFilesWorker(), EnumHotpluggedDevices(), EnumMonitorsA(), EnumMonitorsW(), EnumOLEVERB_Clone(), EnumPortsA(), EnumPortsW(), EnumPrinterDataExA(), EnumPrinterDriversA(), EnumPrinterDriversW(), EnumPrintersA(), EnumPrintersW(), EnumPrintProcessorsA(), EnumServices(), error(), error_exit(), Escape(), eto_emf_enum_proc(), CShellCommandDACL::Execute(), CShellCommandOwner::Execute(), CShellCommandSACL::Execute(), execute_command(), execute_test(), ExecuteAsync(), exercizeServer(), ExitWindowsThread(), ExitWindowsWorker(), export_validate_filename(), Extract(), extract2(), extract_gcc_dll(), extract_msvc_dll(), extract_one(), extract_resource(), extract_test(), CCabinet::ExtractFile(), ExtractFilesFromCab(), CZipExtract::ExtractSingle(), ExtractZipImage(), ExtractZipInfo(), fetch_thread_info(), FiberMainProc(), file_get_Attributes(), file_get_Size(), file_matches_data(), file_put_Attributes(), ATL::CRegObject::file_register(), file_register(), FileAsyncReader_Length(), FileAsyncReader_Request(), FileAsyncReader_SyncRead(), FileAsyncReader_WaitForNext(), filecoll_get_Count(), FILEDLG95_MRU_load_filename(), FILEDLG95_MRU_save_filename(), FileExists(), FileLoadByHandle(), FileOpen(), FileProtocol_StartEx(), FileSource_Load(), filesys_CreateFolder(), filesys_GetFileVersion(), filesys_GetSpecialFolder(), fill_service(), FillList(), FilterLoadUnload(), find_devices(), find_installed_ports(), find_local_server(), find_portinfo2(), find_tempfile(), FindCurrentDriver(), FindDfltProvRegVals(), FindFirstVolumeW(), CSendToMenu::FindItemFromIdOffset(), FinishNotificationThread(), SEALED_::FireEventOutsideApartmentAsync(), flush_proc(), FlushDns(), FmtAcquireDrive_(), FNFDINOTIFY(), foldercoll_get_Count(), Format(), format_size(), FormatOutput(), BtrfsVolPropSheet::FormatUsage(), FormatVerisignExtension(), free_package_structures(), FreeFunctionPointer(), FTP_FtpOpenFileW(), FTPFILE_ReadFile(), FtpProtocol_open_request(), FtpProtocol_start_downloading(), full_file_path_name_in_a_CWD(), Generate(), get_base_dir(), get_cache_path(), get_clipboard_data_process(), get_combobox_info(), get_computer_name(), get_connected_filter_name(), get_current_group(), get_current_owner(), get_device(), get_devmodeW(), get_drive_connection(), get_driver_infoA(), get_driver_infoW(), get_ea_list(), get_field_string(), get_file_handle(), get_file_version(), get_font_fsselection(), get_glyph_indices(), get_language_string(), get_lock_error(), get_menu_style(), get_module_version(), get_owner(), get_printer_infoA(), get_printer_infoW(), get_redirect_url(), get_script_from_file(), get_sid_info(), get_url_components(), get_user_sid(), get_versioned_classname(), getaddrinfo(), GetAllUsersProfileDirectoryW(), GetAndSendInputThread(), CAddressBand::GetBandInfo(), CExplorerBand::GetBandInfo(), CSearchBar::GetBandInfo(), DriveVolume::GetBitmap(), GetBitmapPixelBuffer(), getChain(), GetClassInfoExA(), GetClassInfoExW(), DriveVolume::GetClusterInfo(), getCommandLineFromProcess(), GetComputerNameA(), GetComputerNameExW(), GetComputerNameW(), GetComputerObjectNameW(), CSecurityDescriptor::GetDACLEntriesCount(), CSecurityDescriptor::GetDACLEntry(), GetDefaultPrinterA(), GetDefaultUserProfileDirectoryW(), GetDeviceCapabilities(), GetDeviceData(), getDeviceInterfaceDetail(), GetDeviceListInterfaces(), GetDiskFreeSpaceExW(), GetDiskGeometry(), GetDisplayName(), getdomainname(), GetDuplicateToken(), GetError(), GetFinalPathNameByHandleA(), GetFromToken(), GetFunctionPointer(), GetHardwareAndCompatibleIDsLists(), gethostbyaddr(), gethostbyname(), GetIFEntry(), GetIPSNMPInfo(), GetKeyName(), GetLastErrorText(), GetLineText(), GetListOfTestExes(), GetLocaleName(), GetLocalsplFuncs(), GetMonitorUI(), GetNameInfoW(), GetNumberOfExesInFolder(), BtrfsIconOverlay::GetOverlayInfo(), GetOwnerModuleFromPidEntry(), GetOwnerModuleFromTagEntry(), GetPathOfFile(), GetPortNameWithoutColon(), GetPrinterA(), GetPrinterDriverA(), GetPrinterDriverDirectoryW(), GetProcessToken(), GetProfilesDirectoryW(), GetProfileSize(), GetProfileType(), CSecurityDescriptor::GetSACLEntriesCount(), CSecurityDescriptor::GetSACLEntry(), GetServiceConfig(), GetServiceDescription(), GetServiceDllFunction(), GetServiceList(), GetServiceMainFunctions(), GetServices(), GetSetFileTimestamp(), GetSpoolssFunc(), GetStorageDirectory(), GetTdiEntityType(), GetTempFileNameW(), GetThemeBackgroundRegion(), GetThemeSysFont(), GetThemeTextMetrics(), GetThreadFromCurrentProcess(), GetTokenFromCurrentProcess(), GetTokenProcess(), CTravelLog::GetToolTipText(), GetUserAndDomainName(), GetUserNameW(), GetUserProfileDirectoryW(), GetUserSid(), GetUserToken(), GetVolumeExtents(), GetVolumeNameForRoot(), GetVolumePathNamesForVolumeNameA(), GetVolumePathNamesForVolumeNameW(), GetVolumePathNameW(), GetWinprintFunc(), getxyDataEnt(), gl_local_filename_completion_proc(), GopherProtocol_open_request(), grab_clipboard_process(), GuiConsoleShowConsoleProperties(), GuiSaveParam(), handle_getacl(), handle_lock(), handle_readdir(), handle_setacl(), HandleException(), HandleLogoff(), HandleShutdown(), hash_file(), hash_mac_addrs(), header_cb(), Help(), HideMinimizedWindows(), HotkeyThread(), HTMLDocument_get_cookie(), HTMLDocument_put_cookie(), HTMLLocation_get_href(), HTMLWindow2_alert(), HTMLWindow2_confirm(), HTTP_RetrieveEncodedObjectW(), HttpHeaders_test(), HttpProtocol_end_request(), HttpProtocol_open_request(), HttpProtocol_start_downloading(), HTTPREQ_QueryOption(), HttpSendRequestEx_test(), I_ScQueryServiceTagInfo(), I_ScValidatePnpService(), ICO_ExtractIconExW(), COpenWithMenu::IconToBitmap(), IDirectInputAImpl_RunControlPanel(), IDirectSoundCaptureBufferImpl_Start(), IdnToNameprepUnicode(), IEffectivePermission_fnGetEffectivePermission(), ImageSymToVa(), ImagingFactory_CreateBitmapFromHICON(), Imm32IsInteractiveUserLogon(), ImpersonatePrinterClient(), import_reg(), import_validate_filename(), SEALED_::IMsRdpClient::RequestClose(), SEALED_::IMsTscAx::Connect(), CConsole::Init(), init(), init_access_tests(), init_aes_environment(), init_base_environment(), init_functions(), BtrfsPropSheet::init_propsheet(), init_sym_imp(), init_test(), init_wksta_tests(), InitApplet(), InitEntrypointMutexes(), CFileDefExt::InitFileType(), InitFont(), FxInterruptThreadpool::Initialize(), FxInterruptWaitblock::Initialize(), _MdTimer::Initialize(), Initialize(), CFileSysEnum::Initialize(), BtrfsPropSheet::Initialize(), CExplorerBand::InitializeExplorerBand(), InitializePnPManager(), InitializePortList(), InitializePrintMonitor2(), InitializePrintMonitorList(), InitializePrintProcessorList(), InitializeProfiles(), InitializeProgramFilesDir(), InitializeScreenSaver(), InitiateShutdownA(), InitiateSystemShutdownThread(), CMruPidlList::InitList(), InitLogging(), InitPropertyBag_IPropertyBag_Read(), InitRappsConsole(), InitShellServices(), InputWait(), insendmessage_wnd_proc(), insert_menu_item(), InsertProcessSecurityCommon(), install_assembly(), install_init(), install_policy(), InstallBuiltinAccounts(), InstallCompositeBattery(), InstallCurrentDriver(), InstallDevice(), InstallDeviceData(), InstallDevInstEx(), InstallEventSource(), InstallHinfSectionW(), InstallInfSections(), InstallLiveCD(), InstallNetDevice(), InstallNetworkComponent(), InstallOneInterface(), InstallOneService(), InstallParallelPort(), InstallPrivileges(), InstallReactOS(), InstallScreenSaverW(), InstallSerialPort(), InstallSoftwareDeviceInterface(), InstallSoftwareDeviceInterfaceInf(), InstallSysSetupInfComponents(), IntDeleteRecursive(), InteractiveConsole(), InternalExplicitAccessAToW(), InternalTrusteeAToW(), INTERNET_InternetOpenUrlW(), InternetCrackUrl_test(), InternetCrackUrlW(), InternetCrackUrlW_test(), InternetCreateUrlA(), InternetCreateUrlA_test(), InternetExplorer_put_MenuBar(), InternetLockRequestFile_test(), InternetOpenRequest_test(), InternetOpenUrlA_test(), InternetReadFile_chunked_test(), InternetReadFile_test(), InternetReadFileExA_test(), InternetTimeFromSystemTimeA_test(), InternetTimeFromSystemTimeW_test(), InternetTimeToSystemTimeA_test(), InternetTimeToSystemTimeW_test(), InternetTransport_Connect(), IntFixUpDevModeNames(), BtrfsContextMenu::InvokeCommand(), COutputPin::IoProcessRoutine(), is_font_available(), ISecurityObjectTypeInfo_fnGetInheritSource(), IsInteractiveUserLogon(), IsLetterOwned(), IsNTAdmin(), IsPrivilegeEnabled(), IsProcessRunning(), CShellDispatch::IsServiceRunning(), IStream_fnRead(), IStream_fnSeek(), IStream_fnWrite(), ITERATE_DeleteService(), ITERATE_DuplicateFiles(), ITERATE_InstallService(), ITERATE_MoveFiles(), ITERATE_RemoveDuplicateFiles(), ITERATE_RemoveExistingProducts(), ITERATE_RemoveIniValuesOnInstall(), ITERATE_RemoveIniValuesOnUninstall(), ITERATE_RemoveShortcuts(), iterate_section_fields(), ITERATE_StartService(), ITERATE_StopService(), K32CreateDBMonMutex(), kernel32_find(), kernel_wctomb(), keyboard_tests(), KillComProcesses(), KmtFltDisconnect(), KmtFltGetMessageResult(), KmtSendBufferToDriver(), KmtSendStringToDriver(), KmtSendToDriver(), KmtSendUlongToDriver(), KmtSendWStringToDriver(), CKsInterfaceHandler::KsCompleteIo(), KsOpenDefaultDevice(), CKsInterfaceHandler::KsProcessMediaSamples(), KsSynchronousDeviceControl(), ShellEntry::launch_entry(), launch_exe(), launch_file(), LauncherRoutine2(), LaunchProcess(), LdapGetLastError(), Link(), LISTBOX_Directory(), CDeviceView::ListDevicesByType(), CKsProxy::Load(), load_blackbox(), load_driver(), load_encryption_key(), load_persistent_cookie(), load_process_feature(), load_profile(), load_resource(), load_resource_into_memory(), load_v6_module(), load_xul(), LoadAndInitialize(), LoadAndInitializeNtMarta(), LoadBios(), LoadCodePageData(), LoadHelperDll(), LoadIconWithScaleDown(), COpenWithList::LoadInfo(), LoadModule(), LoadModuleWithSymbolsFullPath(), LoadPrinterDriver(), LoadRom(), LoadScreenSaverParameters(), SEALED_::LoadTypeLibrary(), LoadUserProfileW(), local_server_thread(), LocalEndDocPrinter(), LocalEnumPrintProcessorDatatypes(), LocalmonAddPortEx(), LocalmonDeletePort(), LocalmonGetPrinterDataFromPort(), LocalmonOpenPort(), LocalmonReadPort(), LocalmonSetPortTimeOuts(), LocalmonStartDocPort(), LocalmonWritePort(), LocalmonXcvOpenPort(), LocalOpenPrinter(), LocalReadPrinter(), LocalScheduleJob(), LocalStartDocPrinter(), localui_AddPortUI(), LocalWritePrinter(), LockOrUnlockVolume(), LogErrorConsole(), LogoffShutdownThread(), LogToFile(), LogWarningConsole(), LookupPrivilegeDisplayNameA(), LookupPrivilegeNameA(), LS_ThreadProc(), LsarStartRpcServer(), macho_map_file(), macho_map_range(), mailslot_test(), main(), MAIN_LoadSettings(), MainDialogProc(), make_impersonation_token(), MakeFullPath(), MakeService(), MakeSharedPacket(), MakeSureDirectoryPathExists(), map_dacl_2_nfs4acl(), map_file(), map_image_section(), map_name_2_sid(), map_nfs4ace_who(), map_user_to_ids(), map_view_of_file(), MapAndLoad(), ATL::CAtlFileMappingBase::MapSharedMem(), MCIAVI_RegisterClass(), MCICDA_GetError(), MCICDA_GetStatus(), MCICDA_playLoop(), MCIWndRegisterClass(), menu_track_again_wnd_proc(), mi_show_error(), midiStreamPause(), midiStreamRestart(), MMDevEnum_RegisterEndpointNotificationCallback(), modify_menu(), monitor_enum_proc(), MountDisk(), MountFDI(), MountHDD(), mouse_tests(), move_file(), DriveVolume::MoveFileDumb(), MsgCheckProc(), msi_create_empty_local_file(), msi_create_full_path(), msi_download_file(), msi_export_stream(), msi_get_filehash(), MSI_OpenPackageW(), msi_publish_patches(), msi_set_original_database_property(), MsiCreateAndVerifyInstallerDirectory(), MsiEnableLogW(), MSSTYLES_OpenThemeFile(), MSTASK_ITaskScheduler_GetTargetComputer(), msvcrt_get_thread_data(), MultiWndProc(), my_open(), my_test_server(), myAddPrinterDriverEx(), MySetFilePointerEx(), named_pipe_client_func(), NetApiBufferAllocate(), NetApiBufferReallocate(), NetClassInstaller(), netcon_secure_connect_setup(), netconn_create(), netconn_secure_connect(), netconn_verify_cert(), NetIDPage_OnApply(), NetRegisterDomainNameChangeNotification(), new_window(), new_windowW(), nfs41_client_create(), nfs41_client_owner(), nfs41_idmap_create(), nfs41_name_cache_create(), nfs41_root_create(), nfs41_rpc_clnt_create(), nfs41_session_set_lease(), NlNetlogonMain(), NLS_EnumCalendarInfo(), no_stop_main(), notif_thread_proc(), NotificationThread(), NotifyLogon(), NPAddConnection3(), NPCancelConnection(), NtfsInfoMain(), ok_path(), ole_server(), OleRegEnumVerbs(), OnCreate(), CSysPagerWnd::OnCreate(), CShellLink::OnInitDialog(), CTrayWindow::OnNcHitTest(), OnOK(), OnSelChange(), OnShutDown(), OnTimer(), OnUpdate(), CZipExtract::CExtractSettingsPage::OnWizardNext(), Open(), Telnet::Open(), BtrfsRecv::Open(), BtrfsSend::Open(), COpenControlPanel::Open(), BtrfsPropSheet::open_as_admin(), open_async_request(), open_desk(), open_file_test(), open_log_files(), open_socket_request(), open_winsta(), OpenColorProfileW(), OpenCurrentToken(), OpenDevice(), OpenDeviceKey(), OpenDeviceList(), OpenEffectiveToken(), OpenFile(), OpenFilter(), OpenKernelDevice(), OpenKernelSoundDeviceByName(), OpenPrinterW(), OpenSharedMemory(), OpenTokenFromProcess(), OpenUserEventLogFile(), OpenVolume(), output_formatstring(), output_message(), OutputError(), OutputErrorCode(), overlapped_server(), parse_url_from_outside(), ParseCmdAndExecute(), PARSER_GetInfClassW(), patch_assembly(), patch_file(), PathCanonicalizeA(), pattern_fork(), CKsClockForwarder::Pause(), BtrfsBalance::PauseBalance(), PauseBalanceW(), BtrfsScrub::PauseScrub(), pCDevSettings_GetDeviceInstanceId(), PdhCollectQueryDataEx(), pendingRename(), PerformIO(), PersistFile_Save(), Ping(), pipe_thread(), pipeClient(), pipeServer(), pipeserver(), PipeThreadProc(), PlayLogonSoundThread(), PlotCharacter(), PNP_ReportLogOn(), BtrfsDeviceAdd::populate_device_tree(), prepare_and_run_test(), Preview_Edit(), print_condwait_status(), print_err(), PrintDaclsOfFiles(), PrintDlgA(), PrintDlgW(), PrinterProperties(), PrintFileDacl(), PrintingThreadProc(), PrintLastError(), PrintRawJob(), PrintVolumeHeader(), printWindowsError(), priorityTimeProc(), Privilege(), process2(), process_pending_renames(), processFile(), ProcessPlayingNotes(), ProcessRunKeys(), ProcessRunOnceEx(), ProcessSetupInf(), ProcessStartupItems(), ProcessUnattendSection(), PROFILE_FlushFile(), profile_items_callback(), PROFILE_Load(), PROFILE_Open(), prompt_dlgproc(), Protect(), protocol_continue(), protocol_lock_request(), protocol_read(), protocol_syncbinding(), protocol_unlock_request(), ProtocolStream_Seek(), proxy_active(), proxy_manager_construct(), PS2MousePropPageProvider(), pSetSecurityInfoCheck(), PSetupCreateMonitorInfo(), pSetupInstallCatalog(), pSetupOpenAndMapFileForRead(), PullPin_InitProcessing(), query_auth_schemes(), query_data_available(), query_dsym(), query_http_info(), query_image_section(), query_service_config(), QueryConfig(), QueryConfig2A(), QueryConfig2W(), CSendToMenu::QueryContextMenu(), CTrayWindowCtxMenu::QueryContextMenu(), QueryDescription(), QueryDeviceName(), QueryDNS(), QueryDriverInfo(), QueryMain(), QueryService(), QuerySpoolMode(), QuerySubstedDrive(), QuerySuggestedLinkName(), QueryUniqueId(), queue_async(), rdssl_cert_read(), rdssl_cert_to_rkey(), rdssl_certs_ok(), rdssl_hash_clear(), rdssl_hash_complete(), rdssl_hash_info_create(), rdssl_hash_transform(), rdssl_hmac_md5(), rdssl_rc4_crypt(), rdssl_rc4_info_create(), rdssl_rc4_info_delete(), rdssl_rc4_set_key(), CPipe::Read(), read_data(), read_entire_dir(), read_expect_async(), read_http_stream(), read_i(), read_pipe(), read_pipe_test(), read_reg_output_(), read_trusted_roots_from_known_locations(), read_utf8(), ReadAndHandleOutput(), ReadJobShadowFile(), readproc(), ReadVolumeSector(), CKsProxy::Reassociate(), receive_response(), recFindSubDirs(), RECORD_StreamFromFile(), RecursiveRemoveDir(), BtrfsRecv::recv_thread(), BtrfsRecv::RecvProgressDlgProc(), RecvSubvolGUIW(), RecycleBin5_Constructor(), RecycleBin5_Create(), RecycleBin5_RecycleBin5_Delete(), RecycleBin5_RecycleBin5_DeleteFile(), RecycleBin5_RecycleBin5_Restore(), RecycleBin5Enum_Constructor(), RecycleBin5Enum_RecycleBinEnumList_Next(), RecycleBin5File_RecycleBinFile_GetAttributes(), RecycleBin5File_RecycleBinFile_GetFileSize(), RecycleBin5File_RecycleBinFile_GetLastModificationTime(), RecycleBinGeneric_RecycleBin_DeleteFile(), RecycleBinGeneric_RecycleBin_EmptyRecycleBin(), BtrfsContextMenu::reflink_copy(), reflink_copy2(), BtrfsBalance::RefreshBalanceDlg(), BtrfsVolPropSheet::RefreshDevList(), BtrfsScrub::RefreshScrubDlg(), RegConnectRegistryW(), RegGetDWORD(), RegGetSZ(), register_service(), register_service_exA(), register_service_exW(), register_testwindow_class(), RegisterDlls(), RegisterDriver(), RegisterForDeviceNotifications(), REGPROC_print_error(), RegQueryStringA(), remove(), remove_dir(), RemoveDeviceW(), RemovePort(), RemoveTempFont(), rename(), ReplaceFileW(), report(), report_service_status(), ReportLastError(), request_get_codepage(), request_receive(), request_send(), request_set_parameters(), request_wait(), res_sec_url_cmp(), BtrfsVolPropSheet::ResetStats(), ResetStatsW(), CAppInfoDisplay::ResizeChildren(), ResizeDeviceW(), ResizeTextConsole(), ATL::CRegObject::resource_register(), resource_register(), ResProtocol_Start(), CDirectoryWatcher::RestartWatching(), RestoreAllConnections(), RetreiveFileSecurity(), RetrieveQuote(), RevertToPrinterSelf(), RPC_GetLocalClassObject(), RPC_StartLocalServer(), RpcReadFile(), rpcrt4_conn_create_pipe(), rpcrt4_conn_np_impersonate_client(), rpcrt4_conn_np_revert_to_self(), rpcrt4_conn_open_pipe(), rpcrt4_http_check_response(), rpcrt4_http_internet_connect(), rpcrt4_http_prepare_in_pipe(), RPCRT4_io_thread(), rpcrt4_ncacn_http_open(), rpcrt4_ncacn_np_handoff(), rpcrt4_ncalrpc_handoff(), RPCRT4_new_client(), rpcrt4_protseq_np_wait_for_new_connection(), rpcrt4_protseq_sock_wait_for_new_connection(), rpcrt4_sock_wait_for_recv(), rpcrt4_sock_wait_for_send(), RpcServerInqDefaultPrincNameW(), RpcSsConfigureAsNetworkService(), rpcThreadMain(), Rs232ConfigurePortWin32(), Rs232OpenPortWin32(), Rs232ReadByteWin32(), Rs232SetCommunicationTimeoutsWin32(), Rs232WriteByteWin32(), run_apibuf_tests(), run_child_process(), run_cmd(), run_ex(), run_for_each_device(), run_from_file(), run_reg_exe_(), run_script(), run_script_file(), run_server(), run_spi_setmouse_test(), run_test(), run_tests(), run_thread(), runCmd(), RunCurrentJobs(), RunInstallReactOS(), RunningAsSYSTEM(), SaBlob_CreateFromRecords(), SaBlob_Query(), SaBlob_WriteNameOrAlias(), Save(), save_credentials(), savedc_emf_enum_proc(), SaveDefaultUserHive(), SaveEventLog(), sc_cb_lseek(), ScConnectControlPipe(), SchedEventLogoff(), SchedServiceMain(), SchedStartShell(), ScmControlService(), ScmCreateNewControlPipe(), ScmEnableBackupRestorePrivileges(), ScmLogEvent(), ScmLogonService(), ScmReadString(), ScmSendStartCommand(), ScmStartUserModeService(), ScmWaitForLsa(), ScmWaitForServiceConnect(), ScreenSaverThreadMain(), ScServiceDispatcher(), SdbpGetLongPathName(), SdbUninstall(), sds_present(), SdSet(), SdShow(), SearchDriver(), SeclCreateProcessWithLogonW(), send_http_request(), send_msg_thread(), send_msg_thread_2(), send_request(), send_socket_request(), send_subvol(), SendClientShutdown(), SendClipboardOwnerMessage(), CHttpClient::SendFile(), FxIrp::SendIrpSynchronously(), SendRequest(), SendSubvolGUIW(), SendTo_NFS41Driver(), serializeIcon(), SerialPortQuery(), server(), server_create(), server_send_reply(), serverThreadMain1(), serverThreadMain2(), serverThreadMain3(), serverThreadMain4(), serverThreadMain5(), service_main(), service_main_common(), service_process(), ServiceInfo(), ServiceInit(), ServiceMain(), ServiceStart(), session_alloc(), set_auth_cookie(), set_clipboard_data_process(), set_clipboard_data_thread(), BtrfsPropSheet::set_cmdline(), set_installer_properties(), set_menu_item_info(), set_menu_style(), set_privileges(), set_up_attribute_test(), set_up_case_test(), SetConfig(), SetDefaultLanguage(), SetDescription(), SetDeviceDetails(), SetDriverLoadPrivilege(), SetFailure(), SetMain(), SetParallelState(), SetPortW(), SetPrivilege(), SetRootPath(), SetSecurityServicesEvent(), SETUP_CallInstaller(), SETUP_CreateDevicesList(), SETUP_CreateInterfaceList(), SetupCommitFileQueueW(), SetupCopyOEMInfW(), SetupDecompressOrCopyFileW(), SetupDiBuildDriverInfoList(), SetupDiCallClassInstaller(), SetupDiChangeState(), SetupDiGetClassImageListExW(), SetupDiGetDeviceInstanceIdA(), SetupDiGetDeviceRegistryPropertyA(), SetupDiInstallDevice(), SetupDiInstallDeviceInterfaces(), SetupDiRegisterCoDeviceInstallers(), SetupGetFileCompressionInfoA(), SetupGetFileCompressionInfoW(), SetupGetInfFileListW(), SetupGetIntField(), SetupInstallServicesFromInfSectionExW(), CClassNode::SetupNode(), SetupStartService(), SetUserEnvironmentVariable(), SetWindowTheme(), SH_GetTargetTypeByPath(), SHAddToRecentDocs(), SHCreateSessionKey(), SHCreateStreamOnFileEx(), SheChangeDirA(), SheChangeDirW(), SheGetDirA(), SheGetDirW(), Shell_DefaultContextMenuCallBack(), shell_execute_ex_(), SHELL_ExecuteW(), shellex_get_dataobj(), ShellExecCmdLine(), SHEmptyRecycleBinA(), SHEmptyRecycleBinW(), SHNotifyCopyFileW(), SHNotifyCreateDirectoryW(), SHNotifyDeleteFileW(), SHNotifyMoveFileW(), SHNotifyRemoveDirectoryW(), SHOpenWithDialog(), BtrfsBalance::ShowBalance(), BtrfsVolPropSheet::ShowChangeDriveLetter(), ShowLastError(), ShowLastWin32Error(), ShowParallelStatus(), ShowPropSheetW(), BtrfsVolPropSheet::ShowScrub(), ShowScrubW(), ShowUsage(), ShowX509EncodedCertificate(), SHPathPrepareForWriteW(), SHQueryRecycleBinA(), SHUnicodeToAnsiCP(), ShutDown_Hibernate(), ShutDown_LockComputer(), ShutDown_LogOffUser(), ShutDown_PowerOff(), ShutDown_Reboot(), ShutDown_StandBy(), SIC_Initialize(), SIC_OverlayShortcutImage(), sis_present(), SizeOfSector(), SoftModalMessageBox(), SOFTPUB_CreateStoreFromMessage(), SOFTPUB_DecodeInnerContent(), SOFTPUB_GetFileSubject(), SOFTPUB_GetMessageFromFile(), SOFTPUB_GetSIP(), SOFTPUB_LoadCatalogMessage(), SOFTPUB_LoadCertMessage(), SOFTPUB_OpenFile(), SOFTPUB_VerifyImageHash(), source_matches_volume(), spapi_install(), SplInitializeWinSpoolDrv(), SPY_DumpStructure(), SPY_EnterMessage(), SPY_ExitMessage(), SPY_GetMsgName(), sss_started(), sss_stopped(), StampFileSecurity(), Start(), start_local_service(), start_rpcss(), start_server(), start_service(), START_TEST(), StartAudioService(), BtrfsBalance::StartBalance(), StartBalanceW(), StartChild(), StartDevice(), StartDocDlgW(), StartDocPrinterA(), StartDocPrinterW(), StartDriver(), StartNotificationThread(), StartOneService(), StartProcess(), StartScreenSaver(), BtrfsScrub::StartScrub(), BtrfsSend::StartSend(), StartServicesManager(), StartStopEnumEventsThread(), StartSystemAudioServices(), StartSystemShutdown(), startup(), StatisticsMain(), Status(), statusclb_OnDataAvailable(), statusclb_OnStopBinding(), StatusDialogProc(), StatusMessageWindowProc(), StdMemAllocator_Free(), StgOpenStorage(), stop_service(), stop_service_dependents(), BtrfsBalance::StopBalance(), StopBalanceW(), StopDriver(), BtrfsScrub::StopScrub(), superblock_create(), SvcEntry_Seclogon(), SvcRegisterStopCallback(), SxsLookupClrGuid(), SyncOverlappedDeviceIoControl(), system(), system_time_to_minutes(), SystemClockPostMessageToAdviseThread(), SystemSetLocalTime(), SystemSetTime(), TakeOwnershipOfFile(), task_proc(), TCPSendIoctl(), tear_down_attribute_test(), tear_down_case_test(), Test1(), Test2(), Test3(), test_32bit_ddb(), test_32bit_win(), test_3des(), test_3des112(), test__Gettnames(), test__hread(), test__hwrite(), test__lclose(), test__lcreat(), test__llopen(), test__llseek(), test__lread(), test__lwrite(), test_abort_proc(), test_AbortWaitCts(), test_accelerators(), test_AccessCheck(), test_acls(), test_acquire(), test_acquire_context(), test_actctx(), test_actctx_classes(), test_add_atom(), test_add_certificate(), test_AddAce(), test_AddDefaultForUsage(), test_AddDllDirectory(), test_AddERExcludedApplicationA(), test_AddFontMemResource(), Test_AddFontResourceA(), Test_AddFontResourceExW(), test_AddMandatoryAce(), test_AddMonitor(), test_AddPort(), test_AddPortEx(), test_AddPortUI(), test_AddRem_ActionID(), test_AddRemoveProvider(), test_AddSelfToJob(), test_aes(), test_alertable(), test_alertable_wait(), test_alloc_shared(), test_alloc_shared_remote(), test_allocateLuid(), test_anglearc(), test_apc_deadlock(), test_app_manifest(), Test_ApphelpCheckRunApp(), test_ApphelpCheckShellObject(), test_arcto(), test_AssociateColorProfileWithDeviceA(), test_async(), test_async_HttpSendRequestEx(), test_async_read(), test_attach_input(), test_autoscroll(), test_AVISaveOptions(), test_backup(), test_bad_header(), test_basic_auth_credentials_cached_manual(), test_basic_auth_credentials_different(), test_basic_auth_credentials_end_session(), test_basic_auth_credentials_manual(), test_basic_auth_credentials_reuse(), test_basic_authentication(), test_basic_info(), test_basic_request(), Test_BeginPath(), test_bind_image_ex(), test_BindToObject(), Test_Bitmap(), test_bitmap(), test_bitmap_font_metrics(), test_bitmapinfoheadersize(), test_block_cipher_modes(), test_bogus_accept_types_array(), test_BreakawayOk(), test_broadcast(), Test_Brush(), test_brush_pens(), Test_bug3481(), test_BuildCommDCBAndTimeoutsW(), test_BuildCommDCBW(), test_BuildOtherNamesFromMachineName(), test_BuildSecurityDescriptorW(), test_builtinproc(), test_cache_control_verb(), test_cache_read(), test_cache_read_gzipped(), test_calchash(), test_cancelio(), test_CanUserWritePwrScheme(), test_capture_4(), test_catalog_properties(), test_cdf_parsing(), test_cdrom_ioctl(), test_CERT_CHAIN_PARA_cbSize(), test_cert_string(), test_cert_struct(), test_cert_struct_string(), test_CertGetNameStringA(), test_CertNameToStrA(), test_CertNameToStrW(), test_CertRDNValueToStrA(), test_CertRDNValueToStrW(), test_CertStrToNameA(), test_CertStrToNameW(), test_ChangeDisplaySettingsEx(), test_CheckTokenMembership(), test_child_token_sd(), test_child_token_sd_medium(), test_child_token_sd_restricted(), test_chunked_read(), test_classesroot(), test_clear(), test_click_make_new_folder_button(), test_ClipboardOwner(), test_close(), test_close_inf_file(), test_CloseHandle(), test_ClosePort(), test_ClosePrinter(), Test_CloseWhileSelectDuplicatedSocket(), Test_CloseWhileSelectSameSocket(), test_cmdline(), test_CodePageToScriptID(), test_color_contexts(), Test_CombineRgn_AND(), Test_CombineRgn_COPY(), Test_CombineRgn_DIFF(), Test_CombineRgn_Params(), Test_CombineRgn_XOR(), Test_CombineTransform(), test_combobox_messages(), test_comboex_WM_LBUTTONDOWN(), test_comctl32_class(), test_command(), Test_CommandLine(), test_CommandLine(), test_commandline2argv(), test_CompareStringA(), test_CompareStringOrdinal(), test_CompareStringW(), test_compatibility(), test_completion(), test_CompletionPort(), test_complicated_cookie(), test_concurrent_header_access(), test_condvars_base(), test_ConfigurePort(), test_ConfigurePortUI(), test_conn_close(), test_connect(), test_connection_cache(), test_connection_closing(), test_connection_failure(), test_connection_info(), test_Console(), test_container_sd(), test_context(), test_contextmenu(), test_conversions(), test_ConvertFiberToThread(), test_ConvertStringSecurityDescriptor(), test_ConvertThreadToFiber(), test_ConvertThreadToFiberEx(), test_cookie_attrs(), test_cookie_header(), test_cookie_url(), test_cookies(), test_copy(), test_CopyFile2(), test_CopyFileA(), test_CopyFileEx(), test_CopyFileW(), test_CopyMetaFile(), test_CoRegisterPSClsid(), test_count(), test_CoWaitForMultipleHandles(), test_CoWaitForMultipleHandles_thread(), test_crack_url(), test_create(), test_create_and_fail(), test_create_catalog_file(), test_create_delete_svc(), test_create_device_list_ex(), test_create_env(), test_create_fail(), test_create_syslink(), test_create_wide_and_fail(), test_create_window(), test_CreateActCtx(), test_CreateBitmap(), Test_CreateCompatibleDC(), Test_CreateDialogW(), Test_CreateDIBitmap1(), Test_CreateDIBitmap_CBM_CREATDIB(), Test_CreateDIBitmap_DIB_PAL_COLORS(), Test_CreateDIBPatternBrushPt(), test_createdir(), test_CreateDirectoryA(), test_CreateDirectoryW(), test_CreateFile(), test_CreateFile2(), test_CreateFileA(), test_CreateFileMapping(), test_CreateFileMapping_protection(), test_CreateFileW(), test_createfolder(), test_CreateFontIndirect(), test_CreateFontIndirectEx(), test_CreateIcon(), test_CreateIconFromResource(), test_CreateMultiProfileTransform(), test_CreateNamedPipe(), test_CreateNamedPipe_instances_must_match(), Test_CreatePen(), test_CreateProcessWithDesktop(), test_CreateRemoteThread(), test_CreateRestrictedToken(), test_CreateScalableFontResource(), Test_CreateService(), test_CreateStub(), test_CreateTextFile(), test_CreateThread_basic(), test_CreateWellKnownSid(), test_CreateWindow(), test_CredDeleteA(), test_credentials(), test_CredIsMarshaledCredentialA(), test_CredMarshalCredentialA(), test_CredReadA(), test_CredReadDomainCredentialsA(), test_CredUnmarshalCredentialA(), test_CredWriteA(), test_crypt_ui_wiz_import(), test_cryptAllocate(), test_CryptBinaryToString(), test_CryptCATAdminAddRemoveCatalog(), test_CryptCATCDF_params(), test_CryptCATOpen(), test_cryptprotectdata(), test_cryptTls(), test_cryptunprotectdata(), test_csparentdc(), test_CurrentDirectoryA(), test_Data(), test_data_handles(), test_data_msg_encoding(), test_data_msg_get_param(), test_data_msg_open(), test_data_msg_update(), test_dbcs_to_widechar(), test_dde(), test_dde_default_app(), test_DdeCreateStringHandleW(), test_debug_children(), test_debug_heap(), test_debug_loop(), test_decode_msg_get_param(), test_decode_msg_update(), test_decodeAltName(), test_decodeAuthorityInfoAccess(), test_decodeAuthorityKeyId(), test_decodeAuthorityKeyId2(), test_decodeBasicConstraints(), test_decodeBits(), test_decodeCatMemberInfo(), test_decodeCatNameValue(), test_decodeCert(), test_decodeCertPolicies(), test_decodeCertPolicyConstraints(), test_decodeCertPolicyMappings(), test_decodeCertToBeSigned(), test_decodeCMSSignerInfo(), test_decodeCRLDistPoints(), test_decodeCRLIssuingDistPoint(), test_decodeCRLToBeSigned(), test_decodeCTL(), test_decodeEnhancedKeyUsage(), test_decodeEnumerated(), test_decodeExtensions(), test_decodeFiletime(), test_decodeInt(), test_decodeName(), test_decodeNameConstraints(), test_decodeNameValue(), test_decodeOctets(), test_decodePKCSAttribute(), test_decodePKCSAttributes(), test_decodePKCSContentInfo(), test_decodePKCSSignerInfo(), test_decodePKCSSMimeCapabilities(), test_decodePolicyQualifierUserNotice(), test_decodePublicKeyInfo(), test_decodeRsaPrivateKey(), test_decodeRsaPublicKey(), test_decodeSequenceOfAny(), test_decodeSPCFinancialCriteria(), test_decodeSPCLink(), test_decodeSPCPEImage(), test_decodeSpOpusInfo(), test_decodeUnicodeName(), test_decodeUnicodeNameValue(), test_default_dacl_owner_sid(), test_default_handle_security(), test_default_ime_window_creation(), test_default_service_port(), test_deferwindowpos(), test_DefineDosDeviceA(), test_delete_services(), test_deletecontext(), test_deletefile(), test_DeleteFileA(), test_DeleteFileW(), test_DeleteMonitor(), test_DeletePort(), test_DeletePwrScheme(), test_des(), Test_DesktopAccess(), test_destination_buffer(), test_destroy(), test_destroy_read(), test_DestroyCursor(), test_DestroyWindow(), test_detailed_info(), test_device_caps(), test_device_iface(), test_device_iface_detail(), test_device_info(), test_device_interface_key(), test_device_key(), test_devnode(), test_DialogBoxParam(), test_DialogCancel(), test_dialogmode(), test_dib_bits_access(), test_DIB_PAL_COLORS(), Test_Dibsection(), test_dibsections(), test_digit_substitution(), test_Directory(), test_DisconnectNamedPipe(), test_disk_extents(), test_dllredirect_section(), test_DnsFlushResolverCacheEntry_A(), test_DocumentProperties(), test_domain_password(), test_domdoc(), test_dpa(), test_dpi_context(), test_dpi_mapping(), test_dpi_window(), test_DrawState(), test_DrawTextCalcRect(), test_drive_letter_case(), test_driver_install(), test_drvCommConfigDialogA(), test_drvCommConfigDialogW(), test_drvGetDefaultCommConfigA(), test_drvGetDefaultCommConfigW(), test_DuplicateHandle(), test_dvd_read_structure(), Test_DWP_Error(), test_editselection(), test_editselection_focus(), test_EM_GETTEXTLENGTHEX(), test_EM_SCROLLCARET(), test_EM_SETOPTIONS(), test_emf_BitBlt(), test_emf_clipping(), test_emf_DCBrush(), test_emf_ExtTextOut_on_path(), test_emf_GradientFill(), test_emf_paths(), test_emf_polybezier(), test_emf_PolyPolyline(), test_emf_WorldTransform(), test_empty_headers_param(), Test_EmptyFile(), test_emptypopup(), test_EnableScrollBar(), test_encodeAltName(), test_encodeAuthorityInfoAccess(), test_encodeAuthorityKeyId(), test_encodeAuthorityKeyId2(), test_encodeBasicConstraints(), test_encodeBits(), test_encodeCatMemberInfo(), test_encodeCatNameValue(), test_encodeCert(), test_encodeCertPolicies(), test_encodeCertPolicyConstraints(), test_encodeCertPolicyMappings(), test_encodeCertToBeSigned(), test_encodeCMSSignerInfo(), test_encodeCRLDistPoints(), test_encodeCRLIssuingDistPoint(), test_encodeCRLToBeSigned(), test_encodeCTL(), test_encodeEnhancedKeyUsage(), test_encodeEnumerated(), test_encodeExtensions(), test_encodeInt(), test_encodeName(), test_encodeNameConstraints(), test_encodeNameValue(), test_encodeOctets(), test_encodePKCSAttribute(), test_encodePKCSAttributes(), test_encodePKCSContentInfo(), test_encodePKCSSignerInfo(), test_encodePKCSSMimeCapabilities(), test_encodePolicyQualifierUserNotice(), test_encodePublicKeyInfo(), test_encodeRsaPublicKey(), test_encodeSequenceOfAny(), test_encodeSPCFinancialCriteria(), test_encodeSPCLink(), test_encodeSPCPEImage(), test_encodeSpOpusInfo(), test_encodeUnicodeName(), test_encodeUnicodeNameValue(), test_encrypt_message(), test_end_browser_session(), test_enum_container(), test_enum_proc(), test_enum_provider_types(), test_enum_providers(), test_enum_sections(), test_enum_svc(), test_enum_value(), test_enum_vols(), test_EnumBuffer(), test_EnumColorProfilesA(), test_EnumColorProfilesW(), test_EnumDateFormatsA(), test_enumdesktops(), test_enumdisplaydevices_adapter(), test_EnumDisplaySettings(), test_EnumerateProviders(), test_EnumFontFamilies(), test_EnumForms(), test_EnumLanguageGroupLocalesA(), test_EnumMonitors(), test_EnumPorts(), test_EnumPrinterDrivers(), test_EnumPrinters(), test_EnumPrintProcessors(), test_EnumProcesses(), test_EnumProcessModules(), test_EnumPwrSchemes(), test_enumstations(), test_EnumSystemGeoID(), test_EnumSystemLanguageGroupsA(), test_EnumSystemLocalesEx(), test_EnumTimeFormatsA(), test_EnumTimeFormatsW(), test_EnumUILanguageA(), test_enveloped_msg_encoding(), test_enveloped_msg_open(), test_enveloped_msg_update(), test_EqualSid(), test_error_msg(), test_event(), test_event_security(), test_events(), Test_ExcludeClipRect(), test_ExitProcess(), test_ExpandEnvironmentStringsA(), test_ExtCreateRegion(), test_extension(), Test_ExtPen(), test_extra_block(), test_ExtractIcon(), test_ExtTextOut(), test_FakeDLL(), test_FDICopy(), test_FDICreate(), test_FDIIsCabinet(), test_ffcn(), test_ffcn_directory_overlap(), test_ffcnMultipleThreads(), test_FiberHandling(), test_FiberLocalStorage(), test_FiberLocalStorageCallback(), test_FiberLocalStorageWithFibers(), test_file_access(), test_file_completion_information(), test_file_disposition_information(), test_file_info(), test_file_link_information(), test_file_rename_information(), test_file_security(), test_file_sharing(), test_filemap_security(), test_filename(), test_filenames(), test_filepipeinfo(), test_FileSecurity(), test_filesourcefilter(), test_FileTimeToDosDateTime(), test_FileTimeToLocalFileTime(), test_FileTimeToSystemTime(), test_FillConsoleOutputAttribute(), test_FillConsoleOutputCharacterA(), test_FillConsoleOutputCharacterW(), test_find_com_redirection(), test_find_dll_redirection(), test_find_first_file(), test_find_ifaceps_redirection(), test_find_progid_redirection(), test_find_resource(), test_find_string_fail(), test_find_surrogate(), test_find_url_cache_entriesA(), test_find_window_class(), test_findAttribute(), test_FindCloseUrlCache(), test_findExtension(), test_FindFirstChangeNotification(), test_FindFirstFileA(), test_FindFirstFileExA(), test_FindFirstVolume(), test_FindNextFileA(), test_findRDNAttr(), test_findsectionstring(), test_FindWindowEx(), test_firstDay(), test_flags_NtQueryDirectoryFile(), test_FlashWindow(), test_FlashWindowEx(), test_flush_buffers_file(), test_FlushFileBuffers(), test_FolderShortcut(), test_FoldStringA(), test_FoldStringW(), Test_Font(), test_font_caps(), test_foregroundwindow(), test_format_object(), test_format_rect(), test_freed_hglobal(), test_fstype_fixup(), test_fullpath(), test_fullscreen(), test_gdi_objects(), test_GdiAlphaBlend(), test_GdiConvertToDevmodeW(), test_GdiGetCodePage(), test_GdiGradientFill(), test_gen_random(), Test_General(), test_generic(), test_get_atom_name(), test_get_certificate(), test_get_cookie(), test_get_current_dir(), test_get_default_provider(), test_get_device_instance_id(), test_get_digest_stream(), test_get_displayname(), test_get_inf_class(), test_get_input_report(), test_get_known_usages(), test_get_profiles_dir(), test_get_security_descriptor(), test_get_servicekeyname(), test_get_user_profile_dir(), test_get_wndproc(), test_GetActiveProcessorCount(), test_GetAutoRotationState(), test_GetBuffer(), test_GetCalendarInfo(), test_GetClassInfo(), Test_GetClipBox(), Test_GetClipRgn(), test_GetColorDirectoryA(), test_GetColorDirectoryW(), test_GetColorProfileElement(), test_GetColorProfileElementTag(), test_GetColorProfileFromHandle(), test_GetColorProfileHeader(), test_GetComputerName(), test_GetComputerNameExA(), test_GetComputerNameExW(), test_GetConsoleFontInfo(), test_GetConsoleFontSize(), test_GetConsoleProcessList(), test_GetConsoleScreenBufferInfoEx(), test_GetCountColorProfileElements(), test_GetCPInfo(), test_GetCurrencyFormatA(), test_GetCurrentConsoleFont(), Test_GetCurrentObject(), test_GetCurrentPowerPolicies(), test_GetCursorFrameInfo(), test_GetDateFormatA(), test_GetDateFormatEx(), test_GetDateFormatW(), test_getDefaultCryptProv(), test_getDefaultOIDFunctionAddress(), test_GetDefaultPrinter(), Test_GetDIBColorTable(), test_GetDIBits(), test_GetDIBits_BI_BITFIELDS(), test_GetDiskFreeSpaceA(), test_GetDiskFreeSpaceW(), test_GetDiskInfoA(), test_GetDisplayName(), test_GetDriveTypeA(), test_GetDriveTypeW(), test_GetExplicitEntriesFromAclW(), test_getfile(), test_GetFile(), test_getfile_no_open(), test_GetFileAttributesExW(), test_GetFileInformationByHandleEx(), test_GetFileVersionInfoEx(), test_GetFinalPathNameByHandleA(), test_GetFinalPathNameByHandleW(), test_GetFirmwareType(), test_GetFullPathNameA(), test_GetFullPathNameW(), test_GetGeoInfo(), test_GetGlyphOutline(), test_GetGlyphOutline_empty_contour(), test_GetGlyphOutline_metric_clipping(), test_GetICMProfileA(), test_GetICMProfileW(), test_GetKerningPairs(), test_GetKeyState(), test_GetLargestConsoleWindowSize(), test_GetLocaleInfoA(), test_GetLocaleInfoEx(), test_GetLocaleInfoW(), test_GetLogicalDriveStringsW(), test_GetLogicalProcessorInformationEx(), test_GetLongPathNameA(), test_GetLongPathNameW(), test_GetMappedFileName(), test_getmenubarinfo(), test_GetMenuItemRect(), Test_GetMessage(), test_GetModuleBaseName(), test_GetModuleFileNameEx(), test_GetModuleInformation(), test_GetMouseMovePointsEx(), test_GetNamedSecurityInfoA(), test_GetNumaProcessorNode(), test_GetNumberFormatA(), test_GetNumberFormatEx(), test_GetNumberOfConsoleInputEvents(), test_getObjectUrl(), test_GetOutlineTextMetrics(), test_GetPerformanceInfo(), test_GetPhysicallyInstalledSystemMemory(), test_GetPointerType(), test_GetPrinter(), test_GetPrinterData(), test_GetPrinterDataEx(), test_GetPrinterDriver(), test_GetPrinterDriverDirectory(), test_GetPrintProcessorDirectory(), test_GetPrivateProfileString(), test_getprocaddress(), test_GetProcessImageFileName(), test_GetProcessImageFileNameA(), test_GetProcessMemoryInfo(), test_GetProcessVersion(), test_GetProductInfo(), test_GetPwrCapabilities(), test_GetPwrDiskSpindownRange(), Test_GetRandomRgn_Params(), test_GetRawInputDeviceList(), test_GetScriptFontInfo(), test_GetSecurityInfo(), test_GetSetActivePwrScheme(), test_GetSetConsoleInputExeName(), test_GetSetEnvironmentVariableA(), test_GetSetEnvironmentVariableW(), test_GetSetStdHandle(), test_GetShellSecurityDescriptor(), test_GetShortPathNameW(), test_GetSidIdentifierAuthority(), test_GetSidSubAuthority(), test_GetStandardColorSpaceProfileA(), test_GetStandardColorSpaceProfileW(), Test_GetStockObject(), test_GetStringTypeW(), test_GetSysColorBrush(), test_GetSystemDirectory(), test_GetSystemDirectoryW(), Test_GetSystemMetrics(), test_GetSystemPreferredUILanguages(), test_GetTempFileNameA(), test_GetTempPathW(), test_gettext(), test_GetTextFace(), test_GetTextMetrics2(), test_GetThreadExitCode(), test_GetThreadPreferredUILanguages(), test_GetThreadTimes(), test_GetTimeFormatA(), test_GetTimeFormatEx(), test_GetTimeZoneInformation(), test_GetTimeZoneInformationForYear(), test_GetTokenInformation(), test_GetUpdatedClipboardFormats(), test_GetUpdateRect(), test_GetUrlCacheConfigInfo(), test_GetUrlCacheEntryInfoExA(), test_GetUserNameA(), test_GetUserNameW(), test_getuserobjectinformation(), test_GetUserPreferredUILanguages(), test_GetVersionEx(), test_GetVolumeInformationA(), test_GetVolumeNameForVolumeMountPointA(), test_GetVolumeNameForVolumeMountPointW(), test_GetVolumePathNameA(), test_GetVolumePathNamesForVolumeNameA(), test_GetVolumePathNamesForVolumeNameW(), test_GetVolumePathNameW(), test_GetWindowModuleFileName(), test_GetWindowsAccountDomainSid(), test_GetWindowsDirectory(), test_GetWindowsDirectoryW(), test_GetWindowTheme(), test_GLE(), test_GlobalAlloc(), test_group_equal(), test_Handles(), test_handles(), test_handles_process(), test_handles_process_dib(), test_handles_thread2(), test_hash_message(), test_hash_msg_encoding(), test_hash_msg_get_param(), test_hash_msg_open(), test_hash_msg_update(), test_hashes(), test_hatch_brush(), test_head_request(), test_header_handling_order(), test_header_override(), test_heap(), test_HeapQueryInformation(), test_height(), test_height_selection_vdmx(), test_hmac(), test_hotkey(), test_http_cache(), test_http_protocol_url(), test_http_status(), test_HttpQueryInfo(), test_HttpSendRequestW(), test_hv_scroll_1(), test_hv_scroll_2(), test_hwnd_message(), test_I_UpdateStore(), test_Icmp6CreateFile(), test_IcmpCloseHandle(), test_IcmpCreateFile(), test_IcmpSendEcho(), test_icon_info_dbg(), test_IdnToAscii(), test_IdnToNameprepUnicode(), test_IdnToUnicode(), test_IInitializeSpy(), test_image_mapping(), test_Image_StretchMode(), test_IME(), test_ImmDestroyContext(), test_ImmDestroyIMCC(), test_ImmGetContext(), test_ImmGetDescription(), test_ImmGetIMCLockCount(), test_ImmNotifyIME(), test_ImmSetCompositionString(), test_ImpersonateNamedPipeClient(), test_impersonation_level(), test_import_export(), test_import_hmac(), test_import_private(), test_import_resolution(), test_incorrect_api_usage(), test_inffilelist(), test_inffilelistA(), test_info(), test_info_in_assembly(), test_info_size(), test_ini_values(), test_initial_cursor(), test_InitializePrintMonitor(), test_InitializePrintMonitor2(), test_initonce(), test_InitPathA(), test_Input_mouse(), test_inputdesktop(), test_inputdesktop2(), test_InSendMessage(), test_install_class(), test_install_from(), test_install_svc_from(), test_InstallColorProfileA(), test_InstallColorProfileW(), test_Installer_RegistryValue(), test_installOIDFunctionAddress(), test_instances(), test_internet_features(), test_internet_features_registry(), test_InternetCanonicalizeUrlA(), test_InternetCloseHandle(), test_InternetErrorDlg(), test_InternetQueryOptionA(), test_InternetSetOption(), test_interthread_messages(), test_invalid_callbackA(), test_invalid_callbackW(), test_invalid_files(), test_invalid_parametersA(), test_invalid_parametersW(), test_invalid_response_headers(), test_invalid_window(), test_InvalidIMC(), test_invariant(), test_iocp_callback(), test_ip_pktinfo(), test_IsColorProfileTagPresent(), test_IsDomainLegalCookieDomainW(), test_IsProcessInJob(), test_IsThemed(), test_IsUrlCacheEntryExpiredA(), test_ITEMIDLIST_format(), test_items(), test_ITextDocument_Open(), test_jobInheritance(), test_junction_points(), test_kernel_objects_security(), test_key_derivation(), test_key_initialization(), test_key_names(), test_key_permissions(), test_keyboard_layout_name(), test_keyed_events(), test_KillOnJobClose(), test_large_content(), test_large_data_authentication(), test_layered_window(), test_LBS_NODATA(), test_lcmapstring_unicode(), test_LCMapStringA(), test_LCMapStringEx(), test_LCMapStringW(), test_LdrRegisterDllNotification(), test_listbox_dlgdir(), test_listbox_LB_DIR(), test_listbox_size(), test_lnks(), test_load_save(), test_Loader(), test_LoadFunctionPointers(), test_LoadIconWithScaleDown(), test_LoadImage(), test_LoadImage_working_directory(), test_LoadImage_working_directory_run(), test_LoadImageFile(), test_LoadLibraryEx_search_flags(), test_LoadRegTypeLib(), test_LoadStringA(), test_LoadStringW(), test_local_add_atom(), test_local_get_atom_name(), test_local_server(), test_LocalAlloc(), test_LocaleNameToLCID(), test_LocalizedNames(), test_LockFile(), Test_LockUnlockServiceDatabase(), Test_LockUnlockServiceDatabaseWithServiceStart(), test_logpen(), test_long_url(), test_LookupAccountName(), test_LookupAccountSid(), test_lookupPrivilegeName(), test_lookupPrivilegeValue(), test_lsa(), test_LZCopy(), test_LZOpenFileA(), test_LZOpenFileA_nonexisting_compressed(), test_LZOpenFileW(), test_LZOpenFileW_nonexisting_compressed(), test_LZRead(), test_mac(), test_machine_guid(), test_makecurrent(), test_map_points(), test_MapFile(), test_mapping(), test_MapViewOfFile(), test_MatchApplications(), test_MatchApplicationsEx(), test_max_conns(), test_maximum_allowed(), test_mbs_help(), test_MDI_create(), test_menu_add_string(), test_menu_bmp_and_string(), test_menu_cancelmode(), test_menu_circref(), test_menu_getmenuinfo(), test_menu_hilitemenuitem(), test_menu_locked_by_window(), test_menu_maxdepth(), test_menu_messages(), test_menu_ownerdraw(), test_menu_resource_layout(), test_menu_setmenuinfo(), test_menu_trackagain(), test_menu_trackpopupmenu(), test_menualign(), test_message_allocate_buffer(), test_message_allocate_buffer_wide(), test_message_conversion(), test_message_from_hmodule(), test_message_from_string(), test_message_from_string_wide(), test_message_ignore_inserts(), test_message_ignore_inserts_wide(), test_message_insufficient_buffer(), test_message_insufficient_buffer_wide(), test_message_invalid_flags(), test_message_invalid_flags_wide(), test_message_null_buffer(), test_message_null_buffer_wide(), test_message_window(), test_messages(), Test_MetaDC(), test_metrics_for_dpi(), test_mf_Blank(), test_mf_clipping(), test_mf_DCBrush(), test_mf_ExtTextOut_on_path(), test_mf_GetPath(), test_mf_Graphics(), test_mf_PatternBrush(), test_mf_SaveDC(), test_mhtml_protocol_binding(), test_minimized(), test_mmioSeek(), test_mono_1x1_bmp_dbg(), test_monochrome_icon(), test_MoveFileA(), test_MoveFileW(), test_mru(), test_MRUListA(), test_msg_close(), test_msg_control(), test_msg_get_and_verify_signer(), test_msg_get_param(), test_msg_get_signer_count(), test_msg_open_to_decode(), test_msg_open_to_encode(), test_MsgWaitForMultipleObjects(), test_MsiQueryComponentState(), test_MsiQueryFeatureState(), test_MsiQueryProductState(), test_msirecord(), test_multi_authentication(), test_multiple_reads(), test_multithreaded_clipboard(), test_mutex(), test_mutex_security(), test_name_collisions(), test_named_pipe_security(), test_NamedPipe_2(), test_NamedPipeHandleState(), test_namespace_pipe(), test_negative_dest_length(), test_negative_source_length(), test_negative_width(), test_NetFwAuthorizedApplication(), test_NhGetInterfaceNameFromDeviceGuid(), test_NhGetInterfaceNameFromGuid(), test_no_cache(), test_no_content(), test_no_headers(), test_no_stop(), test_nonalertable(), test_nonole_clipboard(), test_normal_imports(), test_not_modified(), test_note(), test_notification_dbg(), test_notify(), test_notify_message(), test_NtAreMappedFilesTheSame(), Test_NtGdiAddFontResourceW(), Test_NtGdiCreateBitmap_Params(), Test_NtGdiDoPalette_GdiPalAnimate(), Test_NtGdiDoPalette_GdiPalSetEntries(), test_NtQueryDirectoryFile_case(), test_NtQuerySection(), test_NtSuspendProcess(), Test_NtUserSystemParametersInfo_Params(), Test_NtUserSystemParametersInfo_Winsta(), test_null(), test_null_auth_data(), test_null_device(), test_null_provider(), test_null_source(), test_obsolete_flags(), test_offset_in_overlapped_structure(), Test_OffsetClipRgn(), test_oidFunctionSet(), test_ok(), test_oldest(), test_open_class_key(), test_open_close(), test_open_scm(), test_open_svc(), test_open_url_async(), test_openbackup(), test_OpenColorProfileA(), test_OpenColorProfileW(), test_OpenComm(), test_OpenCON(), test_OpenConsoleW(), test_openfile(), test_OpenFile(), test_OpenFileById(), test_opengl3(), Test_OpenInputDesktop(), test_OpenPort(), test_OpenPrinter(), test_OpenPrinter_defaults(), test_OpenProcess(), test_OpenThemeData(), test_OpenThemeDataEx(), test_options(), test_ordinal_imports(), test_original_file_name(), test_other_invalid_parameters(), test_outline_font(), test_overlapped(), test_overlapped_buffers(), test_overlapped_error(), test_overlapped_transport(), test_overwrite(), test_owner_equal(), test_ownerdraw(), test_PageSetupDlgA(), test_paint_messages(), test_paintingloop(), Test_Palette(), test_parameters(), test_parametersEx(), Test_Params(), test_params(), test_parent_owner(), test_ParseDisplayName(), test_ParseDisplayNamePBC(), test_passport_auth(), test_path_state(), test_PathAddBackslash(), test_PathAppendA(), test_PathBuildRootA(), test_PathCanonicalizeA(), test_PathCombineA(), test_PathCommonPrefixA(), test_PathFindExtensionA(), test_PathGetDriveNumber(), test_PathUnExpandEnvStrings(), test_pe_checksum(), Test_PeekMessage(), test_PeekMessage(), Test_Pen(), test_pfd(), test_play(), test_polydraw(), test_PostMessage(), test_Predefined(), test_premature_disconnect(), test_PrintDlgA(), test_PrintDlgExW(), test_PrivateObjectSecurity(), test_process_access(), test_process_security(), test_process_security_child(), test_ProcThreadAttributeList(), test_profile_delete_on_close(), test_profile_directory_readonly(), test_profile_existing(), test_profile_items(), test_profile_refresh(), test_profile_sections(), test_profile_sections_names(), test_properties(), test_prov(), test_proxy_direct(), test_proxy_indirect(), test_ps_alternate(), test_ps_userstyle(), test_pSetupGetField(), test_pseudo_tokens(), test_publish(), test_putfile(), test_query_dos_deviceA(), test_query_handle(), test_query_handle_ex(), test_query_logicalprocex(), test_query_object(), test_query_process_debug_flags(), test_query_process_debug_object_handle(), test_query_process_debug_port(), test_query_process_handlecount(), test_query_process_priority(), test_query_process_times(), test_query_process_vm(), test_query_svc(), test_queryconfig2(), test_QueryDosDeviceA(), test_QueryFullProcessImageNameA(), test_QueryFullProcessImageNameW(), test_QueryInformationJobObject(), Test_QueryLockStatusA(), Test_QueryLockStatusW(), Test_QueryServiceConfig2A(), Test_QueryServiceConfig2W(), test_QueueUserWorkItem(), test_quit_message(), Test_RawSize(), test_rc2(), test_rc2_keylen(), test_rc4(), test_read(), test_Read(), test_read_device(), test_read_write(), test_ReadAll(), test_ReadConsole(), test_ReadConsoleOutputAttribute(), test_ReadConsoleOutputCharacterA(), test_ReadConsoleOutputCharacterW(), test_readdirectorychanges(), test_readdirectorychanges_cr(), test_readdirectorychanges_filedir(), test_readdirectorychanges_null(), test_ReadFile(), test_readfileex_pending(), test_ReadGlobalPwrPolicy(), test_ReadProcessorPwrScheme(), test_ReadPwrScheme(), test_ReadTimeOut(), test_readwrite(), Test_RealGetWindowClass(), test_RealizationInfo(), test_reconnect(), test_recordWAVE(), test_redirect(), test_redrawnow(), test_refcount(), test_reg_create_key(), test_reg_open_key(), test_reg_query_value(), test_regconnectregistry(), Test_Region(), test_register_device_iface(), test_register_device_info(), test_RegisterClipboardFormatA(), test_registerDefaultOIDFunction(), test_registered_object_thread_affinity(), test_registerOIDFunction(), test_registerOIDInfo(), test_RegisterRawInputDevices(), test_RegisterWaitForSingleObject(), test_registry(), test_registry_property_a(), test_registry_property_w(), test_RegNotifyChangeKeyValue(), test_RegOpenCurrentUser(), test_RegPolicyFlags(), test_relative_path(), test_RemoteDebugger(), test_remove_certificate(), test_remove_dot_segments(), test_removedir(), test_RemoveDirectory(), test_RemoveDirectoryA(), test_RemoveDirectoryW(), test_renamefile(), test_render_run(), test_ReplaceFileA(), test_ReplaceFileW(), test_request_content_length(), test_request_parameter_defaults(), test_request_path_escapes(), test_reserved_tls(), test_resolve_timeout(), test_ResolveDelayLoadedAPI(), test_response_without_headers(), test_retrieveObjectByUrl(), test_RetrieveUrlCacheEntryA(), test_rsa_encrypt(), test_rsa_round_trip(), test_RtlCompressBuffer(), test_RtlIsCriticalSectionLocked(), test_RtlQueryPackageIdentity(), test_RtlQueryTimeZoneInformation(), test_RtlQueueWorkItem(), test_RtlRegisterWait(), test_runlevel_info(), test_runner(), test_save(), test_SaveDC(), Test_SaveRestore(), test_saxreader(), test_saxreader_encoding(), test_schannel_provider(), test_scroll_messages(), test_SearchPathA(), test_SearchPathW(), test_section_access(), test_section_names(), Test_SectionContents(), test_secure_connection(), test_security_descriptor(), test_security_flags(), test_security_info(), test_select(), test_selection(), test_semaphore(), test_semaphore_security(), test_SendMessage_other_thread(), test_sequence(), test_service(), test_servicenotify(), test_Session(), test_session_info(), Test_Set(), test_set_clipboard_DRAWCLIPBOARD(), test_set_coop(), test_set_count(), test_set_default_proxy_config(), test_set_getsockopt(), test_set_hook(), test_set_provider_ex(), test_set_value(), test_setborder(), test_SetColorProfileElement(), test_SetColorProfileHeader(), test_SetConsoleFont(), test_SetCurrentDirectoryA(), test_SetCursor(), Test_SetDCPenColor(), test_SetDefaultDllDirectories(), test_SetDefaultPrinter(), test_SetDIBits_RLE8(), test_SetDIBitsToDevice_RLE8(), test_SetEnhMetaFileBits(), test_SetEntriesInAclA(), test_SetEntriesInAclW(), test_SetFileInformationByHandle(), test_SetFileValidData(), test_SetFocus(), test_SetForegroundWindow(), test_SetICMMode(), test_SetICMProfileA(), test_SetICMProfileW(), test_SetLocaleInfoA(), test_SetMenu(), test_SetMetaFileBits(), Test_SetPixel_PAL(), test_setpixelformat(), test_SetScrollPos(), test_SetSearchPathMode(), test_SetSecurityDescriptorControl(), Test_SetSysColors(), test_SetupAddInstallSectionToDiskSpaceListA(), test_SetupAddSectionToDiskSpaceListA(), test_SetupAddToDiskSpaceListA(), test_SetupCopyOEMInf(), test_SetupCreateDiskSpaceListA(), test_SetupCreateDiskSpaceListW(), test_SetupDiBuildClassInfoList(), test_SetupDiClassGuidsFromNameA(), test_SetupDiClassNameFromGuidA(), test_SetupDiGetClassDescriptionA(), test_SetupDiGetClassDevsA(), test_SetupDiInstallClassExA(), test_SetupDiOpenClassRegKeyExA(), test_SetupDuplicateDiskSpaceListA(), test_SetupDuplicateDiskSpaceListW(), test_SetupGetInfInformation(), test_SetupGetIntField(), test_SetupGetSourceFileLocation(), test_SetupInstallServicesFromInfSectionExA(), test_SetupInstallServicesFromInfSectionExW(), test_SetupLogError(), test_SetupQueryDrivesInDiskSpaceListA(), test_SetupQuerySpaceRequiredOnDriveA(), test_SetupQuerySpaceRequiredOnDriveW(), test_SetupUninstallOEMInf(), test_SetWindowLong(), test_SetWindowPos(), test_sh_new_link_info(), test_sh_path_prepare(), test_sha2(), test_shared_memory(), test_shared_memory_ro(), test_SHChangeNotify(), test_SHCreateShellItem(), test_SHCreateShellItemArray(), test_SHCreateStreamOnFileA(), test_SHCreateStreamOnFileEx(), test_SHCreateStreamOnFileEx_CopyTo(), test_SHCreateStreamOnFileW(), test_shell_window(), test_ShellWindows(), test_SHFormatDateTimeA(), test_SHFormatDateTimeW(), test_SHGetFolderPathAndSubDirA(), test_SHGetIniString(), test_SHGetPathFromIDList(), test_SHGetShellKey(), test_shortcut(), test_ShortPathCase(), test_ShowWindow(), test_SHParseDisplayName(), test_SHSetWindowBits(), test_SHSimpleIDListFromPath(), test_sid(), test_sid_str(), test_Sign_Media(), test_sign_message(), test_signalandwait(), test_signed_msg_encoding(), test_signed_msg_get_param(), test_signed_msg_open(), test_signed_msg_update(), test_simple_enumerationW(), test_simpleroundtrip(), test_sip(), test_sip_create_indirect_data(), test_SIPLoad(), test_SIPRetrieveSubjectGUID(), test_smresult(), test_solidbrush(), test_SPI_ICONHORIZONTALSPACING(), test_SPI_ICONVERTICALSPACING(), test_SPI_SETBEEP(), test_SPI_SETBORDER(), Test_SPI_SETDESKWALLPAPER(), test_SPI_SETDOUBLECLICKTIME(), test_SPI_SETDOUBLECLKHEIGHT(), test_SPI_SETDOUBLECLKWIDTH(), test_SPI_SETDRAGFULLWINDOWS(), test_SPI_SETFONTSMOOTHING(), test_SPI_SETICONMETRICS(), test_SPI_SETICONTITLEWRAP(), test_SPI_SETKEYBOARDDELAY(), test_SPI_SETKEYBOARDPREF(), test_SPI_SETKEYBOARDSPEED(), test_SPI_SETLOWPOWERACTIVE(), test_SPI_SETMENUDROPALIGNMENT(), test_SPI_SETMENUSHOWDELAY(), test_SPI_SETMINIMIZEDMETRICS(), test_SPI_SETMOUSE(), test_SPI_SETMOUSEBUTTONSWAP(), test_SPI_SETMOUSEHOVERHEIGHT(), test_SPI_SETMOUSEHOVERTIME(), test_SPI_SETMOUSEHOVERWIDTH(), test_SPI_SETNONCLIENTMETRICS(), test_SPI_SETPOWEROFFACTIVE(), test_SPI_SETSCREENREADER(), test_SPI_SETSCREENSAVEACTIVE(), test_SPI_SETSCREENSAVETIMEOUT(), test_SPI_SETSHOWSOUNDS(), test_SPI_SETSNAPTODEFBUTTON(), test_SPI_SETWALLPAPER(), test_SPI_SETWHEELSCROLLCHARS(), test_SPI_SETWHEELSCROLLLINES(), test_SPI_SETWORKAREA(), test_SplInitializeWinSpoolDrv(), test_start_stop(), test_start_stop_services(), test_startA(), test_startW(), test_status_callbacks(), test_stdio(), test_stop_wait_for_call(), test_storage_stream(), test_strength(), test_string_conversion(), test_string_data(), test_string_data_process(), test_StringFromGUID2(), test_subclass(), test_subpopup_locked_by_menu(), test_successive_HttpSendRequest(), test_SuspendThread(), test_swap_control(), test_SxsLookupClrGuid(), test_SymFromAddr(), test_SymRegCallback(), test_synthesized(), test_sys_menu(), test_system_menu(), test_system_security_access(), test_SystemFunction036(), test_TabbedText(), test_TagRef(), test_TerminateJobObject(), test_TerminateProcess(), test_text_extents(), test_text_metrics(), test_texture_qi(), test_thick_child_size(), test_thread_actctx(), test_thread_objects(), test_thread_priority(), test_thread_processor(), test_thread_security(), test_thread_start_address(), test_threadcp(), test_ThreadErrorMode(), test_threadpool(), test_timeouts(), test_timer_queue(), test_timers_no_wnd(), test_token_attr(), test_token_label(), test_token_security_descriptor(), test_TokenIntegrityLevel(), test_Toolhelp(), test_ToUnicode(), test_tp_group_cancel(), test_tp_group_wait(), test_tp_simple(), test_tp_timer(), test_tp_window_length(), test_TrackMouseEvent(), test_TrackPopupMenu(), test_TrackPopupMenuEmpty(), test_trailing_slash(), test_TransformWithLoadingLocalFile(), Test_Truncate(), test_typelib_section(), test_undefined_byte_char(), test_undo_coalescing(), test_unicode(), test_unicode_conversions(), test_UninstallColorProfileA(), test_UninstallColorProfileW(), test_urlcacheA(), test_urlcacheW(), test_UrlCanonicalizeA(), test_UrlCanonicalizeW(), test_URLDownloadToFile(), test_user_agent_header(), test_utf7_decoding(), test_utf7_encoding(), test_utils(), test_ValidatePowerPolicies(), test_ValidatePowerPolicies_Next(), test_ValidatePowerPolicies_Old(), test_ValidPathA(), test_VarWeekdayName(), test_verify_detached_message_hash(), test_verify_detached_message_signature(), test_verify_message_hash(), test_verify_message_signature(), test_verify_sig(), test_verify_signature(), test_VerifyConsoleIoHandle(), test_verifyRevocation(), test_VerifyVersionInfo(), test_VerQueryValue_InvalidLength(), test_VerQueryValueA(), test_version(), test_vertical_font(), test_VirtualAlloc(), test_VirtualAlloc_protection(), test_VirtualAllocEx(), test_VirtualProtect(), test_waitable_timer(), test_WaitBreak(), test_WaitCommEvent(), test_WaitCts(), test_WaitDcd(), test_WaitDsr(), test_WaitForInputIdle(), test_WaitForJobObject(), test_WaitForMultipleObjects(), test_WaitForSingleObject(), test_WaitRing(), test_WaitRx(), test_waittxempty(), test_WICCreateBitmapFromSectionEx(), test_widenpath(), test_window_classes(), test_window_dc(), test_winevents(), test_WinHttpAddHeaders(), test_WinHttpDetectAutoProxyConfigUrl(), test_WinHttpGetIEProxyConfigForCurrentUser(), test_WinHttpGetProxyForUrl(), test_WinHttpOpenRequest(), test_WinHttpQueryOption(), test_WinHttpSendRequest(), test_WinHttpTimeFromSystemTime(), test_WinHttpTimeToSystemTime(), test_winproc_handles(), test_winproc_limit(), test_winregion(), test_winstation(), test_wintrust_digest(), test_WM_CHAR(), test_WM_CREATE(), test_WM_DEVICECHANGE(), test_WM_GETDLGCODE(), test_WM_LBUTTONDOWN(), test_wm_notifyformat(), test_wm_set_get_text(), test_WM_SETTEXT(), test_wndclass_section(), test_wndproc(), test_word_wrap(), test_work_area(), test_world_transform(), test_write_watch(), test_WriteConsoleInputA(), test_WriteConsoleInputW(), test_WriteConsoleOutputAttribute(), test_WriteConsoleOutputCharacterA(), test_WriteConsoleOutputCharacterW(), test_WriteFileGather(), test_WriteLine(), test_WritePrivateProfileString(), test_ws_functions(), test_WS_VSCROLL(), test_WTSEnumerateProcessesW(), test_WTSQuerySessionInformationW(), test_WTSQueryUserToken(), test_XcvClosePort(), test_XcvDataPort_AddPort(), test_XcvDataPort_ConfigureLPTPortCommandOK(), test_XcvDataPort_DeletePort(), test_XcvDataPort_GetTransmissionRetryTimeout(), test_XcvDataPort_MonitorUI(), test_XcvDataPort_PortIsValid(), test_XcvDataW_MonitorUI(), test_XcvDataW_PortIsValid(), test_XcvOpenPort(), test_ZombifyActCtx(), testAcquireCertPrivateKey(), testAcquireSecurityContext(), testAddCert(), testAddCertificateLink(), testAddCRL(), testAddCTLToStore(), testAddSerialized(), testAlgIDToOID(), testCertEnumSystemStore(), testCertOpenSystemStore(), testCertProperties(), testCertRegisterSystemStore(), testCertSigs(), TestClassRedirection(), testCloseStore(), testCollectionStore(), testCompareCertName(), testComparePublicKeyInfo(), testCreateCert(), testCreateCertChainEngine(), testCreateCRL(), testCreateCTL(), testCreateSelfSignCert(), testCRLProperties(), testCryptHashCert(), testCTLProperties(), testCtrlHandler(), testCursor(), testCursorInfo(), testDupCert(), testEmptyStore(), TestEntry(), TestEnumFontFamilies(), testExportPublicKey(), TestFileFsDeviceInformation(), testFileNameStore(), testFileStore(), testFindCert(), testFindCertInCRL(), testFindCRL(), testGetCertChain(), TestGetComputerNameEx(), testGetComputerObjectNameA(), testGetComputerObjectNameW(), testGetCRLFromStore(), TestGetCurrentDirectoryA(), TestGetCurrentDirectoryW(), testGetIssuerCert(), testGetModuleFileName(), testGetModuleHandleEx(), testGetProcAddress_Wrong(), testGetPublicKeyLength(), testGetSubjectCert(), testGetUserNameExA(), testGetUserNameExW(), TestGetUserObjectInfoW(), testGetValidUsages(), TestGetVolumeInformationA(), TestGetVolumeInformationW(), TestGlobalLockNUnlock(), testHashPublicKeyInfo(), testHashToBeSigned(), testIcmpSendEcho(), testImportPublicKey(), testInit(), testIntendedKeyUsage(), testIsRDNAttrsInCertificateName(), testIsValidCRLForCert(), testKeyboardLayouts(), testKeyUsage(), TestKM(), TestKs(), testLayout(), TestLibDependency(), testLinkCert(), testLoadLibraryA(), testLoadLibraryA_Wrong(), testLoadLibraryEx(), TestManualInstantiation(), testMemStore(), testMessageStore(), TestMyEventProvider(), testNotifyAddrChange(), TestPrivMoveFileIdentityW(), TestRead(), TestRecursiveInterThreadMessages(), testRegStore(), testRegStoreSavedCerts(), TestReturnValues(), testScreenBuffer(), testScroll(), testSerializedStore(), TestSetAndGetExtraFormat(), testSetupDiGetClassDevsA(), testSignAndEncodeCert(), testSignCert(), testStoreProperty(), testStoresInCollection(), testStringToBinaryA(), testSystemRegStore(), testSystemStore(), testTimeDecoding(), testTimeEncoding(), testVerifyCertChainPolicy(), testVerifyCertSig(), testVerifyCertSigEx(), testVerifyCRLRevocation(), testVerifyRevocation(), testVerifySubjectCert(), testWaitForConsoleInput(), TestWrite(), textstream_read(), textstream_writecrlf(), textstream_writestr(), ThemeServiceMain(), THEMING_Initialize(), ThirdPartyVDDBop(), BtrfsSend::Thread(), thread(), thread_actctx_func(), thread_main(), thread_proc(), CDownloadManager::ThreadFunc(), ThreadShutdownNotify(), TIME_MMSysTimeThread(), timer_queue_cb2(), timer_queue_cb6(), TimerCallback1(), tirpc_report(), TLB_ReadTypeLib(), tmpnam(), toggle_ctlLine(), trace_extended_error(), CTrayWindow::TrackCtxMenu(), transfer_file_local(), TranslateStatus(), TRASH_CanTrashFile(), try_start_stop(), TryToLockOrUnlockDrive(), TV1_GetDependants(), TV2_GetDependants(), TV2_HasDependantServices(), UDFPhReadSynchronous(), UDFPhSendIOCTL(), UDFPhWriteSynchronous(), UManStartDlg(), UndocumentedMethod(), Uninitialize(), uninstall_assembly(), Unlink(), UnloadUserProfile(), UnlockFile(), update_empty_exe(), update_missing_exe(), update_resources_bigdata(), update_resources_version(), CAppDB::UpdateAvailable(), UpdateDevicesListViewControl(), UpdateDevInfo(), UpdateDriverForPlugAndPlayDevicesW(), UpdateImageInfo(), UpdateStatus(), UpdateSystemTime(), BtrfsScrub::UpdateTextBox(), FxInterruptThreadpool::UpdateThreadPoolThreadLimits(), urlcache_delete_file(), User32CreateWindowEx(), UsermodeMethod(), UserpShowInformationBalloon(), utf16_to_utf8(), utf8_to_utf16(), Utf8Convert_(), UXTHEME_DrawBackgroundFill(), UXTHEME_DrawBorderRectangle(), UXTHEME_DrawImageBackground(), UXTHEME_DrawImageGlyph(), UXTHEME_LoadImage(), UXTHEME_LoadTheme(), UXTHEME_SetWindowProperty(), validate_default_security_descriptor(), validate_impersonation_token(), validate_signature(), variant_from_registry_value(), VarMonthName(), VarWeekdayName(), verify_cert_revocation_from_aia_ext(), verify_cert_revocation_from_dist_points_ext(), verifySig(), VerInstallFileA(), VersionRegisterClass(), VfdBroadcastLink(), VfdCheckDriverFile(), VfdCheckImageFile(), VfdCloseImage(), VfdConfigDriver(), VfdCreateImageFile(), VfdDismountVolume(), VfdFormatMedia(), VfdGetDeviceName(), VfdGetDeviceNumber(), VfdGetDriverConfig(), VfdGetDriverState(), VfdGetDriverVersion(), VfdGetGlobalLink(), VfdGetImageInfo(), VfdGetLocalLink(), VfdGetMediaState(), VfdGuiClose(), VfdGuiFormat(), VfdGuiOpen(), VfdGuiSave(), VfdImageTip(), VfdInstallDriver(), VfdOpenDevice(), VfdOpenImage(), VfdRemoveDriver(), VfdSaveImage(), VfdSetGlobalLink(), VfdSetLocalLink(), VfdStartDriver(), VfdStopDriver(), VfdWriteProtect(), VgaEnterNewMode(), VirtualTest(), VolumeInfoMain(), W32TmServiceMain(), WahCloseThread(), WahCreateSocketHandle(), WahDisableNonIFSHandleSupport(), WahOpenCurrentThread(), WahOpenHandleHelper(), WahQueueUserApc(), wait_async_request(), wait_for_completion(), WaitForLsass(), WaitForSCManager(), WaitForService(), WatchDirectory(), CIconWatcher::WatcherThread(), WAVE_mciSave(), WDML_ClientHandle(), well_known_sid(), wgl_thread(), WhoamiGetTokenInfo(), WICCreateBitmapFromSectionEx(), win32_read_file_func(), win32_seek64_file_func(), win32_seek_file_func(), win32_tell64_file_func(), win32_tell_file_func(), Win32_Tests(), win32_write_file_func(), WindowThreadProc(), wined3d_adapter_init(), wined3d_caps_gl_ctx_create_attribs(), wined3d_caps_gl_ctx_destroy(), wined3d_dll_destroy(), wined3d_dll_init(), wined3d_get_adapter_identifier(), wined3d_release_dc(), wined3d_swapchain_resize_buffers(), wined3d_swapchain_update_swap_interval_cs(), WinExec(), winhttp_request_get_Status(), winhttp_request_get_StatusText(), winhttp_request_GetAllResponseHeaders(), winhttp_request_GetResponseHeader(), winhttp_request_Open(), winhttp_request_Send(), winhttp_request_SetCredentials(), winhttp_request_SetRequestHeader(), WinHttpCrackUrl_test(), WinHttpCreateUrl_test(), WinMain(), WINTRUST_CertVerify(), WINTRUST_CertVerifyObjTrust(), WINTRUST_CopyChain(), WINTRUST_CreateChainForSigner(), WINTRUST_DefaultVerify(), WINTRUST_GetSignedMsgFromPEFile(), WINTRUST_SaveSigner(), WINTRUST_VerifySigner(), WlanOpenHandle_test(), WlanScan(), WlxScreenSaverNotify(), WlxStartApplication(), wmain(), WndProc(), WNetGetNetworkInformationA(), WNetGetUserA(), WNetGetUserW(), write_buffer_to_file(), write_data(), write_file(), write_manifest(), write_post_stream(), write_raw_file(), write_to_file(), WriteFileEx_Remixer(), WriteJobShadowFile(), WriteMinidump(), WritePrinter(), WriteSdbFile(), WriteVolumeSector(), WSAGetLastError(), WSALookupServiceNextA(), WsAsyncGetHost(), WsAsyncGetProto(), WsAsyncGetServ(), WshExec_create(), WshExec_get_Status(), WSHIoctl_GetInterfaceList(), WshShell3_ExpandEnvironmentStrings(), WshShell3_get_CurrentDirectory(), WshShell3_put_CurrentDirectory(), WshShell3_Run(), WsNqLookupServiceBegin(), WsNqLookupServiceNext(), WSPIoctl(), wsprintfATest(), wsprintfWTest(), WTSQuerySessionInformationW(), wWinMain(), XCOPY_CreateDirectory(), XCOPY_DoCopy(), XCOPY_FailMessage(), XCOPY_LoadMessage(), XCOPY_ProcessDestParm(), XCOPY_ProcessSourceParm(), XCOPY_wprintf(), and YGetPrinterDriver2().

◆ GetLengthSid()

◆ GetLocalTime()

void WINAPI GetLocalTime ( LPSYSTEMTIME  )

◆ GetLogicalDrives()

DWORD WINAPI GetLogicalDrives ( void  )

Definition at line 110 of file disk.c.

111{
113 PROCESS_DEVICEMAP_INFORMATION ProcessDeviceMapInfo;
114
115 /* Get the Device Map for this Process */
118 &ProcessDeviceMapInfo.Query,
119 sizeof(ProcessDeviceMapInfo.Query),
120 NULL);
121
122 /* Return the Drive Map */
123 if (!NT_SUCCESS(Status))
124 {
126 return 0;
127 }
128
129 if (ProcessDeviceMapInfo.Query.DriveMap == 0)
130 {
132 }
133
134 return ProcessDeviceMapInfo.Query.DriveMap;
135}
@ ProcessDeviceMap
Definition: winternl.h:879
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
Definition: query.c:59
struct _PROCESS_DEVICEMAP_INFORMATION::@4170::@4172 Query

Referenced by _getdrives(), create_drivecoll(), DrivesMain(), fill_cdromdrive(), fill_datafile(), fill_directory(), fill_diskdrive(), fill_diskpartition(), fill_logicaldisk(), FindOtherDrive(), get_empty_cddrive(), GetLogicalDriveStringsA(), GetLogicalDriveStringsW(), InitDialog(), CDrivesFolderEnum::Initialize(), InitializeRecycleBinDlg(), CDrivesFolder::ParseDisplayName(), PrepareFoldersToScan(), RecycleBinGeneric_RecycleBin_EmptyRecycleBin(), RecycleBinGenericEnum_RecycleBinEnumList_Reset(), search_absolute_directory(), search_directory(), START_TEST(), test_cdrom_ioctl(), test_DefineDosDeviceA(), test_GetDiskFreeSpaceA(), test_GetDiskFreeSpaceW(), test_GetDriveTypeA(), test_GetDriveTypeW(), test_InitPathA(), test_Sign_Media(), VfdChooseLetter(), VfdGetLocalLink(), VfdSetGlobalLink(), and VfdSetLocalLink().

◆ GetLogicalDriveStringsW()

DWORD WINAPI GetLogicalDriveStringsW ( DWORD  ,
LPWSTR   
)

◆ GetMailslotInfo()

BOOL WINAPI GetMailslotInfo ( _In_  HANDLE,
_Out_opt_  PDWORD,
_Out_opt_  PDWORD,
_Out_opt_  PDWORD,
_Out_opt_  PDWORD 
)

◆ GetModuleFileNameA()

DWORD WINAPI GetModuleFileNameA ( HINSTANCE  hModule,
LPSTR  lpFilename,
DWORD  nSize 
)

Definition at line 539 of file loader.c.

542{
543 UNICODE_STRING FilenameW;
544 ANSI_STRING FilenameA;
546 DWORD Length = 0, LengthToCopy;
547
548 /* Allocate a unicode buffer */
549 FilenameW.Buffer = RtlAllocateHeap(RtlGetProcessHeap(), 0, nSize * sizeof(WCHAR));
550 if (!FilenameW.Buffer)
551 {
553 return 0;
554 }
555
556 /* Call unicode API */
557 FilenameW.Length = (USHORT)GetModuleFileNameW(hModule, FilenameW.Buffer, nSize) * sizeof(WCHAR);
558 FilenameW.MaximumLength = FilenameW.Length + sizeof(WCHAR);
559
560 if (FilenameW.Length)
561 {
562 /* Convert to ansi string */
563 Status = BasepUnicodeStringTo8BitString(&FilenameA, &FilenameW, TRUE);
564 if (!NT_SUCCESS(Status))
565 {
566 /* Set last error, free string and return failure */
568 RtlFreeUnicodeString(&FilenameW);
569 return 0;
570 }
571
572 /* Calculate size to copy */
573 Length = min(nSize, FilenameA.Length);
574
575 /* Include terminating zero */
576 if (nSize > Length)
577 LengthToCopy = Length + 1;
578 else
579 LengthToCopy = nSize;
580
581 /* Now copy back to the caller amount he asked */
582 RtlMoveMemory(lpFilename, FilenameA.Buffer, LengthToCopy);
583
584 /* Free ansi filename */
585 RtlFreeAnsiString(&FilenameA);
586 }
587
588 /* Free unicode filename */
589 RtlFreeHeap(RtlGetProcessHeap(), 0, FilenameW.Buffer);
590
591 /* Return length copied */
592 return Length;
593}
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:600
PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString
Definition: utils.c:27
#define min(a, b)
Definition: monoChain.cc:55
NTSYSAPI VOID NTAPI RtlFreeAnsiString(PANSI_STRING AnsiString)
unsigned short USHORT
Definition: pedump.c:61
#define RtlMoveMemory(Destination, Source, Length)
Definition: typedefs.h:264

Referenced by __getmainargs(), _assert(), _module_name_from_addr(), AssertFail(), create_proc(), doChild(), FreeLibrary(), get_app_key(), GetWindowModuleFileNameA(), init_test(), InstallService(), MLLoadLibraryA(), rdp_send_logon_info(), register_current_module_typelib(), register_service(), register_service_exA(), run_child_process(), run_js_script(), setup_dsound_options(), START_TEST(), STRMBASE_DllGetClassObject(), test(), test_32bit_win(), test_ExitCode(), test_extra_block(), test_filenames(), test_GetMappedFileName(), test_GetModuleBaseName(), test_GetModuleFileNameEx(), test_GetSetConsoleInputExeName(), test_GetWindowModuleFileName(), test_IME(), test_info_size(), test_inheritance(), test_internet_features_registry(), test_load_save(), test_LoadImage_working_directory(), test_LoadLibraryEx_search_flags(), test_loadlibraryshim(), Test_LoadUnload(), test_LocalizedNames(), test_QueryFullProcessImageNameA(), test_VerQueryValueA(), testGetModuleFileName(), testGetModuleFileName_Wrong(), TestGetModuleFileNameA(), and wined3d_dll_init().

◆ GetModuleFileNameW()

DWORD WINAPI GetModuleFileNameW ( HINSTANCE  hModule,
LPWSTR  lpFilename,
DWORD  nSize 
)

Definition at line 600 of file loader.c.

603{
606 ULONG Length = 0;
608 PPEB Peb;
609
611
612 /* Upscale nSize from chars to bytes */
613 nSize *= sizeof(WCHAR);
614
616 {
617 /* We don't use per-thread cur dir now */
618 //PRTL_PERTHREAD_CURDIR PerThreadCurdir = (PRTL_PERTHREAD_CURDIR)teb->NtTib.SubSystemTib;
619
620 Peb = NtCurrentPeb ();
621
622 /* Acquire a loader lock */
624
625 /* Traverse the module list */
628 while (Entry != ModuleListHead)
629 {
630 Module = CONTAINING_RECORD(Entry, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks);
631
632 /* Check if this is the requested module */
633 if (Module->DllBase == (PVOID)hModule)
634 {
635 /* Calculate size to copy */
637
638 /* Copy contents */
639 RtlMoveMemory(lpFilename, Module->FullDllName.Buffer, Length);
640
641 /* Subtract a terminating zero */
642 if (Length == Module->FullDllName.MaximumLength)
643 Length -= sizeof(WCHAR);
644
645 /* Break out of the loop */
646 break;
647 }
648
649 /* Advance to the next entry */
650 Entry = Entry->Flink;
651 }
652 }
654 {
656 Length = 0;
657 } _SEH2_END
658
659 /* Release the loader lock */
661
662 return Length / sizeof(WCHAR);
663}
PVOID WINAPI BasepMapModuleHandle(HMODULE hModule, BOOLEAN AsDataFile)
Definition: loader.c:67
LIST_ENTRY * ModuleListHead
Definition: kdpacket.c:23
NTSTATUS NTAPI LdrUnlockLoaderLock(_In_ ULONG Flags, _In_opt_ ULONG_PTR Cookie)
Definition: ldrapi.c:101
NTSTATUS NTAPI LdrLockLoaderLock(_In_ ULONG Flags, _Out_opt_ PULONG Disposition, _Out_opt_ PULONG_PTR Cookie)
Definition: ldrapi.c:174
#define LDR_LOCK_LOADER_LOCK_FLAG_RAISE_ON_ERRORS
Definition: ldrtypes.h:76
#define LDR_UNLOCK_LOADER_LOCK_FLAG_RAISE_ON_ERRORS
Definition: ldrtypes.h:82
Definition: btrfs_drv.h:1876
UNICODE_STRING FullDllName
Definition: btrfs_drv.h:1882
PVOID DllBase
Definition: btrfs_drv.h:1880
LIST_ENTRY InLoadOrderModuleList
Definition: ldrtypes.h:120
PPEB_LDR_DATA Ldr
Definition: btrfs_drv.h:1912
_In_opt_ PVOID _Out_ PLARGE_INTEGER Cookie
Definition: cmfuncs.h:14

Referenced by __report_error(), __wgetmainargs(), _CorExeMain(), _CreateActCtxFromFile(), _CreateV5ActCtx(), _DoDLLInjection(), _RunRemoteTest(), AMovieDllRegisterServer2(), AtlLoadTypeLib(), ATL::AtlLoadTypeLib(), AtlUpdateRegistryFromResourceD(), CommandLineToArgvW(), ATL::CAtlModule::CommonInitRegistrar(), create_registrar(), CURSORICON_LoadImageW(), BtrfsVolPropSheet::DeviceDlgProc(), DlgInitHandler(), DllRegisterServer(), DoTestEntry(), ExtractAssociatedIconW(), FILEDLG95_MRU_load_filename(), FILEDLG95_MRU_save_filename(), get_mmioFromProfile(), CConfiguration::GetConfigurationFromFile(), CNetConUiObject::GetIconLocation(), CNtObjectFolderExtractIcon::GetIconLocation(), CRegistryFolderExtractIcon::GetIconLocation(), GetModuleFileNameA(), BtrfsIconOverlay::GetOverlayInfo(), GetSubProgramPath(), GetWindowModuleFileNameW(), Host_get_FullName(), Host_get_Path(), if(), Imm32IsRunningInMsoobe(), init_dbghelp_version(), init_paths(), InitLogs(), InitTestData(), InstallEventSource(), InstallScreenSaverW(), IntSetWindowsHook(), BtrfsContextMenu::InvokeCommand(), load_process_feature(), load_typelib(), SEALED_::LoadTypeLibrary(), LPK_ApplyMirroring(), MLBuildResURLW(), MLLoadLibraryW(), NdrDllRegisterProxy(), BtrfsPropSheet::open_as_admin(), BtrfsBalance::PauseBalance(), ReallyFixupVTable(), register_clsid(), register_service(), register_service_exW(), RegisterComponent(), RegisterInShimCache(), BtrfsVolPropSheet::ResetStats(), ResProtocolInfo_ParseUrl(), RetrieveCurrentModuleNTDirectory(), RunApphelpCacheControlTests(), search_res_tlb(), set_firewall(), SetWinEventHook(), BtrfsVolPropSheet::ShowChangeDriveLetter(), BtrfsVolPropSheet::ShowScrub(), ShowUsage(), START_TEST(), BtrfsBalance::StartBalance(), StartChild(), BtrfsBalance::StopBalance(), CSysTray::SysTrayThreadProc(), taskdialog_get_exe_name(), test_32bit_win(), Test_ApphelpCheckRunApp(), test_AttributesRegistration(), test_commandline2argv(), test_FakeDLL(), test_FileMapping(), Test_GetMatchingExe(), Test_ImageSection(), test_Load(), test_NetFwAuthorizedApplication(), test_properties(), test_QueryFullProcessImageNameW(), test_WTSEnumerateProcessesW(), TestDllStartup(), testGetModuleFileName(), testGetModuleFileName_Wrong(), TestGetModuleFileNameW(), TestPrivMoveFileIdentityW(), TestRedirection(), TestStaticDestruct(), User32CallEventProcFromKernel(), validate_SDBQUERYRESULT_size(), wmain(), and write_predefined_strings().

◆ GetModuleHandleA()

HMODULE WINAPI GetModuleHandleA ( LPCSTR  lpModuleName)

Definition at line 812 of file loader.c.

813{
814 PUNICODE_STRING ModuleNameW;
815 PTEB pTeb = NtCurrentTeb();
816
817 /* Check if we have no name to convert */
818 if (!lpModuleName)
820
821 /* Convert module name to unicode */
822 ModuleNameW = Basep8BitStringToStaticUnicodeString(lpModuleName);
823
824 /* Call W version if conversion was successful */
825 if (ModuleNameW)
826 return GetModuleHandleW(ModuleNameW->Buffer);
827
828 /* Return failure */
829 return 0;
830}
PUNICODE_STRING WINAPI Basep8BitStringToStaticUnicodeString(IN LPCSTR String)
Definition: utils.c:188
PVOID ImageBaseAddress
Definition: ntddk_ex.h:245
Definition: compat.h:836
PPEB ProcessEnvironmentBlock
Definition: ntddk_ex.h:337

Referenced by __mingw_get_msvcrt_handle(), add_128x15_bitmap(), build_toolbar(), check_address(), check_class(), check_dialog_style(), check_z_order_debug(), child_process(), cleanup(), compat_catpath(), create_animate(), create_async_message_window(), create_custom_parent_window(), create_dde_server(), create_dde_window(), create_edit_control(), create_listview_control(), create_main_test_wnd(), create_monthcal_control(), create_pager_control(), create_parent(), create_parent_window(), create_progress(), create_rebar_control(), create_testfontfile(), create_trackbar(), create_trackbar2(), create_treeview_control(), create_updown_control(), createMainWnd(), createParentWindow(), CreateRemoteThread(), CreateTestWindow(), destroy_dde_window(), detect_locale(), DliHook(), dll_entry_point(), DllMain(), DllUnregisterServer(), do_child(), do_parent(), doChild(), DoTestEntry(), drop_window_therad(), dsm_RegisterWindowClasses(), dump_system_info(), EDIT_WM_ContextMenu(), empty_dlg_proc2(), EnumResourceLanguagesA(), EnumResourceNamesA(), EnumResourceTypesA(), ExceptionFilter(), extract_resource(), ExtractIconExW(), get_host_winver(), get_mono_path(), get_res_data(), GetDriverVersion(), GetEnvStatus(), hook_WaitForInputIdle(), include_pac_utils(), init(), Init(), init_aes_environment(), init_base_environment(), init_func_ptrs(), init_funcs(), init_function_pointers(), init_function_ptrs(), init_functionpointers(), init_functions(), init_pointers(), init_procs(), init_test(), init_tests(), init_threadpool(), InitFunctionPointers(), InitFunctionPtrs(), is_lang_english(), is_module_loaded(), is_process_limited(), load_it_up(), load_resource(), load_v6_module(), LoadCodePageData(), LoadResource(), loadShell32(), mdi_RegisterWindowClasses(), MSVCRT_locale_to_LCID(), MyWndProc(), NPSAuthenticationDialogA(), path_to_pidl(), print_version(), rebuild_toolbar(), register_child_wnd_class(), register_class(), register_classes(), register_dummy_class(), register_menu_check_class(), register_parent_class(), register_parent_wnd_class(), register_style_check_class(), register_test_notify_class(), register_testwindow_class(), register_window_class(), register_window_classes(), register_wmime_keydown_class(), RegisterClassHelper(), registerParentWindowClass(), RegisterWindowClasses(), running_under_wine(), scrollbar_test_init(), setup_pointers(), sheet_callback(), CZipExtract::ShowExtractError(), ShowUsage(), START_TEST(), subclass_button(), subclass_combobox(), subclass_edit(), subclass_static(), test_accelerators(), test_AccessCheck(), test_acmDriverAdd(), test_action_mapping(), test_add_bitmap(), test_add_string(), test_aligned(), test_arrange(), Test_atexit(), test_attach_input(), test_ax_win(), test_bad_control_class(), test_builtinproc(), test_buttons(), test_calloc(), test_capture_4(), test_change_focus(), test_CheckMenuRadioItem(), test_child_window_from_point(), test_clipboard_viewers(), test_comctl32_class(), test_converttoemfplus(), test_cookie_attrs(), test_CoWaitForMultipleHandles(), test_crash_couninitialize(), test_create(), test_create_view_template(), test_CreateActCtx(), test_createeffect(), test_createtoolbarex(), test_CreateUpDownControl(), test_CreateWindow(), test_csparentdc(), test_custom_default_button(), test_customdraw(), test_data_cache(), test_dc_layout(), test_default_handler_run(), test_DeleteDC(), test_desktop_winproc(), test_dialog_messages(), test_dialog_parent(), test_DialogBoxParam(), test_dialogmode(), test_directory_filename(), test_disableowner(), test_dpi_mapping(), test_dpi_window(), test_drawimage(), test_EM_SETTEXTEX(), test_EN_LINK(), test_EndDialog(), test_EnumProcessModules(), test_eventMask(), test_events(), test_ExitCode(), test_ExtractIcon(), test_FakeDLL(), test_filenames(), test_fullscreen(), test_GdiConvertToDevmodeW(), test_gdiis(), test_GdipInitializePalette(), test_GetConsoleFontInfo(), test_GetConsoleFontSize(), test_GetConsoleScreenBufferInfoEx(), Test_GetDCEx_Cached(), Test_GetDCEx_CS_CLASSDC(), Test_GetDCEx_CS_Mixed(), Test_GetDCEx_CS_OWNDC(), Test_GetDCEx_CS_SwitchedStyle(), test_GetFileVersionInfoEx(), Test_GetKeyState(), test_GetLargestConsoleWindowSize(), test_GetLastActivePopup(), test_GetListBoxInfo(), test_GetMappedFileName(), test_GetModuleBaseName(), test_GetModuleFileNameEx(), test_GetModuleInformation(), test_GetPhysicallyInstalledSystemMemory(), test_GetProcAddress(), test_GetProcessImageFileName(), test_GetScrollBarInfo(), test_GetSetConsoleInputExeName(), test_getstring(), test_gettext(), test_GetUpdateRect(), test_GetWindowModuleFileName(), test_heap(), test_HeapQueryInformation(), test_hotkey(), test_I_UpdateStore(), test_IgnoreFreeLibrary(), test_IME(), test_ImmGetCompositionString(), test_ImmMessages(), test_import_resolution(), test_ImportDescriptors(), test_input_message_source(), test_Input_mouse(), test_Input_whitebox(), test_InSendMessage(), test_instances(), test_invisible_create(), test_iocp_callback(), test_IsWindowUnicode(), test_launch_app_registry(), test_layout(), test_ldap_parse_sort_control(), test_LdrAddRefDll(), test_listbox_dlgdir(), test_Loader(), test_LoadImage(), test_LoadStringA(), test_LoadStringW(), Test_LoadUnload(), test_longtextA(), test_LVM_GETCOUNTPERPAGE(), test_margins_default(), test_maximum_allowed(), test_MCIWndCreate(), test_md5_ctx(), test_mdi(), test_MDI_child_stack(), test_MDI_create(), test_mdi_messages(), test_menu_hilitemenuitem(), test_menu_input(), test_menu_messages(), test_message_from_hmodule(), test_messages(), test_mouse_keyboard(), test_mouse_ll_hook(), test_mru(), test_msidecomposedesc(), test_NdrDllGetClassObject(), test_NdrDllRegisterProxy(), test_nopage(), test_noresize(), test_normal_imports(), test_NtAreMappedFilesTheSame(), test_null_filename(), test_obsolete_flags(), test_ok(), test_ole_initialization(), test_ordinal_imports(), test_pager(), test_param_check(), test_pe_checksum(), test_PlaySound(), test_popup_zorder(), test_propertytovariant(), test_proxy_used_in_wrong_thread(), test_PSM_ADDPAGE(), test_PSM_INSERTPAGE(), test_queryvirtualmemory(), test_quit_message(), test_redraw(), test_redrawnow(), test_registrar(), test_resizable2(), test_resize(), test_RpcExceptionFilter(), test_save_settings(), test_set_clipboard_DRAWCLIPBOARD(), test_set_hook(), test_set_window_style(), test_SetConsoleFont(), Test_SetCursorPos(), test_setinfo(), test_sha_ctx(), test_SHChangeNotify(), test_SHCreateWorkerWindowA(), test_shell_window(), test_SHSetWindowBits(), test_Sign_Media(), test_SIPLoad(), test_sizes(), test_smresult(), test_sscanf(), test_sscanf_s(), test_stgcreatestorageex(), test_stillimage_aggregation(), test_strncpy(), test_subclass(), test_subitem_rect(), test_swscanf_s(), test_thick_child_size(), test_thread_start_address(), test_thumb_length(), test_timer(), test_title(), test_tooltip(), test_treeview_classinfo(), test_TTM_ADDTOOL(), test_ttm_gettoolinfo(), test_TTN_SHOW(), test_update_region(), test_updown_buddy(), test_updown_create(), test_UuidCreateSequential(), test_varianttoproperty(), test_verifyRevocation(), test_version_flag_versus_aw(), test_WaitForInputIdle(), test_winevents(), test_winproc_handles(), test_wiznavigation(), test_WM_NOTIFY(), test_wndproc(), testGetModuleFileName(), testK32GetModuleInformation(), testNestedLoadLibraryA(), wined3d_adapter_init(), WINMM_CheckForMMSystem(), wmain(), write_resource_file(), write_typelib(), and zipfldr_loaded().

◆ GetModuleHandleW()

HMODULE WINAPI GetModuleHandleW ( LPCWSTR  lpModuleName)

Definition at line 838 of file loader.c.

839{
842
843 /* If current module is requested - return it right away */
844 if (!lpModuleName)
845 return ((HMODULE)NtCurrentPeb()->ImageBaseAddress);
846
847 /* Use common helper routine */
849 GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
850 lpModuleName,
851 &hModule);
852
853 /* If it wasn't successful - return NULL */
854 if (!Success) hModule = NULL;
855
856 /* Return the handle */
857 return hModule;
858}
BOOLEAN WINAPI BasepGetModuleHandleExW(BOOLEAN NoLock, DWORD dwPublicFlags, LPCWSTR lpwModuleName, HMODULE *phModule)
Definition: loader.c:716

Referenced by _CorExeMain(), CBandSiteMenu::_CreateMenuPart(), CBandSiteMenu::_CreateNewISFBand(), _DoDLLInjection(), CBandSiteBase::_OnContextMenu(), _SHCreateDesktop(), _SHDesktopMessageLoop(), _ShellDDEInit(), CBandSiteMenu::_ShowToolbarError(), AddCustomizeItem(), AddListViewItems(), AddTextButton(), AllocAndLoadString(), ApplicationPageOnNotify(), ask_confirm(), ask_overwrite_value(), AtlAxWinInit(), cleanup(), CMenuBand_CreateInstance(), Confirm(), ConSetThreadUILanguage(), CDeviceManager::Create(), create_clipbrd_window(), create_listview_controlW(), create_parent_window(), create_syslink(), create_test_windows(), device_tests(), dialog_about(), dialog_viewproperties(), DllMain(), DoCreateWindow(), DoEntry(), DoLoadStrings(), DoTest_BUTTON(), DoTest_EDIT(), DrawThemeText(), EnumerateConnectedDrives(), EnumJoysticks(), EnumProcessAndPrint(), EnumResourceLanguagesW(), EnumResourceNamesW(), EnumResourceTypesW(), EnumWindowsProc(), error_exit(), execute_test(), exit(), extract_resource(), fetch_shlwapi_ordinal(), FILEDLG95_MRU_load_filename(), FILEDLG95_MRU_save_filename(), CMenuSFToolbar::FillToolbar(), FindResourceExA(), FindResourceExW(), FinishDlgProc(), get_print_file_filter(), BtrfsContextMenu::get_uac_icon(), GetComCtl32Version(), GetLocalsplFuncs(), GetModuleHandleA(), GetOwnerModuleFromTagEntry(), GetProc(), GetResource(), GetSeconds(), GetSpoolssFunc(), GetSystemCPU(), CConfiguration::GetSystemInformation(), ie_dialog_about(), Imm32CheckAndApplyAppCompat(), Imm32CopyImeFile(), Imm32LoadImeVerInfo(), ImmGetContextThreadFunc(), init(), init_dbghelp_version(), init_preview(), InitializeAPI(), InitSystemUptime(), InitThreads(), InitTreeViewImageLists(), InnerWindowProc(), IntInitializeImmEntryTable(), IsWindowsVerifierOn(), IsWininetLoaded(), IsWinsockLoaded(), joystick_tests(), keyboard_tests(), LayoutShowGrip(), load_message(), LsapInitSids(), LsarpLookupPrivilegeDisplayName(), MCIWndCreateW(), MessageBoxWithResStringW(), mouse_tests(), msg_spy_init(), MyCreateEditCtrl(), MyCreateWindow(), newfile_proc(), OLEClipbrd_UnInitialize(), OnCommand(), OnCreate(), output_error(), output_message(), output_value(), paraformat_proc(), preview_exit(), preview_proc(), PrintMessage(), PrintMessageV(), PrintNetMessage(), PROPSHEET_DialogProc(), CISFBand::QueryContextMenu(), ReadString(), register_iewindow_class(), register_notifyformat_class(), register_parent_wnd_class(), RegisterClassExWOWW(), RegisterWindowClasses(), RichEditOleCallback_GetContextMenu(), run_test(), SampInitializeSAM(), ShowLastError(), START_TEST(), taskkill_message(), taskkill_message_printfW(), Test1(), test_actctx_classes(), test_ApplyButtonDisabled(), test_builtinproc(), test_default_ime_disabled_cb(), test_default_ime_window_cancel_cb(), test_default_ime_window_cb(), test_default_ime_with_message_only_window_cb(), test_directory_filename(), test_enum_feedback(), test_find_resource(), test_GetInterfaceName(), test_icons(), test_ime_processkey(), test_ImmDefaultHwnd(), test_Input_unicode(), test_LoadImage(), test_longtextW(), test_message_conversion(), test_null_filename(), test_rtti(), Test_SetCursorPos(), test_track(), test_wm_notifyformat(), test_write_watch(), TestManualInstantiation(), TestSoftModalMsgBox(), toggle_num_pages(), UnloadAppInitDlls(), update_preview_statusbar(), UpdatePerUserImmEnabling(), User32CallEventProcFromKernel(), User32CallHookProcFromKernel(), User32CreateWindowEx(), UserpFormatMessages(), WhoamiLoadRcString(), WinMain(), wWinMain(), and XCOPY_LoadMessage().

◆ GetNamedPipeHandleStateA()

BOOL WINAPI GetNamedPipeHandleStateA ( _In_ HANDLE  hNamedPipe,
_Out_opt_ LPDWORD  lpState,
_Out_opt_ LPDWORD  lpCurInstances,
_Out_opt_ LPDWORD  lpMaxCollectionCount,
_Out_opt_ LPDWORD  lpCollectDataTimeout,
_Out_writes_opt_(nMaxUserNameSize) LPSTR  lpUserName,
_In_ DWORD  nMaxUserNameSize 
)

◆ GetNamedPipeHandleStateW()

BOOL WINAPI GetNamedPipeHandleStateW ( _In_ HANDLE  hNamedPipe,
_Out_opt_ LPDWORD  lpState,
_Out_opt_ LPDWORD  lpCurInstances,
_Out_opt_ LPDWORD  lpMaxCollectionCount,
_Out_opt_ LPDWORD  lpCollectDataTimeout,
_Out_writes_opt_(nMaxUserNameSize) LPWSTR  lpUserName,
_In_ DWORD  nMaxUserNameSize 
)

◆ GetNamedPipeInfo()

BOOL WINAPI GetNamedPipeInfo ( _In_  HANDLE,
_Out_opt_  PDWORD,
_Out_opt_  PDWORD,
_Out_opt_  PDWORD,
_Out_opt_  PDWORD 
)

◆ GetNumberOfEventLogRecords()

BOOL WINAPI GetNumberOfEventLogRecords ( _In_  HANDLE,
_Out_  PDWORD 
)

◆ GetOldestEventLogRecord()

BOOL WINAPI GetOldestEventLogRecord ( _In_  HANDLE,
_Out_  PDWORD 
)

◆ GetOverlappedResult()

BOOL WINAPI GetOverlappedResult ( HANDLE  ,
LPOVERLAPPED  ,
PDWORD  ,
BOOL   
)

◆ GetPriorityClass()

DWORD WINAPI GetPriorityClass ( HANDLE  )

◆ GetPrivateObjectSecurity()

BOOL WINAPI GetPrivateObjectSecurity ( PSECURITY_DESCRIPTOR  ,
SECURITY_INFORMATION  ,
PSECURITY_DESCRIPTOR  ,
DWORD  ,
PDWORD   
)

◆ GetPrivateProfileIntA()

UINT WINAPI GetPrivateProfileIntA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_  INT,
_In_opt_  LPCSTR 
)

◆ GetPrivateProfileIntW()

UINT WINAPI GetPrivateProfileIntW ( _In_  LPCWSTR,
_In_  LPCWSTR,
_In_  INT,
_In_opt_  LPCWSTR 
)

◆ GetPrivateProfileSectionA()

DWORD WINAPI GetPrivateProfileSectionA ( _In_ LPCSTR  lpAppName,
_Out_writes_to_opt_(nSize, return+1) LPSTR  lpReturnedString,
_In_ DWORD  nSize,
_In_opt_ LPCSTR  lpFileName 
)

◆ GetPrivateProfileSectionNamesA()

DWORD WINAPI GetPrivateProfileSectionNamesA ( _Out_writes_to_opt_(nSize, return+1) LPSTR  lpszReturnBuffer,
_In_ DWORD  nSize,
_In_opt_ LPCSTR  lpFileName 
)

◆ GetPrivateProfileSectionNamesW()

DWORD WINAPI GetPrivateProfileSectionNamesW ( _Out_writes_to_opt_(nSize, return+1) LPWSTR  lpszReturnBuffer,
_In_ DWORD  nSize,
_In_opt_ LPCWSTR  lpFileName 
)

◆ GetPrivateProfileSectionW()

DWORD WINAPI GetPrivateProfileSectionW ( _In_ LPCWSTR  lpAppName,
_Out_writes_to_opt_(nSize, return+1) LPWSTR  lpReturnedString,
_In_ DWORD  nSize,
_In_opt_ LPCWSTR  lpFileName 
)

◆ GetPrivateProfileStringA()

DWORD WINAPI GetPrivateProfileStringA ( _In_opt_ LPCSTR  lpAppName,
_In_opt_ LPCSTR  lpKeyName,
_In_opt_ LPCSTR  lpDefault,
_Out_writes_to_opt_(nSize, return+1) LPSTR  lpReturnedString,
_In_ DWORD  nSize,
_In_opt_ LPCSTR  lpFileName 
)

◆ GetPrivateProfileStringW()

DWORD WINAPI GetPrivateProfileStringW ( _In_opt_ LPCWSTR  lpAppName,
_In_opt_ LPCWSTR  lpKeyName,
_In_opt_ LPCWSTR  lpDefault,
_Out_writes_to_opt_(nSize, return+1) LPWSTR  lpReturnedString,
_In_ DWORD  nSize,
_In_opt_ LPCWSTR  lpFileName 
)

◆ GetPrivateProfileStructA()

BOOL WINAPI GetPrivateProfileStructA ( _In_ LPCSTR  lpszSection,
_In_ LPCSTR  lpszKey,
_Out_writes_bytes_opt_(uSizeStruct) LPVOID  lpStruct,
_In_ UINT  uSizeStruct,
_In_opt_ LPCSTR  szFile 
)

◆ GetPrivateProfileStructW()

BOOL WINAPI GetPrivateProfileStructW ( _In_ LPCWSTR  lpszSection,
_In_ LPCWSTR  lpszKey,
_Out_writes_bytes_opt_(uSizeStruct) LPVOID  lpStruct,
_In_ UINT  uSizeStruct,
_In_opt_ LPCWSTR  szFile 
)

◆ GetProcAddress()

FARPROC WINAPI GetProcAddress ( HINSTANCE  hModule,
LPCSTR  lpProcName 
)

Definition at line 401 of file loader.c.

402{
403 ANSI_STRING ProcedureName, *ProcNamePtr = NULL;
404 FARPROC fnExp = NULL;
406 PVOID hMapped;
407 ULONG Ordinal = 0;
408
409 if ((ULONG_PTR)lpProcName > MAXUSHORT)
410 {
411 /* Look up by name */
412 RtlInitAnsiString(&ProcedureName, (LPSTR)lpProcName);
413 ProcNamePtr = &ProcedureName;
414 }
415 else
416 {
417 /* Look up by ordinal */
418 Ordinal = PtrToUlong(lpProcName);
419 }
420
421 /* Map provided handle */
423
424 /* Get the proc address */
426 ProcNamePtr,
427 Ordinal,
428 (PVOID*)&fnExp);
429
430 if (!NT_SUCCESS(Status))
431 {
433 return NULL;
434 }
435
436 /* Check for a special case when returned pointer is
437 the same as image's base address */
438 if (fnExp == hMapped)
439 {
440 /* Set correct error code */
441 if (HIWORD(lpProcName) != 0)
443 else
445
446 return NULL;
447 }
448
449 /* All good, return procedure pointer */
450 return fnExp;
451}
int(* FARPROC)()
Definition: compat.h:36
#define PtrToUlong(u)
Definition: config.h:107
NTSTATUS NTAPI LdrGetProcedureAddress(_In_ PVOID BaseAddress, _In_opt_ _When_(Ordinal==0, _Notnull_) PANSI_STRING Name, _In_opt_ _When_(Name==NULL, _In_range_(>, 0)) ULONG Ordinal, _Out_ PVOID *ProcedureAddress)
Definition: ldrapi.c:829
#define STATUS_ORDINAL_NOT_FOUND
Definition: ntstatus.h:548
#define STATUS_ENTRYPOINT_NOT_FOUND
Definition: ntstatus.h:549
#define MAXUSHORT
Definition: typedefs.h:83
#define HIWORD(l)
Definition: typedefs.h:247

◆ GetProcessAffinityMask()

BOOL WINAPI GetProcessAffinityMask ( _In_  HANDLE,
_Out_  PDWORD_PTR,
_Out_  PDWORD_PTR 
)

◆ GetProcessHeap()

HANDLE WINAPI GetProcessHeap ( VOID  )

Definition at line 100 of file heapmem.c.

101{
102 /* Call the RTL API */
103 return RtlGetProcessHeap();
104}

◆ GetProcessHeaps()

DWORD WINAPI GetProcessHeaps ( DWORD  NumberOfHeaps,
PHANDLE  ProcessHeaps 
)

Definition at line 111 of file heapmem.c.

113{
114 /* Call the RTL API */
115 return RtlGetProcessHeaps(NumberOfHeaps, ProcessHeaps);
116}
NTSYSAPI ULONG WINAPI RtlGetProcessHeaps(ULONG, HANDLE *)

◆ GetProcessPriorityBoost()

BOOL WINAPI GetProcessPriorityBoost ( _In_  HANDLE,
_Out_  PBOOL 
)

◆ GetProcessShutdownParameters()

BOOL WINAPI GetProcessShutdownParameters ( _Out_  PDWORD,
_Out_  PDWORD 
)

◆ GetProcessTimes()

BOOL WINAPI GetProcessTimes ( HANDLE  ,
LPFILETIME  ,
LPFILETIME  ,
LPFILETIME  ,
LPFILETIME   
)

◆ GetProcessVersion()

DWORD WINAPI GetProcessVersion ( DWORD  )

◆ GetProcessWindowStation()

◆ GetProcessWorkingSetSize()

BOOL WINAPI GetProcessWorkingSetSize ( _In_  HANDLE,
_Out_  PSIZE_T,
_Out_  PSIZE_T 
)

◆ GetProfileIntA()

UINT WINAPI GetProfileIntA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_  INT 
)

◆ GetProfileIntW()

UINT WINAPI GetProfileIntW ( _In_  LPCWSTR,
_In_  LPCWSTR,
_In_  INT 
)

◆ GetProfileSectionA()

DWORD WINAPI GetProfileSectionA ( _In_ LPCSTR  lpAppName,
_Out_writes_to_opt_(nSize, return+1) LPSTR  lpReturnedString,
_In_ DWORD  nSize 
)

◆ GetProfileSectionW()

DWORD WINAPI GetProfileSectionW ( _In_ LPCWSTR  lpAppName,
_Out_writes_to_opt_(nSize, return+1) LPWSTR  lpReturnedString,
_In_ DWORD  nSize 
)

◆ GetProfileStringA()

DWORD WINAPI GetProfileStringA ( _In_opt_ LPCSTR  lpAppName,
_In_opt_ LPCSTR  lpKeyName,
_In_opt_ LPCSTR  lpDefault,
_Out_writes_to_opt_(nSize, return+1) LPSTR  lpReturnedString,
_In_ DWORD  nSize 
)

◆ GetProfileStringW()

DWORD WINAPI GetProfileStringW ( _In_opt_ LPCWSTR  lpAppName,
_In_opt_ LPCWSTR  lpKeyName,
_In_opt_ LPCWSTR  lpDefault,
_Out_writes_to_opt_(nSize, return+1) LPWSTR  lpReturnedString,
_In_ DWORD  nSize 
)

◆ GetQueuedCompletionStatus()

BOOL WINAPI GetQueuedCompletionStatus ( HANDLE  ,
PDWORD  ,
PULONG_PTR  ,
LPOVERLAPPED ,
DWORD   
)

◆ GetSecurityDescriptorControl()

BOOL WINAPI GetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  ,
PSECURITY_DESCRIPTOR_CONTROL  ,
PDWORD   
)

◆ GetSecurityDescriptorDacl()

BOOL WINAPI GetSecurityDescriptorDacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
LPBOOL  lpbDaclPresent,
PACL pDacl,
LPBOOL  lpbDaclDefaulted 
)

Definition at line 45 of file sec.c.

49{
53
54 Status = RtlGetDaclSecurityDescriptor(pSecurityDescriptor,
56 pDacl,
58 *lpbDaclPresent = (BOOL)DaclPresent;
59 *lpbDaclDefaulted = (BOOL)DaclDefaulted;
60
61 if (!NT_SUCCESS(Status))
62 {
64 return FALSE;
65 }
66
67 return TRUE;
68}
_In_ BOOLEAN DaclPresent
Definition: rtlfuncs.h:1635
NTSYSAPI NTSTATUS NTAPI RtlGetDaclSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PBOOLEAN DaclPresent, _Out_ PACL *Dacl, _Out_ PBOOLEAN DaclDefaulted)
_In_ BOOLEAN _In_opt_ PACL _In_opt_ BOOLEAN DaclDefaulted
Definition: rtlfuncs.h:1638
#define BOOL
Definition: nt_native.h:43

Referenced by AccRewriteGetHandleRights(), CSecurityDescriptor::BeginDACLInteration(), DumpDacl(), get_sd(), handle_setacl(), IEffectivePermission_fnGetEffectivePermission(), PrintFileDacl(), ReloadPrincipalsList(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_child_token_sd(), test_default_dacl_owner_sid(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_GetShellSecurityDescriptor(), test_security_descriptor(), test_token_label(), test_token_security_descriptor(), and validate_default_security_descriptor().

◆ GetSecurityDescriptorGroup()

BOOL WINAPI GetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID pGroup,
LPBOOL  lpbGroupDefaulted 
)

Definition at line 76 of file sec.c.

79{
82
83 Status = RtlGetGroupSecurityDescriptor(pSecurityDescriptor,
84 pGroup,
86 *lpbGroupDefaulted = (BOOL)GroupDefaulted;
87
88 if (!NT_SUCCESS(Status))
89 {
91 return FALSE;
92 }
93
94 return TRUE;
95}
_In_opt_ PSID _In_opt_ BOOLEAN GroupDefaulted
Definition: rtlfuncs.h:1648
NTSYSAPI NTSTATUS NTAPI RtlGetGroupSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSID *Group, OUT PBOOLEAN GroupDefaulted)
Definition: sd.c:280

Referenced by AccRewriteGetHandleRights(), DumpGroup(), get_sd(), handle_setacl(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_group_equal(), test_security_descriptor(), test_token_label(), and validate_default_security_descriptor().

◆ GetSecurityDescriptorLength()

DWORD WINAPI GetSecurityDescriptorLength ( PSECURITY_DESCRIPTOR  )

Referenced by get_sd(), and RSAENH_CPGetProvParam().

◆ GetSecurityDescriptorOwner()

BOOL WINAPI GetSecurityDescriptorOwner ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID pOwner,
LPBOOL  lpbOwnerDefaulted 
)

Definition at line 103 of file sec.c.

106{
109
110 Status = RtlGetOwnerSecurityDescriptor(pSecurityDescriptor,
111 pOwner,
113 *lpbOwnerDefaulted = (BOOL)OwnerDefaulted;
114
115 if (!NT_SUCCESS(Status))
116 {
118 return FALSE;
119 }
120
121 return TRUE;
122}
_In_opt_ PSID _In_opt_ BOOLEAN OwnerDefaulted
Definition: rtlfuncs.h:1672
NTSYSAPI NTSTATUS NTAPI RtlGetOwnerSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSID *Owner, OUT PBOOLEAN OwnerDefaulted)
Definition: sd.c:257

Referenced by AccRewriteGetHandleRights(), DumpOwner(), CShellCommandOwner::Execute(), get_sd(), handle_setacl(), ReloadPrincipalsList(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_default_dacl_owner_sid(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_owner_equal(), test_security_descriptor(), test_token_label(), and validate_default_security_descriptor().

◆ GetSecurityDescriptorRMControl()

DWORD WINAPI GetSecurityDescriptorRMControl ( PSECURITY_DESCRIPTOR  SecurityDescriptor,
PUCHAR  RMControl 
)

Definition at line 130 of file sec.c.

132{
134 RMControl))
135 return ERROR_INVALID_DATA;
136
137 return ERROR_SUCCESS;
138}
NTSYSAPI BOOLEAN NTAPI RtlGetSecurityDescriptorRMControl(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PUCHAR RMControl)
#define ERROR_INVALID_DATA
Definition: winerror.h:116

◆ GetSecurityDescriptorSacl()

BOOL WINAPI GetSecurityDescriptorSacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
LPBOOL  lpbSaclPresent,
PACL pSacl,
LPBOOL  lpbSaclDefaulted 
)

Definition at line 146 of file sec.c.

150{
154
155 Status = RtlGetSaclSecurityDescriptor(pSecurityDescriptor,
157 pSacl,
159 *lpbSaclPresent = (BOOL)SaclPresent;
160 *lpbSaclDefaulted = (BOOL)SaclDefaulted;
161
162 if (!NT_SUCCESS(Status))
163 {
165 return FALSE;
166 }
167
168 return TRUE;
169}
NTSYSAPI NTSTATUS NTAPI RtlGetSaclSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PBOOLEAN SaclPresent, _Out_ PACL *Sacl, _Out_ PBOOLEAN SaclDefaulted)
_Out_ PBOOLEAN SaclPresent
Definition: rtlfuncs.h:2413
_Out_ PBOOLEAN _Out_ PACL _Out_ PBOOLEAN SaclDefaulted
Definition: rtlfuncs.h:2415

Referenced by AccRewriteGetHandleRights(), CSecurityDescriptor::BeginSACLInteration(), DumpSacl(), get_sd(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_AddMandatoryAce(), test_child_token_sd(), test_child_token_sd_medium(), test_child_token_sd_restricted(), test_security_descriptor(), test_token_label(), and test_token_security_descriptor().

◆ GetShortPathNameW()

DWORD WINAPI GetShortPathNameW ( LPCWSTR  ,
LPWSTR  ,
DWORD   
)

◆ GetSidIdentifierAuthority()

PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority ( PSID  pSid)

Definition at line 885 of file security.c.

886{
889}
NTSYSAPI PSID_IDENTIFIER_AUTHORITY NTAPI RtlIdentifierAuthoritySid(PSID Sid)

Referenced by GetTextSid(), GetTextualSid(), and test_GetSidIdentifierAuthority().

◆ GetSidLengthRequired()

DWORD WINAPI GetSidLengthRequired ( UCHAR  nSubAuthorityCount)

Definition at line 852 of file security.c.

853{
854 return (DWORD)RtlLengthRequiredSid(nSubAuthorityCount);
855}
NTSYSAPI ULONG NTAPI RtlLengthRequiredSid(IN ULONG SubAuthorityCount)
Definition: sid.c:54

Referenced by ComputeStringSidSize(), CreateWellKnownSid(), GetWindowsAccountDomainSid(), LookupAccountNameW(), ParseStringSidToSid(), test_CreateWellKnownSid(), test_GetWindowsAccountDomainSid(), and test_LookupAccountSid().

◆ GetSidSubAuthority()

PDWORD WINAPI GetSidSubAuthority ( PSID  pSid,
DWORD  nSubAuthority 
)

Definition at line 896 of file security.c.

898{
900 return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority);
901}
NTSYSAPI PULONG NTAPI RtlSubAuthoritySid(_In_ PSID Sid, _In_ ULONG SubAuthority)
DWORD * PDWORD
Definition: pedump.c:68

Referenced by CreateWellKnownSid(), GetTextSid(), GetTextualSid(), GetWindowsAccountDomainSid(), LookupAccountNameW(), test_GetSecurityInfo(), test_GetWindowsAccountDomainSid(), and test_sid().

◆ GetSidSubAuthorityCount()

PUCHAR WINAPI GetSidSubAuthorityCount ( PSID  pSid)

◆ GetStartupInfoA()

VOID WINAPI GetStartupInfoA ( _Out_  LPSTARTUPINFOA)

◆ GetStartupInfoW()

VOID WINAPI GetStartupInfoW ( LPSTARTUPINFOW  )

◆ GetStdHandle()

HANDLE WINAPI GetStdHandle ( _In_  DWORD)

◆ GetSystemDirectoryA()

UINT WINAPI GetSystemDirectoryA ( LPSTR  ,
UINT   
)

◆ GetSystemDirectoryW()

UINT WINAPI GetSystemDirectoryW ( LPWSTR  ,
UINT   
)

◆ GetSystemInfo()

VOID WINAPI GetSystemInfo ( LPSYSTEM_INFO  )

◆ GetSystemPowerStatus()

BOOL WINAPI GetSystemPowerStatus ( _Out_  LPSYSTEM_POWER_STATUS)

◆ GetSystemTime()

VOID WINAPI GetSystemTime ( LPSYSTEMTIME  lpSystemTime)

◆ GetSystemTimeAdjustment()

BOOL WINAPI GetSystemTimeAdjustment ( PDWORD  ,
PDWORD  ,
PBOOL   
)

◆ GetSystemTimeAsFileTime()

void WINAPI GetSystemTimeAsFileTime ( LPFILETIME  )

◆ GetTapeParameters()

DWORD WINAPI GetTapeParameters ( _In_ HANDLE  hDevice,
_In_ DWORD  dwOperation,
_Inout_ LPDWORD  lpdwSize,
_Out_writes_bytes_ *lpdwSize LPVOID  lpTapeInformation 
)

◆ GetTapePosition()

DWORD WINAPI GetTapePosition ( _In_  HANDLE,
_In_  DWORD,
_Out_  PDWORD,
_Out_  PDWORD,
_Out_  PDWORD 
)

◆ GetTapeStatus()

DWORD WINAPI GetTapeStatus ( _In_  HANDLE)

◆ GetTempFileNameA()

UINT WINAPI GetTempFileNameA ( _In_ LPCSTR  lpPathName,
_In_ LPCSTR  lpPrefixString,
_In_ UINT  uUnique,
_Out_writes_(MAX_PATH) LPSTR  lpTempFileName 
)

◆ GetTempFileNameW()

UINT WINAPI GetTempFileNameW ( LPCWSTR  ,
LPCWSTR  ,
UINT  ,
LPWSTR   
)

◆ GetTempPathA()

DWORD WINAPI GetTempPathA ( _In_ DWORD  nBufferLength,
_Out_writes_to_opt_(nBufferLength, return+1) LPSTR  lpBuffer 
)

◆ GetTempPathW()

DWORD WINAPI GetTempPathW ( DWORD  ,
LPWSTR   
)

◆ GetThreadContext()

BOOL WINAPI GetThreadContext ( HANDLE  ,
LPCONTEXT   
)

◆ GetThreadId()

DWORD WINAPI GetThreadId ( HANDLE  )

◆ GetThreadPriority()

int WINAPI GetThreadPriority ( HANDLE  )

◆ GetThreadPriorityBoost()

BOOL WINAPI GetThreadPriorityBoost ( HANDLE  ,
PBOOL   
)

◆ GetThreadSelectorEntry()

BOOL WINAPI GetThreadSelectorEntry ( _In_  HANDLE,
_In_  DWORD,
_Out_  LPLDT_ENTRY 
)

◆ GetThreadTimes()

BOOL WINAPI GetThreadTimes ( HANDLE  ,
LPFILETIME  ,
LPFILETIME  ,
LPFILETIME  ,
LPFILETIME   
)

◆ GetTickCount()

DWORD WINAPI GetTickCount ( VOID  )

Definition at line 455 of file time.c.

456{
457 ULARGE_INTEGER TickCount;
458
459#ifdef _WIN64
460 TickCount.QuadPart = *((volatile ULONG64*)&SharedUserData->TickCount);
461#else
462 while (TRUE)
463 {
464 TickCount.HighPart = (ULONG)SharedUserData->TickCount.High1Time;
465 TickCount.LowPart = SharedUserData->TickCount.LowPart;
466
467 if (TickCount.HighPart == (ULONG)SharedUserData->TickCount.High2Time)
468 break;
469
471 }
472#endif
473
474 return (ULONG)((UInt32x32To64(TickCount.LowPart,
475 SharedUserData->TickCountMultiplier) >> 24) +
476 UInt32x32To64((TickCount.HighPart << 8) & 0xFFFFFFFF,
477 SharedUserData->TickCountMultiplier));
478
479}
#define UInt32x32To64(a, b)
Definition: intsafe.h:252
if(dx< 0)
Definition: linetemp.h:194
unsigned __int64 ULONG64
Definition: imports.h:198
#define YieldProcessor
Definition: ke.h:48
#define SharedUserData
$ULONG LowPart
Definition: ntbasedef.h:569
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185
$ULONG HighPart
Definition: ntbasedef.h:570

Referenced by __security_init_cookie(), _FileOpCount(), _FileOpCountManager(), _tmain(), _tWinMain(), apartment_freeunusedlibraries(), BiosMiscService(), CalibrateTest(), CardWindow::CardWindow(), check_exe(), ClockUpdate(), collect_connections(), CommandChoice(), CommandTimer(), CFileDefExt::CountFolderAndFiles(), CoWaitForMultipleHandles(), CProgressDialog::CProgressDialog(), Defragment::Defragment(), DispatchMessageA(), DispatchMessageW(), DoControlService(), DoStartService(), DoStartStartupItems(), DoStopService(), DoTestEntry(), DoTestGroup(), DrawGLScene(), DSOUND_callback(), DSOUND_capture_callback(), DSOUND_PrimaryGetPosition(), DSOUND_timer(), empty_message_queue(), EnableHardwareTimer(), extract_resource(), flush_events(), FormatBufferFat(), GdiSAPCallback(), GenerateComputerName(), GenerateRandomPassword(), http_release_netconn(), IDirectSoundBufferImpl_GetCurrentPosition(), IDirectSoundBufferImpl_Lock(), IDirectSoundCaptureBufferImpl_Lock(), InitMatrixMessage(), InitScreenSaveClass(), InputWait(), install_cab_file(), KmtEnsureServiceState(), LBItemFromPt(), LISTVIEW_ProcessLetterKeys(), mailslot_test(), main(), make_discover(), MediaControl_GetState(), MIDI_player(), midiStreamRestart(), MMSYSTEM_MidiStream_MessageHandler(), MMSYSTEM_MidiStream_Player(), NotifyInfo::modify(), msi_create_empty_local_file(), mstsc_mousewheel(), NBNameCacheAddEntry(), NBNameCacheWalk(), NetBTAstatRemote(), NetBTNameWaitLoop(), NetBTWaitForNameResponse(), NetrRemoteTOD(), NotifyInfo::NotifyInfo(), NotifyTopLevelWindow(), AirBrushTool::OnButtonDown(), OSK_Command(), OSK_ReleaseKey(), PeekMessageWorker(), PreInit(), PrimaryBufferImpl_GetCurrentPosition(), PrimaryBufferImpl_Lock(), process_timer(), processPendingMessages(), ProcessTest(), PulseSample(), pump_msg_loop_timeout(), QUARTZ_CreateSystemClock(), QueryTime(), NotifyArea::Refresh(), TrayNotifyDlg::RefreshProperties(), remove_target_tasks(), RetrieveQuote(), RPC_GetLocalClassObject(), rpcrt4_http_timer_calc_timeout(), rpcrt4_http_timer_thread(), rpcrt4_ncacn_http_open(), rpcrt4_ncacn_http_write(), run_benchmark(), CWineTest::RunTest(), ScreenSaverProc(), ScreenSaverThreadMain(), SendGetState(), ServiceStart(), set_task_timer(), SetAbortProc(), CProgressDialog::SetProgress64(), SHChangeNotify(), SHChangeNotifyReceive(), SHWaitForSendMessageThread(), SlideWindow(), SpeakerChange(), Defragment::Start(), START_TEST(), StartDocW(), StartScreenSaver(), state_reboot(), StorageImpl_LockRegionSync(), swapchain_gdi_present(), swapchain_gl_present(), SystemClockImpl_GetTime(), test_AbortWaitCts(), test_api(), test_buffer(), test_buffer8(), test_dbcs_wm_char(), test_get_input_report(), test_get_state(), test_globalness(), test_ime_wnd_proc(), test_ImmGetCompositionString(), test_InputObject(), test_LoopbackRead(), test_not_modified(), test_OpenFileById(), test_QueueUserWorkItem(), test_read_device(), test_read_write(), test_ReadTimeOut(), test_runner(), test_select(), test_timers(), test_timers_no_wnd(), test_tp_timer(), test_WaitBreak(), test_WaitCommEvent(), test_WaitCts(), test_WaitDcd(), test_WaitDsr(), test_WaitRing(), test_WaitRx(), test_waittxempty(), test_WM_GETDLGCODE(), ThemeWaitForServiceReady(), TIME_MMSysTimeCallback(), TIME_SetEventInternal(), time_stamp_callback(), TIME_TriggerCallBack(), timeGetSystemTime(), timeGetTime(), TreeListChar(), TreeListProc(), TREEVIEW_ProcessLetterKeys(), UpdateLanStatusUiDlg(), UpdateProgressBar(), verify_cert_revocation_from_dist_points_ext(), wait_for_event(), wait_move_event(), WaitService(), WDML_SyncWaitTransactionReply(), window_length_cb(), WindowProc(), wmain(), WndProc(), and NotifyArea::WndProc().

◆ GetTimeZoneInformation()

DWORD WINAPI GetTimeZoneInformation ( LPTIME_ZONE_INFORMATION  lpTimeZoneInformation)

Definition at line 262 of file timezone.c.

263{
264 RTL_TIME_ZONE_INFORMATION TimeZoneInformation;
266
267 DPRINT("GetTimeZoneInformation()\n");
268
270 &TimeZoneInformation,
272 NULL);
273 if (!NT_SUCCESS(Status))
274 {
277 }
278
279 lpTimeZoneInformation->Bias = TimeZoneInformation.Bias;
280
281 wcsncpy(lpTimeZoneInformation->StandardName,
282 TimeZoneInformation.StandardName,
283 ARRAYSIZE(lpTimeZoneInformation->StandardName));
284 lpTimeZoneInformation->StandardDate.wYear = TimeZoneInformation.StandardDate.Year;
285 lpTimeZoneInformation->StandardDate.wMonth = TimeZoneInformation.StandardDate.Month;
286 lpTimeZoneInformation->StandardDate.wDay = TimeZoneInformation.StandardDate.Day;
287 lpTimeZoneInformation->StandardDate.wHour = TimeZoneInformation.StandardDate.Hour;
288 lpTimeZoneInformation->StandardDate.wMinute = TimeZoneInformation.StandardDate.Minute;
289 lpTimeZoneInformation->StandardDate.wSecond = TimeZoneInformation.StandardDate.Second;
290 lpTimeZoneInformation->StandardDate.wMilliseconds = TimeZoneInformation.StandardDate.Milliseconds;
291 lpTimeZoneInformation->StandardDate.wDayOfWeek = TimeZoneInformation.StandardDate.Weekday;
292 lpTimeZoneInformation->StandardBias = TimeZoneInformation.StandardBias;
293
294 wcsncpy(lpTimeZoneInformation->DaylightName,
295 TimeZoneInformation.DaylightName,
296 ARRAYSIZE(lpTimeZoneInformation->DaylightName));
297 lpTimeZoneInformation->DaylightDate.wYear = TimeZoneInformation.DaylightDate.Year;
298 lpTimeZoneInformation->DaylightDate.wMonth = TimeZoneInformation.DaylightDate.Month;
299 lpTimeZoneInformation->DaylightDate.wDay = TimeZoneInformation.DaylightDate.Day;
300 lpTimeZoneInformation->DaylightDate.wHour = TimeZoneInformation.DaylightDate.Hour;
301 lpTimeZoneInformation->DaylightDate.wMinute = TimeZoneInformation.DaylightDate.Minute;
302 lpTimeZoneInformation->DaylightDate.wSecond = TimeZoneInformation.DaylightDate.Second;
303 lpTimeZoneInformation->DaylightDate.wMilliseconds = TimeZoneInformation.DaylightDate.Milliseconds;
304 lpTimeZoneInformation->DaylightDate.wDayOfWeek = TimeZoneInformation.DaylightDate.Weekday;
305 lpTimeZoneInformation->DaylightBias = TimeZoneInformation.DaylightBias;
306
307 return TIME_ZoneID(lpTimeZoneInformation);
308}
static DWORD TIME_ZoneID(const TIME_ZONE_INFORMATION *pTzi)
Definition: timezone.c:217
@ SystemCurrentTimeZoneInformation
Definition: ntddk_ex.h:59
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
#define DPRINT
Definition: sndvol32.h:71
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
WORD wYear
Definition: winbase.h:905
WORD wMilliseconds
Definition: winbase.h:912
WORD wMonth
Definition: winbase.h:906
WORD wHour
Definition: winbase.h:909
WORD wSecond
Definition: winbase.h:911
WORD wMinute
Definition: winbase.h:910
WORD wDay
Definition: winbase.h:908
WORD wDayOfWeek
Definition: winbase.h:907
USHORT Milliseconds
Definition: env_spec_w32.h:717
USHORT Weekday
Definition: env_spec_w32.h:718
SYSTEMTIME DaylightDate
Definition: winbase.h:1211
WCHAR DaylightName[32]
Definition: winbase.h:1210
WCHAR StandardName[32]
Definition: winbase.h:1207
SYSTEMTIME StandardDate
Definition: winbase.h:1208
#define TIME_ZONE_ID_INVALID
Definition: winbase.h:286

Referenced by _ftime_s(), _getsystime(), _tzset(), AllSysInfo(), create_date(), date_parse(), get_currenttimezone(), get_localdatetime(), mktime_worker(), NetrRemoteTOD(), ParseLogonHours(), PrintLogonHours(), SetTimeZoneName(), ShowTimeZoneList(), SystemTimeToTzSpecificLocalTime(), test_FileTimeToLocalFileTime(), test_GetDynamicTimeZoneInformation(), test_GetTimeZoneInformation(), test_GetTimeZoneInformationForYear(), test_localtime(), test_mktime(), test_RtlQueryTimeZoneInformation(), and TzSpecificLocalTimeToSystemTime().

◆ GetTokenInformation()

BOOL WINAPI GetTokenInformation ( HANDLE  TokenHandle,
TOKEN_INFORMATION_CLASS  TokenInformationClass,
PVOID  TokenInformation,
DWORD  TokenInformationLength,
PDWORD  ReturnLength 
)

Definition at line 411 of file security.c.

416{
418
421 TokenInformation,
424 if (!NT_SUCCESS(Status))
425 {
427 return FALSE;
428 }
429
430 return TRUE;
431}
_In_ TOKEN_INFORMATION_CLASS TokenInformationClass
Definition: sefuncs.h:317
_In_ TOKEN_INFORMATION_CLASS _In_ ULONG TokenInformationLength
Definition: sefuncs.h:319
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtQueryInformationToken(_In_ HANDLE TokenHandle, _In_ TOKEN_INFORMATION_CLASS TokenInformationClass, _Out_writes_bytes_to_opt_(TokenInformationLength, *ReturnLength) PVOID TokenInformation, _In_ ULONG TokenInformationLength, _Out_ PULONG ReturnLength)
Queries a specific type of information in regard of an access token based upon the information class....
Definition: tokencls.c:473

Referenced by _GetUserSidStringFromToken(), AccpLookupCurrentUser(), AddUserProfiles(), AllowAccessOnSession(), are_all_privileges_disabled(), AuthzpQueryToken(), CheckForGuestsAndAdmins(), CreateProfile(), DoesUserHavePrivilege(), DwInitializeSdFromThreadToken(), get_admin_token(), get_current_group(), get_current_owner(), get_privilege_count(), get_user_sid(), GetFromToken(), GetShellSecurityDescriptor(), GetUserAndDomainName(), GetUserNameW(), GetUserSid(), GetUserSIDString(), GetUserToken(), ImpersonatePrinterClient(), is_process_elevated(), is_process_limited(), is_token_admin(), IsNTAdmin(), LoadUserProfileW(), named_pipe_client_func(), PerfDataRefresh(), RecycleBin5_Constructor(), RunningAsSYSTEM(), SHCreateSessionKey(), SHGetUserSessionId(), SHTestTokenPrivilegeW(), START_TEST(), TakeOwnershipOfFile(), test_CheckTokenMembership(), test_child_token_sd_medium(), test_child_token_sd_restricted(), test_CreateDirectoryA(), test_CreateRestrictedToken(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_GetTokenInformation(), test_GetWindowsAccountDomainSid(), test_ImpersonateNamedPipeClient(), test_impersonation_level(), test_LookupAccountSid(), test_lsa(), test_LsaLookupSids(), test_process_security(), test_pseudo_tokens(), test_token_attr(), test_token_security_descriptor(), test_TokenIntegrityLevel(), TestGetUserObjectInfoW(), validate_impersonation_token(), and WhoamiGetTokenInfo().

◆ GetUserNameA()

BOOL WINAPI GetUserNameA ( _Out_writes_to_opt_ *, *pcbBuffer LPSTR  lpBuffer,
_Inout_ LPDWORD  pcbBuffer 
)

◆ GetUserNameW()

BOOL WINAPI GetUserNameW ( _Out_writes_to_opt_ *, *pcbBuffer LPWSTR  lpBuffer,
_Inout_ LPDWORD  pcbBuffer 
)

◆ GetVersion()

DWORD WINAPI GetVersion ( void  )

Definition at line 22 of file version.c.

23{
25
26 return (DWORD)( ((Peb->OSPlatformId ^ 2) << 30) |
27 (Peb->OSBuildNumber << 16) |
28 (Peb->OSMinorVersion << 8 ) |
30}
ULONG OSMinorVersion
Definition: ntddk_ex.h:301
ULONG OSMajorVersion
Definition: ntddk_ex.h:300
ULONG OSBuildNumber
Definition: ntddk_ex.h:302
ULONG OSPlatformId
Definition: ntddk_ex.h:303

Referenced by _LocalGetPrinterLevel0(), AfdCreateSocket(), CheckCdrwFilter(), ConvertStringSecurityDescriptorToSecurityDescriptorW(), ConvertStringSidToSidA(), ConvertStringSidToSidW(), CreateAllAccessSecurityAttributes(), dde_connect(), DECLARE_INTERFACE_(), DllMain(), get_host_os_flag(), get_window_region(), GetFileVersionInfoSizeExW(), GetWinVersion(), InitTreeViewItems(), IPropertyStorage_fnWriteMultiple(), is_version_nt(), LoadCardBitmaps(), main(), MDIMainFrame::MDIMainFrame(), MsiGetMode(), OaBuildVersion(), path_to_pidl(), RichEditWndProcW(), SHCreateWorkerWindowW(), SHELL_OsIsUnicode(), START_TEST(), test_button_messages(), test_CopyImage_Bitmap(), test_CopyImage_Check(), test_enum_value(), test_enumdisplaydevices_adapter(), test_GetDiskFreeSpaceA(), test_GetRandomRgn(), test_GetTempPathW(), test_installprops(), test_NhGetInterfaceNameFromDeviceGuid(), test_NhGetInterfaceNameFromGuid(), test_reg_create_key(), test_SHSimpleIDListFromPath(), test_tiff_color_formats(), testCtrlHandler(), validate_envW(), VerifyPassword(), and VfdIsValidPlatform().

◆ GetVersionExA()

BOOL WINAPI GetVersionExA ( LPOSVERSIONINFOA  )

◆ GetVersionExW()

BOOL WINAPI GetVersionExW ( LPOSVERSIONINFOW  )

◆ GetVolumeInformationA()

BOOL WINAPI GetVolumeInformationA ( _In_opt_ LPCSTR  lpRootPathName,
_Out_writes_opt_(nVolumeNameSize) LPSTR  lpVolumeNameBuffer,
_In_ DWORD  nVolumeNameSize,
_Out_opt_ LPDWORD  lpVolumeSerialNumber,
_Out_opt_ LPDWORD  lpMaximumComponentLength,
_Out_opt_ LPDWORD  lpFileSystemFlags,
_Out_writes_opt_(nFileSystemNameSize) LPSTR  lpFileSystemNameBuffer,
_In_ DWORD  nFileSystemNameSize 
)

◆ GetVolumeInformationW()

BOOL WINAPI GetVolumeInformationW ( LPCWSTR  ,
LPWSTR  ,
DWORD  ,
PDWORD  ,
PDWORD  ,
PDWORD  ,
LPWSTR  ,
DWORD   
)

◆ GetWindowsDirectoryA()

UINT WINAPI GetWindowsDirectoryA ( LPSTR  ,
UINT   
)

◆ GetWindowsDirectoryW()

UINT WINAPI GetWindowsDirectoryW ( LPWSTR  ,
UINT   
)

◆ GetWindowThreadProcessId()

◆ GetWriteWatch()

UINT WINAPI GetWriteWatch ( DWORD  ,
PVOID  ,
SIZE_T  ,
PVOID ,
PULONG_PTR  ,
PULONG   
)

◆ GlobalAddAtomA()

ATOM WINAPI GlobalAddAtomA ( _In_opt_  LPCSTR)

◆ GlobalAddAtomW()

ATOM WINAPI GlobalAddAtomW ( _In_opt_  LPCWSTR)

◆ GlobalAlloc()

HGLOBAL WINAPI GlobalAlloc ( UINT  uFlags,
SIZE_T  dwBytes 
)

Definition at line 368 of file heapmem.c.

370{
371 ULONG Flags = 0;
372 PVOID Ptr = NULL;
374 PBASE_HEAP_HANDLE_ENTRY HandleEntry;
375 BASE_TRACE_ALLOC(dwBytes, uFlags);
377
378 /* Make sure the flags are valid */
380 {
381 /* They aren't, fail */
384 return NULL;
385 }
386
387 /* Convert ZEROINIT */
389
390 /* Check if we're not movable, which means pointer-based heap */
391 if (!(uFlags & GMEM_MOVEABLE))
392 {
393 /* Check if this is DDESHARE (deprecated) */
395
396 /* Allocate heap for it */
397 Ptr = RtlAllocateHeap(BaseHeap, Flags, dwBytes ? dwBytes : 1);
400 return Ptr;
401 }
402
403 /* This is heap based, so lock it in first */
405
406 /*
407 * Disable locking, enable custom flags, and write the
408 * movable flag (deprecated)
409 */
413
414 /* Allocate the handle */
415 HandleEntry = BaseHeapAllocEntry();
416 if (!HandleEntry)
417 {
418 /* Fail */
419 hMemory = NULL;
422 }
423 else
424 {
425 /* Get the object and make sure we have size */
426 hMemory = &HandleEntry->Object;
427 if (dwBytes)
428 {
429 /* Allocate the actual memory for it */
430 Ptr = RtlAllocateHeap(BaseHeap, Flags, dwBytes);
431 BASE_TRACE_PTR(HandleEntry, Ptr);
432 if (!Ptr)
433 {
434 /* We failed, manually set the allocate flag and free the handle */
435 HandleEntry->Flags = RTL_HANDLE_VALID;
436 BaseHeapFreeEntry(HandleEntry);
437
438 /* For the cleanup case */
439 HandleEntry = NULL;
440 }
441 else
442 {
443 /* All worked well, save our heap entry */
445 }
446 }
447 }
448
449 /* Cleanup! First unlock the heap */
451
452 /* Check if a handle was allocated */
453 if (HandleEntry)
454 {
455 /* Set the pointer and allocated flag */
456 HandleEntry->Object = Ptr;
457 HandleEntry->Flags = RTL_HANDLE_VALID;
458 if (!Ptr)
459 {
460 /* We don't have a valid pointer, but so reuse this handle */
461 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSE;
462 }
463
464 /* Check if the handle is discardable */
466 {
467 /* Save it in the handle entry */
468 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSABLE;
469 }
470
471 /* Check if the handle is moveable */
472 if (uFlags & GMEM_MOVEABLE)
473 {
474 /* Save it in the handle entry */
475 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_MOVABLE;
476 }
477
478 /* Check if the handle is DDE Shared */
479 if (uFlags & GMEM_DDESHARE)
480 {
481 /* Save it in the handle entry */
482 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_DDESHARE;
483 }
484
485 /* Set the pointer */
486 Ptr = hMemory;
487 }
488
489 /* Return the pointer */
490 return Ptr;
491}
#define BaseHeapAllocEntry()
Definition: baseheap.h:104
#define BASE_TRACE_FAILURE()
Definition: baseheap.h:59
#define BASE_HEAP_ENTRY_FLAG_REUSE
Definition: baseheap.h:85
#define BASE_HEAP_FLAG_MOVABLE
Definition: baseheap.h:98
#define BASE_TRACE_ALLOC(x, y)
Definition: baseheap.h:44
#define BASE_HEAP_ENTRY_FLAG_MOVABLE
Definition: baseheap.h:83
#define BASE_TRACE_ALLOC2(x)
Definition: baseheap.h:47
#define BaseHeapFreeEntry(he)
Definition: baseheap.h:116
#define BASE_TRACE_PTR(x, y)
Definition: baseheap.h:50
#define BASE_HEAP_ENTRY_FLAG_REUSABLE
Definition: baseheap.h:84
#define BASE_HEAP_ENTRY_FLAG_DDESHARE
Definition: baseheap.h:86
UINT uFlags
Definition: api.c:59
WDFMEMORY hMemory
HANDLE BaseHeap
Definition: heapmem.c:19
NTSYSAPI BOOLEAN WINAPI RtlUnlockHeap(HANDLE)
Definition: heap.c:3143
NTSYSAPI BOOLEAN WINAPI RtlLockHeap(HANDLE)
#define ASSERT(a)
Definition: mode.c:44
#define RTL_HANDLE_VALID
Definition: rtltypes.h:376
#define HEAP_SETTABLE_USER_VALUE
Definition: nt_native.h:1704
#define HEAP_NO_SERIALIZE
Definition: nt_native.h:1692
BOOLEAN NTAPI RtlSetUserValueHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID BaseAddress, IN PVOID UserValue)
Definition: heap.c:3798
Definition: baseheap.h:69
USHORT Flags
Definition: baseheap.h:70
PVOID Object
Definition: baseheap.h:74
#define GMEM_DISCARDABLE
Definition: winbase.h:299
#define GMEM_VALID_FLAGS
Definition: winbase.h:310
#define GMEM_ZEROINIT
Definition: winbase.h:306
#define GMEM_MOVEABLE
Definition: winbase.h:294
#define GMEM_DDESHARE
Definition: winbase.h:298

Referenced by AddValuesToList(), AdvProcDetailsDlgProc(), alloc_and_set_onevalue(), ata_adapter_info(), ata_bblk(), ata_send_ioctl(), ata_send_scsi(), BeginUpdateResourceW(), BindInfo_GetBindInfo(), BitmapToClipboardDIB(), build_wpad_url(), C1_OnCreate(), CDevSettings_GetData(), clipboard_thread(), ClipboardReadMemoryBlock(), CommandLineToArgvT(), CompressBegin(), copy_stg_medium(), CopyBlock(), CopyCurrentGlyph(), CopyEventEntry(), CopyKeyName(), CopyLines(), CopyMemToClipboard(), CopyStgMedium(), CopyTextToClipboard(), create_callback(), create_channelbsc(), create_decoder(), create_dib(), create_doc_with_string(), create_execute(), create_metafile(), create_metafilepict(), create_mfpict(), create_poke(), create_stream(), create_stream_from_map(), create_stream_on_data(), create_stream_on_file(), create_stream_on_mip_ro(), create_text(), create_textA(), create_textW(), CreateILockBytesOnHGlobal(), CreateMappedBitmap(), CreateMemoryDialog(), CreateStreamOnHGlobal(), DataObject_DAdvise(), DataObjectImpl_CreateComplex(), DataObjectImpl_CreateText(), dde_server_wndproc(), DdeCreateDataHandle(), DetermineDialogBoxType(), doc_load_string(), TMouse::doClip(), CDefaultContextMenu::DoCopyOrCut(), DoSanitizeClipboard(), dup_global_mem(), EDIT_WM_Copy(), EditVariableDlgProc(), EngComputeGlyphSet(), EnumFormatImpl_Create(), EnvironmentDlgProc(), ExpandEnvironmentStringsForUserA(), expose_marshalled_dataobject(), fgetws(), GatherDataFromEditBox(), GatherDataFromListView(), GdiCreateLocalMetaFilePict(), get_data_from_storage(), get_data_from_stream(), get_rtf_text(), get_unicode_text(), GetAllUsersProfileDirectoryA(), GetClipboardData(), GetDefaultUserProfileDirectoryA(), GetEnvironmentVariables(), GetHGlobalFromILockBytes(), GetProfilesDirectoryA(), GetUserProfileDirectoryA(), grab_clipboard_process(), HEXEDIT_Copy(), HGLOBAL_UserUnmarshal(), HMETAFILEPICT_UserUnmarshal(), ICImageDecompress(), IntSynthesizeMultiByte(), IntSynthesizeWideChar(), K32CreateDBMonMutex(), load_dib(), load_image(), load_mf_pict(), load_string(), LoadTextFileToEdit(), localui_AddPortUI(), main(), MainWndProc(), marshal_WdtpInterfacePointer(), ME_GetDataObject(), MessageBoxTextToClipboard(), MsgiKMToUMMessage(), BrowserNavigator::navigated(), NoStatStream_Construct(), ObjectFromLresult(), OLEClipbrd_Initialize(), OleCreateMenuDescriptor(), OleDuplicateData(), OleMetafilePictFromIconAndLabel(), OnEditVariable(), OnNewVariable(), OnPaint(), PackDDElParam(), pagesetup_change_printer_dialog(), pagesetup_set_devmode(), pagesetup_set_devnames(), PRINTDLG_CreateDevNames(), PRINTDLG_CreateDevNamesW(), PrintDlgA(), PrintDlgW(), PropertySheetA(), PropertySheetW(), read_post_data_stream(), RECORD_StreamFromFile(), render_embed_source_hack(), RenderFILENAMEA(), RenderFILENAMEW(), RenderHDROP(), RenderSHELLIDLIST(), round_global_size(), SaveTextFileFromEdit(), set_clipboard_data_process(), set_clipboard_data_thread(), set_clipboard_formats(), set_dataobject_format(), SetAllVars(), START_TEST(), synthesize_dib(), T1_OnCreate(), test_apm(), test_brush_pens(), test_bsc_marshaling(), test_bufferrawformat(), test_ClipboardOwner(), test_componentinfo(), test_CopyStgMedium(), test_createfromstream(), test_decode_1bpp(), test_decode_24bpp(), test_decode_4bpp(), test_decode_adobe_cmyk(), test_decode_rle4(), test_decode_rle8(), test_DragQueryFile(), test_empty_image(), test_empty_image_2(), test_enhmetafile(), test_freed_hglobal(), test_FreeDDElParam(), test_GdipLoadImageFromStream(), test_getdatahere(), test_GlobalAlloc(), test_handles(), test_handles_process_open(), test_heap(), test_Invoke(), test_IStream_Clone(), test_load_save_bmp(), test_load_save_emf(), test_load_save_empty_picture(), test_load_save_icon(), test_loadwmf(), test_marshal_HGLOBAL(), test_marshal_HMETAFILEPICT(), test_metafile(), test_multi_encoder(), test_multiframegif(), test_nonole_clipboard(), test_obsolete_flags(), test_paste(), test_pattern_brush(), test_pic(), test_RegisterClipboardFormatA(), test_set_clipboard(), test_string_data(), test_supported_encoders(), test_UnpackDDElParam(), TestGlobalAllocNFree(), TestGlobalDiscard(), TestGlobalFlagsFixed(), TestGlobalFlagsMoveable(), TestGlobalHandle(), TestGlobalLockNUnlock(), TestGlobalReAllocFixed(), TestGlobalReAllocMovable(), TestGlobalSize(), TestSetAndGetExtraFormat(), unpack_dde_message(), update_devmode_handleA(), update_devmode_handleW(), WDML_BuildExecuteCommand(), WDML_ClientQueueAdvise(), WDML_ClientQueuePoke(), WDML_DataHandle2Global(), WdtpInterfacePointer_UserMarshal(), WdtpInterfacePointer_UserUnmarshal(), WinHelpA(), WinHttpGetDefaultProxyConfiguration(), WinHttpGetIEProxyConfigForCurrentUser(), and wmain().

◆ GlobalCompact()

SIZE_T WINAPI GlobalCompact ( _In_  DWORD)

◆ GlobalDeleteAtom()

ATOM WINAPI GlobalDeleteAtom ( _In_  ATOM)

◆ GlobalFindAtomA()

ATOM WINAPI GlobalFindAtomA ( _In_opt_  LPCSTR)

◆ GlobalFindAtomW()

ATOM WINAPI GlobalFindAtomW ( _In_opt_  LPCWSTR)

◆ GlobalFix()

VOID WINAPI GlobalFix ( _In_  HGLOBAL)

◆ GlobalFlags()

UINT WINAPI GlobalFlags ( _In_  HGLOBAL)

◆ GlobalFree()

HGLOBAL WINAPI GlobalFree ( HGLOBAL  hMem)

Definition at line 611 of file heapmem.c.

612{
613 PBASE_HEAP_HANDLE_ENTRY HandleEntry;
614 LPVOID Ptr;
615 BASE_TRACE_DEALLOC(hMem);
616
617 /* Check if this was a simple allocated heap entry */
619 {
620 /* Free it with the RTL Heap Manager */
621 if (RtlFreeHeap(BaseHeap, 0, hMem))
622 {
623 /* Return NULL since there's no handle */
624 return NULL;
625 }
626 else
627 {
628 /* Otherwise fail */
631 return hMem;
632 }
633 }
634
635 /* It's a handle probably, so lock the heap */
638 {
639 /* Make sure that this is an entry in our handle database */
641 {
642 /* Get the entry */
643 HandleEntry = BaseHeapGetEntry(hMem);
644 BASE_TRACE_HANDLE(HandleEntry, hMem);
645
646 /* Make sure the handle is valid */
647 if (!BaseHeapValidateEntry(HandleEntry))
648 {
649 /* It's not, fail */
651 Ptr = NULL;
652 }
653 else
654 {
655 /* It's valid, so get the pointer */
656 Ptr = HandleEntry->Object;
657
658 /* Free this handle */
659 BaseHeapFreeEntry(HandleEntry);
660
661 /* If the pointer is 0, then we don't have a handle either */
662 if (!Ptr) hMem = NULL;
663 }
664 }
665 else
666 {
667 /* Otherwise, reuse the handle as a pointer */
669 Ptr = hMem;
670 }
671
672 /* Check if we got here with a valid heap pointer */
673 if (Ptr)
674 {
675 /* Free it with the RTL Heap Manager */
677 {
678 /* Everything worked */
679 hMem = NULL;
680 }
681 else
682 {
683 /* This wasn't a real heap handle */
685 }
686 }
687 }
689 {
690 /* Set the exception code */
692 }
693 _SEH2_END;
694
695 /* We're done, so unlock the heap and return the handle */
697 return hMem;
698}
#define BASE_TRACE_DEALLOC(x)
Definition: baseheap.h:56
#define BaseHeapGetEntry(h)
Definition: baseheap.h:107
#define BASE_TRACE_HANDLE(x, y)
Definition: baseheap.h:53
#define BASE_HEAP_IS_HANDLE_ENTRY
Definition: baseheap.h:91
#define BaseHeapValidateEntry(he)
Definition: baseheap.h:113

Referenced by _tWinMain(), AddValuesToList(), AdvProcDetailsDlgProc(), alloc_and_set_onevalue(), ata_bblk(), ata_send_ioctl(), ata_send_scsi(), BeginUpdateResourceW(), BindStatusCallback_Release(), BitmapToClipboardDIB(), C1_OnCreate(), C1_OnDestroy(), CDevSettings_GetData(), ClipboardReadBitmap(), ClipboardReadEnhMetafile(), ClipboardReadMemory(), ClipboardReadMemoryBlock(), ClipboardReadMetafile(), ClipboardReadPalette(), CmdDebugService(), COMCTL32_ReleaseStgMedium(), CompressEnd(), CopyBlock(), CopyEventEntry(), CopyLines(), create_stream(), CreateMappedBitmap(), CreateMemoryDialog(), DataObjectImpl_Release(), dde_msg_client_wndproc(), DdeCreateDataHandle(), DdeFreeDataHandle(), DdePostAdvise(), DetermineDialogBoxType(), DragFinish(), dup_metafilepict(), EditVariableDlgProc(), EndUpdateResourceW(), EngComputeGlyphSet(), EnumFormatImpl_Release(), EnvironmentDlgProc(), ExpandEnvironmentStringsForUserA(), expose_marshalled_dataobject(), fgetws(), ShellDirectory::fill_w32fdata_shell(), CGlobalAllocator::Free(), free_metafilepict(), FreeDDElParam(), GatherDataFromEditBox(), GatherDataFromListView(), GdiCreateLocalMetaFilePict(), get_data_from_storage(), get_data_from_stream(), get_descriptors(), get_stgmed_for_storage(), get_stgmed_for_stream(), GetAllUsersProfileDirectoryA(), GetClipboardData(), GetDefaultUserProfileDirectoryA(), GetEnvironmentVariables(), GetProfilesDirectoryA(), GetUserProfileDirectoryA(), handle_release(), HEXEDIT_Copy(), HGLOBAL_UserFree(), HGLOBALLockBytesImpl_Release(), HMETAFILEPICT_UserFree(), ICImageDecompress(), K32CreateDBMonMutex(), load_dib(), load_mf_pict(), LoadTextFileToEdit(), LocalFree(), main(), MainWndProc(), MessageBoxTextToClipboard(), MsgiUMToKMCleanup(), BrowserNavigator::navigated(), NoStatStreamImpl_Destroy(), NOTEPAD_WndProc(), ObjectFromLresult(), OLEClipbrd_Initialize(), OleDestroyMenuDescriptor(), OleDuplicateData(), OleMetafilePictFromIconAndLabel(), CMainWindow::OnCommand(), OnDeleteVariable(), OnEditVariable(), OnNewVariable(), OnPaint(), pagesetup_change_printer_dialog(), PrintUIEntryW(), ProcessCommandLine(), PROPSHEET_CleanUp(), proxy_active(), read_post_data_stream(), RECORD_StreamFromFile(), release_request_data(), ReleaseListViewItems(), ReleaseStgMedium(), render_embed_source_hack(), render_format(), round_global_size(), SaveTextFileFromEdit(), set_clipboard_formats(), set_dataobject_format(), SetAllVars(), SHGetRealIDL(), START_TEST(), T1_OnCreate(), T1_OnDestroy(), test_abort_proc(), test_AddPortUI(), test_brush_pens(), test_componentinfo(), test_CopyStgMedium(), test_createfromstream(), test_decode_1bpp(), test_decode_24bpp(), test_decode_4bpp(), test_decode_adobe_cmyk(), test_decode_rle4(), test_decode_rle8(), test_DeviceCapabilities(), test_freed_hglobal(), test_FreeDDElParam(), test_GlobalAlloc(), test_handles(), test_heap(), test_Invoke(), test_load_save_bmp(), test_load_save_emf(), test_load_save_icon(), test_marshal_HGLOBAL(), test_marshal_HMETAFILEPICT(), test_msg_client(), test_obsolete_flags(), test_onevalue_cap(), test_PageSetupDlgA(), test_pattern_brush(), test_physical(), test_PrintDlgA(), test_PrintDlgExW(), test_resolution(), test_supported_sizes(), test_UnpackDDElParam(), test_WinHttpDetectAutoProxyConfigUrl(), test_WinHttpGetIEProxyConfigForCurrentUser(), test_WinHttpGetProxyForUrl(), TestGlobalAllocNFree(), TestGlobalDiscard(), TestGlobalFlagsFixed(), TestGlobalFlagsMoveable(), TestGlobalHandle(), TestGlobalLockNUnlock(), TestGlobalReAllocFixed(), TestGlobalReAllocMovable(), TestGlobalSize(), unpack_dde_message(), CTravelEntry::Update(), update_devmode_handleA(), update_devmode_handleW(), WDML_BuildExecuteCommand(), WDML_FreeTransaction(), WDML_HandleAdviseReply(), WDML_HandleIncomingData(), WDML_HandlePokeReply(), WDML_HandleRequestReply(), WDML_ServerHandleAdvise(), WDML_ServerHandlePoke(), WDML_ServerHandleRequest(), WdtpInterfacePointer_UserMarshal(), WdtpInterfacePointer_UserUnmarshal(), WinHttpGetDefaultProxyConfiguration(), WinHttpGetIEProxyConfigForCurrentUser(), WinHttpGetProxyForUrl(), WinHttpOpen(), wmain(), wWinMain(), and CTravelEntry::~CTravelEntry().

◆ GlobalGetAtomNameA()

UINT WINAPI GlobalGetAtomNameA ( _In_ ATOM  nAtom,
_Out_writes_to_(nSize, return+1) LPSTR  lpBuffer,
_In_ int  nSize 
)

◆ GlobalGetAtomNameW()

UINT WINAPI GlobalGetAtomNameW ( _In_ ATOM  nAtom,
_Out_writes_to_(nSize, return+1) LPWSTR  lpBuffer,
_In_ int  nSize 
)

◆ GlobalHandle()

_Ret_maybenull_ HGLOBAL WINAPI GlobalHandle ( _In_  LPCVOID)

◆ GlobalLock()

_Ret_maybenull_ LPVOID WINAPI GlobalLock ( _In_  HGLOBAL)

◆ GlobalMemoryStatus()

VOID WINAPI GlobalMemoryStatus ( _Out_  LPMEMORYSTATUS)

◆ GlobalReAlloc()

HGLOBAL WINAPI GlobalReAlloc ( HGLOBAL  hMem,
SIZE_T  dwBytes,
UINT  uFlags 
)

Definition at line 825 of file heapmem.c.

828{
829 PBASE_HEAP_HANDLE_ENTRY HandleEntry;
831 LPVOID Ptr;
832 ULONG Flags = 0;
833
834 /* Throw out invalid flags */
836 {
838 return NULL;
839 }
840
841 /* Throw out invalid combo */
843 {
845 return NULL;
846 }
847
848 /* Convert ZEROINIT */
850
851 /* If this wasn't a movable heap, then we MUST re-alloc in place */
853
854 /* Lock the heap and disable built-in locking in the RTL Heap functions */
857
858 /* Check if this is a simple handle-based block */
860 {
861 /* Get the entry */
862 HandleEntry = BaseHeapGetEntry(hMem);
863 BASE_TRACE_HANDLE(HandleEntry, hMem);
864
865 /* Make sure the handle is valid */
866 if (!BaseHeapValidateEntry(HandleEntry))
867 {
868 /* Fail */
871 hMem = NULL;
872 }
873 else if (uFlags & GMEM_MODIFY)
874 {
875 /* User is changing flags... check if the memory was discardable */
877 {
878 /* Then set the flag */
879 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSABLE;
880 }
881 else
882 {
883 /* Otherwise, remove the flag */
884 HandleEntry->Flags &= ~BASE_HEAP_ENTRY_FLAG_REUSABLE;
885 }
886 }
887 else
888 {
889 /* Otherwise, get the object and check if we have no size */
890 Ptr = HandleEntry->Object;
891 if (!dwBytes)
892 {
893 /* Clear the handle and check for a pointer */
894 hMem = NULL;
895 if (Ptr)
896 {
897 /* Make sure the handle isn't locked */
898 if ((uFlags & GMEM_MOVEABLE) && !(HandleEntry->LockCount))
899 {
900 /* Free the current heap */
902 {
903 /* Free the handle */
904 HandleEntry->Object = NULL;
905 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSE;
906
907 /* Get the object pointer */
908 hMem = &HandleEntry->Object;
909 }
910 }
911 }
912 else
913 {
914 /* Otherwise just return the object pointer */
915 hMem = &HandleEntry->Object;
916 }
917 }
918 else
919 {
920 /* Otherwise, we're allocating, so set the new flags needed */
922 if (!Ptr)
923 {
924 /* We don't have a base, so allocate one */
925 Ptr = RtlAllocateHeap(BaseHeap, Flags, dwBytes);
927 if (Ptr)
928 {
929 /* Allocation succeeded, so save our entry */
932 Ptr,
933 hMem);
934 }
935 }
936 else
937 {
938 /*
939 * If it's not movable or currently locked, we MUST allocate
940 * in-place!
941 */
942 if (!(uFlags & GMEM_MOVEABLE) && (HandleEntry->LockCount))
943 {
944 /* Set the flag */
946 }
947 else
948 {
949 /* Otherwise clear the flag if we set it previously */
950 Flags &= ~HEAP_REALLOC_IN_PLACE_ONLY;
951 }
952
953 /* Do the re-allocation. No need to save the entry again */
954 Ptr = RtlReAllocateHeap(BaseHeap, Flags, Ptr, dwBytes);
955 }
956
957 /* Make sure we have a pointer by now */
958 if (Ptr)
959 {
960 /* Write it in the handle entry and mark it in use */
961 HandleEntry->Object = Ptr;
962 HandleEntry->Flags &= ~BASE_HEAP_ENTRY_FLAG_REUSE;
963 }
964 else
965 {
966 /* Otherwise we failed */
967 hMem = NULL;
969 }
970 }
971 }
972 }
973 else if (uFlags & GMEM_MODIFY)
974 {
975 /* This is not a handle-based heap and the caller wants it to be one */
976 if (uFlags & GMEM_MOVEABLE)
977 {
978 /* Get information on its current state */
979 Handle = hMem;
982 hMem,
983 &Handle,
984 NULL))
985 {
986 /*
987 * Check if the handle matches the pointer or the moveable flag
988 * isn't there, which is what we expect since it currently isn't.
989 */
990 if ((Handle == hMem) || !(Flags & BASE_HEAP_FLAG_MOVABLE))
991 {
992 /* Allocate a handle for it */
993 HandleEntry = BaseHeapAllocEntry();
994 if (!HandleEntry)
995 {
996 /* No entry could be allocated */
999 return NULL;
1000 }
1001
1002 /* Calculate the size of the current heap */
1003 dwBytes = RtlSizeHeap(BaseHeap, HEAP_NO_SERIALIZE, hMem);
1004
1005 /* Set the movable flag */
1007
1008 /* Now allocate the actual heap for it */
1009 HandleEntry->Object = RtlAllocateHeap(BaseHeap,
1010 Flags,
1011 dwBytes);
1012 BASE_TRACE_PTR(HandleEntry->Object, HandleEntry);
1013 if (!HandleEntry->Object)
1014 {
1015 /*
1016 * We failed, manually set the allocate flag and
1017 * free the handle
1018 */
1019 HandleEntry->Flags = RTL_HANDLE_VALID;
1020 BaseHeapFreeEntry(HandleEntry);
1021
1022 /* For the cleanup case */
1024 HandleEntry = NULL;
1026 }
1027 else
1028 {
1029 /* Otherwise, copy the new heap and free the old one */
1030 RtlMoveMemory(HandleEntry->Object, hMem, dwBytes);
1032
1033 /* Select the heap pointer */
1034 hMem = (HANDLE)&HandleEntry->Object;
1035
1036 /* Initialize the count and default flags */
1037 HandleEntry->LockCount = 0;
1038 HandleEntry->Flags = RTL_HANDLE_VALID |
1040
1041 /* Check if it's also discardable */
1043 {
1044 /* Set the internal flag */
1045 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSABLE;
1046 }
1047
1048 /* Check if it's also DDE Shared */
1049 if (uFlags & GMEM_DDESHARE)
1050 {
1051 /* Set the internal flag */
1052 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_DDESHARE;
1053 }
1054
1055 /* Allocation succeeded, so save our entry */
1058 HandleEntry->Object,
1059 hMem);
1060 }
1061 }
1062 }
1063 }
1064 }
1065 else
1066 {
1067 /* Otherwise, this is a simple RTL Managed Heap, so just call it */
1070 hMem,
1071 dwBytes);
1072 if (!hMem)
1073 {
1074 /* Fail */
1077 }
1078 }
1079
1080 /* All done, unlock the heap and return the pointer */
1082 return hMem;
1083}
ULONG Handle
Definition: gdb_input.c:15
NTSYSAPI PVOID WINAPI RtlReAllocateHeap(HANDLE, ULONG, PVOID, SIZE_T)
Definition: heap.c:2667
NTSYSAPI SIZE_T NTAPI RtlSizeHeap(_In_ PVOID HeapHandle, _In_ ULONG Flags, _In_ PVOID MemoryPointer)
#define HEAP_REALLOC_IN_PLACE_ONLY
Definition: nt_native.h:1696
BOOLEAN NTAPI RtlGetUserInfoHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID BaseAddress, OUT PVOID *UserValue, OUT PULONG UserFlags)
Definition: heap.c:3915
USHORT LockCount
Definition: baseheap.h:71
PVOID HANDLE
Definition: typedefs.h:73
#define GMEM_MODIFY
Definition: winbase.h:295

Referenced by DdeAddData(), get_rtf_text(), handle_setsize(), handle_write(), HGLOBALLockBytesImpl_SetSize(), ME_AppendToHGLOBAL(), NoStatStreamImpl_SetSize(), pagesetup_set_devmode(), pagesetup_set_devnames(), PRINTDLG_CreateDevNames(), PRINTDLG_CreateDevNamesW(), PrintDlgA(), PrintDlgW(), test_GlobalAlloc(), test_heap(), TestGlobalReAllocFixed(), TestGlobalReAllocMovable(), update_devmode_handleA(), update_devmode_handleW(), and wmain().

◆ GlobalSize()

SIZE_T WINAPI GlobalSize ( _In_  HGLOBAL)

◆ GlobalUnfix()

VOID WINAPI GlobalUnfix ( _In_  HGLOBAL)

◆ GlobalUnlock()

BOOL WINAPI GlobalUnlock ( _In_  HGLOBAL)

◆ GlobalUnWire()

BOOL WINAPI GlobalUnWire ( _In_  HGLOBAL)

◆ GlobalWire()

PVOID WINAPI GlobalWire ( _In_  HGLOBAL)

◆ HeapAlloc()

PVOID WINAPI HeapAlloc ( HANDLE  ,
DWORD  ,
SIZE_T   
)

◆ HeapCompact()

SIZE_T WINAPI HeapCompact ( HANDLE  hHeap,
DWORD  dwFlags 
)

Definition at line 145 of file heapmem.c.

146{
147 /* Call the RTL API */
148 return RtlCompactHeap(hHeap, dwFlags);
149}
NTSYSAPI ULONG WINAPI RtlCompactHeap(HANDLE, ULONG)
Definition: heap.c:3084

Referenced by _heapmin().

◆ HeapCreate()

HANDLE WINAPI HeapCreate ( DWORD  flOptions,
SIZE_T  dwInitialSize,
SIZE_T  dwMaximumSize 
)

Definition at line 45 of file heapmem.c.

48{
49 HANDLE hRet;
51
52 /* Remove non-Win32 flags and tag this allocation */
55
56 /* Check if heap is growable and ensure max size is correct */
57 if (dwMaximumSize == 0)
59 else if (dwMaximumSize < BaseStaticServerData->SysInfo.PageSize &&
60 dwInitialSize > dwMaximumSize)
61 {
62 /* Max size is non-zero but less than page size which can't be correct.
63 Fix it up by bumping it to the initial size whatever it is. */
64 dwMaximumSize = dwInitialSize;
65 }
66
67 /* Call RTL Heap */
68 hRet = RtlCreateHeap(Flags,
69 NULL,
70 dwMaximumSize,
71 dwInitialSize,
72 NULL,
73 NULL);
74
75 /* Set the last error if we failed, and return the pointer */
77 return hRet;
78}
#define HEAP_CLASS_1
Definition: nt_native.h:1711
#define HEAP_GENERATE_EXCEPTIONS
Definition: nt_native.h:1694
NTSYSAPI PVOID NTAPI RtlCreateHeap(IN ULONG Flags, IN PVOID HeapBase OPTIONAL, IN ULONG ReserveSize OPTIONAL, IN ULONG CommitSize OPTIONAL, IN PVOID Lock OPTIONAL, IN PRTL_HEAP_PARAMETERS Parameters OPTIONAL)
#define HEAP_GROWABLE
Definition: nt_native.h:1693
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL _In_ MIX _In_ FLONG flOptions
Definition: winddi.h:3596

Referenced by _set_sbh_threshold(), DllMain(), msvcrt_init_heap(), CListNode::operator new(), runtimehost_init(), ShimLib_Init(), test_dpa(), and test_HeapCreate().

◆ HeapDestroy()

BOOL WINAPI HeapDestroy ( HANDLE  hHeap)

Definition at line 85 of file heapmem.c.

86{
87 /* Return TRUE if the heap was destroyed */
88 if (!RtlDestroyHeap(hHeap)) return TRUE;
89
90 /* Otherwise, we got the handle back, so fail */
92 return FALSE;
93}
NTSYSAPI PVOID NTAPI RtlDestroyHeap(IN PVOID HeapHandle)

Referenced by DllMain(), msvcrt_destroy_heap(), CListNode::operator delete(), runtimehost_uninit(), ShimLib_Deinit(), and test_HeapCreate().

◆ HeapFree()

BOOL WINAPI HeapFree ( HANDLE  ,
DWORD  ,
PVOID   
)

◆ HeapLock()

BOOL WINAPI HeapLock ( HANDLE  hHeap)

Definition at line 123 of file heapmem.c.

124{
125 /* Call the RTL API */
126 return RtlLockHeap(hHeap);
127}

Referenced by dll_entry_point(), IsBlockFromHeap(), mutex_thread_proc(), and RtlInitializeHeapLock().

◆ HeapReAlloc()

PVOID WINAPI HeapReAlloc ( HANDLE  ,
DWORD  ,
PVOID  ,
SIZE_T   
)

◆ HeapSize()

◆ HeapUnlock()

BOOL WINAPI HeapUnlock ( HANDLE  hHeap)

Definition at line 134 of file heapmem.c.

135{
136 /* Call the RTL API */
137 return RtlUnlockHeap(hHeap);
138}

Referenced by IsBlockFromHeap().

◆ HeapValidate()

BOOL WINAPI HeapValidate ( HANDLE  hHeap,
DWORD  dwFlags,
LPCVOID  lpMem 
)

Definition at line 156 of file heapmem.c.

159{
160 /* Call the RTL API */
161 return RtlValidateHeap(hHeap, dwFlags, (PVOID)lpMem);
162}
NTSYSAPI BOOLEAN WINAPI RtlValidateHeap(HANDLE, ULONG, LPCVOID)

Referenced by __getmainargs(), __wgetmainargs(), _heapchk(), _heapwalk(), IMalloc_fnDidAlloc(), msvcrt_heap_free(), msvcrt_heap_realloc(), msvcrt_heap_size(), pdb_process_internal(), and test_heap_checks().

◆ HeapWalk()

BOOL WINAPI HeapWalk ( HANDLE  hHeap,
LPPROCESS_HEAP_ENTRY  lpEntry 
)

Definition at line 291 of file heapmem.c.

293{
295
296 DPRINT1("Warning, HeapWalk is calling RtlWalkHeap with Win32 parameters\n");
297
298 Status = RtlWalkHeap(hHeap, lpEntry);
299
300 if (!NT_SUCCESS(Status))
301 {
303 return FALSE;
304 }
305
306 return TRUE;
307}
#define DPRINT1
Definition: precomp.h:8
NTSYSAPI NTSTATUS WINAPI RtlWalkHeap(HANDLE, PVOID)

Referenced by _heapwalk(), and IsBlockFromHeap().

◆ ImpersonateAnonymousToken()

BOOL WINAPI ImpersonateAnonymousToken ( HANDLE  )

◆ ImpersonateLoggedOnUser()

BOOL WINAPI ImpersonateLoggedOnUser ( HANDLE  hToken)

Definition at line 152 of file misc.c.

153{
156 HANDLE NewToken;
159 BOOL Duplicated;
161
162 /* Get the token type */
164 TokenType,
165 &Type,
166 sizeof(TOKEN_TYPE),
167 &ReturnLength);
168 if (!NT_SUCCESS(Status))
169 {
171 return FALSE;
172 }
173
174 if (Type == TokenPrimary)
175 {
176 /* Create a duplicate impersonation token */
180 Qos.EffectiveOnly = FALSE;
181
183 ObjectAttributes.RootDirectory = NULL;
184 ObjectAttributes.ObjectName = NULL;
185 ObjectAttributes.Attributes = 0;
186 ObjectAttributes.SecurityDescriptor = NULL;
187 ObjectAttributes.SecurityQualityOfService = &Qos;
188
189 Status = NtDuplicateToken(hToken,
192 FALSE,
194 &NewToken);
195 if (!NT_SUCCESS(Status))
196 {
197 ERR("NtDuplicateToken failed: Status %08x\n", Status);
199 return FALSE;
200 }
201
202 Duplicated = TRUE;
203 }
204 else
205 {
206 /* User the original impersonation token */
207 NewToken = hToken;
208 Duplicated = FALSE;
209 }
210
211 /* Impersonate the the current thread */
214 &NewToken,
215 sizeof(HANDLE));
216
217 if (Duplicated != FALSE)
218 {
219 NtClose(NewToken);
220 }
221
222 if (!NT_SUCCESS(Status))
223 {
224 ERR("NtSetInformationThread failed: Status %08x\n", Status);
226 return FALSE;
227 }
228
229 return TRUE;
230}
Type
Definition: Type.h:7
TOKEN_TYPE
Definition: asmpp.cpp:29
#define ERR(fmt,...)
Definition: debug.h:110
@ ThreadImpersonationToken
Definition: compat.h:940
@ SecurityImpersonation
Definition: lsa.idl:57
struct _SECURITY_QUALITY_OF_SERVICE SECURITY_QUALITY_OF_SERVICE
@ TokenImpersonation
Definition: imports.h:274
@ TokenPrimary
Definition: imports.h:273
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ BOOLEAN _In_ TOKEN_TYPE TokenType
Definition: sefuncs.h:411
NTSTATUS NTAPI NtSetInformationThread(IN HANDLE ThreadHandle, IN THREADINFOCLASS ThreadInformationClass, IN PVOID ThreadInformation, IN ULONG ThreadInformationLength)
Definition: query.c:2018
SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode
Definition: lsa.idl:66
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel
Definition: lsa.idl:65
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtDuplicateToken(_In_ HANDLE ExistingTokenHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ BOOLEAN EffectiveOnly, _In_ TOKEN_TYPE TokenType, _Out_ PHANDLE NewTokenHandle)
Duplicates a token.
Definition: tokenlif.c:1869
struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES
#define TOKEN_QUERY
Definition: setypes.h:928
#define TOKEN_IMPERSONATE
Definition: setypes.h:927
#define SECURITY_DYNAMIC_TRACKING
Definition: setypes.h:103

Referenced by CreateUserEnvironment(), KillComProcesses(), LogoffShutdownThread(), OnShutDown(), PerfDataRefresh(), PlayEventSound(), PlayLogoffSound(), PlayLogonSoundThread(), RestoreAllConnections(), ScmStartUserModeService(), ScreenSaverThreadMain(), SetDefaultLanguage(), StartScreenSaver(), test_AccessCheck(), and WlxScreenSaverNotify().

◆ ImpersonateNamedPipeClient()

BOOL WINAPI ImpersonateNamedPipeClient ( HANDLE  hNamedPipe)

Definition at line 1024 of file security.c.

1025{
1026 IO_STATUS_BLOCK io_block;
1027
1028 TRACE("(%p)\n", hNamedPipe);
1029
1030 return set_ntstatus( NtFsControlFile(hNamedPipe, NULL, NULL, NULL,
1031 &io_block, FSCTL_PIPE_IMPERSONATE, NULL, 0, NULL, 0) );
1032}
#define FSCTL_PIPE_IMPERSONATE
Definition: winioctl.h:85

Referenced by rpcrt4_conn_np_impersonate_client(), and test_ImpersonateNamedPipeClient().

◆ ImpersonateSelf()

BOOL WINAPI ImpersonateSelf ( SECURITY_IMPERSONATION_LEVEL  ImpersonationLevel)

Definition at line 1631 of file security.c.

1632{
1634
1636 if (!NT_SUCCESS(Status))
1637 {
1639 return FALSE;
1640 }
1641
1642 return TRUE;
1643}
NTSYSAPI NTSTATUS NTAPI RtlImpersonateSelf(IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
Definition: priv.c:45
_Out_ PBOOLEAN _Out_ PBOOLEAN _Out_ PSECURITY_IMPERSONATION_LEVEL ImpersonationLevel
Definition: psfuncs.h:156

Referenced by test_FileSecurity(), and test_impersonation_level().

◆ InitAtomTable()

BOOL WINAPI InitAtomTable ( _In_  DWORD)

◆ InitializeAcl()

◆ InitializeCriticalSection()

VOID WINAPI InitializeCriticalSection ( LPCRITICAL_SECTION  )

◆ InitializeCriticalSectionAndSpinCount()

BOOL WINAPI InitializeCriticalSectionAndSpinCount ( LPCRITICAL_SECTION  ,
DWORD   
)

◆ InitializeSecurityDescriptor()

BOOL WINAPI InitializeSecurityDescriptor ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
DWORD  dwRevision 
)

Definition at line 929 of file security.c.

931{
933
934 Status = RtlCreateSecurityDescriptor(pSecurityDescriptor,
935 dwRevision);
936 if (!NT_SUCCESS(Status))
937 {
939 return FALSE;
940 }
941
942 return TRUE;
943}
NTSYSAPI NTSTATUS NTAPI RtlCreateSecurityDescriptor(_Out_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ ULONG Revision)

Referenced by AllowDesktopAccessToUser(), AllowWinstaAccessToUser(), CreateAllAccessSecurityAttributes(), CreateApplicationDesktopSecurity(), CreateDefaultProcessSecurityCommon(), CreateDefaultSecurityDescriptor(), CreateDhcpPipeSecurity(), CreateLogoffSecurityAttributes(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), CreateProfileMutex(), CreatePublicEvent(), CreateScreenSaverSecurity(), CreateWinlogonDesktopSecurity(), CreateWinstaSecurity(), DwInitializeSdFromThreadToken(), get_sd(), GetShellSecurityDescriptor(), handle_getacl(), InitializeAudioDeviceListLock(), pSetSecurityInfoCheck(), START_TEST(), TakeOwnershipOfFile(), test_AccessCheck(), test_AddMandatoryAce(), test_BuildSecurityDescriptorW(), test_ConvertSecurityDescriptorToString(), test_CopyBindInfo(), test_CreateDirectoryA(), test_default_dacl_owner_sid(), test_event(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_maximum_allowed(), test_process_security(), test_reg_create_key(), test_reg_open_key(), test_security_descriptor(), test_security_info(), and test_token_security_descriptor().

◆ InitializeSid()

BOOL WINAPI InitializeSid ( PSID  Sid,
PSID_IDENTIFIER_AUTHORITY  pIdentifierAuthority,
BYTE  nSubAuthorityCount 
)

Definition at line 862 of file security.c.

865{
867
869 pIdentifierAuthority,
870 nSubAuthorityCount);
871 if (!NT_SUCCESS(Status))
872 {
874 return FALSE;
875 }
876
877 return TRUE;
878}
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1133
NTSYSAPI NTSTATUS NTAPI RtlInitializeSid(IN OUT PSID Sid, IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount)

Referenced by GetWindowsAccountDomainSid(), and test_GetWindowsAccountDomainSid().

◆ InitOnceBeginInitialize()

WINBASEAPI BOOL WINAPI InitOnceBeginInitialize ( _Inout_ LPINIT_ONCE  lpInitOnce,
_In_ DWORD  dwFlags,
_Out_ PBOOL  fPending,
_Outptr_opt_result_maybenull_ LPVOID lpContext 
)

Definition at line 26 of file InitOnce.c.

31{
33
34 Status = RtlRunOnceBeginInitialize(lpInitOnce, dwFlags, lpContext);
35 if (!NT_SUCCESS(Status))
36 {
38 return FALSE;
39 }
40
41 *fPending = (Status == STATUS_PENDING);
42 return TRUE;
43}
_Must_inspect_result_ NTSTATUS NTAPI RtlRunOnceBeginInitialize(_Inout_ PRTL_RUN_ONCE RunOnce, _In_ ULONG Flags, _Outptr_opt_result_maybenull_ PVOID *Context)
Definition: runonce.c:22

◆ InitOnceComplete()

WINBASEAPI BOOL WINAPI InitOnceComplete ( _Inout_ LPINIT_ONCE  lpInitOnce,
_In_ DWORD  dwFlags,
_In_opt_ LPVOID  lpContext 
)

Definition at line 47 of file InitOnce.c.

51{
53
54 Status = RtlRunOnceComplete(lpInitOnce, dwFlags, lpContext);
55 if (!NT_SUCCESS(Status))
56 {
58 return FALSE;
59 }
60
61 return TRUE;
62}
NTSTATUS NTAPI RtlRunOnceComplete(_Inout_ PRTL_RUN_ONCE RunOnce, _In_ ULONG Flags, _In_opt_ PVOID Context)
Definition: runonce.c:73

◆ InitOnceExecuteOnce()

WINBASEAPI BOOL WINAPI InitOnceExecuteOnce ( _Inout_ PINIT_ONCE  InitOnce,
_In_ __callback PINIT_ONCE_FN  InitFn,
_Inout_opt_ PVOID  Parameter,
_Outptr_opt_result_maybenull_ LPVOID Context 
)

Definition at line 12 of file InitOnce.c.

17{
18 return NT_SUCCESS(RtlRunOnceExecuteOnce(InitOnce,
21 Context));
22}
_Maybe_raises_SEH_exception_ NTSTATUS NTAPI RtlRunOnceExecuteOnce(_Inout_ PRTL_RUN_ONCE RunOnce, _In_ __inner_callback PRTL_RUN_ONCE_INIT_FN InitFn, _Inout_opt_ PVOID Parameter, _Outptr_opt_result_maybenull_ PVOID *Context)
Definition: runonce.c:121
_In_ __inner_callback PRTL_RUN_ONCE_INIT_FN InitFn
Definition: rtlfuncs.h:2533
_Inout_opt_ PVOID Parameter
Definition: rtltypes.h:323
RTL_RUN_ONCE_INIT_FN * PRTL_RUN_ONCE_INIT_FN
Definition: rtltypes.h:325

Referenced by apartment_createwindowifneeded(), DllGetClassObject(), get_notif_hwnd(), init_winsock(), and winsock_init().

◆ InitOnceInitialize()

WINBASEAPI VOID WINAPI InitOnceInitialize ( _Out_ PINIT_ONCE  InitOnce)

◆ IsBadCodePtr()

BOOL WINAPI IsBadCodePtr ( _In_opt_  FARPROC)

◆ IsBadHugeReadPtr()

BOOL WINAPI IsBadHugeReadPtr ( _In_opt_ CONST VOID ,
_In_  UINT_PTR 
)

◆ IsBadHugeWritePtr()

BOOL WINAPI IsBadHugeWritePtr ( _In_opt_  PVOID,
_In_  UINT_PTR 
)

◆ IsBadReadPtr()

BOOL WINAPI IsBadReadPtr ( _In_opt_ CONST VOID ,
_In_  UINT_PTR 
)

◆ IsBadStringPtrA()

BOOL WINAPI IsBadStringPtrA ( _In_opt_  LPCSTR,
_In_  UINT_PTR 
)

◆ IsBadStringPtrW()

BOOL WINAPI IsBadStringPtrW ( _In_opt_  LPCWSTR,
_In_  UINT_PTR 
)

◆ IsBadWritePtr()

BOOL WINAPI IsBadWritePtr ( _In_opt_  PVOID,
_In_  UINT_PTR 
)

◆ IsDebuggerPresent()

BOOL WINAPI IsDebuggerPresent ( void  )

Definition at line 580 of file debugger.c.

581{
582 return (BOOL)NtCurrentPeb()->BeingDebugged;
583}

Referenced by _CrtDbgReportWindow(), ConsoleControlDispatcher(), init_funcs(), InitThreads(), and wmain().

◆ IsProcessorFeaturePresent()

BOOL WINAPI IsProcessorFeaturePresent ( DWORD  )

◆ IsSystemResumeAutomatic()

BOOL WINAPI IsSystemResumeAutomatic ( void  )

Definition at line 197 of file power.c.

198{
200}
BOOLEAN NTAPI NtIsSystemResumeAutomatic(VOID)
Definition: power.c:934

◆ IsTextUnicode()

BOOL WINAPI IsTextUnicode ( _In_reads_bytes_(iSize) CONST VOID lpv,
_In_ int  iSize,
_Inout_opt_ LPINT  lpiResult 
)

◆ IsValidAcl()

BOOL WINAPI IsValidAcl ( PACL  pAcl)

Definition at line 1209 of file security.c.

1210{
1211 return RtlValidAcl (pAcl);
1212}
NTSYSAPI BOOLEAN NTAPI RtlValidAcl(PACL Acl)

Referenced by DumpAcl(), CSecurityDescriptor::HasValidDACL(), CSecurityDescriptor::HasValidSACL(), test_acls(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), and test_GetShellSecurityDescriptor().

◆ IsValidSecurityDescriptor()

BOOL WINAPI IsValidSecurityDescriptor ( PSECURITY_DESCRIPTOR  pSecurityDescriptor)

Definition at line 176 of file sec.c.

177{
179
180 Result = RtlValidSecurityDescriptor (pSecurityDescriptor);
181 if (Result == FALSE)
183
184 return (BOOL)Result;
185}
NTSYSAPI BOOLEAN NTAPI RtlValidSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor)
Definition: sd.c:1054
#define STATUS_INVALID_SECURITY_DESCR
Definition: ntstatus.h:357
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409

Referenced by get_sd(), test_GetShellSecurityDescriptor(), and validate_default_security_descriptor().

◆ IsValidSid()

◆ LeaveCriticalSection()

void WINAPI LeaveCriticalSection ( LPCRITICAL_SECTION  )

Referenced by ___w64_mingwthr_add_key_dtor(), ___w64_mingwthr_remove_key_dtor(), __GetLCID(), __mingwthr_run_key_dtors(), __xmlGlobalInitMutexUnlock(), _HandleDeletePort(), _kbhit(), _unlock(), _unlock_file(), ACMWrapper_Receive(), ACTION_FinishCustomActions(), add_cookie(), add_cookie_headers(), add_hfontitem(), add_message_(), AddDll(), CStaticIconList::AddIcon(), CIconWatcher::AddIconToWatcher(), AddNewEventSource(), alloc_bstr(), alloc_device(), alloc_handle(), alloc_msi_remote_handle(), alloc_msihandle(), alloc_object(), AllocateEnumContext(), ANIMATE_AnimationThread(), ANIMATE_DoStop(), ANIMATE_Timer(), ANIMATE_WindowProc(), apartment_find_mta(), apartment_findfromoxid(), apartment_findfromtid(), apartment_findmain(), apartment_freeunusedlibraries(), apartment_get_or_create(), apartment_getclassobject(), apartment_hostobject_in_hostapt(), apartment_release(), ApiUnlock(), async_read_file_proc(), AsyncInetAcquire(), AsyncInetCancel(), AsyncInetIsCanceled(), AsyncInetRelease(), AtlModuleAddCreateWndData(), AtlModuleExtractCreateWndData(), AVIDec_NotifyDrop(), AVIDec_Receive(), AVISplitter_Receive(), AVISplitter_seek(), BackgroundCopyFile_GetProgress(), BackgroundCopyJob_AddFileSet(), BackgroundCopyJob_Cancel(), BackgroundCopyJob_Complete(), BackgroundCopyJob_GetProgress(), BackgroundCopyJob_RemoveCredentials(), BackgroundCopyJob_Resume(), BackgroundCopyJob_SetCredentials(), BackgroundCopyJob_SetDescription(), BackgroundCopyManager_CreateJob(), BackgroundCopyManager_GetJob(), BaseFilterImpl_GetState(), BaseFilterImpl_GetSyncSource(), BaseFilterImpl_JoinFilterGraph(), BaseFilterImpl_SetSyncSource(), BaseInputPinImpl_BeginFlush(), BaseInputPinImpl_EndFlush(), BaseInputPinImpl_EndOfStream(), BaseInputPinImpl_ReceiveConnection(), BaseMemAllocator_Commit(), BaseMemAllocator_Decommit(), BaseMemAllocator_GetBuffer(), BaseMemAllocator_GetProperties(), BaseMemAllocator_ReleaseBuffer(), BaseMemAllocator_SetProperties(), BaseOutputPinImpl_Active(), BaseOutputPinImpl_BreakConnect(), BaseOutputPinImpl_Connect(), BaseOutputPinImpl_Deliver(), BaseOutputPinImpl_Disconnect(), BaseOutputPinImpl_Inactive(), BasePinImpl_ConnectedTo(), BasePinImpl_ConnectionMediaType(), BasePinImpl_Disconnect(), BaseRenderer_InputPin_BeginFlush(), BaseRenderer_InputPin_Disconnect(), BaseRenderer_InputPin_EndFlush(), BaseRenderer_InputPin_EndOfStream(), BaseRenderer_InputPin_ReceiveConnection(), BaseRendererImpl_Pause(), BaseRendererImpl_Receive(), BaseRendererImpl_Run(), BaseRendererImpl_SetSyncSource(), BaseRendererImpl_Stop(), BasicAudio_get_Balance(), BasicAudio_get_Volume(), BasicAudio_GetIDsOfNames(), BasicAudio_GetTypeInfo(), BasicAudio_GetTypeInfoCount(), BasicAudio_Invoke(), BasicAudio_put_Balance(), BasicAudio_put_Volume(), BasicVideo2_GetPreferredAspectRatio(), BasicVideo_get_AvgTimePerFrame(), BasicVideo_get_BitErrorRate(), BasicVideo_get_BitRate(), BasicVideo_get_DestinationHeight(), BasicVideo_get_DestinationLeft(), BasicVideo_get_DestinationTop(), BasicVideo_get_DestinationWidth(), BasicVideo_get_SourceHeight(), BasicVideo_get_SourceLeft(), BasicVideo_get_SourceTop(), BasicVideo_get_SourceWidth(), BasicVideo_get_VideoHeight(), BasicVideo_get_VideoWidth(), BasicVideo_GetCurrentImage(), BasicVideo_GetDestinationPosition(), BasicVideo_GetIDsOfNames(), BasicVideo_GetSourcePosition(), BasicVideo_GetTypeInfo(), BasicVideo_GetTypeInfoCount(), BasicVideo_GetVideoPaletteEntries(), BasicVideo_GetVideoSize(), BasicVideo_Invoke(), BasicVideo_IsUsingDefaultDestination(), BasicVideo_IsUsingDefaultSource(), BasicVideo_put_DestinationHeight(), BasicVideo_put_DestinationLeft(), BasicVideo_put_DestinationTop(), BasicVideo_put_DestinationWidth(), BasicVideo_put_SourceHeight(), BasicVideo_put_SourceLeft(), BasicVideo_put_SourceTop(), BasicVideo_put_SourceWidth(), BasicVideo_SetDefaultDestinationPosition(), BasicVideo_SetDefaultSourcePosition(), BasicVideo_SetDestinationPosition(), BasicVideo_SetSourcePosition(), BitmapClipper_Initialize(), BitmapImpl_GetResolution(), BitmapImpl_SetResolution(), BitmapScaler_CopyPixels(), BitmapScaler_Initialize(), BmpDecoder_Initialize(), BmpFrameDecode_CopyPalette(), BmpFrameDecode_CopyPixels(), BreakHandler(), build_request_header(), build_response_header(), BuildServiceArray(), BuildServiceTable(), cache_authorization(), cache_basic_authorization(), cache_connection(), callwndproc_proc(), cancel_lock(), cancel_request(), CertAddStoreToCollection(), CertRemoveStoreFromCollection(), ChannelHooks_ClientFillBuffer(), ChannelHooks_ClientGetSize(), ChannelHooks_ClientNotify(), ChannelHooks_ServerFillBuffer(), ChannelHooks_ServerGetSize(), ChannelHooks_ServerNotify(), check_codebase(), check_dinput_hooks(), check_hook_thread(), check_notification(), clear_font_cache(), client_state_add(), client_state_remove(), clipboard_thread(), clipboard_wnd_proc(), ClipTestProc(), ClipThread(), CLRRuntimeInfo_GetRuntimeHost(), CoAddRefServerProcess(), CoGetPSClsid(), collect_connections_proc(), collect_query_thread(), Collection_control(), Collection_enumCert(), Collection_enumCRL(), Collection_enumCTL(), COM_GetRegisteredClassObject(), COM_RevokeAllClasses(), CKsAllocator::Commit(), COMPOBJ_DllList_Add(), COMPOBJ_DllList_Free(), COMPOBJ_DllList_Get(), COMPOBJ_DllList_ReleaseRef(), ComponentEnum_Clone(), ComponentEnum_Next(), ComponentEnum_Reset(), ComponentEnum_Skip(), ComputeRouteMetric(), ConDrvDeleteConsole(), ConDrvValidateConsoleUnsafe(), condvar_base_consumer(), condvar_base_producer(), condvar_consumer(), condvar_producer(), connection_collector(), ConSrvInheritConsole(), ConSrvNewProcess(), ConSrvReleaseConsole(), ContextPropertyList_Copy(), ContextPropertyList_EnumPropIDs(), ContextPropertyList_FindProperty(), ContextPropertyList_RemoveProperty(), ContextPropertyList_SetProperty(), copy_handle(), CoRegisterClassObject(), CoRegisterMallocSpy(), CoRegisterMessageFilter(), CoRegisterPSClsid(), CoReleaseServerProcess(), CoRevokeClassObject(), CoRevokeMallocSpy(), create_cache_entry(), CreateComponentInfo(), CreateSession(), CredUIConfirmCredentialsW(), CredUIPromptForCredentialsW(), critsect_locked_thread(), CRYPT_CacheSIP(), CRYPT_CollectionAddContext(), CRYPT_GetCachedSIP(), CRYPT_RegDeleteContext(), CRYPT_RegWriteToReg(), CryptEnumOIDInfo(), CryptFindOIDInfo(), CryptGetOIDFunctionAddress(), CryptInitOIDFunctionSet(), CryptInstallOIDFunctionAddress(), custom_client_thread(), D3D9BaseObject_UnlockDevice(), D3DAssemble(), D3DCompile2(), D3DPreprocess(), D3DXAssembleShaderFromFileW(), D3DXCompileShaderFromFileW(), D3DXCreateEffectFromFileExW(), D3DXPreprocessShaderFromFileW(), DdeAddPair(), DdeGetPair(), dec_ext_ref(), dec_int_ref(), CKsAllocator::Decommit(), ATL::CImage::CInitGDIPlus::DecreaseCImageCount(), deleg_open_find(), delegation_find(), delegation_remove(), delete_dc(), dequeue_task(), DequeueSidLookup(), DestroyAcceleratorTable(), DestroySession(), detach_thread(), dialog_proc(), dinput_mouse_hook(), RdpClientUI::Display_EndUpdate(), RdpClientUI::DisplayWindowProc(), DllMain(), do_msidbCustomActionTypeDll(), do_msidbCustomActionTypeScript(), DP_MSG_BuildAndLinkReplyStruct(), DP_MSG_ReplyReceived(), drain_content(), DRIVER_AddToList(), DRIVER_Dump(), DRIVER_GetNumberOfModuleRefs(), DRIVER_RemoveFromList(), DRIVER_UnloadAll(), DSOUND_callback(), DSOUND_capture_callback(), DSOUND_PerformMix(), DSOUND_PrimaryClose(), DSOUND_PrimaryDestroy(), DSOUND_PrimaryStop(), DSOUND_WaveQueue(), DSoundRender_BreakConnect(), DSoundRender_HandleEndOfStream(), DSoundRender_Pause(), DSoundRender_SendSampleData(), DumpEventSourceList(), ElfCreateBackupLogHandle(), ElfCreateEventLogHandle(), ElfDeleteEventLogHandle(), ElfGetLogHandleEntryByHandle(), EMF_Delete_HENHMETAFILE(), EMF_GetEnhMetaHeader(), ensure_cred_handle(), enum_copy_job_create(), EnumBackgroundCopyFilesConstructor(), EnumerateSecurityPackagesW(), ept_delete(), ept_insert(), ept_map(), EventsQueue_GetEvent(), EventsQueue_PutEvent(), Execute(), ExecutePipeline(), expect_event(), CStaticIconList::ExtractIcon(), file_device_find_or_create(), file_layout_recall_all(), file_layout_recall_file(), file_layout_recall_fsid(), FileAsyncReader_BeginFlush(), FileAsyncReader_EndFlush(), FileAsyncReader_Request(), FileAsyncReader_WaitForNext(), FileOpenDlgProc95(), fileTransfer(), FillBuffer(), FilterGraph2_Connect(), FilterGraph2_Render(), FilterGraph2_SetDefaultSyncSource(), find_action_by_guid(), find_proxy_manager(), find_runtimes(), FindDll(), FlipRotator_Initialize(), flush_sequence(), FormatConverter_Initialize(), free_authorization_cache(), free_cookie(), free_custom_action_data(), free_global_proxy(), free_handle(), FreeEnumContext(), FreeViewStatePropertyBagCache(), GdiCreateClientObjLink(), GdiGetClientObjLink(), GdiRemoveClientObjLink(), get_cookie_header(), get_dc(), get_dc_data_ex(), get_delegating_vtbl(), get_dispex_data(), get_ea_list(), get_feature_from_process(), get_handle_object(), get_host_header(), get_ioinfo_alloc(), get_local_server_stream(), get_mime_filter(), get_or_create_threaddata(), get_protocol_handler(), get_protocol_info(), get_server(), get_stub_manager(), get_stub_manager_from_ipid(), get_stub_manager_from_object(), get_tls_data(), get_useragent(), CKsAllocator::GetBuffer(), GetEventSourceByName(), CStaticIconList::GetIconSize(), CStaticIconList::GetImageCount(), GetPriorityInfo(), GetSession(), GetSocketStructure(), CProgressDialog::GetWindow(), GifDecoder_GetFrameCount(), GifDecoder_Initialize(), GifEncoder_Commit(), GifEncoder_CreateNewFrame(), GifEncoder_Initialize(), GifEncoder_SetPalette(), GifFrameEncode_Commit(), GifFrameEncode_Initialize(), GifFrameEncode_SetPalette(), GifFrameEncode_SetPixelFormat(), GifFrameEncode_SetResolution(), GifFrameEncode_SetSize(), GifFrameEncode_WritePixels(), GifFrameEncode_WriteSource(), GPNotificationThreadProc(), grab_object(), GraphConfig_Reconfigure(), GuiApplyUserSettings(), GuiConsoleShowConsoleProperties(), GuiConsoleSwitchFullScreen(), GuiPaintGraphicsBuffer(), GuiPaintTextModeBuffer(), GuiReleaseScreenBuffer(), GuiSetActiveScreenBuffer(), handle_lock(), handle_read(), handle_setsize(), handle_unlock(), handle_write(), hook_thread_proc(), HTTP_clear_response_headers(), HTTP_HttpQueryInfoW(), HTTP_HttpSendRequestW(), http_options_GetCustomHeaders(), http_options_SetCustomHeaders(), http_process_keep_alive(), HTTP_ProcessCookies(), HTTP_ProcessExpires(), HTTP_ProcessHeader(), HTTP_ProcessLastModified(), HTTP_ReceiveRequestData(), http_release_netconn(), HTTPREQ_QueryDataAvailable(), HTTPREQ_Read(), HTTPREQ_ReadFile(), IcoDecoder_GetFrame(), IcoDecoder_GetFrameCount(), IcoDecoder_Initialize(), IDirect3D9Impl_Release(), IDirect3DDevice9Base_Release(), IDirectInputDevice2WImpl_Acquire(), IDirectInputDevice2WImpl_GetDeviceData(), IDirectInputDevice2WImpl_Release(), IDirectInputDevice2WImpl_SetCooperativeLevel(), IDirectInputDevice2WImpl_SetDataFormat(), IDirectInputDevice2WImpl_SetEventNotification(), IDirectInputDevice2WImpl_SetProperty(), IDirectInputDevice2WImpl_Unacquire(), IDirectPlayLobby3AImpl_EnumLocalApplications(), IDirectPlayLobby3AImpl_GetConnectionSettings(), IDirectPlayLobby3AImpl_RunApplication(), IDirectPlayLobby3AImpl_SetConnectionSettings(), IDirectPlayLobby3Impl_GetConnectionSettings(), IDirectPlayLobby3Impl_SetConnectionSettings(), IDirectSoundCaptureBufferImpl_GetCurrentPosition(), IDirectSoundCaptureBufferImpl_GetStatus(), IDirectSoundCaptureBufferImpl_Lock(), IDirectSoundCaptureBufferImpl_Start(), IDirectSoundCaptureBufferImpl_Stop(), IMalloc_fnAlloc(), IMalloc_fnDidAlloc(), IMalloc_fnFree(), IMalloc_fnGetSize(), IMalloc_fnHeapMinimize(), IMalloc_fnRealloc(), IMAPIPROP_Unlock(), inc_ext_ref(), inc_int_ref(), ATL::CImage::CInitGDIPlus::IncreaseCImageCount(), ATL::CImage::CInitGDIPlus::Init(), CStaticIconList::Init(), init_script_cache(), init_slot_table(), InitDisplayAttrbuteLib(), initialize_directinput_instance(), InitLangChangeHotKey(), InstallCallback_OnStartBinding(), InstallCallback_OnStopBinding(), installer_proc(), INTERNET_LoadProxySettings(), InternetDeInitializeAutoProxyDll(), InternetGetCookieExW(), InternetGetProxyInfo(), InternetSession_RegisterMimeFilter(), InternetSession_UnregisterMimeFilter(), InternetSetOptionW(), IntGetIcdData(), IntProtectHandle(), IntUnprotectHandle(), IPropertyStorage_fnCommit(), IPropertyStorage_fnDeleteMultiple(), IPropertyStorage_fnDeletePropertyNames(), IPropertyStorage_fnReadMultiple(), IPropertyStorage_fnReadPropertyNames(), IPropertyStorage_fnRevert(), IPropertyStorage_fnWriteMultiple(), IPropertyStorage_fnWritePropertyNames(), IrotContextHandle_rundown(), IrotEnumRunning(), IrotGetObject(), IrotGetTimeOfLastChange(), IrotIsRunning(), IrotNoteChangeTime(), IrotRegister(), IrotRevoke(), is_dst_name_opened(), is_module_registered(), is_supported_algid(), is_valid_handle(), ITypeLib2_fnRelease(), JSPROXY_InternetInitializeAutoProxyDll(), KeyboardCallback(), keylist_GetCount(), keylist_RemoveAllKeys(), layout_state_find_and_delete(), layout_state_find_or_create(), ATL::CCriticalSection::Leave(), LL_hook_proc(), load_gecko(), LocalmonClosePort(), LocalmonDeletePort(), LocalmonEnumPorts(), LocalmonOpenPort(), LocalmonXcvClosePort(), LocalServer_QueryService(), LogfCloseAll(), LogfListAddItem(), LogfListItemByIndex(), LogfListItemByName(), LogfListItemCount(), LogfListRemoveItem(), lookup_handle(), LookupEnumContext(), LookupSidCache(), LookupThreadProc(), Main_DirectDraw_CreatePalette(), Main_DirectDraw_CreateSurface(), Main_DirectDraw_CreateSurface4(), Main_DirectDraw_GetCaps(), Main_DirectDraw_GetDeviceIdentifier7(), map_font(), MCI_Close(), MCI_GetDriver(), MCI_GetDriverFromString(), MCI_LoadMciDriver(), MCI_SysInfo(), MCI_UnLoadMciDriver(), MCIAVI_drvClose(), MCIAVI_mciBreak(), MCIAVI_mciClose(), MCIAVI_mciGetDevCaps(), MCIAVI_mciInfo(), MCIAVI_mciOpen(), MCIAVI_mciPause(), MCIAVI_mciPlay(), MCIAVI_mciPut(), MCIAVI_mciResume(), MCIAVI_mciSeek(), MCIAVI_mciSet(), MCIAVI_mciStatus(), MCIAVI_mciStep(), MCIAVI_mciStop(), MCIAVI_mciUpdate(), MCIAVI_mciWhere(), MCIAVI_mciWindow(), MCIAVI_player(), MCIAVI_waveCallback(), MCIAVI_WindowProc(), MCICDA_playLoop(), MediaControl_GetState(), MediaControl_Pause(), MediaControl_Run(), MediaControl_Stop(), MediaEventSink_Notify(), MediaFilter_GetSyncSource(), MediaFilter_SetSyncSource(), MediaSeeking_CheckCapabilities(), MediaSeeking_GetCapabilities(), MediaSeeking_GetDuration(), MediaSeeking_GetPositions(), MediaSeeking_SetPositions(), MediaSeekingPassThru_GetCurrentPosition(), MemStore_addContext(), MemStore_deleteContext(), MemStore_enumContext(), MetadataHandler_GetValue(), MetadataHandler_GetValueByIndex(), MetadataHandler_LoadEx(), MetadataHandlerEnum_Clone(), MetadataHandlerEnum_Next(), MetadataHandlerEnum_Reset(), MetadataHandlerEnum_Skip(), MimeInternat_FindCharset(), MimeInternat_GetCharsetInfo(), MMDevEnum_RegisterEndpointNotificationCallback(), MMDevEnum_UnregisterEndpointNotificationCallback(), MMIO_Create(), MMIO_Destroy(), MMIO_Get(), MPEGSplitter_seek(), msi_get_remote(), MsiCloseAllHandles(), MsiCloseHandle(), msihandle2msiinfo(), msiobj_unlock(), MULTIMEDIA_PlaySound(), nbCall(), NBCmdQueueAdd(), NBCmdQueueCancel(), NBCmdQueueCancelAll(), NBCmdQueueComplete(), nbInternalEnum(), nbInternalHangup(), NBNameCacheAddEntry(), NBNameCacheFindEntry(), nbReset(), nbSStat(), NDRCContextBinding(), NDRCContextMarshall(), NDRCContextUnmarshall(), NetBIOSEnableAdapter(), NetBIOSEnumAdapters(), NetBIOSRegisterAdapter(), NetBIOSShutdown(), NetBTRecv(), new_stub_manager(), nfs41_client_delegation_free(), nfs41_client_delegation_return_lru(), nfs41_client_state_revoked(), nfs41_delegation_granted(), nfs41_recover_client_state(), nfs41_recover_stateid(), nfs41_recovery_finish(), nfs41_recovery_start_or_wait(), nfs41_root_mount_addrs(), nfs41_root_session(), nfs41_server_deref(), nfs41_server_find_or_create(), nfs41_server_ref(), nfs41_session_bad_slot(), nfs41_session_bump_seq(), nfs41_session_free_slot(), nfs41_session_get_slot(), nfs41_session_recall_slot(), notif_thread_proc(), ObtainUserAgentString(), OLEFontImpl_Release(), OleGetClipboard(), OnClose(), OnFocus(), OnGetMinMaxInfo(), OnKey(), OnMouse(), OnPaint(), OnScroll(), OnSize(), OnTimer(), open_connection(), open_http_connection(), OutputQueue_Construct(), OutputQueue_Destroy(), OutputQueue_EOS(), OutputQueue_ReceiveMultiple(), OutputQueue_SendAnyway(), OutputQueueImpl_ThreadProc(), PaletteImpl_GetColorCount(), PaletteImpl_GetColors(), PaletteImpl_GetType(), PaletteImpl_HasAlpha(), PaletteImpl_InitializeCustom(), PaletteImpl_InitializeFromPalette(), PaletteImpl_InitializePredefined(), PaletteImpl_IsBlackWhite(), PaletteImpl_IsGrayscale(), Parser_GetState(), Parser_OutputPin_BreakConnect(), Parser_OutputPin_Connect(), Parser_Pause(), Parser_PullPin_Disconnect(), Parser_PullPin_ReceiveConnection(), Parser_Run(), Parser_SetSyncSource(), Parser_Stop(), path_GetClassName(), path_GetInfo(), path_GetKeyList(), path_GetNamespaceAt(), path_GetNamespaceCount(), path_GetServer(), path_GetText(), path_RemoveAllNamespaces(), path_RemoveNamespaceAt(), path_SetClassName(), path_SetNamespaceAt(), path_SetServer(), path_SetText(), CKsProxy::Pause(), PdhAddCounterW(), PdhCalculateCounterFromRawValue(), PdhCloseQuery(), PdhCollectQueryData(), PdhCollectQueryDataEx(), PdhCollectQueryDataWithTime(), PdhGetCounterInfoA(), PdhGetCounterInfoW(), PdhGetCounterTimeBase(), PdhGetFormattedCounterValue(), PdhGetRawCounterValue(), PdhRemoveCounter(), PdhSetCounterScaleFactor(), PerfDataGet(), PerfDataGetBasePriority(), PerfDataGetCommitChargeLimitK(), PerfDataGetCommitChargePeakK(), PerfDataGetCommitChargeTotalK(), PerfDataGetCPUTime(), PerfDataGetCPUUsage(), PerfDataGetGDIObjectCount(), PerfDataGetHandleCount(), PerfDataGetImageName(), PerfDataGetIOCounters(), PerfDataGetKernelMemoryNonPagedK(), PerfDataGetKernelMemoryPagedK(), PerfDataGetKernelMemoryTotalK(), PerfDataGetNonPagedPoolUsagePages(), PerfDataGetPagedPoolUsagePages(), PerfDataGetPageFaultCount(), PerfDataGetPageFaultCountDelta(), PerfDataGetPeakWorkingSetSizeBytes(), PerfDataGetPhysicalMemoryAvailableK(), PerfDataGetPhysicalMemorySystemCacheK(), PerfDataGetPhysicalMemoryTotalK(), PerfDataGetProcessCount(), PerfDataGetProcessId(), PerfDataGetProcessIndex(), PerfDataGetProcessorSystemUsage(), PerfDataGetProcessorUsage(), PerfDataGetSessionId(), PerfDataGetSystemHandleCount(), PerfDataGetThreadCount(), PerfDataGetTotalThreadCount(), PerfDataGetUserName(), PerfDataGetUSERObjectCount(), PerfDataGetVirtualMemorySizeBytes(), PerfDataGetWorkingSetSizeBytes(), PerfDataGetWorkingSetSizeDelta(), PerfDataRefresh(), pipe_thread(), PlayNote(), PlaySound_Free(), pnfs_file_device_get(), pnfs_file_device_list_free(), pnfs_file_device_list_invalidate(), pnfs_file_device_notify(), pnfs_file_device_put(), pnfs_layout_list_free(), primarybuffer_SetFormat(), PrimaryBufferImpl_GetCurrentPosition(), PrimaryBufferImpl_Play(), PrimaryBufferImpl_SetPan(), PrimaryBufferImpl_SetVolume(), PrimaryBufferImpl_Stop(), PrimaryDirectSoundBuffer_ReleaseLock(), proc_PlaySound(), process_tasks(), processFile(), processJob(), ProcessPlayingNotes(), progress_callback_http(), progress_callback_local(), PropertyStore_GetAt(), PropertyStore_GetCount(), PropertyStore_GetState(), PropertyStore_GetValue(), PropertyStore_GetValueAndState(), PropertyStore_SetState(), PropertyStore_SetValue(), PropertyStore_SetValueAndState(), proxy_manager_construct(), proxy_manager_create_ifproxy(), proxy_manager_destroy(), proxy_manager_disconnect(), proxy_manager_find_ifproxy(), proxy_manager_get_remunknown(), PullPin_BeginFlush(), PullPin_Disconnect(), PullPin_EndFlush(), PullPin_EndOfStream(), PullPin_Flush(), PullPin_InitProcessing(), PullPin_PauseProcessing(), PullPin_ReceiveConnection(), PullPin_Thread_Pause(), PullPin_Thread_Process(), PullPin_Thread_Stop(), push_task(), queue_task(), read_line(), ReadPipeCompletion(), RecordAndDispatch(), ReferenceClock_AdvisePeriodic(), ReferenceClock_AdviseTime(), ReferenceClock_GetTime(), register_namespace(), RegisterGPNotification(), RegisterMessagePumpHook(), release_delegating_vtbl(), release_font(), release_handle(), release_host(), release_ioinfo(), CKsAllocator::ReleaseBuffer(), ReleaseDDThreadLock(), ATL::CImage::CInitGDIPlus::ReleaseGDIPlus(), remove_header(), CStaticIconList::RemoveAll(), CIconWatcher::RemoveIconFromWatcher(), RendererPosPassThru_EOS(), RendererPosPassThru_RegisterMediaTime(), RendererPosPassThru_ResetMediaTime(), request_wait(), retrieve_cached_authorization(), retrieve_cached_basic_authorization(), revoke_registered_psclsids(), rpc_cancel_thread(), RPC_RegisterChannelHook(), RPC_RegisterInterface(), RPC_UnregisterAllChannelHooks(), RPC_UnregisterInterface(), RpcAssoc_GetIdleConnection(), RpcAssoc_Release(), RpcAssoc_ReleaseIdleConnection(), RpcMgmtIsServerListening(), RpcMgmtWaitServerListen(), RpcpStartRpcServer(), RpcpStopRpcServer(), RpcpStopRpcServerEx(), RPCRT4_destroy_all_protseqs(), RPCRT4_find_interface(), RPCRT4_get_or_create_serverprotseq(), RPCRT4_GetAssociation(), RPCRT4_protseq_is_endpoint_registered(), rpcrt4_protseq_ncacn_ip_tcp_open_endpoint(), rpcrt4_protseq_ncacn_np_open_endpoint(), rpcrt4_protseq_ncalrpc_open_endpoint(), rpcrt4_protseq_np_get_wait_array(), rpcrt4_protseq_np_wait_for_new_connection(), rpcrt4_protseq_sock_get_wait_array(), rpcrt4_protseq_sock_wait_for_new_connection(), RPCRT4_ReleaseConnection(), RPCRT4_server_thread(), RPCRT4_ServerFreeAllRegisteredAuthInfo(), RPCRT4_ServerGetRegisteredAuthInfo(), RPCRT4_SetThreadCurrentConnection(), rpcrt4_spawn_connection(), RPCRT4_start_listen(), RPCRT4_start_listen_protseq(), RPCRT4_stop_listen(), RPCRT4_use_protseq(), RpcServerAssoc_AllocateContextHandle(), RpcServerAssoc_FindContextHandle(), RpcServerAssoc_GetAssociation(), RpcServerAssoc_ReleaseContextHandle(), RpcServerAssoc_UpdateContextHandle(), RpcServerInqBindings(), RpcServerRegisterAuthInfoW(), RpcServerRegisterIf3(), RpcServerUnregisterIf(), RpcSmDestroyClientContext(), RpcThreadRoutine(), CKsProxy::Run(), RunningObjectTableImpl_GetObject(), RunningObjectTableImpl_GetTimeOfLastChange(), RunningObjectTableImpl_IsRunning(), RunningObjectTableImpl_NoteChangeTime(), RunningObjectTableImpl_Register(), RunningObjectTableImpl_Revoke(), RuntimeHost_AddDomain(), RuntimeHost_DeleteDomain(), RuntimeHost_GetDefaultDomain(), SampleGrabber_callback(), SampleGrabber_ISampleGrabber_GetCurrentBuffer(), SampleGrabber_ISampleGrabber_SetBufferSamples(), schan_EnumerateSecurityPackagesW(), ScmAutoStartServices(), ScmControlService(), ScmStartService(), ScriptFreeCache(), SECUR32_addPackages(), SECUR32_addProvider(), SECUR32_freeProviders(), SendMenuEvent(), server_release(), ServiceStarter(), session_set_option(), set_content_length(), set_cookie(), set_feature_on_process(), CProgressDialog::SetCancelMsg(), CProgressDialog::SetLine(), CKsAllocator::SetNotify(), SetPriorityInfo(), CProgressDialog::SetProgress64(), CKsAllocator::SetProperties(), CProgressDialog::SetTitle(), SetupCloseLog(), SetupLogErrorA(), SetupOpenLog(), SHChangeNotifyRegister(), SHGetViewStatePropertyBag(), SIC_Destroy(), SIC_GetIconIndex(), SIC_IconAppend(), SmartTeeFilter_Run(), SmartTeeFilter_Stop(), SmartTeeFilterCapture_EnumMediaTypes(), SmartTeeFilterInput_GetMediaType(), SmartTeeFilterInput_Receive(), SmartTeeFilterPreview_EnumMediaTypes(), snapshot_Release(), SourceSeekingImpl_GetAvailable(), SourceSeekingImpl_GetCurrentPosition(), SourceSeekingImpl_GetDuration(), SourceSeekingImpl_GetPositions(), SourceSeekingImpl_GetRate(), SourceSeekingImpl_GetStopPosition(), SourceSeekingImpl_GetTimeFormat(), SourceSeekingImpl_IsUsingTimeFormat(), SourceSeekingImpl_SetPositions(), SourceSeekingImpl_SetRate(), start_apartment_remote_unknown(), CProgressDialog::StartProgressDialog(), StdGlobalInterfaceTable_GetInterfaceFromGlobal(), StdGlobalInterfaceTable_RegisterInterfaceInGlobal(), StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(), CKsProxy::Stop(), StopNote(), CProgressDialog::StopProgressDialog(), StreamOnMemory_Read(), StreamOnMemory_Seek(), StreamOnMemory_Write(), StreamOnStreamRange_Read(), StreamOnStreamRange_Seek(), StreamOnStreamRange_Stat(), StreamOnStreamRange_Write(), stub_manager_disconnect(), stub_manager_ext_addref(), stub_manager_ext_release(), stub_manager_find_ifstub(), stub_manager_int_addref(), stub_manager_int_release(), stub_manager_ipid_to_ifstub(), stub_manager_new_ifstub(), stub_manager_notify_unmarshal(), SvchostStopCallback(), SvcNetBiosClose(), SvcNetBiosOpen(), SvcNetBiosReset(), SvcRegisterStopCallback(), SysFreeString(), SysKeyboardWImpl_GetDeviceState(), SysMouseWImpl_GetDeviceState(), SystemClockAdviseThread(), SystemClockImpl_AdvisePeriodic(), SystemClockImpl_AdviseTime(), SystemClockImpl_GetTime(), SystemClockImpl_Unadvise(), test_condvars_base(), test_RtlIsCriticalSectionLocked(), TestFilter_GetState(), TestFilter_InputPin_ReceiveConnection(), TestFilter_JoinFilterGraph(), TestFilter_OutputPin_Connect(), TestFilter_Pin_ConnectedTo(), TestFilter_Pin_ConnectionMediaType(), TestFilter_Pin_Disconnect(), TF_GetMlngHKL(), TF_GetMlngIconIndex(), TF_InitMlngInfo(), TgaDecoder_Frame_CopyPalette(), TgaDecoder_Initialize(), TgaDecoder_ReadImage(), TIME_MMSysTimeCallback(), TIME_SetEventInternal(), timeKillEvent(), TLB_ReadTypeLib(), transfer_file_http(), TransformFilter_Input_Receive(), TransformFilter_InputPin_BeginFlush(), TransformFilter_InputPin_EndFlush(), TransformFilter_InputPin_NewSegment(), TransformFilterImpl_Pause(), TransformFilterImpl_Run(), TransformFilterImpl_Stop(), transitionJobState(), U32LoadAccelerators(), CIconWatcher::Uninitialize(), uninitialize_directinput_instance(), UninitializeGPNotifications(), UnloadServiceDll(), ATL::CComCriticalSection::Unlock(), unregister_namespace(), UnregisterGPNotification(), UnregisterMessagePumpHook(), UrlMkGetSessionOption(), UrlMkSetSessionOption(), UuidCreateSequential(), VARIANT_GetLocalisedNumberChars(), VideoRenderer_EndFlush(), VideoRenderer_GetStaticImage(), VideoRenderer_Pause(), VideoWindow_get_AutoShow(), VideoWindow_get_BackgroundPalette(), VideoWindow_get_BorderColor(), VideoWindow_get_Caption(), VideoWindow_get_FullScreenMode(), VideoWindow_get_Height(), VideoWindow_get_Left(), VideoWindow_get_MessageDrain(), VideoWindow_get_Owner(), VideoWindow_get_Top(), VideoWindow_get_Visible(), VideoWindow_get_Width(), VideoWindow_get_WindowState(), VideoWindow_get_WindowStyle(), VideoWindow_get_WindowStyleEx(), VideoWindow_GetIDsOfNames(), VideoWindow_GetMaxIdealImageSize(), VideoWindow_GetMinIdealImageSize(), VideoWindow_GetRestorePosition(), VideoWindow_GetTypeInfo(), VideoWindow_GetTypeInfoCount(), VideoWindow_GetWindowPosition(), VideoWindow_HideCursor(), VideoWindow_Invoke(), VideoWindow_IsCursorHidden(), VideoWindow_NotifyOwnerMessage(), VideoWindow_put_AutoShow(), VideoWindow_put_BackgroundPalette(), VideoWindow_put_BorderColor(), VideoWindow_put_Caption(), VideoWindow_put_FullScreenMode(), VideoWindow_put_Height(), VideoWindow_put_Left(), VideoWindow_put_MessageDrain(), VideoWindow_put_Owner(), VideoWindow_put_Top(), VideoWindow_put_Visible(), VideoWindow_put_Width(), VideoWindow_put_WindowState(), VideoWindow_put_WindowStyle(), VideoWindow_put_WindowStyleEx(), VideoWindow_SetWindowForeground(), VideoWindow_SetWindowPosition(), VMR7WindowlessControl_SetVideoPosition(), VMR9_GetStaticImage(), VMR9FilterConfig_SetRenderingMode(), VMR9WindowlessControl_RepaintVideo(), VMR9WindowlessControl_SetVideoClippingWindow(), VMR9WindowlessControl_SetVideoPosition(), CIconWatcher::WatcherThread(), WAVEParserImpl_seek(), wbem_services_CancelAsyncCall(), wbem_services_ExecNotificationQueryAsync(), wbem_services_ExecQueryAsync(), wbem_services_Release(), WDML_GetInstance(), WDML_Initialize(), WDML_NotifyThreadDetach(), wined3d_mutex_unlock(), wined3d_wndproc_mutex_unlock(), winhttp_request_Abort(), winhttp_request_get_Option(), winhttp_request_get_ResponseBody(), winhttp_request_get_ResponseStream(), winhttp_request_get_ResponseText(), winhttp_request_get_Status(), winhttp_request_get_StatusText(), winhttp_request_GetAllResponseHeaders(), winhttp_request_GetResponseHeader(), winhttp_request_Open(), winhttp_request_put_Option(), winhttp_request_Release(), winhttp_request_Send(), winhttp_request_SetAutoLogonPolicy(), winhttp_request_SetCredentials(), winhttp_request_SetProxy(), winhttp_request_SetRequestHeader(), winhttp_request_SetTimeouts(), winhttp_request_WaitForResponse(), WININET_Release(), WritePipeCompletion(), Ws2helpInitialize(), WSPCloseSocket(), WSPSocket(), xmlCleanupThreads(), xmlGetGlobalState(), xmlMutexUnlock(), and xmlRMutexUnlock().

◆ LoadLibraryA()

_Ret_maybenull_ HINSTANCE WINAPI LoadLibraryA ( _In_  LPCSTR)

◆ LoadLibraryExA()

HINSTANCE WINAPI LoadLibraryExA ( LPCSTR  lpLibFileName,
HANDLE  hFile,
DWORD  dwFlags 
)

Definition at line 159 of file loader.c.

162{
163 PUNICODE_STRING FileNameW;
164
165 /* Convert file name to unicode */
166 if (!(FileNameW = Basep8BitStringToStaticUnicodeString(lpLibFileName)))
167 return NULL;
168
169 /* And call W version of the API */
170 return LoadLibraryExW(FileNameW->Buffer, hFile, dwFlags);
171}
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
Definition: loader.c:288

Referenced by extract_test_proc(), LoadLibraryA(), LoadModuleWithSymbolsFullPath(), map_image_section(), SHPinDllOfCLSID(), START_TEST(), test_import_resolution(), test_Loader(), test_LoadLibraryEx_search_flags(), test_SetDefaultDllDirectories(), and testLoadLibraryEx().

◆ LoadLibraryExW()

HINSTANCE WINAPI LoadLibraryExW ( LPCWSTR  lpLibFileName,
HANDLE  hFile,
DWORD  dwFlags 
)

Definition at line 288 of file loader.c.

291{
292 UNICODE_STRING DllName;
296 ULONG DllCharacteristics = 0;
297 BOOL FreeString = FALSE;
298
299 /* Check for any flags LdrLoadDll might be interested in */
301 {
302 /* Tell LDR to treat it as an EXE */
303 DllCharacteristics = IMAGE_FILE_EXECUTABLE_IMAGE;
304 }
305
306 /* Build up a unicode dll name from null-terminated string */
307 RtlInitUnicodeString(&DllName, (LPWSTR)lpLibFileName);
308
309 /* Lazy-initialize BasepExeLdrEntry */
310 if (!BasepExeLdrEntry)
312
313 /* Check if that module is our exe*/
316 {
317 /* Lengths match and it's not a datafile, so perform name comparison */
319 {
320 /* That's us! */
322 }
323 }
324
325 /* Check for trailing spaces and remove them if necessary */
326 if (DllName.Buffer[DllName.Length/sizeof(WCHAR) - 1] == L' ')
327 {
328 RtlCreateUnicodeString(&DllName, (LPWSTR)lpLibFileName);
329 while (DllName.Length > sizeof(WCHAR) &&
330 DllName.Buffer[DllName.Length/sizeof(WCHAR) - 1] == L' ')
331 {
332 DllName.Length -= sizeof(WCHAR);
333 }
334 DllName.Buffer[DllName.Length/sizeof(WCHAR)] = UNICODE_NULL;
335 FreeString = TRUE;
336 }
337
338 /* Compute the load path */
340 DllName.Buffer : NULL,
341 NULL);
342 if (!SearchPath)
343 {
344 /* Getting DLL path failed, so set last error, free mem and return */
346 if (FreeString) RtlFreeUnicodeString(&DllName);
347 return NULL;
348 }
349
351 {
353 {
354 /* If the image is loaded as a datafile, try to get its handle */
355 Status = LdrGetDllHandleEx(0, SearchPath, NULL, &DllName, (PVOID*)&hInst);
356 if (!NT_SUCCESS(Status))
357 {
358 /* It's not loaded yet - so load it up */
360 }
361 _SEH2_YIELD(goto done;)
362 }
363
364 /* Call the API Properly */
366 &DllCharacteristics,
367 &DllName,
368 (PVOID*)&hInst);
369 }
371 {
373 } _SEH2_END;
374
375
376done:
377 /* Free SearchPath buffer */
378 RtlFreeHeap(RtlGetProcessHeap(), 0, SearchPath);
379
380 /* Free DllName string if it was dynamically allocated */
381 if (FreeString) RtlFreeUnicodeString(&DllName);
382
383 /* Set last error in failure case */
384 if (!NT_SUCCESS(Status))
385 {
386 DPRINT1("LoadLibraryExW(%ls) failing with status %lx\n", lpLibFileName, Status);
388 return NULL;
389 }
390
391 /* Return loaded module handle */
392 return hInst;
393}
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
static NTSTATUS BasepLoadLibraryAsDatafile(PWSTR Path, LPCWSTR Name, HMODULE *hModule)
Definition: loader.c:188
LPWSTR WINAPI BaseComputeProcessDllPath(IN LPWSTR FullPath, IN PVOID Environment)
Definition: path.c:420
PLDR_DATA_TABLE_ENTRY BasepExeLdrEntry
Definition: proc.c:25
VOID NTAPI BasepLocateExeLdrEntry(IN PLDR_DATA_TABLE_ENTRY Entry, IN PVOID Context, OUT BOOLEAN *StopEnumeration)
Definition: utils.c:156
HINSTANCE hInst
Definition: dxdiag.c:13
NTSTATUS NTAPI LdrGetDllHandleEx(_In_ ULONG Flags, _In_opt_ PWSTR DllPath, _In_opt_ PULONG DllCharacteristics, _In_ PUNICODE_STRING DllName, _Out_opt_ PVOID *DllHandle)
Definition: ldrapi.c:526
NTSTATUS NTAPI DECLSPEC_HOTPATCH LdrLoadDll(_In_opt_ PWSTR SearchPath, _In_opt_ PULONG DllCharacteristics, _In_ PUNICODE_STRING DllName, _Out_ PVOID *BaseAddress)
Definition: ldrapi.c:312
NTSTATUS NTAPI LdrEnumerateLoadedModules(_Reserved_ ULONG ReservedFlag, _In_ PLDR_ENUM_CALLBACK EnumProc, _In_opt_ PVOID Context)
Definition: ldrapi.c:1130
NTSYSAPI BOOLEAN NTAPI RtlEqualUnicodeString(PUNICODE_STRING String1, PUNICODE_STRING String2, BOOLEAN CaseInSensitive)
#define UNICODE_NULL
#define IMAGE_FILE_EXECUTABLE_IMAGE
Definition: pedump.c:160
#define LOAD_LIBRARY_AS_DATAFILE
Definition: winbase.h:342
#define LOAD_WITH_ALTERED_SEARCH_PATH
Definition: winbase.h:344
#define SearchPath
Definition: winbase.h:3835
#define DONT_RESOLVE_DLL_REFERENCES
Definition: winbase.h:341
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by _CrtGetUser32(), add_zone_to_listview(), CoLoadLibrary(), COMPOBJ_DllList_Add(), CClassNode::ConvertResourceDescriptorToString(), CURSORICON_CopyImage(), DIALOG_SYMBOL_DlgProc(), do_register_dll(), DoExtractIcon(), DoLoadIcons(), EngLoadModule(), get_shdoclc(), GetFileVersionInfoExW(), GetFileVersionInfoSizeExW(), GetMessageStringFromDll(), GetServiceDllFunction(), Imm32GetFn(), load_xul(), LoadIMEIcon(), LoadLibraryExA(), LoadLibraryW(), LoadProc(), msi_load_library(), MSSTYLES_OpenThemeFile(), register_ocxs_callback(), RegisterOCX(), RegLoadMUIStringW(), ATL::CRegObject::resource_register(), resource_register(), ResProtocol_Start(), ResProtocolInfo_ParseUrl(), RunDlgProc(), SHCoCreateInstance(), SHGetShellStyleHInstance(), SHLoadIndirectString(), test_LoadImage_DataFile(), TestDllRedirection(), TLB_PEFile_Open(), User32CallEventProcFromKernel(), and User32CallHookProcFromKernel().

◆ LoadLibraryW()

_Ret_maybenull_ HINSTANCE WINAPI LoadLibraryW ( _In_  LPCWSTR)

◆ LoadModule()

DWORD WINAPI LoadModule ( _In_  LPCSTR,
_In_  PVOID 
)

◆ LoadResource()

HGLOBAL WINAPI LoadResource ( HINSTANCE  hModule,
HRSRC  hRsrc 
)

Definition at line 532 of file res.c.

533{
535 void *ret = NULL;
536
537 TRACE( "%p %p\n", hModule, hRsrc );
538
539 if (!hRsrc) return 0;
543 return ret;
544}
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
NTSTATUS NTAPI LdrAccessResource(_In_ PVOID BaseAddress, _In_ PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry, _Out_opt_ PVOID *Resource, _Out_opt_ PULONG Size)
#define STATUS_SUCCESS
Definition: shellext.h:65
Definition: pedump.c:458
Definition: ps.c:97

Referenced by ATL::_AtlGetStringResourceImage(), ANIMATE_LoadResW(), AtlAxCreateDialogW(), AtlAxDialogBoxW(), BITMAP_LoadImageW(), ChooseColorW(), ChooseFontA(), ChooseFontW(), COMDLG32_FR_DoFindReplace(), create_chm(), create_testfontfile(), create_tmp_ini_file(), CreateDialogParamA(), CreateDialogParamW(), CreateIconFromResourceEx(), CreateMappedBitmap(), CreateTemplateDialog(), CURSORICON_LoadImageW(), DialogBoxParamA(), DialogBoxParamW(), DoEntry(), EngFindResource(), CShellCommandHelp::Execute(), extract_one(), extract_rcdata(), extract_resource(), FD31_GetTemplate(), get_module_version(), get_res_data(), GetFileName95(), GetFileVersionInfoExW(), GetLocaleInfoW(), GetLocalisedText(), GetResource(), GplDlgProc(), IDirectXFileImpl_CreateEnumObject(), include_pac_utils(), K32LoadStringExW(), LengthOfStrResource(), load_res(), load_resource(), load_resource_into_memory(), load_string(), LoadDialogResource(), LoadMenuA(), LoadMenuW(), LoadStringA(), LoadStringW(), LoadXMLDocumentFromResource(), LsapGetResourceStringLengthEx(), LsapLoadString(), LsapLoadStringEx(), MCI_GetCommandTable(), mciLoadCommandResource(), MDI_MoreWindowsDialog(), MsiLoadStringW(), MSSTYLES_GetActiveThemeIni(), MSSTYLES_OpenThemeFile(), MSSTYLES_TryLoadPng(), NLS_GetLanguageGroupName(), OleCreatePropertyFrameIndirect(), OleUIInsertObjectA(), OleUIPasteSpecialW(), OnInitDialog(), pagesetup_get_template(), PlaySound_GetMMIO(), PRINTDLG_GetDlgTemplateA(), PRINTDLG_GetDlgTemplateW(), PROPSHEET_CollectPageInfo(), PROPSHEET_CreateDialog(), PROPSHEET_CreatePage(), register_resource(), ATL::CRegObject::resource_register(), resource_register(), ResourceToFile(), ResProtocol_Start(), run_from_res(), SampLoadString(), ShellAboutW(), START_TEST(), test_arrange(), test_enum_proc(), test_focus(), test_resizable2(), test_SaveRestoreFocus(), TLB_PEFile_Open(), U32LoadAccelerators(), unpack_avi_file(), UXINI_LoadINI(), VARIANT_GetLocalisedText(), write_resource_file(), and write_typelib().

◆ LocalAlloc()

HLOCAL WINAPI LocalAlloc ( UINT  uFlags,
SIZE_T  dwBytes 
)

Definition at line 1390 of file heapmem.c.

1392{
1393 ULONG Flags = 0;
1394 PVOID Ptr = NULL;
1396 PBASE_HEAP_HANDLE_ENTRY HandleEntry;
1397 BASE_TRACE_ALLOC(dwBytes, uFlags);
1399
1400 /* Make sure the flags are valid */
1401 if (uFlags & ~LMEM_VALID_FLAGS)
1402 {
1403 /* They aren't, fail */
1406 return NULL;
1407 }
1408
1409 /* Convert ZEROINIT */
1411
1412 /* Check if we're not movable, which means pointer-based heap */
1413 if (!(uFlags & LMEM_MOVEABLE))
1414 {
1415 /* Allocate heap for it */
1416 Ptr = RtlAllocateHeap(BaseHeap, Flags, dwBytes);
1418 return Ptr;
1419 }
1420
1421 /* This is heap based, so lock it in first */
1423
1424 /*
1425 * Disable locking, enable custom flags, and write the
1426 * movable flag (deprecated)
1427 */
1431
1432 /* Allocate the handle */
1433 HandleEntry = BaseHeapAllocEntry();
1434 if (!HandleEntry)
1435 {
1436 /* Fail */
1437 hMemory = NULL;
1440 goto Quickie;
1441 }
1442
1443 /* Get the object and make sure we have size */
1444 hMemory = &HandleEntry->Object;
1445 if (dwBytes)
1446 {
1447 /* Allocate the actual memory for it */
1448 Ptr = RtlAllocateHeap(BaseHeap, Flags, dwBytes);
1449 BASE_TRACE_PTR(HandleEntry, Ptr);
1450 if (!Ptr)
1451 {
1452 /* We failed, manually set the allocate flag and free the handle */
1453 HandleEntry->Flags = RTL_HANDLE_VALID;
1454 BaseHeapFreeEntry(HandleEntry);
1455
1456 /* For the cleanup case */
1457 HandleEntry = NULL;
1458 }
1459 else
1460 {
1461 /* All worked well, save our heap entry */
1463 }
1464 }
1465
1466Quickie:
1467 /* Cleanup! First unlock the heap */
1469
1470 /* Check if a handle was allocated */
1471 if (HandleEntry)
1472 {
1473 /* Set the pointer and allocated flag */
1474 HandleEntry->Object = Ptr;
1475 HandleEntry->Flags = RTL_HANDLE_VALID;
1476 if (!Ptr)
1477 {
1478 /* We don't have a valid pointer, but so reuse this handle */
1479 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSE;
1480 }
1481
1482 /* Check if the handle is discardable */
1484 {
1485 /* Save it in the handle entry */
1486 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSABLE;
1487 }
1488
1489 /* Check if the handle is moveable */
1490 if (uFlags & GMEM_MOVEABLE)
1491 {
1492 /* Save it in the handle entry */
1493 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_MOVABLE;
1494 }
1495
1496 /* Set the pointer */
1497 Ptr = hMemory;
1498 }
1499
1500 /* Return the pointer */
1501 return Ptr;
1502}
#define LMEM_MOVEABLE
Definition: winbase.h:369
#define LMEM_ZEROINIT
Definition: winbase.h:375
#define LMEM_VALID_FLAGS
Definition: winbase.h:380

Referenced by CMruBase::_AddItem(), CMruPidlList::_InitNodeSlots(), CMruShortList::_InitSlots(), CMruLongList::_InitSlots(), CMruBase::_LoadItem(), CRegPropertyBag::_ReadBinary(), CRegPropertyBag::_WriteStream(), AccpLookupCurrentUser(), AccpLookupSidByName(), AccpOpenNamedObject(), AccRewriteGetExplicitEntriesFromAcl(), AccRewriteGetHandleRights(), AccRewriteSetEntriesInAcl(), Alloc(), AllocAndLoadString(), AllocAndLoadStringsCat(), AllocFunction(), AppendUserEnvironmentVariable(), AuthzInitializeContextFromSid(), AuthzInitializeResourceManager(), AuthzpQueryToken(), blob_to_str(), CallBackConvertToAscii(), CheckEscapesA(), cicMemAlloc(), cicMemAllocClear(), cicMemReAlloc(), client_start(), CommandLineToArgvW(), compat_catpath(), CompressBegin(), ConvertSecurityDescriptorToStringSecurityDescriptorW(), ConvertSidToStringSidA(), ConvertSidToStringSidW(), ConvertStringSecurityDescriptorToSecurityDescriptorW(), ConvertStringSidToSidW(), CShellLink::CopyDataBlock(), CreateDefaultSecurityDescriptor(), CreateRestrictedToken(), CRYPT_DecodeEnsureSpace(), CRYPT_EncodeDataContentInfoHeader(), CRYPT_EncodeEnsureSpace(), CryptUnprotectData(), DecompressBegin(), DIALOG_FilePrint(), DisplayStuffUsingWin32Setup(), DllMain(), Dns_AllocZero(), DoGetHandbagFromTicket(), DoStartService(), DSEnumProc(), DuplicationString(), EDIT_EM_GetHandle(), EDIT_EM_SetHandle(), EDIT_WM_NCCreate(), EnumDeviceDrivers(), EnumPageFilesW(), EnumProcesses(), ExtractZipImage(), FindDeviceDriver(), FindDfltProvRegVals(), FindProvRegVals(), FindProvTypesRegVals(), FormatMessageA(), FormatMessageW(), GdiConvertEnhMetaFile(), GdiConvertMetaFilePict(), GdiCreateLocalEnhMetaFile(), GdiCreateLocalMetaFilePict(), generateTestSignal(), get_module_version(), get_security_cert_struct(), GetDeviceDriverBaseNameW(), GetDeviceDriverFileNameW(), getDeviceInterfaceDetail(), GetMappedFileNameA(), GetModuleBaseNameA(), GetModuleFileNameExA(), GetMonitorDevInstID(), GetPerformanceInfo(), GetProcessImageFileNameA(), GetProcessImageFileNameW(), CDefView::GetSelectedObjects(), GetShellSecurityDescriptor(), GetUserAndDomainName(), GetUserNameA(), GetUserNameW(), GetUserSid(), GetUserSidStringFromToken(), HandleSetHandlePrintHex(), HEXEDIT_HEM_LOADBUFFER(), HEXEDIT_HEM_SETMAXBUFFERSIZE(), HidD_GetPreparsedData(), I_ScQueryServiceTagInfo(), IEffectivePermission_fnGetEffectivePermission(), IMAPIMalloc_fnAlloc(), IMAPIMalloc_fnRealloc(), Imm32InternalLockIMC(), ImmCreateIMCC(), InfoMessageBox(), CMruBase::InitData(), InitializeConnectionInfo(), InitMonitorDialog(), InstallScreenSaverA(), IntCreateDICW(), ISecurityObjectTypeInfo_fnGetInheritSource(), LookupAccountSidA(), malloc(), MonSelSetMonitorsInfo(), OF(), Open(), operator new(), PathAllocCanonicalize(), pCDevSettings_AllocAndCopyString(), pCDevSettings_GetDeviceInstanceId(), pCDevSettings_GetMonitorDevice(), pCDevSettings_GetMonitorName(), pCDevSettings_Initialize(), ProcessNewLinesAndNulls(), query_reg_path(), QueryDeskCplExtInterface(), QueryDeskCplString(), ReAlloc(), RegisterGPNotification(), ReloadPrincipalsList(), RpcpAddInterface(), serialize(), server_start(), SetSpyedBlockTableLength(), SetSystemEnvironment(), SetUserEnvironment(), SetUserEnvironmentVariable(), SHAddDataBlock(), SHCloneIETHREADPARAM(), SHCreateIETHREADPARAM(), SHCreatePropSheetExtArrayEx(), SHQueryValueExA(), SHQueryValueExW(), SHReadDataBlockList(), SHTestTokenPrivilegeW(), SKAllocValueW(), START_TEST(), StatisticsMain(), StrDupA(), StrDupW(), test__hwrite(), test__lwrite(), test_EM_GETHANDLE(), test_enum_provider_types(), test_enum_providers(), test_get_default_provider(), test_heap(), test_LocalAlloc(), test_lsa(), test_sequence(), test_set_provider_ex(), U32AccelCacheAdd(), U32LoadAccelerators(), VfdCheckDriverFile(), VfdCreateImageFile(), VfdFormatMedia(), VfdGetDriverConfig(), VfdGetImageInfo(), VfdOpenImage(), VfdSaveImage(), and WlxInitialize().

◆ LocalCompact()

SIZE_T WINAPI LocalCompact ( _In_  UINT)

◆ LocalFileTimeToFileTime()

BOOL WINAPI LocalFileTimeToFileTime ( CONST FILETIME ,
LPFILETIME   
)

◆ LocalFlags()

UINT WINAPI LocalFlags ( _In_  HLOCAL)

◆ LocalFree()

HLOCAL WINAPI LocalFree ( HLOCAL  hMem)

Definition at line 1594 of file heapmem.c.

1595{
1596 /* This is identical to a Global Free */
1597 return GlobalFree(hMem);
1598}
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
Definition: heapmem.c:611

Referenced by CMruBase::_AddItem(), CMruBase::_DeleteItem(), CMruBase::_LoadItem(), CRegPropertyBag::_ReadBinary(), _SHGetUserProfilePath(), _tmain(), _tWinMain(), CRegPropertyBag::_WriteStream(), AboutDialogProc(), AccFreeIndexArray(), AccpLookupSidByName(), AccpOpenNamedObject(), AccRewriteGetExplicitEntriesFromAcl(), AccRewriteGetHandleRights(), AccRewriteSetEntriesInAcl(), AddMenuItem(), AddPrincipalListEntry(), AddUserProfiles(), AllocAndLoadString(), AllocAndLoadStringsCat(), AppendUserEnvironmentVariable(), ApplyParameterStringsToMessage(), AuthzFreeContext(), AuthzFreeResourceManager(), AuthzInitializeContextFromSid(), AuthzInitializeResourceManager(), AuthzpQueryToken(), BuildAdvPropTitle(), BuildLogListAndFilterList(), CallBackConvertToAscii(), CDataEncodeMsg_Close(), CDataEncodeMsg_Update(), CDecodeMsg_Close(), CDecodeMsg_DecodeContent(), CDecodeMsg_DecodeDataContent(), CDecodeMsg_DecodeHashedContent(), CDecodeMsg_FinalizeSignedContent(), CDecodeSignedMsg_GetParam(), Cert_free(), cert_get_name_from_rdn_attr(), cert_name_to_str_with_indent(), CertComparePublicKeyInfo(), CertCreateCTLContext(), CertCreateSelfSignCertificate(), CertGetEnhancedKeyUsage(), CertGetNameStringW(), CertGetPublicKeyLength(), CertIsRDNAttrsInCertificateName(), CertIsValidCRLForCertificate(), CertNameToStrA(), CertSetEnhancedKeyUsage(), CertStrToNameW(), ChangeListViewText(), CheckEscapesA(), CheckForError(), cicMemFree(), cleanUp(), client_stop(), Close(), cmd_type(), cmdHelpMsg(), CNG_ImportECCPubKey(), CNG_PrepareSignatureECC(), command_line_to_args(), CommandLineToArgvW(), compare_alt_name_with_constraints(), compare_crl_issued_by(), compare_subject_with_email_constraints(), compat_catpath(), CompressEnd(), ConMsgPrintf2V(), ConMsgPrintfV(), ConMsgPuts(), ConResMsgPrintfExV(), ConvertSecurityDescriptorToStringSecurityDescriptorA(), ConvertSecurityDescriptorToStringSecurityDescriptorW(), ConvertSidToStringSidA(), ConvertStringSecurityDescriptorToSecurityDescriptorW(), ConvertStringSidToSidW(), CopySystemProfile(), CreateApplicationWindow(), CreateDefaultSecurityDescriptor(), CreateEnvironmentBlock(), CreateFontWindow(), CreateRestrictedToken(), CreateUserProfileExW(), CRL_free(), CRYPT_AsnDecodeCert(), CRYPT_AsnDecodeCRL(), CRYPT_AsnDecodeRsaPrivKey(), CRYPT_AsnDecodeRsaPubKey(), CRYPT_AsnEncodeNameConstraints(), CRYPT_CheckChainNameConstraints(), CRYPT_CheckChainPolicies(), CRYPT_CheckUsages(), CRYPT_CreateSignedCert(), CRYPT_DecodeBasicConstraints(), CRYPT_EncodePKCSDigestedData(), CRYPT_FormatAltName(), CRYPT_FormatAuthorityInfoAccess(), CRYPT_FormatAuthorityKeyId2(), CRYPT_FormatBasicConstraints2(), CRYPT_FormatCPS(), CRYPT_FormatCRLDistPoints(), CRYPT_FormatEnhancedKeyUsage(), CRYPT_FormatKeyUsage(), CRYPT_FormatNetscapeCertType(), CRYPT_FormatUserNotice(), CRYPT_FreeSpace(), CRYPT_GetIssuer(), CRYPT_GetUrlFromCertificateIssuer(), CRYPT_GetUrlFromCRLDistPointsExt(), CRYPT_IsCertificateSelfSigned(), CryptHashPublicKeyInfo(), CryptHashToBeSigned(), CryptMsgEncodeAndSignCTL(), CryptUnprotectData(), CryptVerifyCertificateSignatureEx(), CSignedEncodeMsg_GetParam(), CSignedMsgData_AppendMessageDigestAttribute(), CSignedMsgData_UpdateAuthenticatedAttributes(), CTL_free(), debugstr_sid(), DecompressEnd(), DestroyAcceleratorTable(), DestroySecurityPage(), DeviceProblemTextW(), DIALOG_FilePrint(), DIALOG_Printing_DialogProc(), directory_name_matches(), display_app_usages(), display_error(), DisplayApplet(), DisplayDacl(), DisplayDns(), DisplayError(), DisplayStuffUsingWin32Setup(), DisplayWin32Error(), dlg_win32error(), DllMain(), Dns_Free(), DoCreate(), DoDeleteService(), DoEntry(), DoFormatMessage(), DoStartService(), DoTypeFile(), CVfdShExt::DoVfdDrop(), dump_alt_name(), dump_basic_constraints(), dump_cert_policies(), dump_enhanced_key_usage(), dump_name_constraints(), DumpEnum(), DumpUDT(), DwInitializeSdFromThreadToken(), EDIT_EM_SetHandle(), EDIT_WM_NCCreate(), EDIT_WM_NCDestroy(), EditSecurity(), EnterCriticalPolicySection(), enum_components(), enum_products(), EnumDeviceDrivers(), EnumPageFilesW(), EnumProcesses(), COMExceptionBase::ErrorMessage(), ErrorMessage(), ErrorMessageBox(), export_validate_filename(), ExtractZipImage(), fill_sid(), find_cert_by_issuer(), FindDeviceDriver(), FindDfltProvRegVals(), FindProvTypesRegVals(), FontWndProc(), format_message(), ATL::CStringT< BaseType, StringTraits >::FormatMessageV(), FormatMsgBox(), FormatOutput(), FormatVerisignExtension(), FrameOnCommand(), CLocalAllocator::Free(), Free(), free(), free_file_op_queue(), FreeConnectionInfo(), FreeFunction(), FreePrincipalsList(), GdiConvertEnhMetaFile(), GdiConvertMetaFilePict(), GdiCreateLocalEnhMetaFile(), GdiCreateLocalMetaFilePict(), get_cert_common_name(), get_cps_str_from_qualifier(), get_file_handle(), get_module_version(), get_user_notice_from_qualifier(), DriveVolume::GetClusterInfo(), getCurrentChannelConfig(), GetDeviceDriverBaseNameW(), GetDeviceDriverFileNameW(), getDeviceInterfaceDetail(), GetDeviceLocationString(), GetError(), GetEventCategory(), GetEventMessage(), GetEventUserName(), GetLastErrorText(), GetMappedFileNameA(), GetModuleBaseNameA(), GetModuleFileNameExA(), GetMonitorDevInstID(), GetOwnerModuleFromTagEntry(), GetPerformanceInfo(), GetProcessImageFileNameA(), GetProcessImageFileNameW(), GetShellSecurityDescriptor(), GetUserAndDomainName(), GetUserNameA(), GetUserNameW(), GetUserSid(), GetUserSIDString(), GetUserSidStringFromToken(), GRPFILE_ReadGroupFile(), HandleSetHandlePrintHex(), Help(), HEXEDIT_HEM_LOADBUFFER(), HEXEDIT_HEM_SETMAXBUFFERSIZE(), HEXEDIT_WM_NCDESTROY(), HidD_FreePreparsedData(), HidD_GetPreparsedData(), HTTPREQ_QueryOption(), IDeskDisplayAdapter_Destroy(), IDeskMonitor_Destroy(), IEffectivePermission_fnGetEffectivePermission(), IFileDialog2_fnRelease(), IFileDialog2_fnSetCancelButtonLabel(), IFileDialog2_fnSetDefaultExtension(), IFileDialog2_fnSetFileNameLabel(), IFileDialog2_fnSetOkButtonLabel(), IFileDialog2_fnSetTitle(), IMAPIMalloc_fnFree(), IMAPIMalloc_fnRealloc(), Imm32InternalLockIMC(), ImmDestroyIMCC(), ImmUnlockClientImc(), import_validate_filename(), InfoMessageBox(), InitDialog(), InitDisplayAdapterDialog(), InitializeSecurity(), InitMonitorDialog(), InitRecoveryPage(), InitUserSidString(), InstallBuiltinAccounts(), InstallOneService(), InstallPrivileges(), InstallScreenSaverA(), CFindFolderContextMenu::InvokeCommand(), is_ca_cert(), IStream_fnRelease(), last_error::last_error(), LoadAndFormatString(), LoadAndFormatStringsCat(), LogToFile(), LookupAccountSidA(), LsapGetDomainInfo(), LsapLookupAccountDomainSids(), LsapLookupBuiltinDomainSids(), LsapLookupWellKnownSids(), LsarpCreateAccount(), LsarpOpenAccount(), main(), map_name_2_sid(), match_dns_to_subject_alt_name(), match_dns_to_subject_dn(), mi_show_error(), MonSelSetMonitorsInfo(), DriveVolume::MoveFileDumb(), msi_enum_patches(), MsiGetShortcutTargetW(), MSIREG_DeleteUserDataComponentKey(), MSIREG_DeleteUserDataPatchKey(), MSIREG_DeleteUserDataProductKey(), MSIREG_OpenFeaturesKey(), MSIREG_OpenInstallProps(), MSIREG_OpenProductKey(), MSIREG_OpenUserDataComponentKey(), MSIREG_OpenUserDataFeaturesKey(), MSIREG_OpenUserDataPatchKey(), MSIREG_OpenUserDataProductKey(), MSIREG_OpenUserDataProductPatchesKey(), MsiSourceListAddSourceW(), MyMessageBox(), NewDocSelDlgProc(), ntstatus_error::ntstatus_error(), OF(), OnBrowse(), OnDestroy(), OnOK(), operator delete(), CMruBase::operator delete(), CMruClassFactory::operator delete(), output_formatstring(), OutputError(), OutputText(), ParseLogonHours(), PathCchCanonicalizeEx(), PathCchCombineEx(), pCDevSettings_Free(), pCDevSettings_FreeString(), pCDevSettings_GetDeviceInstanceId(), pCDevSettings_Initialize(), PerfDataRefresh(), playTestTone(), PrintError(), PrintErrorMessage(), PrintFileDacl(), PrintLastError(), printm(), PrintMessage(), PrintMessageString(), PrintMessageStringV(), PrintMessageV(), PrintNetMessage(), PrintPaddedMessageString(), PrintSid(), PrintWin32Error(), ProcessCmdLine(), ProcessNewLinesAndNulls(), query_reg_path(), read_key_value(), RecycleBin5_Constructor(), RegisterGPNotification(), registry_callback(), REGPROC_print_error(), release_cert_info(), ReloadPrincipalsList(), ReportLastError(), ResetProgressDialog(), RpcpAddInterface(), RSAENH_CPGetProvParam(), SampAddMemberToAlias(), SampRemoveMemberFromAlias(), SampRemoveMemberFromAllAliases(), SampSetupAddMemberToAlias(), SamrGetAliasMembership(), SdSet(), SdShow(), serialize(), server_stop(), service_main(), set_file_name(), set_issuer_statement(), set_user_sid_prop(), SetControlText(), setCurrentChannelConfig(), SetRegUlong(), SetServiceStatusText(), SetStartupType(), SetSystemEnvironment(), SetUserEnvironment(), SetUserEnvironmentVariable(), SHChangeNotification_Unlock(), SHDestroyIETHREADPARAM(), SHDestroyPropSheetExtArray(), ShellMessageBoxA(), ShellMessageBoxW(), ShellMessageBoxWrapW(), SHFreeDataBlockList(), SHLoadIndirectString(), ShowError(), CZipExtract::ShowExtractError(), ShowHelpWindow(), ShowItemError(), ShowLastError(), ShowLastWin32Error(), ShowMonitorProperties(), ShowWin32Error(), SHQueryValueExA(), SHQueryValueExW(), SHReadDataBlockList(), SHRemoveDataBlock(), SHTestTokenPrivilegeW(), START_TEST(), StartDocW(), StatisticsMain(), StatusBarLoadAndFormatString(), StatusBarLoadString(), stopTestTone(), store_key_pair(), test__hwrite(), test__lwrite(), test_appsearch_complocator(), test_BuildSecurityDescriptorW(), test_child_token_sd(), test_commandline2argv(), test_ConvertSecurityDescriptorToString(), test_ConvertStringSecurityDescriptor(), test_CreateDirectoryA(), test_CreateWellKnownSid(), test_cryptunprotectdata(), test_datalink(), test_decodeAltName(), test_decodeAuthorityInfoAccess(), test_decodeAuthorityKeyId(), test_decodeAuthorityKeyId2(), test_decodeBasicConstraints(), test_decodeBits(), test_decodeCatMemberInfo(), test_decodeCatNameValue(), test_decodeCert(), test_decodeCertPolicies(), test_decodeCertPolicyConstraints(), test_decodeCertPolicyMappings(), test_decodeCertToBeSigned(), test_decodeCMSSignerInfo(), test_decodeCRLDistPoints(), test_decodeCRLIssuingDistPoint(), test_decodeCRLToBeSigned(), test_decodeCTL(), test_decodeEnhancedKeyUsage(), test_decodeExtensions(), test_decodeInt(), test_decodeName(), test_decodeNameConstraints(), test_decodeNameValue(), test_decodeOctets(), test_decodePKCSAttribute(), test_decodePKCSAttributes(), test_decodePKCSContentInfo(), test_decodePKCSSignerInfo(), test_decodePKCSSMimeCapabilities(), test_decodePolicyQualifierUserNotice(), test_decodePublicKeyInfo(), test_decodeRsaPrivateKey(), test_decodeRsaPublicKey(), test_decodeSequenceOfAny(), test_decodeSPCLink(), test_decodeSPCPEImage(), test_decodeSpOpusInfo(), test_decodeUnicodeName(), test_decodeUnicodeNameValue(), test_EM_GETHANDLE(), test_encodeAltName(), test_encodeAuthorityInfoAccess(), test_encodeAuthorityKeyId(), test_encodeAuthorityKeyId2(), test_encodeBasicConstraints(), test_encodeBits(), test_encodeCatMemberInfo(), test_encodeCatNameValue(), test_encodeCert(), test_encodeCertPolicies(), test_encodeCertPolicyConstraints(), test_encodeCertPolicyMappings(), test_encodeCertToBeSigned(), test_encodeCMSSignerInfo(), test_encodeCRLDistPoints(), test_encodeCRLIssuingDistPoint(), test_encodeCRLToBeSigned(), test_encodeCTL(), test_encodeEnhancedKeyUsage(), test_encodeEnumerated(), test_encodeExtensions(), test_encodeInt(), test_encodeName(), test_encodeNameConstraints(), test_encodeNameValue(), test_encodeOctets(), test_encodePKCSAttribute(), test_encodePKCSAttributes(), test_encodePKCSContentInfo(), test_encodePKCSSignerInfo(), test_encodePKCSSMimeCapabilities(), test_encodePolicyQualifierUserNotice(), test_encodePublicKeyInfo(), test_encodeRsaPublicKey(), test_encodeSequenceOfAny(), test_encodeSPCFinancialCriteria(), test_encodeSPCLink(), test_encodeSPCPEImage(), test_encodeSpOpusInfo(), test_encodeUnicodeName(), test_encodeUnicodeNameValue(), test_enum_provider_types(), test_enum_providers(), test_get_default_provider(), test_GetExplicitEntriesFromAclW(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_GetShellSecurityDescriptor(), test_GetSidSubAuthority(), test_heap(), test_IMalloc(), test_LocalAlloc(), test_LookupAccountSid(), test_lsa(), test_message_allocate_buffer(), test_message_allocate_buffer_wide(), test_MsiEnumClients(), test_MsiEnumComponents(), test_MsiEnumComponentsEx(), test_MsiEnumPatches(), test_MsiEnumPatchesEx(), test_MsiEnumProducts(), test_MsiEnumProductsEx(), test_MsiGetComponentPath(), test_MsiGetComponentPathEx(), test_MsiGetPatchInfoEx(), test_MsiGetProductCode(), test_MsiGetProductInfoEx(), test_MsiGetUserInfo(), test_MsiOpenProduct(), test_MsiQueryComponentState(), test_MsiQueryFeatureState(), test_MsiQueryProductState(), test_MsiSourceListAddMediaDisk(), test_MsiSourceListAddSource(), test_MsiSourceListAddSourceEx(), test_MsiSourceListEnumMediaDisks(), test_MsiSourceListEnumSources(), test_MsiSourceListGetInfo(), test_MsiSourceListSetInfo(), test_one_cmdline(), test_PrivateObjectSecurity(), test_process_components(), test_publish_features(), test_publish_product(), test_reg_create_key(), test_reg_open_key(), test_register_product(), test_register_user(), test_secure_connection(), test_security_descriptor(), test_security_flags(), test_sequence(), test_set_provider_ex(), test_SetEntriesInAclA(), test_SetEntriesInAclW(), test_SHGetShellKey(), test_sid(), test_sid_str(), test_simpleroundtrip(), test_StrDupA(), test_system_security_access(), test_token_attr(), test_token_label(), test_token_security_descriptor(), testAcquireCertPrivateKey(), TestCommandLine(), testTimeEncoding(), testVerifyCertSig(), testVerifyCertSigEx(), TrustIsCertificateSelfSigned(), TV1_AddDependantsToTree(), TV2_AddDependantsToTree(), U32LoadAccelerators(), UnregisterGPNotification(), UpdateControlStates(), UpdateMonitorSelection(), UpdatePrincipalInfo(), UpdatePrincipalListItem(), UpdateServiceCount(), verify_cert_revocation_from_aia_ext(), VfdCheckDriverFile(), VfdCreateImageFile(), VfdFormatMedia(), VfdGetDriverConfig(), VfdGetImageInfo(), VfdGuiClose(), VfdGuiFormat(), VfdImageTip(), VfdMakeFileDesc(), VfdOpenImage(), VfdSaveImage(), WhoamiGroups(), WhoamiLogonId(), WhoamiUser(), WINTRUST_GetTimeFromSigner(), WlxInitialize(), wWinMain(), XCOPY_FailMessage(), CIniPropertyBag::~CIniPropertyBag(), CMruBase::~CMruBase(), CMruLongList::~CMruLongList(), CMruPidlList::~CMruPidlList(), CMruShortList::~CMruShortList(), and CViewStatePropertyBag::~CViewStatePropertyBag().

◆ LocalHandle()

_Ret_maybenull_ HLOCAL WINAPI LocalHandle ( _In_  LPCVOID)

◆ LocalLock()

◆ LocalReAlloc()

HLOCAL WINAPI LocalReAlloc ( HLOCAL  hMem,
SIZE_T  dwBytes,
UINT  uFlags 
)

Definition at line 1625 of file heapmem.c.

1628{
1629 PBASE_HEAP_HANDLE_ENTRY HandleEntry;
1630 LPVOID Ptr;
1631 ULONG Flags = 0;
1632
1633 /* Convert ZEROINIT */
1635
1636 /* If this wasn't a movable heap, then we MUST re-alloc in place */
1638
1639 /* Lock the heap and disable built-in locking in the RTL Heap functions */
1642
1643 /* Check if this is a simple handle-based block */
1645 {
1646 /* Get the entry */
1647 HandleEntry = BaseHeapGetEntry(hMem);
1648 BASE_TRACE_HANDLE(HandleEntry, hMem);
1649
1650 /* Make sure the handle is valid */
1651 if (!BaseHeapValidateEntry(HandleEntry))
1652 {
1653 /* Fail */
1656 hMem = NULL;
1657 }
1658 else if (uFlags & LMEM_MODIFY)
1659 {
1660 /* User is changing flags... check if the memory was discardable */
1662 {
1663 /* Then set the flag */
1664 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSABLE;
1665 }
1666 else
1667 {
1668 /* Otherwise, remove the flag */
1669 HandleEntry->Flags &= ~BASE_HEAP_ENTRY_FLAG_REUSABLE;
1670 }
1671 }
1672 else
1673 {
1674 /* Otherwise, get the object and check if we have no size */
1675 Ptr = HandleEntry->Object;
1676 if (!dwBytes)
1677 {
1678 /* Clear the handle and check for a pointer */
1679 hMem = NULL;
1680 if (Ptr)
1681 {
1682 /* Make sure the handle isn't locked */
1683 if ((uFlags & LMEM_MOVEABLE) && !(HandleEntry->LockCount))
1684 {
1685 /* Free the current heap */
1687
1688 /* Free the handle */
1689 HandleEntry->Object = NULL;
1690 HandleEntry->Flags |= BASE_HEAP_ENTRY_FLAG_REUSE;
1691
1692 /* Get the object pointer */
1693 hMem = &HandleEntry->Object;
1694 }
1695 }
1696 else
1697 {
1698 /* Otherwise just return the object pointer */
1699 hMem = &HandleEntry->Object;
1700 }
1701 }
1702 else
1703 {
1704 /* Otherwise, we're allocating, so set the new flags needed */
1706 if (!Ptr)
1707 {
1708 /* We don't have a base, so allocate one */
1709 Ptr = RtlAllocateHeap(BaseHeap, Flags, dwBytes);
1711 if (Ptr)
1712 {
1713 /* Allocation succeeded, so save our entry */
1716 Ptr,
1717 hMem);
1718 }
1719 }
1720 else
1721 {
1722 /*
1723 * If it's not movable or currently locked, we MUST allocate
1724 * in-place!
1725 */
1726 if (!(uFlags & LMEM_MOVEABLE) && (HandleEntry->LockCount))
1727 {
1728 /* Set the flag */
1730 }
1731 else
1732 {
1733 /* Otherwise clear the flag if we set it previously */
1734 Flags &= ~HEAP_REALLOC_IN_PLACE_ONLY;
1735 }
1736
1737 /* And do the re-allocation */
1738 Ptr = RtlReAllocateHeap(BaseHeap, Flags, Ptr, dwBytes);
1739 }
1740
1741 /* Make sure we have a pointer by now */
1742 if (Ptr)
1743 {
1744 /* Write it in the handle entry and mark it in use */
1745 HandleEntry->Object = Ptr;
1746 HandleEntry->Flags &= ~BASE_HEAP_ENTRY_FLAG_REUSE;
1747 }
1748 else
1749 {
1750 /* Otherwise we failed */
1751 hMem = NULL;
1753 }
1754 }
1755 }
1756 }
1757 else if (!(uFlags & LMEM_MODIFY))
1758 {
1759 /* Otherwise, this is a simple RTL Managed Heap, so just call it */
1762 hMem,
1763 dwBytes);
1764 if (!hMem)
1765 {
1766 /* Fail */
1769 }
1770 }
1771
1772 /* All done, unlock the heap and return the pointer */
1774 return hMem;
1775}
#define LMEM_DISCARDABLE
Definition: winbase.h:372
#define LMEM_MODIFY
Definition: winbase.h:377

Referenced by AccRewriteGetHandleRights(), cicMemReAlloc(), EDIT_LockBuffer(), EDIT_MakeFit(), EDIT_UnlockBuffer(), GetUserSid(), GetUserSidStringFromToken(), HEXEDIT_HEM_LOADBUFFER(), HEXEDIT_HEM_SETMAXBUFFERSIZE(), IMAPIMalloc_fnRealloc(), ImmReSizeIMCC(), ReadText(), ReAlloc(), realloc(), SetSpyedBlockTableLength(), SHAddDataBlock(), SHReadDataBlockList(), SHRemoveDataBlock(), test_heap(), and test_LocalAlloc().

◆ LocalShrink()

SIZE_T WINAPI LocalShrink ( _In_  HLOCAL,
_In_  UINT 
)

◆ LocalSize()

SIZE_T WINAPI LocalSize ( _In_  HLOCAL)

◆ LocalUnlock()

BOOL WINAPI LocalUnlock ( HLOCAL  hMem)

Definition at line 1805 of file heapmem.c.

1806{
1807 PBASE_HEAP_HANDLE_ENTRY HandleEntry;
1808 BOOL RetVal = TRUE;
1809
1810 /* Check if this was a simple allocated heap entry */
1811 if (!((ULONG_PTR)hMem & BASE_HEAP_IS_HANDLE_ENTRY))
1812 {
1813 /* Fail, because LocalUnlock is not supported on LMEM_FIXED allocations */
1815 return FALSE;
1816 }
1817
1818 /* Otherwise, lock the heap */
1820
1821 /* Get the handle entry */
1822 HandleEntry = BaseHeapGetEntry(hMem);
1823 BASE_TRACE_HANDLE(HandleEntry, hMem);
1824 _SEH2_TRY
1825 {
1826 /* Make sure it's valid */
1827 if (!BaseHeapValidateEntry(HandleEntry))
1828 {
1829 /* It's not, fail */
1832 RetVal = FALSE;
1833 }
1834 else
1835 {
1836 /* Otherwise, decrement lock count, unless we're already at 0*/
1837 if (!HandleEntry->LockCount--)
1838 {
1839 /* In which case we simply lock it back and fail */
1840 HandleEntry->LockCount++;
1842 RetVal = FALSE;
1843 }
1844 else if (!HandleEntry->LockCount)
1845 {
1846 /* Nothing to unlock */
1848 RetVal = FALSE;
1849 }
1850 }
1851 }
1853 {
1855 RetVal = FALSE;
1856 }
1857 _SEH2_END;
1858
1859 /* All done. Unlock the heap and return the pointer */
1861 return RetVal;
1862}
#define NO_ERROR
Definition: dderror.h:5
#define ERROR_NOT_LOCKED
Definition: winerror.h:230

Referenced by DoSaveFile(), EDIT_EM_GetHandle(), EDIT_EM_SetHandle(), EDIT_LockBuffer(), EDIT_UnlockBuffer(), GetSelectionText(), HandleSetHandlePrintHex(), HEXEDIT_Copy(), HEXEDIT_Delete(), HEXEDIT_HEM_COPYBUFFER(), HEXEDIT_HEM_LOADBUFFER(), HEXEDIT_PaintLines(), HEXEDIT_Paste(), HEXEDIT_WM_CHAR(), HEXEDIT_WM_KEYDOWN(), Imm32InternalLockIMC(), ImmUnlockIMC(), ImmUnlockIMCC(), ProcessNewLinesAndNulls(), ReadText(), test_EM_GETHANDLE(), test_heap(), and test_LocalAlloc().

◆ LockFile()

BOOL WINAPI LockFile ( HANDLE  ,
DWORD  ,
DWORD  ,
DWORD  ,
DWORD   
)

◆ LockFileEx()

BOOL WINAPI LockFileEx ( HANDLE  ,
DWORD  ,
DWORD  ,
DWORD  ,
DWORD  ,
LPOVERLAPPED   
)

◆ LockResource()

PVOID WINAPI LockResource ( HGLOBAL  handle)

Definition at line 550 of file res.c.

551{
552 return handle;
553}

Referenced by ATL::_AtlGetStringResourceImage(), ANIMATE_LoadResW(), AtlAxCreateDialogW(), AtlAxDialogBoxW(), BITMAP_LoadImageW(), ChooseColorW(), ChooseFontA(), ChooseFontW(), COMDLG32_FR_DoFindReplace(), create_testfontfile(), create_tmp_ini_file(), CreateIconFromResourceEx(), CreateMappedBitmap(), CreateTemplateDialog(), CURSORICON_LoadImageW(), DoEntry(), EngFindResource(), CShellCommandHelp::Execute(), extract_one(), extract_rcdata(), extract_resource(), FD31_GetTemplate(), get_module_version(), get_res_data(), GetFileName95(), GetFileVersionInfoExW(), GetLocaleInfoW(), GetLocalisedText(), GetResource(), GplDlgProc(), IDirectXFileImpl_CreateEnumObject(), K32LoadStringExW(), LengthOfStrResource(), load_resource(), load_resource_into_memory(), load_string(), LoadDialogResource(), LoadStringA(), LoadStringW(), LoadXMLDocumentFromResource(), LsapGetResourceStringLengthEx(), LsapLoadString(), LsapLoadStringEx(), MCI_SetCommandTable(), MDI_MoreWindowsDialog(), MsiLoadStringW(), MSSTYLES_TryLoadPng(), NLS_GetLanguageGroupName(), OleCreatePropertyFrameIndirect(), OleUIInsertObjectA(), OnInitDialog(), pagesetup_get_template(), PlaySound_GetMMIO(), PrintDlgA(), PrintDlgW(), PROPSHEET_CollectPageInfo(), PROPSHEET_CreatePage(), ResourceToFile(), SampLoadString(), START_TEST(), test_arrange(), test_focus(), test_SaveRestoreFocus(), TLB_PEFile_Open(), unpack_avi_file(), VARIANT_GetLocalisedText(), write_resource_file(), and write_typelib().

◆ LogonUserA()

BOOL WINAPI LogonUserA ( _In_  LPSTR,
_In_opt_  LPSTR,
_In_opt_  LPSTR,
_In_  DWORD,
_In_  DWORD,
_Outptr_  PHANDLE 
)

◆ LogonUserW()

BOOL WINAPI LogonUserW ( _In_  LPWSTR,
_In_opt_  LPWSTR,
_In_opt_  LPWSTR,
_In_  DWORD,
_In_  DWORD,
_Outptr_  PHANDLE 
)

◆ LookupPrivilegeValueA()

BOOL WINAPI LookupPrivilegeValueA ( _In_opt_  LPCSTR,
_In_  LPCSTR,
_Out_  PLUID 
)

◆ LookupPrivilegeValueW()

BOOL WINAPI LookupPrivilegeValueW ( _In_opt_  LPCWSTR,
_In_  LPCWSTR,
_Out_  PLUID 
)

◆ lstrcatA()

LPSTR WINAPI lstrcatA ( _Inout_updates_z_(_String_length_(lpString1)+_String_length_(lpString2)+1) LPSTR  lpString1,
_In_ LPCSTR  lpString2 
)

◆ lstrcatW()

LPWSTR WINAPI lstrcatW ( _Inout_updates_z_(_String_length_(lpString1)+_String_length_(lpString2)+1) LPWSTR  lpString1,
_In_ LPCWSTR  lpString2 
)

◆ lstrcmpA()

int WINAPI lstrcmpA ( LPCSTR  lpString1,
LPCSTR  lpString2 
)

Definition at line 18 of file lstring.c.

19{
20 int Result;
21
22 if (lpString1 == lpString2)
23 return 0;
24 if (lpString1 == NULL)
25 return -1;
26 if (lpString2 == NULL)
27 return 1;
28
29 Result = CompareStringA(GetThreadLocale(), 0, lpString1, -1, lpString2, -1);
30 if (Result)
31 Result -= 2;
32
33 return Result;
34}
LCID WINAPI GetThreadLocale(void)
Definition: lang.c:1459
INT WINAPI CompareStringA(LCID lcid, DWORD flags, LPCSTR str1, INT len1, LPCSTR str2, INT len2)
Definition: lang.c:2695

Referenced by check_font(), check_list(), check_reg_str(), check_wellknown_name(), compare_string1(), CryptFindOIDInfo(), dde_msg_client_wndproc(), dde_server_wndproc(), dde_server_wndprocA(), dde_server_wndprocW(), eto_emf_enum_proc(), expect_shim_imp(), file_matches(), find_prop_in_property(), FindTest(), hook_WaitForInputIdle(), is_prefix_wa(), JustDoIt(), LPropCompareProp(), main(), match_emf_record(), mdi_child_wnd_proc_1(), mdi_child_wnd_proc_2(), mdr_GetValue(), notify_datetime_handler(), notify_generic_text_handler(), notify_tooltip_handler(), option_equal(), parse_clr_metadata(), PathMatchSpecA(), PRINTDLG_ChangePrinterA(), PropertyStorage_PropNameCompare(), proppage_callback_a(), PropVariantCompareEx(), PropVariantToBoolean(), server_ddeml_callback(), server_end_to_end_callback(), START_TEST(), str_eq_wa(), strcmp_wa(), strcmp_ww(), StrCmpCA(), strcomparefunc(), test_32bit_win(), test_appsearch_complocator(), test_appsearch_drlocator(), test_appsearch_inilocator(), test_appsearch_reglocator(), test_authentication(), test_binary(), test_binary_import(), test_BstrCopy(), test_ccpsearch(), test_collation(), test_CompareStringA(), test_complocator(), test_ConvertINetUnicodeToMultiByte(), test_CreateAssemblyNameObject(), test_CreateFontIndirect(), test_CredMarshalCredentialA(), test_CryptCATAdminAddRemoveCatalog(), test_db(), test_dbmerge(), test_dbtopackage(), test_DdeCreateDataHandle(), test_DdeCreateStringHandleW(), test_ddeml_client(), test_DoEnvironmentSubst(), test_EM_GETHANDLE(), test_EM_SETTEXTEX(), test_emptypackage(), test_EnumDateFormatsA(), test_enumerate(), test_enumerate_name(), test_EnumTimeFormatsA(), test_Extract(), test_fieldzero(), test_FoldStringA(), test_font_substitution(), test_forcecodepage(), test_formatrecord(), test_formatrecord_package(), test_formatrecord_tables(), test_fullname(), test_fullname2_helper(), test_GetAcceptLanguagesA(), test_GetDisplayName(), test_GetFullPathNameA(), test_GetLocaleInfoA(), test_GetPrivateProfileString(), test_GetPtrAW(), test_GetRfc1766FromLcid(), test_GetRfc1766Info(), test_GetSetConsoleInputExeName(), test_GetSetEnvironmentVariableA(), test_getstring(), test_GetSystemDirectoryA(), test_GetTextFace(), test_GetUrlCacheConfigInfo(), test_GetWindowsDirectoryA(), test_IMultiLanguage2_ConvertStringFromUnicode(), test_inffilelistA(), test_initialization(), test_Installer_InstallProduct(), test_installprops(), test_InternetCanonicalizeUrlA(), test_interthread_messages(), test_kerberos(), test_lastusedsource(), test_LcidToRfc1766(), test_lcmapstring_unicode(), test_LCMapStringA(), test_LookupAccountName(), test_LookupAccountSid(), test_LZOpenFileA(), test_LZOpenFileA_existing_compressed(), test_LZOpenFileA_nonexisting_compressed(), test_LZOpenFileW(), test_LZOpenFileW_existing_compressed(), test_LZOpenFileW_nonexisting_compressed(), test_MsiDatabaseCommit(), test_MsiEnumClients(), test_MsiEnumPatches(), test_MsiEnumPatchesEx(), test_MsiEnumPatchesEx_machine(), test_MsiEnumPatchesEx_usermanaged(), test_MsiEnumPatchesEx_userunmanaged(), test_msiexport(), test_MsiGetComponentPath(), test_MsiGetComponentPathEx(), test_MsiGetFileVersion(), test_MsiGetPatchInfo(), test_MsiGetPatchInfoEx(), test_MsiGetProductCode(), test_MsiGetProductInfoEx(), test_MsiGetProductProperty(), test_MsiGetSourcePath(), test_MsiGetUserInfo(), test_MsiInstallProduct(), test_MsiOpenProduct(), test_MsiProvideQualifiedComponentEx(), test_MsiRecordGetString(), test_MsiSetProperty(), test_MsiSourceListAddSourceEx(), test_MsiSourceListEnumMediaDisks(), test_MsiSourceListEnumSources(), test_MsiSourceListGetInfo(), test_multibyte_to_unicode_translations(), test_negative_dest_length(), test_negative_source_length(), test_norecompute(), test_notify_generic_text_helper(), test_notify_proc(), test_oemcharset(), test_Option_PerConnectionOptionA(), test_ParseURLFromOutsideSourceA(), test_ParseURLFromOutsideSourceW(), test_PathAddBackslash(), test_PathAppendA(), test_PathBuildRootA(), test_PathCanonicalizeA(), test_PathCombineA(), test_PathCommonPrefixA(), test_PathFindExtensionA(), test_PathNameA(), test_PdhLookupPerfNameByIndexA(), test_process_components(), test_PropCopyMore(), test_property_table(), test_pSetupGetField(), test_publish_sourcelist(), test_queryreader(), test_readwrite(), test_reg_query_value(), test_RegisterClipboardFormatA(), test_RtlGetFullPathName_U(), test_ScriptGetFontProperties(), test_SetDefaultPrinter(), test_settargetpath(), test_SetupGetFileCompressionInfo(), test_SetupGetFileCompressionInfoEx(), test_SetupGetSourceFileLocation(), test_SetupGetSourceInfo(), test_SHCreateWorkerWindowA(), test_SHFormatDateTimeA(), test_SHGetFolderPathAndSubDirA(), test_SHGetObjectCompatFlags(), test_shortlongsource(), test_sorting(), test_sourcedir(), test_storages_table(), test_streamtable(), test_summary_binary(), test_SysAllocStringByteLen(), test_try_transform(), test_UDS_SETBUDDYINT(), test_updown_base(), test_UrlApplyScheme(), test_urlcacheW(), test_XcvDataPort_ConfigureLPTPortCommandOK(), testAuth(), testGetValidUsages(), testPropsHelper(), testScreenBuffer(), verify_shima_imp(), WorkerThread(), and wsprintfATest().

◆ lstrcmpiA()

int WINAPI lstrcmpiA ( LPCSTR  lpString1,
LPCSTR  lpString2 
)

Definition at line 42 of file lstring.c.

43{
44 int Result;
45
46 if (lpString1 == lpString2)
47 return 0;
48 if (lpString1 == NULL)
49 return -1;
50 if (lpString2 == NULL)
51 return 1;
52
53 Result = CompareStringA(GetThreadLocale(), NORM_IGNORECASE, lpString1, -1, lpString2, -1);
54 if (Result)
55 Result -= 2;
56
57 return Result;
58}
#define NORM_IGNORECASE
Definition: winnls.h:176

Referenced by __ConvertName(), __GetLCIDFromName(), cbt_global_hook_proc(), check_info_filename(), check_lnk_(), check_reg_str(), cmp_mru_strA(), create_sub_body(), dns_strcmpX(), DoTestEntry(), enum_all_fonts_proc(), EnumLocalesProcA(), fdi_decomp(), file_in_list(), find_default_prop(), find_prop(), FindImportDescriptor(), get_window_attributes(), hook_WaitForInputIdle(), IntGetImageBase(), CCopyMoveToMenu::InvokeCommand(), is_local_machineA(), is_our_logged_class(), is_stub_dll(), MACRO_CloseSecondarys(), MACRO_CloseWindow(), MACRO_FocusWindow(), MACRO_HelpOnTop(), MACRO_LookupButton(), main(), matchSpecialFolderPathToEnv(), MimeBody_DeleteProp(), MimeBody_GetProp(), MimeBody_IsContentType(), MimeBody_SetProp(), MimeInternat_FindCharset(), okChildString_(), path_hook_proc(), PathIsExeA(), PropertyStorage_PropNameCompare(), PropVariantCompareEx(), PropVariantToBoolean(), read_prop(), RedirectIat(), scan_subkeys(), SHADD_compare_mru(), SHELL32_GetFSItemAttributes(), SHRegGetBoolUSValueA(), START_TEST(), StrCmpICA(), stricmp_wa(), Test2(), test_appsearch_drlocator(), test_bitmap_font_glyph_index(), test_CompareStringA(), test_CurrentDirectoryA(), test_enum_sections(), test_enumdisplaydevices_monitor(), test_filenames(), test_FindFirstFileA(), test_FunnyChars(), test_get_displayname(), test_get_file_info(), test_get_servicekeyname(), test_get_set(), test_GetFinalPathNameByHandleA(), test_GetIconLocation(), test_GetLongPathNameA(), test_GetProcessImageFileNameA(), test_GetStandardColorSpaceProfileA(), test_GetStandardColorSpaceProfileW(), test_GetTempFileNameA(), test_GetTempPathA(), test_handles(), test_hwnd_message(), test_IME(), test_InitPathA(), test_LoadLibraryEx_search_flags(), test_LongtoShortA(), test_LookupAccountName(), test_module(), test_nonexistent_font(), test_open_svc(), test_OpenFile(), test_PathCreateFromUrl(), test_PathNameA(), test_PrintDlgA(), test_process_components(), test_QueryFullProcessImageNameA(), test_readwrite(), test_registerDefaultOIDFunction(), test_setdir(), test_SetSearchPathMode(), test_settargetpath(), test_SetupGetTargetPath(), test_sh_new_link_info(), test_SHGetFolderPathA(), test_urlcacheA(), test_UrlCreateFromPath(), test_ValidPathA(), testing_status_routine(), testSystemDir(), testWinDir(), translateinfstringex_test(), TTIsEmbeddingEnabledForFacename(), VerInstallFileA(), WDML_ClientProc(), WDML_ServerNameProc(), win_event_global_hook_proc(), WINHELP_CreateHelpWindow(), WINHELP_DeleteWindow(), and WINHELP_GetWindowInfo().

◆ lstrcmpiW()

int WINAPI lstrcmpiW ( LPCWSTR  lpString1,
LPCWSTR  lpString2 
)

Definition at line 194 of file lstring.c.

195{
196 int Result;
197
198 if (lpString1 == lpString2)
199 return 0;
200 if (lpString1 == NULL)
201 return -1;
202 if (lpString2 == NULL)
203 return 1;
204
205 Result = CompareStringW(GetThreadLocale(), NORM_IGNORECASE, lpString1, -1, lpString2, -1);
206 if (Result)
207 Result -= 2;
208
209 return Result;
210}
INT WINAPI CompareStringW(LCID lcid, DWORD flags, LPCWSTR str1, INT len1, LPCWSTR str2, INT len2)
Definition: lang.c:2671

Referenced by ActivateContentTopic(), add_favs_to_menu(), add_font(), AviMux_FindPin(), BaseRendererImpl_FindPin(), CFn_WMCommand(), CFSExtractIcon_CreateInstance(), CExplorerBand::CompareTreeItems(), compareUrlArray(), copy_files(), count_moniker_matches(), CRYPT_FileNameOpenStoreW(), CRYPT_FindStringInMultiString(), CRYPT_SysRegOpenStoreW(), CryptFindLocalizedName(), DdeCmpStringHandles(), DEVENUM_IMediaCatMoniker_IsEqual(), dns_name_matches(), dns_strcmpX(), do_process_key(), ATL::CRegObject::do_process_key(), do_process_root_key(), ATL::CRegObject::do_process_root_key(), DoEntry(), DoInitAutoCompleteWithCWD(), domain_name_matches(), DoSync(), DoTestComputerName(), DoTestEntry(), EditTypeDlg_OnCommand(), EditTypeDlg_OnDrawItem(), EnumStubProc(), CDirectoryItem::EqualPath(), extract_cab_cb(), FILEDLG95_FILETYPE_SearchExt(), FILEDLG95_OnOpen(), FileMonikerImpl_CommonPrefixWith(), FileMonikerImpl_IsEqual(), FileMonikerImpl_RelativePathTo(), CMenuSFToolbar::FillToolbar(), find_control(), find_installed_ports(), find_portinfo2(), find_top_window(), FindExeCplClass(), fnIMultiLanguage3_GetCharsetInfo(), format_filelist_filename(), get_operation(), GetBinaryTypeW(), GetFileTypeIconsEx(), HTMLFormElement_put_encoding(), HTMLFormElement_put_method(), IAssemblyCacheImpl_InstallAssembly(), ILIsParentOrSpecialParent(), Imm32IsRunningInMsoobe(), Imm32WriteImeLayout(), ImmInstallIMEW(), CACLCustomMRU::Initialize(), CVfdShExt::InvokeCommand(), IsPidlPrograms(), IsSwitch(), ITypeComp_fnBind(), ITypeInfo_fnGetIDsOfNames(), JapaneseEra_IsFirstYearGannen(), ldr_enum_callback(), ldr_notify_callback1(), ldr_notify_callback_imports(), load_mapi_provider(), LocalmonAddPortEx(), MSSTYLES_FindClass(), MSSTYLES_GetActiveThemeIni(), MSSTYLES_GetFont(), MSSTYLES_LoadBitmap(), MSSTYLES_LookupEnum(), MSSTYLES_LookupPartState(), MSSTYLES_LookupProperty(), MSSTYLES_OpenThemeFile(), MSSTYLES_ParseThemeIni(), MSTASK_ITaskScheduler_SetTargetComputer(), ok_child_stringWA(), CDesktopBrowser::OnSettingChange(), CTrayWindow::OnSettingChanged(), parse_display_name(), parse_procarch(), parse_pubkey(), PrintOSVersion(), PropertyStorage_PropNameCompare(), PropStgNameToFmtId(), PropVariantCompareEx(), PropVariantToBoolean(), pSetupStringTableAddString(), pSetupStringTableAddStringEx(), pSetupStringTableLookUpString(), pSetupStringTableLookUpStringEx(), CDummyPropertyBag::Read(), realize_font(), reg_add(), reg_copy(), reg_delete(), reg_export(), reg_import(), reg_query(), registry_set_filelist(), rfc822_name_matches(), SampleGrabber_IBaseFilter_FindPin(), ScanAdvancedSettings(), SECUR32_findPackageW(), ServiceStarter(), set_ldids(), SHADD_compare_mru(), SHAddToRecentDocs(), SHCreatePropertyBagOnProfileSection(), shellex_run_context_menu_default(), SHRegGetBoolUSValueW(), SHSettingsChanged(), START_TEST(), StrCmpICW(), SvcRegisterStopCallback(), test_createfont(), test_detailed_info(), TEST_DoTestEntryStruct(), test_EnumCodePages(), test_file_all_name_information(), test_file_info(), test_file_link_information(), test_file_name_information(), test_file_rename_information(), test_FolderCollection(), test_FolderShortcut(), test_fontfamily(), test_format_object(), test_GetAbsolutePathName(), test_GetDisplayName(), test_GetFile(), test_GetFinalPathNameByHandleW(), Test_GetFontResourceInfoW_case1(), Test_GetFontResourceInfoW_case2(), Test_GetFontResourceInfoW_case4(), test_getgenerics(), test_GetSpecialFolder(), test_getstring_bad(), test_GetTempPathW(), test_HashLinks(), test_info_in_assembly(), test_knownFolders(), test_LocalizedNames(), test_namespace(), test_ParseDisplayNamePBC(), test_PathCreateFromUrl(), test_PathSearchAndQualify(), test_ProgIDFromCLSID(), test_QueryFullProcessImageNameW(), test_realization(), test_RtlStringFromGUID(), test_SetApplicationName_GetApplicationName(), test_SetTargetComputer(), test_SHGetFolderPathEx(), test_SHGetPathFromIDList(), test_SHGetSetFolderCustomSettings(), TEST_Start(), test_streamenum(), test_StringFromGUID2(), test_StringTableStringFromId(), test_type_info(), test_typelib(), test_UrlCreateFromPath(), test_Win32_ComputerSystem(), TestCommandLine(), ThemeDlgPostWindowProc(), TLB_get_typeinfo_by_name(), TLB_get_vardesc_by_name(), TREEVIEW_SortOnName(), UPDOWN_SetBuddy(), UPDOWN_SetBuddyInt(), URLMoniker_IsEqual(), Validate_EmptyShimData_Win10(), validate_envW(), validate_operation(), Validate_ShimData_Win10(), ViewTree_FindIcon(), ViewTree_LoadTree(), WDML_BroadcastEnumProc(), WDML_ClientProc(), WDML_ServerNameProc(), WICMapShortNameToGuid(), CDummyPropertyBag::Write(), write_registry_values(), and wWinMain().

◆ lstrcmpW()

int WINAPI lstrcmpW ( LPCWSTR  lpString1,
LPCWSTR  lpString2 
)

Definition at line 170 of file lstring.c.

171{
172 int Result;
173
174 if (lpString1 == lpString2)
175 return 0;
176 if (lpString1 == NULL)
177 return -1;
178 if (lpString2 == NULL)
179 return 1;
180
181 Result = CompareStringW(GetThreadLocale(), 0, lpString1, -1, lpString2, -1);
182 if (Result)
183 Result -= 2;
184
185 return Result;
186}

Referenced by _check_default_props(), _check_set_props(), _findProviderIndexW(), _test_GetCurMoniker(), _test_language_string(), ActiveScript_AddNamedItem(), ActiveScriptSite_GetItemInfo(), add_favs_to_menu(), ADVAPI_IsLocalComputer(), AVIBuildFilterW(), cert_mgr_sort_by_text(), check_display_name_(), check_dropdown_(), check_known_folder(), ClassTest(), compare_addrinfow(), compare_export_(), compare_font(), compare_items(), compare_metadata(), compareAltNameEntry(), CRegistryFolder::CompareIDs(), ConfigFileHandler_startElement(), cpinfo_cmp(), CredDialogFillUsernameCombo(), CredUIConfirmCredentialsW(), CredUIPromptForCredentialsW(), CRYPT_RegReadSerializedFromReg(), CryptFindOIDInfo(), dde_server_wndprocA(), dde_server_wndprocW(), DELNODE_recurse_dirtree(), DEVENUM_IPropertyBag_Read(), dispex_GetDispID(), DoEntry(), DoGetProductType(), DoTestComputerName(), DoTestEntry(), DSPROPERTY_WaveDeviceMappingW(), enum_find_filter(), enum_gac_assemblies(), enum_stream_names(), enumeration_callback(), EnumJoysticks(), export_password_dlg_proc(), FEqualNames(), find_existing_credential(), find_property_index(), find_window(), find_window_callback(), FindDll(), general_on_notify(), get_dest_dir(), get_encoder_clsid(), GetFileTypeIconsEx(), getstring_test(), GetTypeFromName(), HlinkBrowseContext_GetObject(), hls_site_Moniker_ComposeWith(), HttpNegotiate_BeginningTransaction(), IAssemblyNameImpl_IsEqual(), IDxDiagContainerImpl_GetChildContainerInternal(), IDxDiagContainerImpl_GetProp(), iframe_onreadystatechange(), Imm32UnitTest(), InitPropertyBag_IPropertyBag_Read(), InPlaceFrame_SetActiveObject(), InPlaceUIWindow_SetActiveObject(), inst_func2(), InstallColorProfileW(), InternetProtocolInfo_CombineUrl(), InternetProtocolInfo_ParseUrl(), is_expected_variant(), is_ime_window_proc(), is_in_strarray(), is_netmeeting_running(), JustDoIt(), ldap_parse_page_controlW(), LISTVIEW_EndEditLabelT(), LISTVIEW_FindItemW(), LPropCompareProp(), LsapIsLocalComputer(), map_shortname_to_schema(), MimeProtocol_Start(), mixer_test_deviceW(), MMDevEnum_GetDevice(), MNLS_lstrcmpW(), MonikerProp_PutProperty(), MSACM_FillFormatTagsCB(), MsgConversionProcW(), notify_generic_text_handler(), notify_if_changed(), ok_child_stringWA(), on_default_action(), on_fontlist_modified(), on_mime_message_available(), on_sizelist_modified(), pagesetup_set_devnames(), parse_file_header(), parse_hhindex(), ParseDisplayName_ParseDisplayName(), PathMatchSpecW(), PB_Read(), PerformRegAction(), pointer_tests(), PRINTDLG_ChangePrinterW(), PRINTDLG_CreateDevNamesW(), PropertyNotifySink_OnChanged(), proppage_callback_w(), PropVariantCompareEx(), PropVariantToBoolean(), Protocol_Continue(), Protocol_Start(), protocol_start(), ProtocolSink_ReportProgress(), pSetupStringTableAddString(), pSetupStringTableAddStringEx(), pSetupStringTableLookUpString(), pSetupStringTableLookUpStringEx(), r_getMonikerRef(), r_getStringRef(), r_verify_pidl(), REBAR_MoveChildWindows(), REBAR_strdifW(), REGPROC_open_export_file(), res_sec_url_cmp(), resource_strcmp(), RtlAtomTestThread(), run_get_comp_name_tests(), run_test(), run_usergetinfo_tests(), run_wkstausergetinfo_tests(), scriptinfo_cmp(), search_dll_path(), server_end_to_end_callback(), set_up_attribute_test(), SetupQuerySpaceRequiredOnDriveW(), SHGetFileInfoW(), should_enumerate_device(), simple_callbackW(), site_GetItemInfo(), SmartTeeFilter_FindPin(), START_TEST(), STATUSBAR_SetTextT(), statusclb_OnDataAvailable(), statusclb_OnProgress(), Storage_CreateStream(), Storage_OpenStream(), strcmp_aw(), strcmp_wa(), StrCmpCW(), tear_down_attribute_test(), test_32bit_win(), test_about_protocol(), test_aclist_expand(), test_assembly_name_props_line(), test_aw_conversion_dlgproc(), test_aw_conversion_dlgprocA(), test_aw_conversion_dlgprocW(), test_aw_conversion_wndproc(), test_bad_header(), test_basics(), test_BindToObject(), test_BindToStorage(), test_bstr_cache(), test_BuildPath(), test_button_class(), test_catalog_properties(), test_CertRDNValueToStrW(), test_CharToOem_OemToChar(), test_chunked_read(), Test_ClassAtoms(), test_cloneNode(), test_codec(), test_CoInternetCombineIUri_Pluggable(), test_CoInternetCombineUrlEx_Pluggable(), test_CoInternetParseIUri_InvalidArgs(), test_CoInternetParseIUri_Pluggable(), test_CoInternetParseUrl(), test_collation(), test_commandline2argv(), test_convert(), test_cookies(), test_copy(), test_CopyStgMedium(), test_costs(), test_create(), test_create_attribute(), test_create_catalog_file(), test_createNode(), test_CreateTextFile(), test_CreateTypeLib(), test_CredUnmarshalCredentialA(), test_cryptunprotectdata(), test_cue_banner(), test_custom_source(), test_customize(), test_customize_onfolderchange(), test_datalink(), test_DavGetHTTPFromUNCPath(), test_DavGetUNCFromHTTPPath(), test_DdeCreateStringHandleW(), test_decodeAltName(), test_decodeAuthorityKeyId2(), test_decodeCatMemberInfo(), test_decodeCatNameValue(), test_decodeCRLDistPoints(), test_decodePolicyQualifierUserNotice(), test_decoder_info(), test_decodeSPCLink(), test_decodeSPCPEImage(), test_decodeSpOpusInfo(), test_default_client_accessible_object(), test_default_format(), test_default_handler(), test_default_properties(), test_desktop_displaynameof(), test_directory_sort(), test_directshow_filter(), test_dmo(), test_doc_load_from_path(), test_DoEnvironmentSubst(), test_domdoc(), test_domnode(), test_DsClientMakeSpnForTargetServer(), test_DsMakeSpn(), test_dsound(), test_EM_GETHANDLE(), test_EM_GETLINE(), test_EM_SETTEXTEX(), test_EnumTimeFormatsW(), test_exec_fontname(), test_FileCollection(), test_filename_opendlg_(), test_filename_savedlg_(), test_filesourcefilter(), test_find_com_redirection(), test_find_surrogate(), test_find_window_class(), test_FindName(), test_findOIDInfo(), test_fm2_enummatchingfilters(), test_FolderCollection(), test_font_events_disp(), test_format_object(), test_format_record(), test_FormattingXML(), test_get_attributes(), test_get_childNodes(), test_get_doctype(), test_get_firstChild(), test_get_namespaces(), test_get_nodeTypeString(), test_get_prefix(), test_get_tagName(), test_getAttribute(), test_GetBaseName(), test_GetCachePath(), test_GetCharsetInfo_other(), test_GetCodePageInfo(), test_GetDisplayName(), test_GetDrive(), test_GetDriveName(), test_GetDynamicTimeZoneInformation(), test_GetExtensionName(), test_GetFileName(), test_GetFullPathNameW(), test_GetLocaleInfoEx(), test_GetLocaleInfoW(), test_GetLocalName(), test_GetName(), test_GetParentFolderName(), test_GetRemoteName(), test_GetRfc1766Info(), test_getruntime(), test_GetSetEnvironmentVariableW(), test_getstring(), test_GetSystemDirectoryW(), test_GetText(), test_GetTextFace(), test_GetTimeZoneInformationForYear(), test_getuserobjectinformation(), test_GetWindowsDirectoryW(), test_Global(), test_globalness(), test_HlinkClone(), test_HlinkCreateExtensionServices(), test_HlinkGetSetMonikerReference(), test_HlinkGetSetStringReference(), test_HlinkParseDisplayName(), test_HttpOptions(), test_IActiveScriptError(), test_ICInfo(), test_inffilelist(), test_insertBefore(), test_Installer_Products(), test_Installer_RegistryValue(), test_InternetGetSecurityUrl(), test_ITEMIDLIST_format(), test_items(), test_ITextDocument_Open(), test_ITextFont(), test_IUriBuilder_GetFragment(), test_IUriBuilder_GetHost(), test_IUriBuilder_GetPassword(), test_IUriBuilder_GetPath(), test_IUriBuilder_GetQuery(), test_IUriBuilder_GetSchemeName(), test_IUriBuilder_GetUserName(), test_IUriBuilder_HasBeenModified(), test_IWbemPath_GetClassName(), test_IWbemPath_GetNamespaceAt(), test_IWbemPath_GetServer(), test_IWbemPath_GetText(), test_IWbemPath_RemoveNamespaceAt(), test_IWbemPath_SetClassName(), test_IWbemPath_SetNamespaceAt(), test_IWbemPath_SetServer(), test_IWbemPath_SetText(), test_knownFolders(), test_lcmapstring_unicode(), test_LCMapStringEx(), test_legacy_filter(), test_legacy_filter_registration(), test_load(), test_LocaleNameToLCID(), test_marshal_array(), test_marshal_SNB(), test_media_streams(), test_mediadet(), test_menu_add_string(), test_message_allocate_buffer_wide(), test_message_from_64bit_number(), test_message_from_string_wide(), test_message_ignore_inserts_wide(), test_message_invalid_flags_wide(), test_MessageBoxFontTest(), test_MessageSetProp(), test_metadata_APE(), test_metadata_cHRM(), test_metadata_gAMA(), test_metadata_GCE(), test_metadata_gif(), test_metadata_GIF_comment(), test_metadata_IMD(), test_metadata_LSD(), test_midiout(), test_MkParseDisplayNameEx(), test_moniker(), test_mouse_keyboard(), test_MsiGetProductProperty(), test_multibyte_to_unicode_translations(), test_mxattr_addAttribute(), test_mxattr_clear(), test_mxnamespacemanager(), test_mxnamespacemanager_override(), test_mxwriter_cdata(), test_mxwriter_characters(), test_mxwriter_comment(), test_mxwriter_default_properties(), test_mxwriter_dtd(), test_mxwriter_encoding(), test_mxwriter_ignorablespaces(), test_mxwriter_indent(), test_mxwriter_pi(), test_mxwriter_properties(), test_mxwriter_startenddocument(), test_mxwriter_startendelement(), test_mxwriter_startendelement_batch(), test_mxwriter_startendelement_batch2(), test_mxwriter_stream(), test_namedmap_newenum(), test_namespace(), test_namespaces_as_attributes(), test_namespaces_basic(), test_namespaces_change(), test_NameToStrConversionW(), test_negative_source_length(), test_NetFwAuthorizedApplication(), test_newline_normalization(), test_nodeTypedValue(), test_nodeValue(), test_note(), test_notify_generic_text_helper(), test_notify_proc(), test_NtAtom(), test_NtIntAtom(), test_null(), test_OleRegGetUserType(), test_OleUIAddVerbMenu(), test_one_cmdline(), test_Option_PerConnectionOption(), test_overwrite(), test_para_numbering(), test_ParseDisplayName(), test_passport_auth(), test_PathUnExpandEnvStrings(), test_PathUnquoteSpaces(), test_PathYetAnotherMakeUniqueName(), test_prefix_filtering(), test_preserve_charref(), test_profile_string(), test_propertybag_getpropertyinfo(), test_propertytovariant(), test_props(), test_PropVariantChangeType_LPWSTR(), test_PropVariantToString(), test_PropVariantToStringAlloc(), test_PropVariantToStringWithDefault(), test_proxy_direct(), test_pSetupGetField(), test_put_data(), test_put_nodeTypedValue(), test_QueryAssemblyInfo(), test_queryconfig2(), test_QueryPathOfRegTypeLib(), test_queryreader(), test_Read(), test_read_attribute(), test_read_charref(), test_read_element(), test_read_pi(), test_read_public_dtd(), test_read_system_dtd(), test_read_xmldeclaration(), test_ReadAll(), test_recinfo(), test_reference(), test_reg_query_value(), test_registry(), test_registry_property_w(), test_RegQueryValueExPerformanceData(), test_root_children(), test_RtlGetFullPathName_U(), test_RtlInitUnicodeString(), test_RtlQueryPackageIdentity(), test_save(), test_saxreader_properties(), test_Sdb(), test_SdbTagToString(), test_SearchPathW(), test_selection(), test_Session(), test_SetAccountInformation_GetAccountInformation(), test_setAttributeNode(), test_SetComment_GetComment(), test_SetInitialHlink(), test_SetParameters_GetParameters(), test_SetupPromptForDiskW(), test_SHCreateShellItem(), test_SHCreateShellItemArray(), test_SHFormatDateTimeW(), test_SHGetIniString(), test_SHGetNameFromIDList(), test_SHGetPathFromIDList(), test_SQLGetPrivateProfileStringW(), test_SspiEncodeStringsAsAuthIdentity(), test_SspiPrepareForCredWrite(), test_StdHlink(), test_SysAllocString(), test_SysAllocStringByteLen(), test_SysAllocStringLen(), test_SysReAllocString(), test_SysReAllocStringLen(), test_targetpath(), test_textfont_global_defaults(), test_ToUnicode(), test_typelibmarshal(), test_url_canonicalize(), test_url_combine(), test_url_part(), test_urlcacheW(), test_UrlEscapeW(), test_UrlUnescape(), test_VarDateChangeTypeEx(), test_vfw(), test_wavein(), test_waveout(), test_wcscpy_s(), test_WICMapGuidToShortName(), test_WICMapSchemaToName(), test_Win32_Service(), test_WinHttpSendRequest(), test_wm_notify_comboboxex(), test_wm_notify_datetime(), test_wm_notify_tooltip(), test_wndclass_section(), test_WriteLine(), test_WTSEnumerateProcessesW(), test_XDR_datatypes(), test_xmldoc(), test_xmlelem(), test_xmlelem_collection(), test_XMLHTTP(), test_xmlns_attribute(), test_xmlTypes(), test_XPath(), test_xsltext(), testAddCertificateLink(), testCreateSelfSignCert(), testExpand(), testQuery(), testScreenBuffer(), testSetHelper(), textcmpWT(), TREEVIEW_InsertItemT(), update_font_list(), update_size_list(), validate_endptr(), Validate_ShimData_Win2k3(), Validate_ShimData_Win7(), variant_func2(), verify_shimw_imp(), WICMapSchemaToName(), Widget_complex_struct(), Widget_VarArg_Ref_Run(), Widget_VarArg_Run(), Widget_variant(), Widget_variant_array(), WinHttpCrackUrl_test(), WinHttpCreateUrl_test(), winproc_convW(), WNetOpenEnumW(), WorkerThread(), wsprintfWTest(), and XCOPY_DoCopy().

◆ lstrcpyA()

LPSTR WINAPI lstrcpyA ( _Out_writes_(_String_length_(lpString2)+1) LPSTR  lpString1,
_In_ LPCSTR  lpString2 
)

◆ lstrcpynA()

LPSTR WINAPI lstrcpynA ( LPSTR  lpString1,
LPCSTR  lpString2,
int  iMaxLength 
)

Definition at line 66 of file lstring.c.

67{
68 LPSTR d = lpString1;
69 LPCSTR s = lpString2;
70 UINT count = iMaxLength;
71 LPSTR Ret = NULL;
72
74 {
75 while ((count > 1) && *s)
76 {
77 count--;
78 *d++ = *s++;
79 }
80
81 if (count)
82 *d = 0;
83
84 Ret = lpString1;
85 }
87 {
88 }
90
91 return Ret;
92}
GLdouble s
Definition: gl.h:2039
GLuint GLuint GLsizei count
Definition: gl.h:1545
#define d
Definition: ke_i.h:81
const char * LPCSTR
Definition: xmlstorage.h:183

◆ lstrcpynW()

LPWSTR WINAPI lstrcpynW ( LPWSTR  lpString1,
LPCWSTR  lpString2,
int  iMaxLength 
)

Definition at line 218 of file lstring.c.

219{
220 LPWSTR d = lpString1;
221 LPCWSTR s = lpString2;
222 UINT count = iMaxLength;
223 LPWSTR Ret = NULL;
224
226 {
227 while ((count > 1) && *s)
228 {
229 count--;
230 *d++ = *s++;
231 }
232
233 if (count)
234 *d = 0;
235
236 Ret = lpString1;
237 }
239 {
240 }
241 _SEH2_END;
242
243 return Ret;
244}

◆ lstrcpyW()

LPWSTR WINAPI lstrcpyW ( _Out_writes_(_String_length_(lpString2)+1) LPWSTR  lpString1,
_In_ LPCWSTR  lpString2 
)

◆ lstrlenA()

int WINAPI lstrlenA ( LPCSTR  lpString)

Definition at line 145 of file lstring.c.

146{
147 INT Ret = 0;
148
149 if (lpString == NULL)
150 return 0;
151
153 {
154 Ret = strlen(lpString);
155 }
157 {
158 }
159 _SEH2_END;
160
161 return Ret;
162}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
int32_t INT
Definition: typedefs.h:58

Referenced by _ConvertAtoW(), _RTFGetToken(), _RunRemoteTest(), _SHStrDupAA(), _test_hkey_main_Value_A(), add_table_to_db(), ansi_to_unicode_list(), AVIFILE_CLSIDFromString(), basic_tests(), CertGetValidUsages(), check_file_data(), check_prop(), CM_Enumerate_Enumerators_ExA(), CM_Get_Class_Key_Name_ExA(), CM_Get_Class_Name_ExA(), compare_metadata(), convert_input_data(), ConvertINetMultiByteToUnicode(), copy_dll_file(), create_cab_file(), create_cdf_file(), create_execute(), create_file(), create_full_path(), create_inf_file(), create_test_files(), CRYPT_AddPrefixA(), CRYPT_AddPrefixAToW(), CRYPT_ExportPublicKeyInfoEx(), CRYPT_GetKeyName(), CryptRegisterOIDFunction(), dde_server_wndproc(), decodeAndCompareBase64_A(), dns_strdup_a(), DnsHostnameToComputerNameA(), DP_CalcSessionDescSize(), DP_CopySessionDesc(), dprintf(), EnumColorProfilesA(), Extract(), fdi_notify_extract(), file_in_list(), FILEDLG95_OnOpen(), find_prop_in_property(), FPropContainsProp(), get_directories(), get_progfiles_dir(), get_prop(), get_version_info(), GetHostnameFromCommand(), GetRequestAndWait(), heap_strdup(), HEAP_strdupA2W(), Imm32WideFromAnsi(), ATL::CA2AEX< t_nBufferLength >::Init(), ATL::CA2WEX< t_nBufferLength >::Init(), init_shfo_tests(), init_TCPIP_provider(), IntDrawState(), InternetCreateUrlA_test(), IntGetModuleInformation(), IntGrayString(), is_prefix_wa(), LISTVIEW_GetStringWidthT(), main(), MSI_RecordGetStringA(), msi_scrolltext_add_text(), multi_sz_lenA(), MultiByteToWideChar(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), ODBC_ReplicateODBCInstToRegistry(), ODBC_ReplicateODBCToRegistry(), parse_clr_metadata(), path_hook_proc(), PersistFile_Save(), PropCopyMore(), PropertyStorage_WritePropertyToStream(), PropVariantCopy(), register_coclasses(), register_key_defvalueA(), register_mediatypes_parsing(), RTFStrSave(), run_helper(), run_js_script(), s_str_struct_len(), scan_subkeys(), ScCopyProps(), ScRelocProps(), search_absolute_directory(), SECUR32_CalcNTLM2Subkey(), send_msg(), server_ddeml_callback(), set_component_path(), set_prop(), SetupDiGetDriverInfoDetailA(), SetupLogErrorA(), SHADD_create_add_mru_data(), SHAddToRecentDocs(), ShimLib_StringDuplicateA(), SHLWAPI_StrRChrHelperA(), SHOpenRegStream2A(), SHQueryValueExA(), SHRegSetPathA(), SQLInstall_strdup_multi(), SQLInstallTranslatorEx(), START_TEST(), StrRChrA(), StrRChrIA(), StrRStrIA(), test__hread(), test__lcreat(), test__lread(), test__snprintf(), test_appsearch(), test_appsearch_reglocator(), test_authentication(), test_autocreation(), test_CertRDNValueToStrA(), test_cf_dataobject(), test_CoInternetParseIUri(), test_complicated_cookie(), test_copy(), test_CreateDirectoryA(), test_CreateThread_basic(), test_currentworkingdir(), test_dde_aw_transaction(), test_DdeCreateDataHandle(), test_DdeCreateStringHandleW(), test_ddeml_client(), test_decodeInt(), test_DoEnvironmentSubst(), test_DrawTextCalcRect(), test_edit_control_3(), test_edit_control_5(), test_editbox(), test_EM_GETHANDLE(), test_EM_GETTEXTLENGTHEX(), test_EnumObjects_and_CompareIDs(), test_ExpandEnvironmentStringsA(), test_ExtTextOut(), test_FDICopy(), test_fgetwc(), test_file_disposition_information(), test_file_write_read(), test_fileops(), test_find_file(), test_FoldStringA(), test_get_user_profile_dir(), test_get_value(), test_GetAcceptLanguagesA(), test_GetAttributesOf(), test_GetFinalPathNameByHandleA(), test_GetLongPathNameA(), test_GetPrinterData(), test_GetPrinterDataEx(), test_GetPrinterDriverDirectory(), test_GetPrivateProfileString(), test_GetProcessImageFileNameA(), test_GetRfc1766FromLcid(), test_getroletext(), test_GetSetEnvironmentVariableA(), test_getstring(), test_getstring_no_extra(), test_inffilelistA(), test_InitPathA(), test_InternetCanonicalizeUrlA(), test_InternetGetConnectedStateExA(), test_InternetQueryOptionA(), test_interthread_messages(), test_invariant(), test_IUri_GetPropertyLength(), test_lastusedsource(), test_LcidToRfc1766(), test_LCMapStringA(), test_load(), test_LocalizedNames(), test_longtextA(), test_LookupAccountName(), test_lookupPrivilegeName(), test_MRUListA(), test_MsiConfigureProductEx(), test_MsiEnumPatches(), test_MsiEnumPatchesEx_machine(), test_MsiEnumPatchesEx_usermanaged(), test_MsiEnumPatchesEx_userunmanaged(), test_MsiGetProductProperty(), test_MsiGetSourcePath(), test_MsiOpenProduct(), test_MsiProvideComponent(), test_MsiProvideQualifiedComponentEx(), test_MsiSourceListGetInfo(), test_multibyte_to_unicode_translations(), test_NameToStrConversionA(), test_OpenFile(), test_ParseURL(), test_PathAddBackslash(), test_PathAppendA(), test_PathCanonicalizeA(), test_PathCombineA(), test_PathCommonPrefixA(), test_PathFindExtensionA(), test_PathNameA(), test_pSetupGetField(), test_publish_sourcelist(), test_QueryFullProcessImageNameA(), test_readmode(), test_readwrite(), test_reg_delete_tree(), test_RegisterClipboardFormatA(), test_registerDefaultOIDFunction(), test_RemoveDirectoryA(), test_RpcServerUseProtseq(), test_RtlIsNameLegalDOS8Dot3(), test_RtlUnicodeToUTF8N(), test_set_provider_ex(), test_setdir(), test_SetupCopyOEMInf(), test_SetupGetFileCompressionInfoEx(), test_SetupGetTargetPath(), test_sh_new_link_info(), test_SHFormatDateTimeA(), test_shortlongsource(), test_simpleroundtrip(), test_sourcedir(), test_SplitShortPathA(), test_SQLGetInstalledDrivers(), test_UDS_SETBUDDYINT(), test_updown_create(), test_url_combine(), test_UrlApplyScheme(), test_UrlCanonicalizeA(), test_URLSubRegQueryA(), test_ValidPathA(), test_VerQueryValueA(), test_WM_GETTEXT(), test_WM_GETTEXTLENGTH(), test_WM_SETTEXT(), test_word_wrap(), Test_WSARecv(), test_XcvDataPort_ConfigureLPTPortCommandOK(), test_XcvDataPort_GetTransmissionRetryTimeout(), testAuth(), testGetModuleFileName(), testLoadLibraryEx(), testScreenBuffer(), testSignSeal(), textlenT(), threadFunc1(), thunk_PSecPkgInfoWToA(), translateinfstringex_test(), UlPropSize(), Utf8Convert_(), wine_dbgstr_propvariant(), WNetGetUniversalNameA(), write_string(), and WriteRegistryValue().

◆ lstrlenW()

int WINAPI lstrlenW ( LPCWSTR  lpString)

Definition at line 296 of file lstring.c.

297{
298 INT Ret = 0;
299
300 if (lpString == NULL)
301 return 0;
302
304 {
305 Ret = wcslen(lpString);
306 }
308 {
309 }
310 _SEH2_END;
311
312 return Ret;
313}

◆ MakeAbsoluteSD()

BOOL WINAPI MakeAbsoluteSD ( PSECURITY_DESCRIPTOR  ,
PSECURITY_DESCRIPTOR  ,
PDWORD  ,
PACL  ,
PDWORD  ,
PACL  ,
PDWORD  ,
PSID  ,
PDWORD  ,
PSID  ,
PDWORD   
)

◆ MakeSelfRelativeSD()

BOOL WINAPI MakeSelfRelativeSD ( PSECURITY_DESCRIPTOR  ,
PSECURITY_DESCRIPTOR  ,
PDWORD   
)

◆ MapGenericMask()

VOID WINAPI MapGenericMask ( PDWORD  ,
PGENERIC_MAPPING   
)

◆ MapViewOfFile()

PVOID WINAPI MapViewOfFile ( HANDLE  hFileMappingObject,
DWORD  dwDesiredAccess,
DWORD  dwFileOffsetHigh,
DWORD  dwFileOffsetLow,
SIZE_T  dwNumberOfBytesToMap 
)

Definition at line 230 of file filemap.c.

235{
236 /* Call the extended API */
237 return MapViewOfFileEx(hFileMappingObject,
238 dwDesiredAccess,
239 dwFileOffsetHigh,
240 dwFileOffsetLow,
241 dwNumberOfBytesToMap,
242 NULL);
243}
LPVOID NTAPI MapViewOfFileEx(HANDLE hFileMappingObject, DWORD dwDesiredAccess, DWORD dwFileOffsetHigh, DWORD dwFileOffsetLow, SIZE_T dwNumberOfBytesToMap, LPVOID lpBaseAddress)
Definition: filemap.c:162

◆ MapViewOfFileEx()

PVOID WINAPI MapViewOfFileEx ( HANDLE  hFileMappingObject,
DWORD  dwDesiredAccess,
DWORD  dwFileOffsetHigh,
DWORD  dwFileOffsetLow,
SIZE_T  dwNumberOfBytesToMap,
PVOID  lpBaseAddress 
)

Definition at line 162 of file filemap.c.

168{
173 LPVOID ViewBase;
174
175 /* Convert the offset */
176 SectionOffset.LowPart = dwFileOffsetLow;
177 SectionOffset.HighPart = dwFileOffsetHigh;
178
179 /* Save the size and base */
180 ViewBase = lpBaseAddress;
181 ViewSize = dwNumberOfBytesToMap;
182
183 /* Convert flags to NT Protection Attributes */
184 if (dwDesiredAccess == FILE_MAP_COPY)
185 {
187 }
188 else if (dwDesiredAccess & FILE_MAP_WRITE)
189 {
190 Protect = (dwDesiredAccess & FILE_MAP_EXECUTE) ?
192 }
193 else if (dwDesiredAccess & FILE_MAP_READ)
194 {
195 Protect = (dwDesiredAccess & FILE_MAP_EXECUTE) ?
197 }
198 else
199 {
201 }
202
203 /* Map the section */
204 Status = NtMapViewOfSection(hFileMappingObject,
206 &ViewBase,
207 0,
208 0,
210 &ViewSize,
211 ViewShare,
212 0,
213 Protect);
214 if (!NT_SUCCESS(Status))
215 {
216 /* We failed */
218 return NULL;
219 }
220
221 /* Return the base */
222 return ViewBase;
223}
NTSTATUS NTAPI NtMapViewOfSection(IN HANDLE SectionHandle, IN HANDLE ProcessHandle, IN OUT PVOID *BaseAddress, IN ULONG_PTR ZeroBits, IN SIZE_T CommitSize, IN OUT PLARGE_INTEGER SectionOffset OPTIONAL, IN OUT PSIZE_T ViewSize, IN SECTION_INHERIT InheritDisposition, IN ULONG AllocationType, IN ULONG Protect)
Definition: section.c:3622
#define FILE_MAP_READ
Definition: compat.h:776
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID _In_ ULONG_PTR _In_ SIZE_T _Inout_opt_ PLARGE_INTEGER SectionOffset
Definition: mmfuncs.h:407
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID _In_ ULONG_PTR _In_ SIZE_T _Inout_opt_ PLARGE_INTEGER _Inout_ PSIZE_T ViewSize
Definition: mmfuncs.h:408
@ ViewShare
Definition: nt_native.h:1278
#define PAGE_NOACCESS
Definition: nt_native.h:1302
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define FILE_MAP_WRITE
Definition: winbase.h:154
#define FILE_MAP_COPY
Definition: winbase.h:153
#define FILE_MAP_EXECUTE
Definition: winbase.h:157
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID _In_ ULONG_PTR _In_ SIZE_T _Inout_opt_ PLARGE_INTEGER _Inout_ PSIZE_T _In_ SECTION_INHERIT _In_ ULONG _In_ ULONG Protect
Definition: zwfuncs.h:221

Referenced by DPLAYX_ConstructData(), and MapViewOfFile().

◆ MoveFileA()

BOOL WINAPI MoveFileA ( _In_  LPCSTR,
_In_  LPCSTR 
)

◆ MoveFileExA()

BOOL WINAPI MoveFileExA ( _In_  LPCSTR,
_In_opt_  LPCSTR,
_In_  DWORD 
)

◆ MoveFileExW()

BOOL WINAPI MoveFileExW ( _In_  LPCWSTR,
_In_opt_  LPCWSTR,
_In_  DWORD 
)

◆ MoveFileW()

BOOL WINAPI MoveFileW ( _In_  LPCWSTR,
_In_  LPCWSTR 
)

◆ MoveFileWithProgressA()

BOOL WINAPI MoveFileWithProgressA ( _In_  LPCSTR,
_In_opt_  LPCSTR,
_In_opt_  LPPROGRESS_ROUTINE,
_In_opt_  LPVOID,
_In_  DWORD 
)

◆ MoveFileWithProgressW()

BOOL WINAPI MoveFileWithProgressW ( _In_  LPCWSTR,
_In_opt_  LPCWSTR,
_In_opt_  LPPROGRESS_ROUTINE,
_In_opt_  LPVOID,
_In_  DWORD 
)

◆ MulDiv()

int WINAPI MulDiv ( _In_ int  ,
_In_ int  ,
_In_ int   
)

◆ NotifyChangeEventLog()

BOOL WINAPI NotifyChangeEventLog ( _In_  HANDLE,
_In_  HANDLE 
)

◆ ObjectCloseAuditAlarmA()

BOOL WINAPI ObjectCloseAuditAlarmA ( _In_  LPCSTR,
_In_  PVOID,
_In_  BOOL 
)

◆ ObjectCloseAuditAlarmW()

BOOL WINAPI ObjectCloseAuditAlarmW ( LPCWSTR  SubsystemName,
PVOID  HandleId,
BOOL  GenerateOnClose 
)

Definition at line 182 of file audit.c.

185{
188
190 (PWSTR)SubsystemName);
191
193 HandleId,
195 if (!NT_SUCCESS(Status))
196 {
198 return FALSE;
199 }
200
201 return TRUE;
202}
struct NameRec_ * Name
Definition: cdprocs.h:460
NTSTATUS NTAPI NtCloseObjectAuditAlarm(_In_ PUNICODE_STRING SubsystemName, _In_ PVOID HandleId, _In_ BOOLEAN GenerateOnClose)
Raises an alarm audit message when an object is about to be closed.
Definition: audit.c:1358
_In_opt_ PVOID _In_opt_ PUNICODE_STRING _In_ PSECURITY_DESCRIPTOR _In_ PACCESS_STATE _In_ BOOLEAN _In_ BOOLEAN _In_ KPROCESSOR_MODE _In_opt_ GUID _Out_ PBOOLEAN GenerateOnClose
Definition: sefuncs.h:422

◆ ObjectDeleteAuditAlarmA()

BOOL WINAPI ObjectDeleteAuditAlarmA ( _In_  LPCSTR,
_In_  PVOID,
_In_  BOOL 
)

◆ ObjectDeleteAuditAlarmW()

BOOL WINAPI ObjectDeleteAuditAlarmW ( LPCWSTR  SubsystemName,
PVOID  HandleId,
BOOL  GenerateOnClose 
)

Definition at line 240 of file audit.c.

243{
246
248 (PWSTR)SubsystemName);
249
251 HandleId,
253 if (!NT_SUCCESS(Status))
254 {
256 return FALSE;
257 }
258
259 return TRUE;
260}
NTSTATUS NTAPI NtDeleteObjectAuditAlarm(_In_ PUNICODE_STRING SubsystemName, _In_ PVOID HandleId, _In_ BOOLEAN GenerateOnClose)
Raises an alarm audit message when an object is about to be deleted.
Definition: audit.c:1475

◆ ObjectOpenAuditAlarmA()

BOOL WINAPI ObjectOpenAuditAlarmA ( _In_  LPCSTR,
_In_  PVOID,
_In_  LPSTR,
_In_opt_  LPSTR,
_In_  PSECURITY_DESCRIPTOR,
_In_  HANDLE,
_In_  DWORD,
_In_  DWORD,
_In_opt_  PPRIVILEGE_SET,
_In_  BOOL,
_In_  BOOL,
_Out_  PBOOL 
)

◆ ObjectOpenAuditAlarmW()

BOOL WINAPI ObjectOpenAuditAlarmW ( LPCWSTR  SubsystemName,
PVOID  HandleId,
LPWSTR  ObjectTypeName,
LPWSTR  ObjectName,
PSECURITY_DESCRIPTOR  pSecurityDescriptor,
HANDLE  ClientToken,
DWORD  DesiredAccess,
DWORD  GrantedAccess,
PPRIVILEGE_SET  Privileges,
BOOL  ObjectCreation,
BOOL  AccessGranted,
PBOOL  GenerateOnClose 
)

Definition at line 321 of file audit.c.

333{
334 UNICODE_STRING SubsystemNameU;
335 UNICODE_STRING ObjectTypeNameU;
336 UNICODE_STRING ObjectNameU;
338
339 RtlInitUnicodeString(&SubsystemNameU,
340 (PWSTR)SubsystemName);
341 RtlInitUnicodeString(&ObjectTypeNameU,
343 RtlInitUnicodeString(&ObjectNameU,
345
346 Status = NtOpenObjectAuditAlarm(&SubsystemNameU,
347 HandleId,
348 &ObjectTypeNameU,
349 &ObjectNameU,
350 pSecurityDescriptor,
351 ClientToken,
355 ObjectCreation,
358 if (!NT_SUCCESS(Status))
359 {
361 return FALSE;
362 }
363
364 return TRUE;
365}
static POBJECTS_AND_NAME_A SE_OBJECT_TYPE LPSTR ObjectTypeName
Definition: security.c:79
__kernel_entry NTSTATUS NTAPI NtOpenObjectAuditAlarm(_In_ PUNICODE_STRING SubsystemName, _In_opt_ PVOID HandleId, _In_ PUNICODE_STRING ObjectTypeName, _In_ PUNICODE_STRING ObjectName, _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ HANDLE ClientTokenHandle, _In_ ACCESS_MASK DesiredAccess, _In_ ACCESS_MASK GrantedAccess, _In_opt_ PPRIVILEGE_SET PrivilegeSet, _In_ BOOLEAN ObjectCreation, _In_ BOOLEAN AccessGranted, _Out_ PBOOLEAN GenerateOnClose)
Raises an alarm audit message when an object is about to be opened.
Definition: audit.c:1622
unsigned char * PBOOLEAN
Definition: typedefs.h:53
_In_ PVOID _Out_opt_ PULONG_PTR _Outptr_opt_ PCUNICODE_STRING * ObjectName
Definition: cmfuncs.h:64
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET * Privileges
Definition: sefuncs.h:17
_In_opt_ PVOID _In_opt_ PUNICODE_STRING _In_ PSECURITY_DESCRIPTOR _In_ PACCESS_STATE _In_ BOOLEAN _In_ BOOLEAN AccessGranted
Definition: sefuncs.h:419

◆ ObjectPrivilegeAuditAlarmA()

BOOL WINAPI ObjectPrivilegeAuditAlarmA ( _In_  LPCSTR,
_In_  PVOID,
_In_  HANDLE,
_In_  DWORD,
_In_  PPRIVILEGE_SET,
_In_  BOOL 
)

◆ ObjectPrivilegeAuditAlarmW()

BOOL WINAPI ObjectPrivilegeAuditAlarmW ( LPCWSTR  SubsystemName,
PVOID  HandleId,
HANDLE  ClientToken,
DWORD  DesiredAccess,
PPRIVILEGE_SET  Privileges,
BOOL  AccessGranted 
)

Definition at line 406 of file audit.c.

412{
413 UNICODE_STRING SubsystemNameU;
415
416 RtlInitUnicodeString(&SubsystemNameU,
417 (PWSTR)SubsystemName);
418
419 Status = NtPrivilegeObjectAuditAlarm(&SubsystemNameU,
420 HandleId,
421 ClientToken,
425 if (!NT_SUCCESS(Status))
426 {
428 return FALSE;
429 }
430
431 return TRUE;
432}
NTSTATUS NTAPI NtPrivilegeObjectAuditAlarm(_In_ PUNICODE_STRING SubsystemName, _In_ PVOID HandleId, _In_ HANDLE ClientToken, _In_ ULONG DesiredAccess, _In_ PPRIVILEGE_SET Privileges, _In_ BOOLEAN AccessGranted)
Raises an alarm audit message when a caller attempts to access a privileged object.
Definition: audit.c:2066

◆ OpenBackupEventLogA()

HANDLE WINAPI OpenBackupEventLogA ( _In_opt_  LPCSTR,
_In_  LPCSTR 
)

◆ OpenBackupEventLogW()

HANDLE WINAPI OpenBackupEventLogW ( _In_opt_  LPCWSTR,
_In_  LPCWSTR 
)

◆ OpenEventA()

HANDLE WINAPI OpenEventA ( DWORD  ,
BOOL  ,
LPCSTR   
)

◆ OpenEventLogA()

HANDLE WINAPI OpenEventLogA ( _In_opt_  LPCSTR,
_In_  LPCSTR 
)

◆ OpenEventLogW()

HANDLE WINAPI OpenEventLogW ( _In_opt_  LPCWSTR,
_In_  LPCWSTR 
)

◆ OpenEventW()

HANDLE WINAPI OpenEventW ( DWORD  ,
BOOL  ,
LPCWSTR   
)

◆ OpenFile()

HFILE WINAPI OpenFile ( _In_  LPCSTR,
_Inout_  LPOFSTRUCT,
_In_  UINT 
)

◆ OpenFileMappingA()

HANDLE WINAPI OpenFileMappingA ( _In_  DWORD,
_In_  BOOL,
_In_  LPCSTR 
)

◆ OpenFileMappingW()

HANDLE WINAPI OpenFileMappingW ( DWORD  ,
BOOL  ,
LPCWSTR   
)

◆ OpenMutexA()

_Ret_maybenull_ HANDLE WINAPI OpenMutexA ( _In_  DWORD,
_In_  BOOL,
_In_  LPCSTR 
)

◆ OpenMutexW()

HANDLE WINAPI OpenMutexW ( DWORD  ,
BOOL  ,
LPCWSTR   
)

◆ OpenProcess()

HANDLE WINAPI OpenProcess ( DWORD  ,
BOOL  ,
DWORD   
)

◆ OpenProcessToken()

BOOL WINAPI OpenProcessToken ( HANDLE  ProcessHandle,
DWORD  DesiredAccess,
PHANDLE  TokenHandle 
)

Definition at line 294 of file security.c.

297{
299
300 TRACE("%p, %x, %p.\n", ProcessHandle, DesiredAccess, TokenHandle);
301
305 if (!NT_SUCCESS(Status))
306 {
307 WARN("NtOpenProcessToken failed! Status %08x\n", Status);
309 return FALSE;
310 }
311
312 TRACE("Returning token %p.\n", *TokenHandle);
313
314 return TRUE;
315}
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
NTSTATUS NTAPI NtOpenProcessToken(IN HANDLE ProcessHandle, IN ACCESS_MASK DesiredAccess, OUT PHANDLE TokenHandle)
Definition: security.c:350

Referenced by _SHGetUserProfileDirectoryW(), AccpLookupCurrentUser(), AcquireRemoveRestorePrivilege(), AddDeviceW(), AddUserProfiles(), AdjustEnableDefaultPriv(), AuthzpInitSelf(), CopySystemProfile(), DoesUserHavePrivilege(), DwInitializeSdFromThreadToken(), EnablePrivilege(), EnablePrivilegeInCurrentProcess(), EnableProcessPrivileges(), enableTokenPrivilege(), CShellCommandSACL::Execute(), FormatEx2(), get_current_group(), get_current_owner(), get_user_sid(), GetProcessToken(), GetProfileType(), GetShellSecurityDescriptor(), GetTokenFromCurrentProcess(), GetTokenProcess(), GetUserAndDomainName(), GetUserNameW(), GetUserSIDString(), GetUserToken(), InstallReactOS(), is_process_elevated(), is_process_limited(), IsNTAdmin(), LaunchProcess(), make_impersonation_token(), named_pipe_client_func(), OpenCurrentToken(), OpenEffectiveToken(), OpenTokenFromProcess(), PauseBalanceW(), PerfDataRefresh(), PNP_ReportLogOn(), Privilege(), pSetupEnablePrivilege(), RecvSubvolGUIW(), RecvSubvolW(), RecycleBin5_Constructor(), RegenerateUserEnvironment(), RemoveDeviceW(), ResetStatsW(), ResizeDeviceW(), RevertToPrinterSelf(), RunningAsSYSTEM(), SendSubvolGUIW(), SendSubvolW(), set_privileges(), SetDriverLoadPrivilege(), SetPrivilege(), SHCreateSessionKey(), ShowScrubW(), ShutdownSystem(), START_TEST(), StartBalanceW(), StartScrubW(), StopBalanceW(), StopScrubW(), SystemSetLocalTime(), SystemSetTime(), TakeOwnershipOfFile(), test_AccessCheck(), test_AdjustTokenPrivileges(), test_CheckTokenMembership(), test_child_token_sd(), test_child_token_sd_medium(), test_child_token_sd_restricted(), test_create_env(), test_CreateDirectoryA(), test_CreateRestrictedToken(), test_get_user_profile_dir(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_GetTokenInformation(), test_GetWindowsAccountDomainSid(), test_impersonation(), test_impersonation_level(), test_kernel_objects_security(), test_LookupAccountSid(), test_lsa(), test_LsaLookupSids(), test_process_security(), test_pseudo_tokens(), test_RtlQueryPackageIdentity(), test_SetFileValidData(), test_system_security_access(), test_token_attr(), test_token_label(), test_token_security_descriptor(), test_TokenIntegrityLevel(), TestGetUserObjectInfoW(), UpdateDriver(), WhoamiGetTokenInfo(), WinMain(), and wWinMain().

◆ OpenSemaphoreA()

_Ret_maybenull_ HANDLE WINAPI OpenSemaphoreA ( _In_  DWORD,
_In_  BOOL,
_In_  LPCSTR 
)

◆ OpenSemaphoreW()

HANDLE WINAPI OpenSemaphoreW ( DWORD  ,
BOOL  ,
LPCWSTR   
)

◆ OpenThreadToken()

BOOL WINAPI OpenThreadToken ( HANDLE  ,
DWORD  ,
BOOL  ,
PHANDLE   
)

◆ OpenWaitableTimerA()

_Ret_maybenull_ HANDLE WINAPI OpenWaitableTimerA ( _In_  DWORD,
_In_  BOOL,
_In_  LPCSTR 
)

◆ OpenWaitableTimerW()

HANDLE WINAPI OpenWaitableTimerW ( DWORD  ,
BOOL  ,
LPCWSTR   
)

◆ OutputDebugStringA()

◆ OutputDebugStringW()

WINBASEAPI void WINAPI OutputDebugStringW ( LPCWSTR  lpOutputString)

Definition at line 23 of file ignoredbgout.c.

24{
25 (VOID)lpOutputString;
26}

Referenced by _CrtDbgReportWindow(), CTuningSpaceContainer::_TuningSpacesForCLSID(), ACDBG_FN(), CTuningSpaceContainer::Add(), CKsProxy::AdvisePeriodic(), CKsProxy::AdviseTime(), CScanningTunner::AutoProgram(), CInputPin::Backout(), COutputPin::Backout(), CInputPin::BeginFlush(), CPin::BeginFlush(), CBDADeviceControl_fnConstructor(), CBDADigitalDemodulator_fnConstructor(), CBDAFrequencyFilter_fnConstructor(), CBDALNBInfo_fnConstructor(), CBDAPinControl_fnConstructor(), CBDAPinControl_RealConstructor(), CBDASignalStatistics_fnConstructor(), CControlNode_fnConstructor(), CEnumMediaTypes_fnConstructor(), CEnumTuningSpaces_fnConstructor(), CKsProxy::CheckCapabilities(), CBDADeviceControl::CheckChanges(), CInputPin::CheckFormat(), CKsAllocator_Constructor(), CKsBasicAudio_Constructor(), CKsClockForwarder_Constructor(), CKsDataTypeHandler_Constructor(), CKsInterfaceHandler_Constructor(), CKsNode_Constructor(), CKsProxy_Constructor(), CKsQualityForwarder_Constructor(), CEnumMediaTypes::Clone(), CEnumPins::Clone(), CEnumTuningSpaces::Clone(), CTuneRequest::Clone(), CTuningSpace::Clone(), CMediaSample_Constructor(), CNetworkProvider_fnConstructor(), CKsAllocator::Commit(), CBDADeviceControl::CommitChanges(), CInputPin::Connect(), COutputPin::Connect(), CPin::Connect(), COutputPin::ConnectedTo(), CPin::ConnectedTo(), CInputPin::ConnectionMediaType(), COutputPin::ConnectionMediaType(), CPin::ConnectionMediaType(), CKsProxy::ConvertTimeFormat(), COutputPin::COutputPin(), CPin_fnConstructor(), CKsProxy::CreateNodeInstance(), CInputPin::CreatePin(), COutputPin::CreatePin(), CBDADeviceControl::CreatePin(), CInputPin::CreatePinHandle(), COutputPin::CreatePinHandle(), CKsProxy::CreatePins(), CBDADeviceControl::CreateTopology(), CTuningSpace::CreateTuneRequest(), CScanningTunner_fnConstructor(), CTuneRequest_fnConstructor(), CTuningSpace_fnConstructor(), CTuningSpaceContainer_fnConstructor(), CVPConfig_Constructor(), CVPVBIConfig_Constructor(), CKsAllocator::Decommit(), CBDADeviceControl::DeletePin(), CKsProxy::DeviceInfo(), CKsProxy::Disassociate(), CInputPin::Disconnect(), COutputPin::Disconnect(), CPin::Disconnect(), DllMain(), dn_expand(), CInputPin::EndFlush(), CPin::EndFlush(), CInputPin::EndOfStream(), CPin::EndOfStream(), CTuningSpace::EnumCategoryGUIDs(), CTuningSpace::EnumDeviceMonikers(), EnumProtocolsA(), EnumProtocolsW(), CScanningTunner::EnumTuningSpaces(), CTuningSpaceContainer::FindID(), CKsProxy::FindPin(), CNetworkProvider::FindPin(), CKsProxy::Get(), CTuningSpace::get__NetworkType(), CTuningSpaceContainer::get__NewEnum(), CKsBasicAudio::get_Balance(), CTuningSpace::get_CLSID(), CTuneRequest::get_Components(), CTuningSpaceContainer::get_Count(), CTuningSpace::get_DefaultLocator(), CTuningSpace::get_DefaultPreferredComponentTypes(), CTuningSpaceContainer::get_EnumTuningSpaces(), CTuningSpace::get_FrequencyMapping(), CTuningSpace::get_FriendlyName(), CTuningSpaceContainer::get_Item(), CTuneRequest::get_Locator(), CTuningSpaceContainer::get_MaxCount(), CTuningSpace::get_NetworkType(), CTuneRequest::get_ONID(), CScanningTunner::get_PreferredComponentTypes(), CBDASignalStatistics::get_SampleTime(), CTuneRequest::get_SID(), CBDASignalStatistics::get_SignalLocked(), CBDASignalStatistics::get_SignalPresent(), CBDASignalStatistics::get_SignalQuality(), CBDASignalStatistics::get_SignalStrength(), CScanningTunner::get_SignalStrength(), CTuningSpace::get_SystemType(), CTuneRequest::get_TSID(), CScanningTunner::get_TuneRequest(), CScanningTunner::get_TuningSpace(), CTuneRequest::get_TuningSpace(), CTuningSpace::get_UniqueName(), CKsBasicAudio::get_Volume(), GetAddressByNameA(), GetAddressByNameW(), CInputPin::GetAllocator(), COutputPin::GetAllocatorProperties(), CInputPin::GetAllocatorRequirements(), CKsProxy::GetAvailable(), CKsAllocator::GetBuffer(), CKsProxy::GetCapabilities(), CKsProxy::GetClassID(), CNetworkProvider::GetClassID(), CVPConfig::GetConnectInfo(), CVPVBIConfig::GetConnectInfo(), CBDADeviceControl::GetControlNode(), CKsProxy::GetCurrentPosition(), CKsProxy::GetDuration(), COutputPin::GetFormat(), CKsBasicAudio::GetIDsOfNames(), CTuneRequest::GetIDsOfNames(), CTuningSpace::GetIDsOfNames(), CTuningSpaceContainer::GetIDsOfNames(), GetInstallSourceWin32(), CVPConfig::GetMaxPixelRate(), CVPVBIConfig::GetMaxPixelRate(), CKsProxy::GetMiscFlags(), GetNameByTypeA(), GetNameByTypeW(), getnetbyname(), CNetworkProvider::GetNetworkType(), CBDADeviceControl::GetNodeDescriptors(), CBDADeviceControl::GetNodeInterfaces(), CBDADeviceControl::GetNodeTypes(), COutputPin::GetNumberOfCapabilities(), CVPConfig::GetOverlaySurface(), CVPVBIConfig::GetOverlaySurface(), COutputPin::GetPages(), CKsProxy::GetPages(), CBDAPinControl::GetPinID(), CBDAPinControl::GetPinType(), CBDADeviceControl::GetPinTypes(), CKsProxy::GetPositions(), CKsProxy::GetPreroll(), CKsProxy::GetRate(), GetServiceA(), GetServiceW(), CNetworkProvider::GetSignalSource(), CKsProxy::GetSizeMax(), CKsProxy::GetStopPosition(), COutputPin::GetStreamCaps(), CInputPin::GetSupportedSets(), COutputPin::GetSupportedSets(), CKsProxy::GetSupportedSets(), CKsProxy::GetSyncSource(), CBDADeviceControl::GetTemplateConnections(), CKsProxy::GetTime(), CKsProxy::GetTimeFormat(), CNetworkProvider::GetTuningSpace(), GetTypeByNameA(), GetTypeByNameW(), CKsBasicAudio::GetTypeInfo(), CTuneRequest::GetTypeInfo(), CTuningSpace::GetTypeInfo(), CTuningSpaceContainer::GetTypeInfo(), CKsBasicAudio::GetTypeInfoCount(), CTuneRequest::GetTypeInfoCount(), CTuningSpace::GetTypeInfoCount(), CTuningSpaceContainer::GetTypeInfoCount(), CVPConfig::GetVideoFormats(), CVPVBIConfig::GetVideoFormats(), CVPConfig::GetVPDataInfo(), CVPVBIConfig::GetVPDataInfo(), inet_network(), CVPConfig::InformVPInputFormats(), CVPVBIConfig::InformVPInputFormats(), CKsProxy::InitNew(), CKsBasicAudio::Invoke(), CTuneRequest::Invoke(), CTuningSpace::Invoke(), CTuningSpaceContainer::Invoke(), COutputPin::IoProcessRoutine(), CKsProxy::IsDirty(), CKsProxy::IsFormatSupported(), CKsProxy::IsUsingTimeFormat(), CVPConfig::IsVPDecimationAllowed(), CKsProxy::JoinFilterGraph(), CNetworkProvider::JoinFilterGraph(), CInputPin::KsAddAggregate(), COutputPin::KsAddAggregate(), CKsProxy::KsAddAggregate(), CKsAllocator::KsCreateAllocatorAndGetHandle(), COutputPin::KsCreateSinkPinHandle(), COutputPin::KsEvent(), CKsProxy::KsEvent(), CKsProxy::KsGetClockHandle(), CKsProxy::KsGetCorrelatedPhysicalTime(), CKsProxy::KsGetCorrelatedTime(), COutputPin::KsGetObjectHandle(), CKsProxy::KsGetObjectHandle(), CKsProxy::KsGetPhysicalTime(), CKsProxy::KsGetResolution(), CKsProxy::KsGetState(), CKsProxy::KsGetTime(), CKsDataTypeHandler::KsIsMediaTypeInRanges(), COutputPin::KsMethod(), CKsProxy::KsMethod(), CInputPin::KsNotifyError(), COutputPin::KsNotifyError(), CInputPin::KsPinFactory(), COutputPin::KsPinFactory(), CKsInterfaceHandler::KsProcessMediaSamples(), COutputPin::KsPropagateAcquire(), COutputPin::KsProperty(), CKsProxy::KsProperty(), CInputPin::KsQualityNotify(), COutputPin::KsQualityNotify(), CInputPin::KsRemoveAggregate(), COutputPin::KsRemoveAggregate(), CKsProxy::KsRemoveAggregate(), CKsProxy::KsSetCorrelatedPhysicalTime(), CKsProxy::KsSetCorrelatedTime(), CKsProxy::KsSetPhysicalTime(), CKsProxy::KsSetTime(), CKsProxy::Load(), CInputPin::LoadProxyPlugins(), COutputPin::LoadProxyPlugins(), CKsProxy::LoadProxyPlugins(), MigrateWinsockConfiguration(), CInputPin::NewSegment(), CPin::NewSegment(), CEnumTuningSpaces::Next(), CInputPin::Notify(), COutputPin::Notify(), CInputPin::NotifyAllocator(), CKsBasicAudio::NotifyGraphChange(), CVPConfig::NotifyGraphChange(), CVPVBIConfig::NotifyGraphChange(), COutputPin::NotifyRelease(), NPLoadNameSpaces(), dbgrpt_char_traits< wchar_t >::OutputDebugString(), CKsBasicAudio::Pause(), CVPConfig::Pause(), CVPVBIConfig::Pause(), CKsProxy::Pause(), CNetworkProvider::Pause(), CScanningTunner::performDVBTTune(), CTuningSpace::put__NetworkType(), CKsBasicAudio::put_Balance(), CBDAFrequencyFilter::put_Bandwidth(), CTuningSpace::put_DefaultLocator(), CTuningSpace::put_DefaultPreferredComponentTypes(), CBDAFrequencyFilter::put_Frequency(), CTuningSpace::put_FrequencyMapping(), CBDAFrequencyFilter::put_FrequencyMultiplier(), CTuningSpace::put_FriendlyName(), CBDALNBInfo::put_HighLowSwitchFrequency(), CBDADigitalDemodulator::put_InnerFECMethod(), CBDADigitalDemodulator::put_InnerFECRate(), CTuningSpaceContainer::put_Item(), CBDALNBInfo::put_LocalOscillatorFrequencyHighBand(), CBDALNBInfo::put_LocalOscillatorFrequencyLowBand(), CTuneRequest::put_Locator(), CTuningSpaceContainer::put_MaxCount(), CBDADigitalDemodulator::put_ModulationType(), CTuningSpace::put_NetworkType(), CTuneRequest::put_ONID(), CBDADigitalDemodulator::put_OuterFECMethod(), CBDADigitalDemodulator::put_OuterFECRate(), CBDAFrequencyFilter::put_Polarity(), CScanningTunner::put_PreferredComponentTypes(), CBDAFrequencyFilter::put_Range(), CBDASignalStatistics::put_SampleTime(), CTuneRequest::put_SID(), CBDADigitalDemodulator::put_SpectralInversion(), CBDADigitalDemodulator::put_SymbolRate(), CTuningSpace::put_SystemType(), CTuneRequest::put_TSID(), CScanningTunner::put_TuneRequest(), CScanningTunner::put_TuningSpace(), CTuningSpace::put_UniqueName(), CKsBasicAudio::put_Volume(), CNetworkProvider::PutSignalSource(), CNetworkProvider::PutTuningSpace(), COutputPin::QueryAccept(), CPin::QueryAccept(), CKsProxy::QueryFilterInfo(), CControlNode::QueryInterface(), CBDADigitalDemodulator::QueryInterface(), CBDAFrequencyFilter::QueryInterface(), CBDALNBInfo::QueryInterface(), CInputPin::QueryInterface(), COutputPin::QueryInterface(), CKsProxy::QueryInterface(), CNetworkProvider::QueryInterface(), CPin::QueryInterface(), CScanningTunner::QueryInterface(), CEnumTuningSpaces::QueryInterface(), CTuneRequest::QueryInterface(), CTuningSpace::QueryInterface(), CTuningSpaceContainer::QueryInterface(), CInputPin::QueryInternalConnections(), CPin::QueryInternalConnections(), CKsProxy::QueryPreferredFormat(), COutputPin::QuerySupported(), CKsProxy::QuerySupported(), CKsProxy::QueryVendorInfo(), rcmd(), CKsProxy::Reassociate(), CInputPin::Receive(), CInputPin::ReceiveCanBlock(), CInputPin::ReceiveMultiple(), CKsProxy::Register(), CNetworkProvider::Register(), CNetworkProvider::RegisterDeviceFilter(), CBDAPinControl::RegistrationContext(), CKsAllocator::ReleaseBuffer(), CTuningSpaceContainer::Remove(), CInputPin::Render(), COutputPin::Render(), CEnumTuningSpaces::Reset(), rexec(), rresvport(), CKsBasicAudio::Run(), CVPConfig::Run(), CVPVBIConfig::Run(), CKsProxy::Run(), CNetworkProvider::Run(), s_perror(), CKsProxy::Save(), CScanningTunner::ScanDown(), CScanningTunner::ScanUp(), CScanningTunner::SeekDown(), CScanningTunner::SeekUp(), ServiceMain(), CKsProxy::Set(), CKsClockForwarder::SetClockState(), CVPConfig::SetConnectInfo(), CVPVBIConfig::SetConnectInfo(), CVPConfig::SetDDSurfaceKernelHandles(), CVPVBIConfig::SetDDSurfaceKernelHandles(), CVPConfig::SetDirectDrawKernelHandle(), CVPVBIConfig::SetDirectDrawKernelHandle(), COutputPin::SetFormat(), sethostname(), CVPConfig::SetInvertPolarity(), CVPVBIConfig::SetInvertPolarity(), CMediaSample::SetMediaType(), CBDADeviceControl::SetMediaType(), CBDADeviceControl::SetMedium(), CKsAllocator::SetNotify(), CKsProxy::SetPinState(), CKsProxy::SetPositions(), CKsAllocator::SetProperties(), CKsProxy::SetRate(), CVPConfig::SetScalingFactors(), SetServiceA(), SetServiceW(), CInputPin::SetSink(), COutputPin::SetSink(), CVPConfig::SetSurfaceParameters(), CVPVBIConfig::SetSurfaceParameters(), CKsBasicAudio::SetSyncSource(), CVPConfig::SetSyncSource(), CVPVBIConfig::SetSyncSource(), CKsProxy::SetSyncSource(), CKsProxy::SetTimeFormat(), CVPConfig::SetVideoFormat(), CVPVBIConfig::SetVideoFormat(), CVPConfig::SetVideoPortID(), CVPVBIConfig::SetVideoPortID(), CEnumTuningSpaces::Skip(), CBDADeviceControl::StartChanges(), StartWsdpService(), CTuneRequest::STDMETHODIMP_(), CTuningSpace::STDMETHODIMP_(), CTuningSpaceContainer::STDMETHODIMP_(), CKsBasicAudio::Stop(), CKsClockForwarder::Stop(), CVPConfig::Stop(), CVPVBIConfig::Stop(), CKsProxy::Stop(), CNetworkProvider::Stop(), StopWsdpService(), COutputPin::SuggestAllocatorProperties(), SvchostPushServiceGlobals(), CScanningTunner::TriggerSignalEvents(), CTuningSpaceContainer::TuningSpacesForCLSID(), CTuningSpaceContainer::TuningSpacesForName(), CKsProxy::Unadvise(), CKsProxy::Unregister(), CNetworkProvider::Unregister(), CNetworkProvider::UnRegisterDeviceFilter(), CScanningTunner::Validate(), and WSARecvEx().

◆ PeekNamedPipe()

BOOL WINAPI PeekNamedPipe ( HANDLE  ,
PVOID  ,
DWORD  ,
PDWORD  ,
PDWORD  ,
PDWORD   
)

◆ PostQueuedCompletionStatus()

BOOL WINAPI PostQueuedCompletionStatus ( HANDLE  ,
DWORD  ,
ULONG_PTR  ,
LPOVERLAPPED   
)

◆ PrepareTape()

DWORD WINAPI PrepareTape ( _In_  HANDLE,
_In_  DWORD,
_In_  BOOL 
)

◆ PrivilegeCheck()

BOOL WINAPI PrivilegeCheck ( HANDLE  ClientToken,
PPRIVILEGE_SET  RequiredPrivileges,
PBOOL  pfResult 
)

Definition at line 2066 of file security.c.

2069{
2072
2073 Status = NtPrivilegeCheck(ClientToken,
2074 RequiredPrivileges,
2075 &Result);
2076 if (!NT_SUCCESS(Status))
2077 {
2079 return FALSE;
2080 }
2081
2082 *pfResult = (BOOL)Result;
2083
2084 return TRUE;
2085}
NTSTATUS NTAPI NtPrivilegeCheck(_In_ HANDLE ClientToken, _In_ PPRIVILEGE_SET RequiredPrivileges, _Out_ PBOOLEAN Result)
Checks a client access token if it has the required set of privileges.
Definition: priv.c:868

Referenced by IsPrivilegeEnabled(), test_CreateRestrictedToken(), and test_impersonation_level().

◆ PrivilegedServiceAuditAlarmA()

BOOL WINAPI PrivilegedServiceAuditAlarmA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_  HANDLE,
_In_  PPRIVILEGE_SET,
_In_  BOOL 
)

◆ PrivilegedServiceAuditAlarmW()

BOOL WINAPI PrivilegedServiceAuditAlarmW ( LPCWSTR  SubsystemName,
LPCWSTR  ServiceName,
HANDLE  ClientToken,
PPRIVILEGE_SET  Privileges,
BOOL  AccessGranted 
)

Definition at line 475 of file audit.c.

480{
481 UNICODE_STRING SubsystemNameU;
482 UNICODE_STRING ServiceNameU;
484
485 RtlInitUnicodeString(&SubsystemNameU,
486 (PWSTR)SubsystemName);
487 RtlInitUnicodeString(&ServiceNameU,
489
490 Status = NtPrivilegedServiceAuditAlarm(&SubsystemNameU,
491 &ServiceNameU,
492 ClientToken,
495 if (!NT_SUCCESS(Status))
496 {
498 return FALSE;
499 }
500
501 return TRUE;
502}
static WCHAR ServiceName[]
Definition: browser.c:19
__kernel_entry NTSTATUS NTAPI NtPrivilegedServiceAuditAlarm(_In_opt_ PUNICODE_STRING SubsystemName, _In_opt_ PUNICODE_STRING ServiceName, _In_ HANDLE ClientTokenHandle, _In_ PPRIVILEGE_SET Privileges, _In_ BOOLEAN AccessGranted)
Raises an alarm audit message when a caller attempts to request a privileged service call.
Definition: audit.c:1883

◆ PulseEvent()

BOOL WINAPI PulseEvent ( HANDLE  )

◆ PurgeComm()

BOOL WINAPI PurgeComm ( _In_  HANDLE,
_In_  DWORD 
)

◆ QueryDosDeviceA()

DWORD WINAPI QueryDosDeviceA ( _In_opt_ LPCSTR  lpDeviceName,
_Out_writes_to_opt_(ucchMax, return) LPSTR  lpTargetPath,
_In_ DWORD  ucchMax 
)

◆ QueryDosDeviceW()

DWORD WINAPI QueryDosDeviceW ( LPCWSTR  lpDeviceName,
LPWSTR  lpTargetPath,
DWORD  ucchMax 
)

Definition at line 542 of file dosdev.c.

547{
548 PWSTR Ptr;
551 USHORT i, TotalEntries;
555 BOOLEAN IsGlobal, GlobalNeeded, Found;
557 OBJECT_DIRECTORY_INFORMATION NullEntry = {{0}};
559
560 /* Open the '\??' directory */
565 NULL,
566 NULL);
570 if (!NT_SUCCESS(Status))
571 {
572 WARN("NtOpenDirectoryObject() failed (Status %lx)\n", Status);
574 return 0;
575 }
576
577 Buffer = NULL;
579 {
580 if (lpDeviceName != NULL)
581 {
582 /* Open the lpDeviceName link object */
583 RtlInitUnicodeString(&UnicodeString, lpDeviceName);
588 NULL);
592 if (!NT_SUCCESS(Status))
593 {
594 WARN("NtOpenSymbolicLinkObject() failed (Status %lx)\n", Status);
596 }
597
598 /*
599 * Make sure we don't overrun the output buffer, so convert our DWORD
600 * size to USHORT size properly
601 */
602 Length = (ucchMax <= MAXULONG / sizeof(WCHAR)) ? (ucchMax * sizeof(WCHAR)) : MAXULONG;
603
604 /* Query link target */
605 UnicodeString.Length = 0;
606 UnicodeString.MaximumLength = Length <= MAXUSHORT ? Length : MAXUSHORT;
607 UnicodeString.Buffer = lpTargetPath;
608
609 ReturnLength = 0;
612 &ReturnLength);
614 if (!NT_SUCCESS(Status))
615 {
616 WARN("NtQuerySymbolicLinkObject() failed (Status %lx)\n", Status);
618 }
619
620 TRACE("ReturnLength: %lu\n", ReturnLength);
621 TRACE("TargetLength: %hu\n", UnicodeString.Length);
622 TRACE("Target: '%wZ'\n", &UnicodeString);
623
624 Length = ReturnLength / sizeof(WCHAR);
625 /* Make sure we null terminate output buffer */
626 if (Length == 0 || lpTargetPath[Length - 1] != UNICODE_NULL)
627 {
628 if (Length >= ucchMax)
629 {
630 TRACE("Buffer is too small\n");
633 }
634
635 /* Append null-character */
636 lpTargetPath[Length] = UNICODE_NULL;
637 Length++;
638 }
639
640 if (Length < ucchMax)
641 {
642 /* Append null-character */
643 lpTargetPath[Length] = UNICODE_NULL;
644 Length++;
645 }
646
648 }
649
650 /*
651 * If LUID device maps are enabled,
652 * ?? may not point to BaseNamedObjects
653 * It may only be local DOS namespace.
654 * And thus, it might be required to browse
655 * Global?? for global devices
656 */
657 GlobalNeeded = FALSE;
659 {
660 /* Assume ?? == Global?? */
661 IsGlobal = TRUE;
662 /* Check if it's the case */
664 if (NT_SUCCESS(Status) && !IsGlobal)
665 {
666 /* It's not, we'll have to browse Global?? too! */
667 GlobalNeeded = TRUE;
668 }
669 }
670
671 /*
672 * Make sure we don't overrun the output buffer, so convert our DWORD
673 * size to USHORT size properly
674 */
675 BufferLength = (ucchMax <= MAXULONG / sizeof(WCHAR)) ? (ucchMax * sizeof(WCHAR)) : MAXULONG;
676 Length = 0;
677 Ptr = lpTargetPath;
678
679 Context = 0;
680 TotalEntries = 0;
681
682 /*
683 * We'll query all entries at once, with a rather big buffer
684 * If it's too small, we'll grow it by 2.
685 * Limit the number of attempts to 3.
686 */
687 for (i = 0; i < 3; ++i)
688 {
689 /* Allocate the query buffer */
690 Buffer = RtlAllocateHeap(RtlGetProcessHeap(), 0, BufferLength);
691 if (Buffer == NULL)
692 {
695 }
696
697 /* Perform the query */
699 Buffer,
701 FALSE,
702 TRUE,
703 &Context,
704 &ReturnLength);
705 /* Only failure accepted is: no more entries */
706 if (!NT_SUCCESS(Status))
707 {
709 {
711 }
712
713 /*
714 * Which is a success! But break out,
715 * it means our query returned no results
716 * so, nothing to parse.
717 */
719 break;
720 }
721
722 /* In case we had them all, start browsing for devices */
724 {
725 DirInfo = Buffer;
726
727 /* Loop until we find the nul entry (terminating entry) */
728 while (TRUE)
729 {
730 /* It's an entry full of zeroes */
731 if (RtlCompareMemory(&NullEntry, DirInfo, sizeof(NullEntry)) == sizeof(NullEntry))
732 {
733 break;
734 }
735
736 /* Only handle symlinks */
737 if (!wcscmp(DirInfo->TypeName.Buffer, L"SymbolicLink"))
738 {
739 TRACE("Name: '%wZ'\n", &DirInfo->Name);
740
741 /* Get name length in chars to only comparisons */
742 NameLength = DirInfo->Name.Length / sizeof(WCHAR);
743
744 /* Make sure we don't overrun output buffer */
745 if (Length > ucchMax ||
746 NameLength > ucchMax - Length ||
747 ucchMax - NameLength - Length < sizeof(WCHAR))
748 {
751 }
752
753 /* Copy and NULL terminate string */
754 memcpy(Ptr, DirInfo->Name.Buffer, DirInfo->Name.Length);
755 Ptr[NameLength] = UNICODE_NULL;
756
757 Ptr += (NameLength + 1);
758 Length += (NameLength + 1);
759
760 /*
761 * Keep the entries count, in case we would have to
762 * handle GLOBAL?? too
763 */
764 ++TotalEntries;
765 }
766
767 /* Move to the next entry */
768 ++DirInfo;
769 }
770
771 /*
772 * No need to loop again here, we got all the entries
773 * Note: we don't free the buffer here, because we may
774 * need it for GLOBAL??, so we save a few cycles here.
775 */
776 break;
777 }
778
779 /* Failure path here, we'll need bigger buffer */
780 RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
781 Buffer = NULL;
782
783 /* We can't have bigger than that one, so leave */
784 if (BufferLength == MAXULONG)
785 {
786 break;
787 }
788
789 /* Prevent any overflow while computing new size */
791 {
793 }
794 else
795 {
796 BufferLength *= 2;
797 }
798 }
799
800 /*
801 * Out of the hot loop, but with more entries left?
802 * that's an error case, leave here!
803 */
805 {
808 }
809
810 /* Now, if we had to handle GLOBAL??, go for it! */
812 {
814 DirectoryHandle = 0;
815
816 RtlInitUnicodeString(&UnicodeString, L"\\GLOBAL??");
820 NULL,
821 NULL);
825 if (!NT_SUCCESS(Status))
826 {
827 WARN("NtOpenDirectoryObject() failed (Status %lx)\n", Status);
829 }
830
831 /*
832 * We'll query all entries at once, with a rather big buffer
833 * If it's too small, we'll grow it by 2.
834 * Limit the number of attempts to 3.
835 */
836 for (i = 0; i < 3; ++i)
837 {
838 /* If we had no buffer from previous attempt, allocate one */
839 if (Buffer == NULL)
840 {
841 Buffer = RtlAllocateHeap(RtlGetProcessHeap(), 0, BufferLength);
842 if (Buffer == NULL)
843 {
846 }
847 }
848
849 /* Perform the query */
851 Buffer,
853 FALSE,
854 TRUE,
855 &Context,
856 &ReturnLength);
857 /* Only failure accepted is: no more entries */
858 if (!NT_SUCCESS(Status))
859 {
861 {
863 }
864
865 /*
866 * Which is a success! But break out,
867 * it means our query returned no results
868 * so, nothing to parse.
869 */
871 break;
872 }
873
874 /* In case we had them all, start browsing for devices */
876 {
877 DirInfo = Buffer;
878
879 /* Loop until we find the nul entry (terminating entry) */
880 while (TRUE)
881 {
882 /* It's an entry full of zeroes */
883 if (RtlCompareMemory(&NullEntry, DirInfo, sizeof(NullEntry)) == sizeof(NullEntry))
884 {
885 break;
886 }
887
888 /* Only handle symlinks */
889 if (!wcscmp(DirInfo->TypeName.Buffer, L"SymbolicLink"))
890 {
891 TRACE("Name: '%wZ'\n", &DirInfo->Name);
892
893 /*
894 * Now, we previously already browsed ??, and we
895 * don't want to devices twice, so we'll check
896 * the output buffer for duplicates.
897 * We'll add our entry only if we don't have already
898 * returned it.
899 */
900 if (FindSymbolicLinkEntry(DirInfo->Name.Buffer,
901 lpTargetPath,
902 TotalEntries,
903 &Found) == ERROR_SUCCESS &&
904 !Found)
905 {
906 /* Get name length in chars to only comparisons */
907 NameLength = DirInfo->Name.Length / sizeof(WCHAR);
908
909 /* Make sure we don't overrun output buffer */
910 if (Length > ucchMax ||
911 NameLength > ucchMax - Length ||
912 ucchMax - NameLength - Length < sizeof(WCHAR))
913 {
914 RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
917 return 0;
918 }
919
920 /* Copy and NULL terminate string */
921 memcpy(Ptr, DirInfo->Name.Buffer, DirInfo->Name.Length);
922 Ptr[NameLength] = UNICODE_NULL;
923
924 Ptr += (NameLength + 1);
925 Length += (NameLength + 1);
926 }
927 }
928
929 /* Move to the next entry */
930 ++DirInfo;
931 }
932
933 /* No need to loop again here, we got all the entries */
934 break;
935 }
936
937 /* Failure path here, we'll need bigger buffer */
938 RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
939 Buffer = NULL;
940
941 /* We can't have bigger than that one, so leave */
942 if (BufferLength == MAXULONG)
943 {
944 break;
945 }
946
947 /* Prevent any overflow while computing new size */
949 {
951 }
952 else
953 {
954 BufferLength *= 2;
955 }
956 }
957
958 /*
959 * Out of the hot loop, but with more entries left?
960 * that's an error case, leave here!
961 */
963 {
966 }
967 }
968
969 /* If we failed somewhere, just leave */
970 if (!NT_SUCCESS(Status))
971 {
973 }
974
975 /* If we returned no entries, time to write the empty string */
976 if (Length == 0)
977 {
978 /* Unless output buffer is too small! */
979 if (ucchMax <= 0)
980 {
983 }
984
985 /* Emptry string is one char (terminator!) */
986 *Ptr = UNICODE_NULL;
987 ++Ptr;
988 Length = 1;
989 }
990
991 /*
992 * If we have enough room, we need to double terminate the buffer:
993 * that's a MULTI_SZ buffer, its end is marked by double NULL.
994 * One was already added during the "copy string" process.
995 * If we don't have enough room: that's a failure case.
996 */
997 if (Length < ucchMax)
998 {
999 *Ptr = UNICODE_NULL;
1000 ++Ptr;
1001 }
1002 else
1003 {
1005 }
1006 }
1008 {
1009 if (DirectoryHandle != 0)
1010 {
1012 }
1013
1014 if (Buffer != NULL)
1015 {
1016 RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
1017 }
1018
1019 if (!NT_SUCCESS(Status))
1020 {
1021 Length = 0;
1023 }
1024 }
1025 _SEH2_END;
1026
1027 return Length;
1028}
static HANDLE DirectoryHandle
Definition: ObType.c:48
return Found
Definition: dirsup.c:1270
DWORD FindSymbolicLinkEntry(PWSTR NameToFind, PWSTR NamesList, DWORD TotalEntries, PBOOLEAN Found)
Definition: dosdev.c:97
NTSTATUS IsGlobalDeviceMap(HANDLE DirectoryHandle, PBOOLEAN IsGlobal)
Definition: dosdev.c:27
#define RtlCompareMemory(s1, s2, l)
Definition: env_spec_w32.h:465
#define _SEH2_LEAVE
Definition: filesup.c:20
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
Definition: hubbusif.h:121
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define SYMBOLIC_LINK_QUERY
Definition: nt_native.h:1265
#define DIRECTORY_QUERY
Definition: nt_native.h:1254
#define STATUS_NO_MORE_ENTRIES
Definition: ntstatus.h:205
NTSTATUS NTAPI NtOpenDirectoryObject(OUT PHANDLE DirectoryHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
Definition: obdir.c:393
NTSTATUS NTAPI NtQueryDirectoryObject(IN HANDLE DirectoryHandle, OUT PVOID Buffer, IN ULONG BufferLength, IN BOOLEAN ReturnSingleEntry, IN BOOLEAN RestartScan, IN OUT PULONG Context, OUT PULONG ReturnLength OPTIONAL)
Definition: obdir.c:490
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
UNICODE_STRING TypeName
Definition: obtypes.h:279
#define MAXULONG
Definition: typedefs.h:251
#define STATUS_MORE_ENTRIES
Definition: udferr_usr.h:124

Referenced by _CreateNonspooledPort(), AddVolumeToList(), BasepGetComputerNameFromNtPath(), ConvertNtPathToWin32Path(), create_file_test(), DevicePathToDosPath(), EnumerateDevices(), GetInstallSourceWin32(), QueryDosDeviceA(), QuerySubstedDrive(), ShowParallelStatus(), test_GetFinalPathNameByHandleW(), and test_QueryFullProcessImageNameW().

◆ QueryInformationJobObject()

BOOL WINAPI QueryInformationJobObject ( _In_opt_ HANDLE  hJob,
_In_ JOBOBJECTINFOCLASS  JobObjectInformationClass,
_Out_writes_bytes_to_(cbJobObjectInformationLength, *lpReturnLength) LPVOID  lpJobObjectInformation,
_In_ DWORD  cbJobObjectInformationLength,
_Out_opt_ LPDWORD  lpReturnLength 
)

◆ QueryPerformanceCounter()

BOOL WINAPI QueryPerformanceCounter ( PLARGE_INTEGER  )

◆ QueryPerformanceFrequency()

BOOL WINAPI QueryPerformanceFrequency ( PLARGE_INTEGER  )

◆ QueueUserAPC()

DWORD WINAPI QueueUserAPC ( PAPCFUNC  ,
HANDLE  ,
ULONG_PTR   
)

◆ RaiseException()

void WINAPI RaiseException ( DWORD  ,
DWORD  ,
DWORD  ,
const ULONG_PTR  
)

◆ ReadDirectoryChangesW()

BOOL WINAPI ReadDirectoryChangesW ( _In_ HANDLE  hDirectory,
_Out_writes_bytes_to_(nBufferLength, *lpBytesReturned) LPVOID  lpBuffer,
_In_ DWORD  nBufferLength,
_In_ BOOL  bWatchSubtree,
_In_ DWORD  dwNotifyFilter,
_Out_opt_ LPDWORD  lpBytesReturned,
_Inout_opt_ LPOVERLAPPED  lpOverlapped,
_In_opt_ LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

◆ ReadEventLogA()

BOOL WINAPI ReadEventLogA ( _In_ HANDLE  hEventLog,
_In_ DWORD  dwReadFlags,
_In_ DWORD  dwRecordOffset,
_Out_writes_bytes_to_(nNumberOfBytesToRead, *pnBytesRead) LPVOID  lpBuffer,
_In_ DWORD  nNumberOfBytesToRead,
_Out_ DWORD pnBytesRead,
_Out_ DWORD pnMinNumberOfBytesNeeded 
)

◆ ReadEventLogW()

BOOL WINAPI ReadEventLogW ( _In_ HANDLE  hEventLog,
_In_ DWORD  dwReadFlags,
_In_ DWORD  dwRecordOffset,
_Out_writes_bytes_to_(nNumberOfBytesToRead, *pnBytesRead) LPVOID  lpBuffer,
_In_ DWORD  nNumberOfBytesToRead,
_Out_ DWORD pnBytesRead,
_Out_ DWORD pnMinNumberOfBytesNeeded 
)

◆ ReadFile()

BOOL WINAPI ReadFile ( HANDLE  ,
PVOID  ,
DWORD  ,
PDWORD  ,
LPOVERLAPPED   
)

◆ ReadFileEx()

◆ ReadFileScatter()

BOOL WINAPI ReadFileScatter ( HANDLE  ,
FILE_SEGMENT_ELEMENT ,
DWORD  ,
LPDWORD  ,
LPOVERLAPPED   
)

◆ ReadProcessMemory()

BOOL WINAPI ReadProcessMemory ( HANDLE  ,
LPCVOID  ,
LPVOID  ,
SIZE_T  ,
PSIZE_T   
)

◆ RegisterEventSourceA()

HANDLE WINAPI RegisterEventSourceA ( _In_opt_  LPCSTR,
_In_  LPCSTR 
)

◆ RegisterEventSourceW()

HANDLE WINAPI RegisterEventSourceW ( _In_opt_  LPCWSTR,
_In_  LPCWSTR 
)

◆ ReleaseMutex()

BOOL WINAPI ReleaseMutex ( HANDLE  )

◆ ReleaseSemaphore()

BOOL WINAPI ReleaseSemaphore ( HANDLE  ,
LONG  ,
LPLONG   
)

◆ RemoveDirectoryA()

BOOL WINAPI RemoveDirectoryA ( LPCSTR  )

◆ RemoveDirectoryW()

BOOL WINAPI RemoveDirectoryW ( LPCWSTR  )

◆ ReportEventA()

BOOL WINAPI ReportEventA ( _In_ HANDLE  hEventLog,
_In_ WORD  wType,
_In_ WORD  wCategory,
_In_ DWORD  dwEventID,
_In_opt_ PSID  lpUserSid,
_In_ WORD  wNumStrings,
_In_ DWORD  dwDataSize,
_In_reads_opt_(wNumStrings) LPCSTR lpStrings,
_In_reads_bytes_opt_(dwDataSize) LPVOID  lpRawData 
)

◆ ReportEventW()

BOOL WINAPI ReportEventW ( _In_ HANDLE  hEventLog,
_In_ WORD  wType,
_In_ WORD  wCategory,
_In_ DWORD  dwEventID,
_In_opt_ PSID  lpUserSid,
_In_ WORD  wNumStrings,
_In_ DWORD  dwDataSize,
_In_reads_opt_(wNumStrings) LPCWSTR lpStrings,
_In_reads_bytes_opt_(dwDataSize) LPVOID  lpRawData 
)

◆ ResetEvent()

BOOL WINAPI ResetEvent ( HANDLE  )

◆ ResetWriteWatch()

UINT WINAPI ResetWriteWatch ( LPVOID  ,
SIZE_T   
)

◆ ResumeThread()

DWORD WINAPI ResumeThread ( HANDLE  )

◆ RevertToSelf()

◆ SearchPathW()

DWORD WINAPI SearchPathW ( _In_opt_ LPCWSTR  lpPath,
_In_ LPCWSTR  lpFileName,
_In_opt_ LPCWSTR  lpExtension,
_In_ DWORD  nBufferLength,
_Out_writes_to_opt_(nBufferLength, return+1) LPWSTR  lpBuffer,
_Out_opt_ LPWSTR lpFilePart 
)

◆ SetAclInformation()

BOOL WINAPI SetAclInformation ( PACL  pAcl,
PVOID  pAclInformation,
DWORD  nAclInformationLength,
ACL_INFORMATION_CLASS  dwAclInformationClass 
)

Definition at line 2471 of file security.c.

2475{
2477
2479 pAclInformation,
2480 nAclInformationLength,
2481 dwAclInformationClass);
2482 if (!NT_SUCCESS(Status))
2483 {
2485 return FALSE;
2486 }
2487
2488 return TRUE;
2489}
NTSTATUS NTAPI RtlSetInformationAcl(IN PACL Acl, IN PVOID Information, IN ULONG InformationLength, IN ACL_INFORMATION_CLASS InformationClass)
Definition: acl.c:785

◆ SetCommBreak()

BOOL WINAPI SetCommBreak ( _In_  HANDLE)

◆ SetCommConfig()

BOOL WINAPI SetCommConfig ( _In_ HANDLE  hCommDev,
_In_reads_bytes_(dwSize) LPCOMMCONFIG  lpCC,
_In_ DWORD  dwSize 
)

◆ SetCommMask()

BOOL WINAPI SetCommMask ( _In_  HANDLE,
_In_  DWORD 
)

◆ SetCommState()

BOOL WINAPI SetCommState ( _In_  HANDLE,
_In_  LPDCB 
)

◆ SetCommTimeouts()

BOOL WINAPI SetCommTimeouts ( _In_  HANDLE,
_In_  LPCOMMTIMEOUTS 
)

◆ SetComputerNameA()

BOOL WINAPI SetComputerNameA ( _In_  LPCSTR)

◆ SetComputerNameW()

BOOL WINAPI SetComputerNameW ( _In_  LPCWSTR)

◆ SetCriticalSectionSpinCount()

DWORD WINAPI SetCriticalSectionSpinCount ( LPCRITICAL_SECTION  ,
DWORD   
)

◆ SetCurrentDirectoryA()

BOOL WINAPI SetCurrentDirectoryA ( LPCSTR  )

◆ SetCurrentDirectoryW()

BOOL WINAPI SetCurrentDirectoryW ( LPCWSTR  )

◆ SetDefaultCommConfigA()

BOOL WINAPI SetDefaultCommConfigA ( _In_ LPCSTR  lpszName,
_In_reads_bytes_(dwSize) LPCOMMCONFIG  lpCC,
_In_ DWORD  dwSize 
)

◆ SetDefaultCommConfigW()

BOOL WINAPI SetDefaultCommConfigW ( _In_ LPCWSTR  lpszName,
_In_reads_bytes_(dwSize) LPCOMMCONFIG  lpCC,
_In_ DWORD  dwSize 
)

◆ SetEndOfFile()

BOOL WINAPI SetEndOfFile ( HANDLE  hFile)

Definition at line 1004 of file fileinfo.c.

1005{
1007 FILE_END_OF_FILE_INFORMATION EndOfFileInfo;
1008 FILE_ALLOCATION_INFORMATION FileAllocationInfo;
1009 FILE_POSITION_INFORMATION FilePosInfo;
1011
1013 {
1015 return FALSE;
1016 }
1017
1018 //get current position
1020 hFile,
1022 &FilePosInfo,
1025 );
1026
1027 if (!NT_SUCCESS(Status)){
1029 return FALSE;
1030 }
1031
1032 EndOfFileInfo.EndOfFile.QuadPart = FilePosInfo.CurrentByteOffset.QuadPart;
1033
1034 /*
1035 NOTE:
1036 This call is not supposed to free up any space after the eof marker
1037 if the file gets truncated. We have to deallocate the space explicitly afterwards.
1038 But...most file systems dispatch both FileEndOfFileInformation
1039 and FileAllocationInformation as they were the same command.
1040
1041 */
1043 hFile,
1044 &IoStatusBlock, //out
1045 &EndOfFileInfo,
1048 );
1049
1050 if (!NT_SUCCESS(Status)){
1052 return FALSE;
1053 }
1054
1055 FileAllocationInfo.AllocationSize.QuadPart = FilePosInfo.CurrentByteOffset.QuadPart;
1056
1057
1059 hFile,
1060 &IoStatusBlock, //out
1061 &FileAllocationInfo,
1064 );
1065
1066 if (!NT_SUCCESS(Status)){
1068 return FALSE;
1069 }
1070
1071 return TRUE;
1072
1073}
@ FilePositionInformation
Definition: from_kernel.h:75
@ FileEndOfFileInformation
Definition: from_kernel.h:81
@ FileAllocationInformation
Definition: from_kernel.h:80
NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
Definition: iofunc.c:3096
LARGE_INTEGER AllocationSize
Definition: winternl.h:688
LARGE_INTEGER CurrentByteOffset
Definition: nt_native.h:955

Referenced by _chsize_s(), _hwrite(), cache_container_set_size(), BtrfsRecv::cmd_clone(), BtrfsRecv::cmd_truncate(), create_file(), create_file_data(), create_test_dll(), DosWriteFile(), FileLockBytesImpl_SetSize(), ImageRemoveCertificate(), IStream_fnSetSize(), query_image_section(), RecycleBin5_RecycleBin5_Delete(), RecycleBin5_RecycleBin5_DeleteFile(), RecycleBin5_RecycleBin5_Restore(), ReplaceFileW(), resize_mapping(), send_subvol(), set_image_size(), test_CreateFileMapping_protection(), test_filemap_security(), test_GetMappedFileName(), test_mapping(), test_MapViewOfFile(), test_NtAreMappedFilesTheSame(), test_NtMapViewOfSection(), test_read_write(), test_ResolveDelayLoadedAPI(), test_SetFileValidData(), Test_Truncate(), BtrfsSend::Thread(), VfdCreateImageFile(), and VfdSaveImage().

◆ SetEnvironmentVariableA()

BOOL WINAPI SetEnvironmentVariableA ( LPCSTR  ,
LPCSTR   
)

◆ SetEnvironmentVariableW()

BOOL WINAPI SetEnvironmentVariableW ( LPCWSTR  ,
LPCWSTR   
)

◆ SetErrorMode()

UINT WINAPI SetErrorMode ( UINT  )

◆ SetEvent()

BOOL WINAPI SetEvent ( HANDLE  )

◆ SetFileApisToANSI()

VOID WINAPI SetFileApisToANSI ( void  )

Definition at line 849 of file utils.c.

850{
851 /* Set the correct Base Api */
856
857 /* FIXME: Old, deprecated way */
859}
PRTL_COUNT_STRINGA Basep8BitStringToUnicodeSize
Definition: utils.c:29
PRTL_COUNT_STRING BasepUnicodeStringTo8BitSize
Definition: utils.c:28
ULONG NTAPI BasepAnsiStringToUnicodeSize(IN PANSI_STRING String)
Definition: utils.c:56
ULONG NTAPI BasepUnicodeStringToAnsiSize(IN PUNICODE_STRING String)
Definition: utils.c:49
BOOL bIsFileApiAnsi
Definition: utils.c:25
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToAnsiString(PANSI_STRING DestinationString, PUNICODE_STRING SourceString, BOOLEAN AllocateDestinationString)

◆ SetFileApisToOEM()

VOID WINAPI SetFileApisToOEM ( void  )

Definition at line 831 of file utils.c.

832{
833 /* Set the correct Base Api */
838
839 /* FIXME: Old, deprecated way */
841}
ULONG NTAPI BasepUnicodeStringToOemSize(IN PUNICODE_STRING String)
Definition: utils.c:35
ULONG NTAPI BasepOemStringToUnicodeSize(IN PANSI_STRING String)
Definition: utils.c:42
NTSTATUS(NTAPI * PRTL_CONVERT_STRING)(IN PUNICODE_STRING UnicodeString, IN PANSI_STRING AnsiString, IN BOOLEAN AllocateMemory)
Definition: kernel32.h:275
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToOemString(POEM_STRING DestinationString, PCUNICODE_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI NTSTATUS NTAPI RtlOemStringToUnicodeString(PUNICODE_STRING DestinationString, PCOEM_STRING SourceString, BOOLEAN AllocateDestinationString)

Referenced by _tmain().

◆ SetFileAttributesA()

◆ SetFileAttributesW()

BOOL WINAPI SetFileAttributesW ( LPCWSTR  lpFileName,
DWORD  dwFileAttributes 
)

Definition at line 794 of file fileinfo.c.

796{
798 PWSTR PathUBuffer;
800 UNICODE_STRING NtPathU;
802 RTL_RELATIVE_NAME_U RelativeName;
805
806 /* Get relative name */
807 if (!RtlDosPathNameToRelativeNtPathName_U(lpFileName, &NtPathU, NULL, &RelativeName))
808 {
810 return FALSE;
811 }
812
813 /* Save buffer to allow later freeing */
814 PathUBuffer = NtPathU.Buffer;
815
816 /* If we have relative name (and root dir), use them instead */
817 if (RelativeName.RelativeName.Length != 0)
818 {
819 NtPathU.Length = RelativeName.RelativeName.Length;
820 NtPathU.MaximumLength = RelativeName.RelativeName.MaximumLength;
821 NtPathU.Buffer = RelativeName.RelativeName.Buffer;
822 }
823 else
824 {
825 RelativeName.ContainingDirectory = NULL;
826 }
827
828 /* Prepare the object attribute for opening the file */
831 RelativeName.ContainingDirectory, NULL);
832
833 /* Attempt to open the file, while supporting reparse point */
838 /* If opening failed, check whether it was because of reparse point support */
839 if (!NT_SUCCESS(Status))
840 {
841 /* Nope, just quit */
843 {
844 RtlReleaseRelativeName(&RelativeName);
845 RtlFreeHeap(RtlGetProcessHeap(), 0, PathUBuffer);
847
848 return FALSE;
849 }
850
851 /* Yes, retry without */
856 if (!NT_SUCCESS(Status))
857 {
858 RtlReleaseRelativeName(&RelativeName);
859 RtlFreeHeap(RtlGetProcessHeap(), 0, PathUBuffer);
861
862 return FALSE;
863 }
864 }
865
866 /* We don't need strings anylonger */
867 RtlReleaseRelativeName(&RelativeName);
868 RtlFreeHeap(RtlGetProcessHeap(), 0, PathUBuffer);
869
870 /* Zero our structure, we'll only set file attributes */
872 /* Set the attributes, filtering only allowed attributes, and forcing normal attribute */
874
875 /* Finally, set the attributes */
878 /* Close the file */
880
881 /* If it failed, set the error and fail */
882 if (!NT_SUCCESS(Status))
883 {
885
886 return FALSE;
887 }
888
889 return TRUE;
890}
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137
VOID NTAPI RtlReleaseRelativeName(_In_ PRTL_RELATIVE_NAME_U RelativeName)
NTSYSAPI BOOLEAN NTAPI RtlDosPathNameToRelativeNtPathName_U(_In_ PCWSTR DosName, _Out_ PUNICODE_STRING NtName, _Out_ PCWSTR *PartName, _Out_ PRTL_RELATIVE_NAME_U RelativeName)
#define FILE_ATTRIBUTE_VALID_SET_FLAGS
Definition: nt_native.h:715
#define FILE_SHARE_DELETE
Definition: nt_native.h:682
UNICODE_STRING RelativeName
Definition: rtltypes.h:1380
HANDLE ContainingDirectory
Definition: rtltypes.h:1381
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
#define ZeroMemory
Definition: winbase.h:1712

Referenced by _wchmod(), AddDelBackupEntryW(), BasepCopyFileExW(), ChangeAttributes(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_rmdir(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_truncate(), BtrfsRecv::cmd_unlink(), BtrfsRecv::cmd_write(), CreateStandardProfile(), CryptCATAdminAddCatalog(), delete_directory(), delete_file(), DELNODE_recurse_dirtree(), DllRegisterServer(), BtrfsRecv::do_recv(), file_put_Attributes(), CFileDefExt::GeneralPageProc(), InitializeSetupActionLog(), IntDeleteRecursive(), MoveFileWithProgressW(), MSI_OpenPackageW(), msi_set_file_attributes(), CFileDefExt::OnFolderCustApply(), PathMakeSystemFolderW(), PathUnmakeSystemFolderW(), RecursiveRemoveDir(), RecycleBin5_Create(), SdbUninstall(), SetFileAttributesA(), SetupInitializeFileLogW(), SHGetFolderPathAndSubDirW(), SHNotifyCopyFileW(), SHNotifyDeleteFileW(), SHNotifyMoveFileW(), SHNotifyRemoveDirectoryW(), START_TEST(), test_MultipleFiles(), test_NtCreateFile(), test_readonly(), test_ReplaceFileW(), XCOPY_DoCopy(), and TmpFile::~TmpFile().

◆ SetFilePointer()

DWORD WINAPI SetFilePointer ( HANDLE  hFile,
LONG  lDistanceToMove,
PLONG  lpDistanceToMoveHigh,
DWORD  dwMoveMethod 
)

Definition at line 54 of file fileinfo.c.

58{
59 FILE_POSITION_INFORMATION FilePosition;
60 FILE_STANDARD_INFORMATION FileStandard;
61 NTSTATUS errCode;
63 LARGE_INTEGER Distance;
64
65 TRACE("SetFilePointer(hFile %p, lDistanceToMove %d, dwMoveMethod %lu)\n",
66 hFile,lDistanceToMove,dwMoveMethod);
67
69 {
72 }
73
74 if (lpDistanceToMoveHigh)
75 {
76 Distance.u.HighPart = *lpDistanceToMoveHigh;
77 Distance.u.LowPart = lDistanceToMove;
78 }
79 else
80 {
81 Distance.QuadPart = lDistanceToMove;
82 }
83
84 switch(dwMoveMethod)
85 {
86 case FILE_CURRENT:
89 &FilePosition,
92 FilePosition.CurrentByteOffset.QuadPart += Distance.QuadPart;
93 if (!NT_SUCCESS(errCode))
94 {
95 if (lpDistanceToMoveHigh != NULL)
96 *lpDistanceToMoveHigh = -1;
97 BaseSetLastNTError(errCode);
99 }
100 break;
101 case FILE_END:
104 &FileStandard,
107 FilePosition.CurrentByteOffset.QuadPart =
108 FileStandard.EndOfFile.QuadPart + Distance.QuadPart;
109 if (!NT_SUCCESS(errCode))
110 {
111 if (lpDistanceToMoveHigh != NULL)
112 *lpDistanceToMoveHigh = -1;
113 BaseSetLastNTError(errCode);
115 }
116 break;
117 case FILE_BEGIN:
118 FilePosition.CurrentByteOffset.QuadPart = Distance.QuadPart;
119 break;
120 default:
123 }
124
125 if(FilePosition.CurrentByteOffset.QuadPart < 0)
126 {
129 }
130
131 if (lpDistanceToMoveHigh == NULL && FilePosition.CurrentByteOffset.HighPart != 0)
132 {
133 /* If we're moving the pointer outside of the 32 bit boundaries but
134 the application only passed a 32 bit value we need to bail out! */
137 }
138
139 errCode = NtSetInformationFile(hFile,
141 &FilePosition,
144 if (!NT_SUCCESS(errCode))
145 {
146 if (lpDistanceToMoveHigh != NULL)
147 *lpDistanceToMoveHigh = -1;
148
149 BaseSetLastNTError(errCode);
151 }
152
153 if (lpDistanceToMoveHigh != NULL)
154 {
155 *lpDistanceToMoveHigh = FilePosition.CurrentByteOffset.u.HighPart;
156 }
157
158 if (FilePosition.CurrentByteOffset.u.LowPart == MAXDWORD)
159 {
160 /* The value of -1 is valid here, especially when the new
161 file position is greater than 4 GB. Since NtSetInformationFile
162 succeeded we never set an error code and we explicitly need
163 to clear a previously set error code in this case, which
164 an application will check if INVALID_SET_FILE_POINTER is returned! */
166 }
167
168 return FilePosition.CurrentByteOffset.u.LowPart;
169}
#define FILE_BEGIN
Definition: compat.h:761
#define INVALID_SET_FILE_POINTER
Definition: compat.h:732
#define MAXDWORD
#define FILE_END
Definition: winbase.h:114
#define FILE_CURRENT
Definition: winbase.h:113
#define ERROR_NEGATIVE_SEEK
Definition: winerror.h:203

◆ SetFilePointerEx()

BOOL WINAPI SetFilePointerEx ( HANDLE  hFile,
LARGE_INTEGER  liDistanceToMove,
PLARGE_INTEGER  lpNewFilePointer,
DWORD  dwMoveMethod 
)

Definition at line 177 of file fileinfo.c.

181{
184 FILE_POSITION_INFORMATION FilePosition;
185 FILE_STANDARD_INFORMATION FileStandard;
186
188 {
190 return FALSE;
191 }
192
193 switch (dwMoveMethod)
194 {
195 case FILE_CURRENT:
196 {
198 &FilePosition,
201 if (!NT_SUCCESS(Status))
202 {
204 return FALSE;
205 }
206
207 FilePosition.CurrentByteOffset.QuadPart += liDistanceToMove.QuadPart;
208 break;
209 }
210
211 case FILE_END:
212 {
214 &FileStandard,
217 if (!NT_SUCCESS(Status))
218 {
220 return FALSE;
221 }
222
223 FilePosition.CurrentByteOffset.QuadPart = FileStandard.EndOfFile.QuadPart +
224 liDistanceToMove.QuadPart;
225 break;
226 }
227
228 case FILE_BEGIN:
229 {
230 FilePosition.CurrentByteOffset.QuadPart = liDistanceToMove.QuadPart;
231 break;
232 }
233
234 default:
235 {
237 return FALSE;
238 }
239 }
240
241 if (FilePosition.CurrentByteOffset.QuadPart < 0)
242 {
244 return FALSE;
245 }
246
250 if (!NT_SUCCESS(Status))
251 {
253 return FALSE;
254 }
255
256 if (lpNewFilePointer != NULL)
257 {
258 *lpNewFilePointer = FilePosition.CurrentByteOffset;
259 }
260
261 return TRUE;
262}
#define STATUS_INVALID_HANDLE
Definition: ntstatus.h:245

Referenced by _chm_fetch_bytes(), BestFit_Write(), CryptSIPRetrieveSubjectGuid(), dump_memory64_info(), elf_map_file_read(), FileLockBytesImpl_ReadAt(), FileLockBytesImpl_SetSize(), FileLockBytesImpl_WriteAt(), MySetFilePointerEx(), ProtocolStream_Seek(), query_image_section(), textstream_get_AtEndOfStream(), textstream_Read(), and textstream_ReadAll().

◆ SetFileSecurityA()

BOOL WINAPI SetFileSecurityA ( _In_  LPCSTR,
_In_  SECURITY_INFORMATION,
_In_  PSECURITY_DESCRIPTOR 
)

◆ SetFileSecurityW()

BOOL WINAPI SetFileSecurityW ( LPCWSTR  lpFileName,
SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  pSecurityDescriptor 
)

Definition at line 1509 of file security.c.

1512{
1514 IO_STATUS_BLOCK StatusBlock;
1516 ULONG AccessMask = 0;
1519
1520 TRACE("SetFileSecurityW() called\n");
1521
1523
1525 &FileName,
1526 NULL,
1527 NULL))
1528 {
1529 ERR("Invalid path\n");
1531 return FALSE;
1532 }
1533
1535 &FileName,
1537 NULL,
1538 NULL);
1539
1541 AccessMask,
1543 &StatusBlock,
1545 0);
1546
1547 RtlFreeHeap(RtlGetProcessHeap(),
1548 0,
1549 FileName.Buffer);
1550
1551 if (!NT_SUCCESS(Status))
1552 {
1553 ERR("NtOpenFile() failed (Status %lx)\n", Status);
1555 return FALSE;
1556 }
1557
1560 pSecurityDescriptor);
1562
1563 if (!NT_SUCCESS(Status))
1564 {
1565 ERR("NtSetSecurityObject() failed (Status %lx)\n", Status);
1567 return FALSE;
1568 }
1569
1570 return TRUE;
1571}
#define ERROR_INVALID_NAME
Definition: compat.h:103
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1340
VOID WINAPI SetSecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation, OUT LPDWORD DesiredAccess)
Definition: sec.c:398
NTSTATUS WINAPI NtSetSecurityObject(HANDLE Handle, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR SecurityDescriptor)

Referenced by SetFileSecurityA(), StampFileSecurity(), and TakeOwnershipOfFile().

◆ SetFileTime()

BOOL WINAPI SetFileTime ( HANDLE  ,
const FILETIME ,
const FILETIME ,
const FILETIME  
)

◆ SetHandleCount()

UINT WINAPI SetHandleCount ( UINT  )

◆ SetHandleInformation()

BOOL WINAPI SetHandleInformation ( HANDLE  ,
DWORD  ,
DWORD   
)

◆ SetInformationJobObject()

BOOL WINAPI SetInformationJobObject ( _In_ HANDLE  hJob,
_In_ JOBOBJECTINFOCLASS  JobObjectInformationClass,
_In_reads_bytes_(cbJobObjectInformationLength) LPVOID  lpJobObjectInformation,
_In_ DWORD  cbJobObjectInformationLength 
)

◆ SetKernelObjectSecurity()

BOOL WINAPI SetKernelObjectSecurity ( HANDLE  Handle,
SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  SecurityDescriptor 
)

Definition at line 1928 of file security.c.

1931{
1933
1937 if (!NT_SUCCESS(Status))
1938 {
1940 return FALSE;
1941 }
1942
1943 return TRUE;
1944}

Referenced by InsertProcessSecurityCommon(), test_AddMandatoryAce(), and test_token_security_descriptor().

◆ SetLastError()

void WINAPI SetLastError ( DWORD  )

◆ SetLastErrorEx()

void WINAPI SetLastErrorEx ( DWORD  dwErrCode,
DWORD  dwType 
)

Definition at line 1884 of file window.c.

1885{
1886 SetLastError(dwErrCode);
1887}

◆ SetLocalTime()

BOOL WINAPI SetLocalTime ( const SYSTEMTIME )

◆ SetMailslotInfo()

BOOL WINAPI SetMailslotInfo ( _In_  HANDLE,
_In_  DWORD 
)

◆ SetNamedPipeHandleState()

BOOL WINAPI SetNamedPipeHandleState ( HANDLE  ,
PDWORD  ,
PDWORD  ,
PDWORD   
)

◆ SetPriorityClass()

BOOL WINAPI SetPriorityClass ( HANDLE  ,
DWORD   
)

◆ SetPrivateObjectSecurity()

BOOL WINAPI SetPrivateObjectSecurity ( SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  ModificationDescriptor,
PSECURITY_DESCRIPTOR ObjectsSecurityDescriptor,
PGENERIC_MAPPING  GenericMapping,
HANDLE  Token 
)

Definition at line 1460 of file misc.c.

1465{
1467
1469 ModificationDescriptor,
1470 ObjectsSecurityDescriptor,
1472 Token);
1473 if (!NT_SUCCESS(Status))
1474 {
1476 return FALSE;
1477 }
1478
1479 return TRUE;
1480}
NTSYSAPI NTSTATUS NTAPI RtlSetSecurityObject(_In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR ModificationDescriptor, _Out_ PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, _In_ PGENERIC_MAPPING GenericMapping, _In_ HANDLE Token)

◆ SetProcessAffinityMask()

BOOL WINAPI SetProcessAffinityMask ( _In_  HANDLE,
_In_  DWORD_PTR 
)

◆ SetProcessPriorityBoost()

BOOL WINAPI SetProcessPriorityBoost ( _In_  HANDLE,
_In_  BOOL 
)

◆ SetProcessShutdownParameters()

BOOL WINAPI SetProcessShutdownParameters ( DWORD  ,
DWORD   
)

◆ SetProcessWorkingSetSize()

BOOL WINAPI SetProcessWorkingSetSize ( _In_  HANDLE,
_In_  SIZE_T,
_In_  SIZE_T 
)

◆ SetSecurityDescriptorControl()

BOOL WINAPI SetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
SECURITY_DESCRIPTOR_CONTROL  ControlBitsOfInterest,
SECURITY_DESCRIPTOR_CONTROL  ControlBitsToSet 
)

Definition at line 238 of file sec.c.

241{
243
244 Status = RtlSetControlSecurityDescriptor(pSecurityDescriptor,
245 ControlBitsOfInterest,
246 ControlBitsToSet);
247 if (!NT_SUCCESS(Status))
248 {
250 return FALSE;
251 }
252
253 return TRUE;
254}
NTSYSAPI NTSTATUS NTAPI RtlSetControlSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, _In_ SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet)

Referenced by pSetSecurityInfoCheck().

◆ SetSecurityDescriptorDacl()

BOOL WINAPI SetSecurityDescriptorDacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
BOOL  bDaclPresent,
PACL  pDacl,
BOOL  bDaclDefaulted 
)

◆ SetSecurityDescriptorGroup()

BOOL WINAPI SetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID  pGroup,
BOOL  bGroupDefaulted 
)

Definition at line 288 of file sec.c.

291{
293
294 Status = RtlSetGroupSecurityDescriptor(pSecurityDescriptor,
295 pGroup,
296 bGroupDefaulted);
297 if (!NT_SUCCESS(Status))
298 {
300 return FALSE;
301 }
302
303 return TRUE;
304}
NTSYSAPI NTSTATUS NTAPI RtlSetGroupSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSID Group, IN BOOLEAN GroupDefaulted)
Definition: sd.c:410

Referenced by CreateDefaultProcessSecurityCommon(), CreateDhcpPipeSecurity(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), DwInitializeSdFromThreadToken(), get_sd(), handle_getacl(), pSetSecurityInfoCheck(), test_AccessCheck(), test_ConvertSecurityDescriptorToString(), test_process_security(), and test_security_info().

◆ SetSecurityDescriptorOwner()

BOOL WINAPI SetSecurityDescriptorOwner ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID  pOwner,
BOOL  bOwnerDefaulted 
)

Definition at line 312 of file sec.c.

315{
317
318 Status = RtlSetOwnerSecurityDescriptor(pSecurityDescriptor,
319 pOwner,
320 bOwnerDefaulted);
321 if (!NT_SUCCESS(Status))
322 {
324 return FALSE;
325 }
326
327 return TRUE;
328}
NTSYSAPI NTSTATUS WINAPI RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR, PSID, BOOLEAN)

Referenced by CreateDefaultProcessSecurityCommon(), CreateDhcpPipeSecurity(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), DwInitializeSdFromThreadToken(), get_sd(), handle_getacl(), pSetSecurityInfoCheck(), TakeOwnershipOfFile(), test_AccessCheck(), test_ConvertSecurityDescriptorToString(), test_process_security(), and test_security_info().

◆ SetSecurityDescriptorRMControl()

DWORD WINAPI SetSecurityDescriptorRMControl ( PSECURITY_DESCRIPTOR  SecurityDescriptor,
PUCHAR  RMControl 
)

Definition at line 336 of file sec.c.

338{
340 RMControl);
341
342 return ERROR_SUCCESS;
343}
NTSYSAPI VOID NTAPI RtlSetSecurityDescriptorRMControl(_Inout_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ PUCHAR RMControl)

◆ SetSecurityDescriptorSacl()

BOOL WINAPI SetSecurityDescriptorSacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
BOOL  bSaclPresent,
PACL  pSacl,
BOOL  bSaclDefaulted 
)

Definition at line 351 of file sec.c.

355{
357
358 Status = RtlSetSaclSecurityDescriptor(pSecurityDescriptor,
359 bSaclPresent,
360 pSacl,
361 bSaclDefaulted);
362 if (!NT_SUCCESS(Status))
363 {
365 return FALSE;
366 }
367
368 return TRUE;
369}
NTSYSAPI NTSTATUS NTAPI RtlSetSaclSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN BOOLEAN SaclPresent, IN PACL Sacl, IN BOOLEAN SaclDefaulted)
Definition: sd.c:342

Referenced by get_sd(), pSetSecurityInfoCheck(), test_AddMandatoryAce(), test_ConvertSecurityDescriptorToString(), and test_token_security_descriptor().

◆ SetStdHandle()

BOOL WINAPI SetStdHandle ( _In_  DWORD,
_In_  HANDLE 
)

◆ SetSystemPowerState()

BOOL WINAPI SetSystemPowerState ( _In_  BOOL,
_In_  BOOL 
)

◆ SetSystemTime()

BOOL WINAPI SetSystemTime ( const SYSTEMTIME )

◆ SetSystemTimeAdjustment()

BOOL WINAPI SetSystemTimeAdjustment ( _In_  DWORD,
_In_  BOOL 
)

◆ SetTapeParameters()

DWORD WINAPI SetTapeParameters ( _In_  HANDLE,
_In_  DWORD,
_In_  PVOID 
)

◆ SetTapePosition()

DWORD WINAPI SetTapePosition ( _In_  HANDLE,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  DWORD,
_In_  BOOL 
)

◆ SetThreadAffinityMask()

DWORD_PTR WINAPI SetThreadAffinityMask ( _In_  HANDLE,
_In_  DWORD_PTR 
)

◆ SetThreadContext()

BOOL WINAPI SetThreadContext ( HANDLE  ,
const CONTEXT  
)

◆ SetThreadIdealProcessor()

DWORD WINAPI SetThreadIdealProcessor ( _In_  HANDLE,
_In_  DWORD 
)

◆ SetThreadPriority()

BOOL WINAPI SetThreadPriority ( HANDLE  ,
int   
)

◆ SetThreadPriorityBoost()

BOOL WINAPI SetThreadPriorityBoost ( HANDLE  ,
BOOL   
)

◆ SetThreadToken()

BOOL WINAPI SetThreadToken ( PHANDLE  ,
HANDLE   
)

◆ SetTimeZoneInformation()

BOOL WINAPI SetTimeZoneInformation ( const TIME_ZONE_INFORMATION )

◆ SetTokenInformation()

BOOL WINAPI SetTokenInformation ( HANDLE  TokenHandle,
TOKEN_INFORMATION_CLASS  TokenInformationClass,
PVOID  TokenInformation,
DWORD  TokenInformationLength 
)

Definition at line 437 of file security.c.

441{
443
446 TokenInformation,
448 if (!NT_SUCCESS(Status))
449 {
451 return FALSE;
452 }
453
454 return TRUE;
455}
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtSetInformationToken(_In_ HANDLE TokenHandle, _In_ TOKEN_INFORMATION_CLASS TokenInformationClass, _In_reads_bytes_(TokenInformationLength) PVOID TokenInformation, _In_ ULONG TokenInformationLength)
Sets (modifies) some specific information in regard of an access token. The calling thread must have ...
Definition: tokencls.c:1125

Referenced by test_token_attr().

◆ SetUnhandledExceptionFilter()

◆ SetupComm()

BOOL WINAPI SetupComm ( _In_  HANDLE,
_In_  DWORD,
_In_  DWORD 
)

◆ SetVolumeLabelA()

BOOL WINAPI SetVolumeLabelA ( _In_opt_  LPCSTR,
_In_opt_  LPCSTR 
)

◆ SetVolumeLabelW()

BOOL WINAPI SetVolumeLabelW ( _In_opt_  LPCWSTR,
_In_opt_  LPCWSTR 
)

◆ SetWaitableTimer()

BOOL WINAPI SetWaitableTimer ( HANDLE  ,
const LARGE_INTEGER ,
LONG  ,
PTIMERAPCROUTINE  ,
PVOID  ,
BOOL   
)

◆ SignalObjectAndWait()

DWORD WINAPI SignalObjectAndWait ( _In_  HANDLE,
_In_  HANDLE,
_In_  DWORD,
_In_  BOOL 
)

◆ SizeofResource()

◆ Sleep()

WINBASEAPI void WINAPI Sleep ( DWORD  )

◆ SleepEx()

DWORD WINAPI SleepEx ( DWORD  ,
BOOL   
)

◆ SuspendThread()

DWORD WINAPI SuspendThread ( HANDLE  )

◆ SwitchToFiber()

void WINAPI SwitchToFiber ( _In_  PVOID)

Referenced by Fbt_Dispatch(), and init_funcs().

◆ SwitchToThread()

BOOL WINAPI SwitchToThread ( void  )

Definition at line 448 of file thread.c.

449{
451}
NTSYSAPI NTSTATUS WINAPI NtYieldExecution(void)
Definition: thrdschd.c:744
#define STATUS_NO_YIELD_PERFORMED
Definition: ntstatus.h:150

Referenced by DoWaitForReaders().

◆ SystemTimeToFileTime()

BOOL WINAPI SystemTimeToFileTime ( const SYSTEMTIME ,
LPFILETIME   
)

◆ SystemTimeToTzSpecificLocalTime()

BOOL WINAPI SystemTimeToTzSpecificLocalTime ( CONST TIME_ZONE_INFORMATION lpTimeZoneInformation,
CONST SYSTEMTIME lpUniversalTime,
LPSYSTEMTIME  lpLocalTime 
)

Definition at line 377 of file timezone.c.

380{
382 FILETIME FileTime;
383 LONGLONG llTime;
384 LONG lBias;
385
386 if (lpTimeZoneInformation != NULL)
387 {
388 TzInfo = *lpTimeZoneInformation;
389 }
390 else
391 {
393 return FALSE;
394 }
395
396 if (!lpUniversalTime || !lpLocalTime)
397 return FALSE;
398
399 if (!SystemTimeToFileTime(lpUniversalTime, &FileTime))
400 return FALSE;
401
402 FILETIME2LL(&FileTime, llTime)
403
404 if (!TIME_GetTimezoneBias(&TzInfo, &FileTime, FALSE, &lBias))
405 return FALSE;
406
407 /* convert minutes to 100-nanoseconds-ticks */
408 llTime -= (LONGLONG)lBias * TICKSPERMIN;
409
410 LL2FILETIME( llTime, &FileTime)
411
412 return FileTimeToSystemTime(&FileTime, lpLocalTime);
413}
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:188
BOOL WINAPI SystemTimeToFileTime(IN CONST SYSTEMTIME *lpSystemTime, OUT LPFILETIME lpFileTime)
Definition: time.c:158
#define TICKSPERMIN
Definition: timezone.c:21
#define FILETIME2LL(pft, ll)
Definition: timezone.c:26
static BOOL TIME_GetTimezoneBias(const TIME_ZONE_INFORMATION *pTZinfo, FILETIME *lpFileTime, BOOL islocal, LONG *pBias)
Definition: timezone.c:239
#define LL2FILETIME(ll, pft)
Definition: timezone.c:23
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
Definition: timezone.c:262
int64_t LONGLONG
Definition: typedefs.h:68

Referenced by GetDriverDateString(), GetFileModifyTime(), CInstalledApplicationInfo::RetrieveInstallDate(), test_query_process_times(), and BtrfsScrub::UpdateTextBox().

◆ TerminateProcess()

BOOL WINAPI TerminateProcess ( HANDLE  hProcess,
UINT  uExitCode 
)

◆ TerminateThread()

BOOL WINAPI TerminateThread ( HANDLE  hThread,
DWORD  dwExitCode 
)

◆ TlsAlloc()

DWORD WINAPI TlsAlloc ( VOID  )

Definition at line 1100 of file thread.c.

1101{
1102 ULONG Index;
1103 PTEB Teb;
1104 PPEB Peb;
1105
1106 /* Get the PEB and TEB, lock the PEB */
1107 Teb = NtCurrentTeb();
1110
1111 /* Try to get regular TEB slot */
1113 if (Index != 0xFFFFFFFF)
1114 {
1115 /* Clear the value. */
1116 Teb->TlsSlots[Index] = 0;
1118 return Index;
1119 }
1120
1121 /* If it fails, try to find expansion TEB slot. */
1123 if (Index != 0xFFFFFFFF)
1124 {
1125 /* Is there no expansion slot yet? */
1126 if (!Teb->TlsExpansionSlots)
1127 {
1128 /* Allocate an array */
1129 Teb->TlsExpansionSlots = RtlAllocateHeap(RtlGetProcessHeap(),
1132 sizeof(PVOID));
1133 }
1134
1135 /* Did we get an array? */
1136 if (!Teb->TlsExpansionSlots)
1137 {
1138 /* Fail */
1140 Index = 0xFFFFFFFF;
1142 }
1143 else
1144 {
1145 /* Clear the value. */
1146 Teb->TlsExpansionSlots[Index] = 0;
1148 }
1149 }
1150 else
1151 {
1152 /* Fail */
1154 }
1155
1156 /* Release the lock and return */
1158 return Index;
1159}
#define TLS_EXPANSION_SLOTS
Definition: pstypes.h:310
#define TLS_MINIMUM_AVAILABLE
Definition: ntddk_ex.h:236
PVOID TlsBitmap
Definition: ntddk_ex.h:259
PRTL_BITMAP TlsExpansionBitmap
Definition: winternl.h:346
PVOID * TlsExpansionSlots
Definition: compat.h:894
PVOID TlsSlots[64]
Definition: compat.h:879

Referenced by __nc_error(), __rpc_createerr(), __rpc_getconfip(), CMenuFocusManager::AcquireManager(), ClientThreadSetupHelper(), COMDLG32_SetCommDlgExtendedError(), DllMain(), get_thread_data(), get_tls_data(), I_CryptAllocTls(), Imm32InitTLS(), Init(), TLS::Initialize(), msvcrt_init_tls(), ProcessAttach(), spy_init(), test_CreateThread_basic(), test_reserved_tls(), test_TLS(), and wined3d_dll_init().

◆ TlsFree()

BOOL WINAPI TlsFree ( DWORD  )

◆ TlsGetValue()

PVOID WINAPI TlsGetValue ( DWORD  )

◆ TlsSetValue()

BOOL WINAPI TlsSetValue ( DWORD  ,
PVOID   
)

◆ TransactNamedPipe()

BOOL WINAPI TransactNamedPipe ( HANDLE  ,
PVOID  ,
DWORD  ,
PVOID  ,
DWORD  ,
PDWORD  ,
LPOVERLAPPED   
)

◆ TransmitCommChar()

BOOL WINAPI TransmitCommChar ( _In_  HANDLE,
_In_ char   
)

◆ TryEnterCriticalSection()

◆ TzSpecificLocalTimeToSystemTime()

BOOL WINAPI TzSpecificLocalTimeToSystemTime ( LPTIME_ZONE_INFORMATION  lpTimeZoneInformation,
LPSYSTEMTIME  lpLocalTime,
LPSYSTEMTIME  lpUniversalTime 
)

Definition at line 421 of file timezone.c.

424{
425 FILETIME ft;
426 LONG lBias;
427 LONGLONG t;
429
430 if (lpTimeZoneInformation != NULL)
431 {
432 tzinfo = *lpTimeZoneInformation;
433 }
434 else
435 {
437 return FALSE;
438 }
439
440 if (!SystemTimeToFileTime(lpLocalTime, &ft))
441 return FALSE;
442 FILETIME2LL( &ft, t)
443 if (!TIME_GetTimezoneBias(&tzinfo, &ft, TRUE, &lBias))
444 return FALSE;
445 /* convert minutes to 100-nanoseconds-ticks */
446 t += (LONGLONG)lBias * TICKSPERMIN;
447 LL2FILETIME( t, &ft)
448 return FileTimeToSystemTime(&ft, lpUniversalTime);
449}
GLdouble GLdouble t
Definition: gl.h:2047

Referenced by parse_filetime().

◆ UnhandledExceptionFilter()

LONG WINAPI UnhandledExceptionFilter ( LPEXCEPTION_POINTERS  )

◆ UnlockFile()

BOOL WINAPI UnlockFile ( HANDLE  ,
DWORD  ,
DWORD  ,
DWORD  ,
DWORD   
)

◆ UnlockFileEx()

BOOL WINAPI UnlockFileEx ( HANDLE  ,
DWORD  ,
DWORD  ,
DWORD  ,
LPOVERLAPPED   
)

◆ UnmapViewOfFile()

BOOL WINAPI UnmapViewOfFile ( LPCVOID  lpBaseAddress)

Definition at line 250 of file filemap.c.

251{
253
254 /* Unmap the section */
256 if (!NT_SUCCESS(Status))
257 {
258 /* Check if the pages were protected */
260 {
261 /* Flush the region if it was a "secure memory cache" */
262 if (RtlFlushSecureMemoryCache((PVOID)lpBaseAddress, 0))
263 {
264 /* Now try to unmap again */
266 if (NT_SUCCESS(Status)) return TRUE;
267 }
268 }
269
270 /* We failed */
272 return FALSE;
273 }
274
275 /* Otherwise, return success */
276 return TRUE;
277}
#define STATUS_INVALID_PAGE_PROTECTION
Definition: ntstatus.h:305
BOOLEAN NTAPI RtlFlushSecureMemoryCache(IN PVOID MemoryCache, IN OPTIONAL SIZE_T MemoryLength)
Definition: security.c:830

◆ UpdateResourceA()

BOOL WINAPI UpdateResourceA ( _In_ HANDLE  hUpdate,
_In_ LPCSTR  lpType,
_In_ LPCSTR  lpName,
_In_ WORD  wLanguage,
_In_reads_bytes_opt_(cb) LPVOID  lpData,
_In_ DWORD  cb 
)

◆ UpdateResourceW()

BOOL WINAPI UpdateResourceW ( _In_ HANDLE  hUpdate,
_In_ LPCWSTR  lpType,
_In_ LPCWSTR  lpName,
_In_ WORD  wLanguage,
_In_reads_bytes_opt_(cb) LPVOID  lpData,
_In_ DWORD  cb 
)

◆ VerifyVersionInfoA()

BOOL WINAPI VerifyVersionInfoA ( _Inout_  LPOSVERSIONINFOEXA,
_In_  DWORD,
_In_  DWORDLONG 
)

◆ VerifyVersionInfoW()

BOOL WINAPI VerifyVersionInfoW ( _Inout_  LPOSVERSIONINFOEXW,
_In_  DWORD,
_In_  DWORDLONG 
)

◆ VirtualAlloc()

PVOID WINAPI VirtualAlloc ( PVOID  ,
SIZE_T  ,
DWORD  ,
DWORD   
)

◆ VirtualAllocEx()

PVOID WINAPI VirtualAllocEx ( HANDLE  ,
PVOID  ,
SIZE_T  ,
DWORD  ,
DWORD   
)

◆ VirtualFree()

BOOL WINAPI VirtualFree ( PVOID  ,
SIZE_T  ,
DWORD   
)

◆ VirtualFreeEx()

BOOL WINAPI VirtualFreeEx ( HANDLE  ,
PVOID  ,
SIZE_T  ,
DWORD   
)

◆ VirtualLock()

BOOL WINAPI VirtualLock ( PVOID  ,
SIZE_T   
)

◆ VirtualProtect()

BOOL WINAPI VirtualProtect ( PVOID  ,
SIZE_T  ,
DWORD  ,
PDWORD   
)

◆ VirtualProtectEx()

BOOL WINAPI VirtualProtectEx ( HANDLE  ,
PVOID  ,
SIZE_T  ,
DWORD  ,
PDWORD   
)

◆ VirtualQuery()

SIZE_T WINAPI VirtualQuery ( LPCVOID  ,
PMEMORY_BASIC_INFORMATION  ,
SIZE_T   
)

◆ VirtualQueryEx()

SIZE_T WINAPI VirtualQueryEx ( HANDLE  ,
LPCVOID  ,
PMEMORY_BASIC_INFORMATION  ,
SIZE_T   
)

◆ VirtualUnlock()

BOOL WINAPI VirtualUnlock ( PVOID  ,
SIZE_T   
)

◆ WaitCommEvent()

BOOL WINAPI WaitCommEvent ( _In_  HANDLE,
_Inout_  PDWORD,
_Inout_opt_  LPOVERLAPPED 
)

◆ WaitForDebugEvent()

BOOL WINAPI WaitForDebugEvent ( LPDEBUG_EVENT  ,
DWORD   
)

◆ WaitForMultipleObjects()

DWORD WINAPI WaitForMultipleObjects ( _In_ DWORD  nCount,
_In_reads_(nCount) CONST HANDLE lpHandles,
_In_ BOOL  bWaitAll,
_In_ DWORD  dwMilliseconds 
)

◆ WaitForMultipleObjectsEx()

DWORD WINAPI WaitForMultipleObjectsEx ( DWORD  ,
const HANDLE ,
BOOL  ,
DWORD  ,
BOOL   
)

◆ WaitForSingleObject()

DWORD WINAPI WaitForSingleObject ( _In_ HANDLE  hHandle,
_In_ DWORD  dwMilliseconds 
)

◆ WaitForSingleObjectEx()

DWORD WINAPI WaitForSingleObjectEx ( HANDLE  ,
DWORD  ,
BOOL   
)

◆ WaitNamedPipeA()

BOOL WINAPI WaitNamedPipeA ( _In_  LPCSTR,
_In_  DWORD 
)

◆ WaitNamedPipeW()

BOOL WINAPI WaitNamedPipeW ( _In_  LPCWSTR,
_In_  DWORD 
)

◆ WinLoadTrustProvider()

BOOL WINAPI WinLoadTrustProvider ( GUID )

◆ WinMain()

int APIENTRY WinMain ( _In_  HINSTANCE,
_In_opt_  HINSTANCE,
_In_  LPSTR,
_In_ int   
)

◆ Wow64DisableWow64FsRedirection()

BOOL WINAPI Wow64DisableWow64FsRedirection ( PVOID )

◆ Wow64EnableWow64FsRedirection()

BOOLEAN WINAPI Wow64EnableWow64FsRedirection ( _In_  BOOLEAN)

◆ Wow64RevertWow64FsRedirection()

BOOL WINAPI Wow64RevertWow64FsRedirection ( PVOID  )

◆ WriteEncryptedFileRaw()

DWORD WINAPI WriteEncryptedFileRaw ( _In_  PFE_IMPORT_FUNC,
_In_opt_  PVOID,
_In_  PVOID 
)

◆ WriteFile()

BOOL WINAPI WriteFile ( HANDLE  ,
LPCVOID  ,
DWORD  ,
LPDWORD  ,
LPOVERLAPPED   
)

◆ WriteFileEx()

◆ WriteFileGather()

BOOL WINAPI WriteFileGather ( HANDLE  ,
FILE_SEGMENT_ELEMENT ,
DWORD  ,
LPDWORD  ,
LPOVERLAPPED   
)

◆ WritePrivateProfileSectionA()

BOOL WINAPI WritePrivateProfileSectionA ( _In_opt_  LPCSTR,
_In_opt_  LPCSTR,
_In_opt_  LPCSTR 
)

◆ WritePrivateProfileSectionW()

BOOL WINAPI WritePrivateProfileSectionW ( _In_opt_  LPCWSTR,
_In_opt_  LPCWSTR,
_In_opt_  LPCWSTR 
)

◆ WritePrivateProfileStringA()

BOOL WINAPI WritePrivateProfileStringA ( _In_opt_  LPCSTR,
_In_opt_  LPCSTR,
_In_opt_  LPCSTR,
_In_opt_  LPCSTR 
)

◆ WritePrivateProfileStringW()

BOOL WINAPI WritePrivateProfileStringW ( _In_opt_  LPCWSTR,
_In_opt_  LPCWSTR,
_In_opt_  LPCWSTR,
_In_opt_  LPCWSTR 
)

◆ WritePrivateProfileStructA()

BOOL WINAPI WritePrivateProfileStructA ( _In_ LPCSTR  lpszSection,
_In_ LPCSTR  lpszKey,
_In_reads_bytes_opt_(uSizeStruct) LPVOID  lpStruct,
_In_ UINT  uSizeStruct,
_In_opt_ LPCSTR  szFile 
)

◆ WritePrivateProfileStructW()

BOOL WINAPI WritePrivateProfileStructW ( _In_ LPCWSTR  lpszSection,
_In_ LPCWSTR  lpszKey,
_In_reads_bytes_opt_(uSizeStruct) LPVOID  lpStruct,
_In_ UINT  uSizeStruct,
_In_opt_ LPCWSTR  szFile 
)

◆ WriteProcessMemory()

BOOL WINAPI WriteProcessMemory ( HANDLE  ,
LPVOID  ,
LPCVOID  ,
SIZE_T  ,
SIZE_T  
)

◆ WriteProfileSectionA()

BOOL WINAPI WriteProfileSectionA ( _In_  LPCSTR,
_In_  LPCSTR 
)

◆ WriteProfileSectionW()

BOOL WINAPI WriteProfileSectionW ( _In_  LPCWSTR,
_In_  LPCWSTR 
)

◆ WriteProfileStringA()

BOOL WINAPI WriteProfileStringA ( _In_opt_  LPCSTR,
_In_opt_  LPCSTR,
_In_opt_  LPCSTR 
)

◆ WriteProfileStringW()

BOOL WINAPI WriteProfileStringW ( _In_opt_  LPCWSTR,
_In_opt_  LPCWSTR,
_In_opt_  LPCWSTR 
)

◆ WriteTapemark()

DWORD WINAPI WriteTapemark ( _In_  HANDLE,
_In_  DWORD,
_In_  DWORD,
_In_  BOOL 
)

◆ wWinMain()

int APIENTRY wWinMain ( _In_  HINSTANCE,
_In_opt_  HINSTANCE,
_In_  LPWSTR,
_In_ int  nCmdShow 
)

Definition at line 104 of file buttonvistest.cpp.

108{
109 HWND hwnd[200];
110 HANDLE hActCtx;
112 BOOL bActivated;
113
114 ACTCTXW actctx = { sizeof(actctx) };
115 actctx.hModule = hInstance;
116 actctx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID| ACTCTX_FLAG_HMODULE_VALID;
117 actctx.lpResourceName = MAKEINTRESOURCEW(500);
118 hActCtx = CreateActCtxW(&actctx);
119
122
123 scPos.x = 0;
124 scPos.y = 0;
125
127 hbrRed = CreateSolidBrush(0x00000FF);
128 hbrGreen = CreateSolidBrush(0x0000FF00);
129 hbrBlue = CreateSolidBrush(0x00FF0000);
130 hbrCyan = CreateSolidBrush(0x00FFFF00);
131 hbrYellow = CreateSolidBrush(0x0000FFFF);
132
137
140
142
145
146 CreateWnd(hWnd, L"Static", L"no images", 0, -1, 0);
147 CreateWnd(hWnd, L"Static", L"with BM_SETIMAGE", 0, -1, 1);
148 CreateWnd(hWnd, L"Static", L"with BM_SETIMAGE", 0, -1, 2);
149 CreateWnd(hWnd, L"Static", L"with BM_SETIMAGE and BS_BITMAP", 0, -1, 3);
150 CreateWnd(hWnd, L"Static", L"with BM_SETIMAGE and BS_ICON", 0, -1, 4);
151
152 CreateWnd(hWnd, L"Static", L"Button V5", 0, 0, -1);
156 CreateButtonSet(hWnd, &hwnd[15], 1, 5, BS_GROUPBOX);
157 CreateButtonSet(hWnd, &hwnd[20], 0, 10, BS_CHECKBOX);
159
160 bActivated = ActivateActCtx(hActCtx, &cookie);
161 LoadLibraryW(L"comctl32.dll");
162
165
166 CreateWnd(hWnd, L"Static", L"Button V6 without themes", 0, 2, -1);
170 CreateButtonSet(hWnd, &hwnd[55], 3, 5, BS_GROUPBOX);
171 CreateButtonSet(hWnd, &hwnd[50], 2, 10, BS_CHECKBOX);
173
174 CreateWnd(hWnd, L"Static", L"Button V6 with imagelist and no themes", 0, 4, -1);
178 CreateButtonSet(hWnd, &hwnd[75], 5, 5, BS_GROUPBOX);
179 CreateButtonSet(hWnd, &hwnd[80], 4, 10, BS_CHECKBOX);
181
182 for (int i = 30; i < 90; i++)
183 SetWindowTheme(hwnd[i], L"", L"");
184
185 for (int i = 60; i< 90; i++)
186 SendMessageW(hwnd[i], BCM_SETIMAGELIST, 0, (LPARAM)&btniml);
187
188 CreateWnd(hWnd, L"Static", L"Button V6 with themes and imagelist", 0, 6, -1);
189 CreateButtonSet(hWnd, &hwnd[120], 6, 0, BS_PUSHBUTTON);
192 CreateButtonSet(hWnd, &hwnd[135], 7, 5, BS_GROUPBOX);
193 CreateButtonSet(hWnd, &hwnd[140], 6, 10, BS_CHECKBOX);
194 CreateButtonSet(hWnd, &hwnd[145], 7, 10, BS_RADIOBUTTON);
195
196 CreateWnd(hWnd, L"Static", L"Button V6 with themes", 0, 8, -1);
200 CreateButtonSet(hWnd, &hwnd[105], 9, 5, BS_GROUPBOX);
201 CreateButtonSet(hWnd, &hwnd[110], 8, 10, BS_CHECKBOX);
202 CreateButtonSet(hWnd, &hwnd[115], 9, 10, BS_RADIOBUTTON);
203
204 for (int i = 120; i< 150; i++)
205 SendMessageW(hwnd[i], BCM_SETIMAGELIST, 0, (LPARAM)&btniml);
206
207 if (bActivated) DeactivateActCtx(0, cookie);
208
209 SCROLLINFO vsi = {sizeof(SCROLLINFO), SIF_ALL, 0, 2 * TOP_MARGIN + 10 * (Y_GAP + Y_HEIGHT), Y_HEIGHT, 0, 0};
210 SCROLLINFO hsi = {sizeof(SCROLLINFO), SIF_ALL, 0, 2 * LEFT_MARGIN + 13 * (X_GAP + X_WIDTH), X_WIDTH, 0, 0};
211
214
217
218 ShowWindow(hWnd, nCmdShow);
220
221 MSG msg;
222 while (GetMessage(&msg, NULL, 0, 0))
223 {
226 }
227
228 return (int) msg.wParam;
229}
#define msg(x)
Definition: auth_time.c:54
HWND hWnd
Definition: settings.c:17
#define IDB_BITMAP1
Definition: resource.h:16
static void RegisterMyClass(HINSTANCE hInst)
#define TOP_MARGIN
POINT scPos
BOOL bSkipErase
HBRUSH hbrNULL
#define X_WIDTH
static void CreateButtonSet(HWND hwndParent, HWND *ahwnd, int i, int j, DWORD style)
HBRUSH hbrCtlColorBtn
#define Y_HEIGHT
HBRUSH hbrGreen
HBRUSH hbrCtlColorStatic
HBITMAP hbmp
#define Y_GAP
HICON hico
static HWND CreateWnd(HWND hWnd, LPCWSTR Class, LPCWSTR Text, LONG style, int i, int j)
#define LEFT_MARGIN
HBRUSH hbrPrintClientClear
HBRUSH hbrErase
HBRUSH hbrCyan
BOOL bSkipPaint
HBRUSH hbrRed
HBRUSH hbrYellow
#define X_GAP
HBRUSH hbrBlue
HIMAGELIST himl
HINSTANCE hInstance
Definition: charmap.c:19
HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE hi, LPCWSTR lpbmp, INT cx, INT cGrow, COLORREF clrMask, UINT uType, UINT uFlags)
Definition: imagelist.c:2208
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
Definition: actctx.c:268
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
Definition: actctx.c:237
HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
Definition: actctx.c:104
#define actctx
Definition: kernel32.h:8
#define IDI_WIN32PROJECT1
Definition: resource.h:1
#define IDB_BITMAP2
Definition: resource.h:6
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
#define WS_VSCROLL
Definition: pedump.c:627
#define BS_GROUPBOX
Definition: pedump.c:658
#define BS_CHECKBOX
Definition: pedump.c:653
#define WS_DISABLED
Definition: pedump.c:621
#define WS_HSCROLL
Definition: pedump.c:628
#define BS_RADIOBUTTON
Definition: pedump.c:655
#define BS_PUSHBUTTON
Definition: pedump.c:651
#define BS_DEFPUSHBUTTON
Definition: pedump.c:652
#define BUTTON_IMAGELIST_ALIGN_LEFT
Definition: commctrl.h:4627
#define BCM_SETIMAGELIST
Definition: commctrl.h:4642
#define CLR_DEFAULT
Definition: commctrl.h:320
Definition: cookie.c:34
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
Definition: uxthemesupp.c:69
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define NULL_BRUSH
Definition: wingdi.h:901
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
#define IMAGE_BITMAP
Definition: winuser.h:211
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
struct tagSCROLLINFO SCROLLINFO
#define SB_VERT
Definition: winuser.h:553
#define LR_CREATEDIBSECTION
Definition: winuser.h:1098
#define GetMessage
Definition: winuser.h:5790
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
BOOL WINAPI UpdateWindow(_In_ HWND)
#define SIF_ALL
Definition: winuser.h:1232
#define CW_USEDEFAULT
Definition: winuser.h:225
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)
#define WS_EX_CLIENTEDGE
Definition: winuser.h:384
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)
#define DispatchMessage
Definition: winuser.h:5765
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2163
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
Definition: cursoricon.c:2075
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define SB_HORZ
Definition: winuser.h:552

Variable Documentation

◆ cbSid

◆ cchBuffer

_In_ DWORD cchBuffer

Definition at line 2412 of file winbase.h.

◆ cchDisplayName

◆ cchName

◆ cchReferencedDomainName

Definition at line 2745 of file winbase.h.

Referenced by LookupAccountNameW(), and LookupAccountSidA().

◆ dwLogonProvider

Definition at line 2714 of file winbase.h.

Referenced by LogonUserA(), LogonUserExA(), and LogonUserW().

◆ dwLogonType

Definition at line 2713 of file winbase.h.

Referenced by LogonUserA(), LogonUserExA(), LogonUserExW(), and LogonUserW().

◆ lpAccountName

◆ lpBuffer

* nSize LPWSTR lpBuffer

Definition at line 2083 of file winbase.h.

◆ lpCC

◆ lpDisplayName

◆ lpdwSize

Definition at line 2069 of file winbase.h.

◆ lpExtension

_In_ LPCSTR _In_opt_ LPCSTR lpExtension

Definition at line 3072 of file winbase.h.

Referenced by IsExtensionAShortcut(), SearchPathA(), and SearchPathW().

◆ lpFileName

_In_ LPCSTR lpFileName

Definition at line 3071 of file winbase.h.

Referenced by __CreateFileW(), CopyDeviceFindData(), CreateConsoleWindow(), CreateFileA(), CreateFileW(), CreateHardLinkA(), CreateHardLinkW(), DecryptFileA(), DecryptFileW(), DeleteFileA(), DeleteFileW(), EncryptFileA(), ExtractIconResInfoA(), FileEncryptionStatusA(), FileEncryptionStatusW(), FileExists(), FindFirstFileA(), FindFirstFileExA(), FindFirstFileExW(), FindFirstFileW(), FindFirstStreamW(), FrameOnCreate(), get_profile_string(), GetCompressedFileSizeA(), GetCompressedFileSizeW(), GetExpandedFilePathName(), GetFileAttributesA(), GetFileAttributesExA(), GetFileAttributesExW(), GetFileAttributesW(), GetFileSecurityA(), GetFileSecurityW(), GetFontResourceInfoW(), GetFullPathNameA(), GetFullPathNameW(), GetSetFileTimestamp(), implicit_handle(), LoadConfiguration(), LoadCursorFromFileA(), LoadCursorFromFileW(), OpenBackupEventLogA(), OpenBackupEventLogW(), OpenFile(), OpenFilter(), OpenMciDevice(), OpenMediaFile(), ProcessCmdLine(), pSetupGetFileTitle(), pSetupGetVersionInfoFromImage(), pSetupOpenAndMapFileForRead(), ReadClipboardFile(), RemoveFile(), RemoveFontResourceA(), RemoveFontResourceExA(), RemoveFontResourceW(), RetreiveFileSecurity(), ImageModel::SaveImage(), SearchPathA(), SearchPathW(), SetFileAttributesA(), SetFileAttributesW(), SetFileSecurityA(), SetFileSecurityW(), SHCreatePropertyBagOnProfileSection(), SHGetIniStringUTF7W(), SHSetIniStringUTF7W(), StampFileSecurity(), TakeOwnershipOfFile(), VerifyInteg(), and WriteClipboardFile().

◆ lpFilePart

◆ lpLanguageId

◆ lpLuid

◆ lpName

Definition at line 2789 of file winbase.h.

Referenced by _Success_(), AcceptConnections(), AddHardwareWizard(), AddItemToTreeView(), ANIMATE_LoadFileW(), ANIMATE_LoadResW(), AppendSystemPostfix(), AppendUserEnvironmentVariable(), AssertFail(), BackupIniFile(), BuildTestItemData(), CheckNameLegalDOS8Dot3A(), CheckNameLegalDOS8Dot3W(), CreateEventA(), CreateEventW(), CreateFileMappingA(), CreateFileMappingW(), CreateJobObjectA(), CreateJobObjectW(), CreateMailslotA(), CreateMailslotW(), CreateMutexA(), CreateMutexW(), CreateNamedPipeA(), CreateNamedPipeW(), CreateSemaphoreA(), CreateSemaphoreExA(), CreateSemaphoreExW(), CreateSemaphoreW(), CreateServers(), DP_CreateGroup(), DP_CreatePlayer(), DP_IF_GetGroupName(), DP_IF_GetPlayerName(), EnumHKCRKey(), EnumHKCRValue(), CCommonFolder< TSelf, TItemId, TExtractIcon >::GetDisplayNameOf(), CMergedFolder::GetDisplayNameOf(), GetEnvironmentVariableA(), GetEnvironmentVariables(), GetEnvironmentVariableW(), GetLocaleInfoW(), GetProfile(), GetTextFaceA(), LengthOfStrResource(), LoadCursorScheme(), LoadNewCursorScheme(), LookupAccountSidA(), LookupPrivilegeDisplayNameA(), LookupPrivilegeDisplayNameW(), LookupPrivilegeNameA(), LookupPrivilegeNameW(), LookupPrivilegeValueA(), MSSTYLES_ParseThemeIni(), NetValidateName(), NPCancelConnection(), OpenEventA(), OpenEventW(), OpenFileMappingA(), OpenFileMappingW(), OpenJobObjectA(), OpenJobObjectW(), OpenMutexA(), OpenMutexW(), OpenSemaphoreA(), OpenSemaphoreW(), ReadDWORD(), ReadString(), RegEnumKeyA(), RegEnumKeyExA(), RegEnumKeyExW(), RegEnumKeyW(), RegEnumValueA(), SetEnvironmentVariableA(), SetEnvironmentVariableW(), SetFirmwareEnvironmentVariableA(), SetFirmwareEnvironmentVariableExA(), SetFirmwareEnvironmentVariableExW(), SetFirmwareEnvironmentVariableW(), CNetworkConnections::SetNameOf(), CAdminToolsFolder::SetNameOf(), CControlPanelFolder::SetNameOf(), CDesktopFolder::SetNameOf(), CDrivesFolder::SetNameOf(), CFontsFolder::SetNameOf(), CFSFolder::SetNameOf(), CMyDocsFolder::SetNameOf(), CNetFolder::SetNameOf(), CPrinterFolder::SetNameOf(), CRegFolder::SetNameOf(), SetUserEnvironmentVariable(), SHGetUserDisplayName(), SHTestTokenPrivilegeW(), test_MoveFileA(), UpdateResourceA(), UpdateResourceW(), UXINI_FindSection(), UXINI_FindValue(), UXINI_LoadINI(), WNetCancelConnection2A(), WNetCancelConnection2W(), WNetCancelConnectionA(), WNetCancelConnectionW(), WNetSetConnectionA(), and WNetSetConnectionW().

◆ lpszDomain

_In_opt_ LPWSTR lpszDomain

Definition at line 2711 of file winbase.h.

Referenced by LogonUserA(), LogonUserExA(), LogonUserExW(), LogonUserW(), and MyLogonUser().

◆ lpszPassword

◆ Name

◆ nBufferLength

◆ nSize

*nSize LPWSTR _Inout_ LPDWORD nSize

Definition at line 2084 of file winbase.h.

Referenced by _expand(), _LocalGetPrinterHandleData(), _LocalGetPrintServerHandleData(), _RpcGetPrinterData(), _RpcGetPrinterDataEx(), _Success_(), CHString::AllocBuffer(), calloc(), CopyMsgMask(), CreateMappedBitmap(), CreatePipe(), DIALOG_GroupAttributes(), DIALOG_ProgramAttributes(), DIALOG_Symbol(), DnsHostnameToComputerNameA(), DPA_Clone(), DPA_DeletePtr(), DPA_SetPtr(), DSA_Create(), DSA_DeleteItem(), DSA_InsertItem(), DSA_SetItem(), EMFDRV_ExtTextOut(), ExpandEnvironmentStringsA(), ExpandEnvironmentStringsW(), FlushInstructionCache(), FormatMessageA(), FormatMessageSafeW(), FormatMessageW(), FormatString(), GdiConvertEnhMetaFile(), GdiConvertMetaFilePict(), GdiCreateLocalEnhMetaFile(), GdiCreateLocalMetaFilePict(), GetAtomNameA(), GetAtomNameW(), GetComputerNameExA(), GetComputerNameExW(), GetComputerNameFromRegistry(), GetComputerObjectNameA(), GetComputerObjectNameW(), GetConsoleOriginalTitleA(), GetConsoleOriginalTitleW(), GetConsoleTitleA(), GetConsoleTitleW(), GetDeviceDriverBaseNameA(), GetDeviceDriverBaseNameW(), GetDeviceDriverFileNameA(), GetDeviceDriverFileNameW(), GetEnvironmentVariableA(), GetEnvironmentVariableW(), GetExpandedFilePathName(), GetImportFunctionNamesByModule(), GetImportModuleNames(), GetKeyNameTextA(), GetKeyNameTextW(), GetMappedFileNameA(), GetMappedFileNameW(), GetMessageStringFromDll(), GetMessageStringFromDllList(), GetMetaFileBitsEx(), GetModuleBaseNameA(), GetModuleBaseNameW(), GetModuleFileNameA(), GetModuleFileNameExA(), GetModuleFileNameExW(), GetModuleFileNameW(), GetPrinterDataA(), GetPrinterDataExA(), GetPrinterDataExW(), GetPrinterDataW(), GetPrintProcessorCapabilities(), GetProcessImageFileNameA(), GetProcessImageFileNameW(), GetUserNameExA(), GetUserNameExW(), GlobalGetAtomNameA(), GlobalGetAtomNameW(), InitAtomTable(), InitUserInfo(), LocalGetPrinterData(), LocalGetPrinterDataEx(), malloc(), ME_StreamOutText(), NtGdiGetPath(), pointer_default(), PsaCaptureProcessesAndThreads(), PsaCaptureSystemModules(), PsaiFree(), ReadProcessMemory(), realloc(), render_embed_source_hack(), SetFirmwareEnvironmentVariableA(), SetFirmwareEnvironmentVariableExA(), SetFirmwareEnvironmentVariableExW(), SetFirmwareEnvironmentVariableW(), SHGetIniStringUTF7W(), test_closefigure(), test_pack_EMR(), test_pack_ENHMETAHEADER(), test_pack_ENHMETARECORD(), test_pack_LAYERPLANEDESCRIPTOR(), test_pack_PIXELFORMATDESCRIPTOR(), test_pack_RASTERIZER_STATUS(), test_widenpath(), TranslateNameA(), TranslateNameW(), VerLanguageNameA(), VerLanguageNameW(), VfdLookupMedia(), WriteProcessMemory(), and CConsole::WriteString().

◆ pdwProfileLength

◆ peUse

◆ phToken

◆ ppLogonSid

Definition at line 2716 of file winbase.h.

Referenced by LogonUserExA().

◆ ppProfileBuffer

◆ pQuotaLimits

◆ ReferencedDomainName

◆ Sid

_In_ PSID Sid

Definition at line 2742 of file winbase.h.