ReactOS  r75919
cmd.c File Reference
#include "precomp.h"
#include <reactos/buildno.h>
#include <reactos/version.h>
Include dependency graph for cmd.c:

Go to the source code of this file.

Macros

#define NT_SUCCESS(StatCode)   ((NTSTATUS)(StatCode) >= 0)
 
#define SHELLEXECUTETEXT   "ShellExecuteExA"
 
#define APPEND(From, Length)
 
#define APPEND1(Char)
 

Typedefs

typedef NTSTATUS(WINAPINtQueryInformationProcessProc )(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG)
 
typedef NTSTATUS(WINAPINtReadVirtualMemoryProc )(HANDLE, PVOID, PVOID, ULONG, PULONG)
 
typedef BOOL(WINAPIMYEX )(LPSHELLEXECUTEINFO lpExecInfo)
 

Functions

INT ConvertULargeInteger (ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeparator)
 
static BOOL IsConsoleProcess (HANDLE Process)
 
HANDLE RunFile (DWORD flags, LPTSTR filename, LPTSTR params, LPTSTR directory, INT show)
 
static INT Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
 
INT DoCommand (LPTSTR first, LPTSTR rest, PARSED_COMMAND *Cmd)
 
INT ParseCommandLine (LPTSTR cmd)
 
static HANDLE ExecuteAsync (PARSED_COMMAND *Cmd)
 
static VOID ExecutePipeline (PARSED_COMMAND *Cmd)
 
INT ExecuteCommand (PARSED_COMMAND *Cmd)
 
LPTSTR GetEnvVar (LPCTSTR varName)
 
LPCTSTR GetEnvVarOrSpecial (LPCTSTR varName)
 
static LPTSTR GetEnhancedVar (TCHAR **pFormat, LPTSTR(*GetVar)(TCHAR, BOOL *))
 
LPCTSTR GetBatchVar (TCHAR *varName, UINT *varNameLen)
 
BOOL SubstituteVars (TCHAR *Src, TCHAR *Dest, TCHAR Delim)
 
static LPTSTR FindForVar (TCHAR Var, BOOL *IsParam0)
 
BOOL SubstituteForVars (TCHAR *Src, TCHAR *Dest)
 
LPTSTR DoDelayedExpansion (LPTSTR Line)
 
BOOL ReadLine (TCHAR *commandline, BOOL bMore)
 
static VOID ProcessInput ()
 
BOOL WINAPI BreakHandler (DWORD dwCtrlType)
 
VOID AddBreakHandler (VOID)
 
VOID RemoveBreakHandler (VOID)
 
static VOID ExecuteAutoRunFile (HKEY hkeyRoot)
 
static VOID GetCmdLineCommand (TCHAR *commandline, TCHAR *ptr, BOOL AlwaysStrip)
 
static VOID Initialize ()
 
static VOID Cleanup ()
 
int _tmain (int argc, const TCHAR *argv[])
 

Variables

BOOL bExit = FALSE
 
BOOL bCanExit = TRUE
 
BOOL bCtrlBreak = FALSE
 
BOOL bIgnoreEcho = FALSE
 
static BOOL bWaitForCommand = FALSE
 
INT nErrorLevel = 0
 
CRITICAL_SECTION ChildProcessRunningLock
 
BOOL bUnicodeOutput = FALSE
 
BOOL bDisableBatchEcho = FALSE
 
BOOL bDelayedExpansion = FALSE
 
BOOL bTitleSet = FALSE
 
DWORD dwChildProcessId = 0
 
HANDLE hIn
 
HANDLE hOut
 
LPTSTR lpOriginalEnvironment
 
HANDLE CMD_ModuleHandle
 
static
NtQueryInformationProcessProc 
NtQueryInformationProcessPtr = NULL
 
static NtReadVirtualMemoryProc NtReadVirtualMemoryPtr = NULL
 
WORD wDefColor
 

Macro Definition Documentation

#define APPEND (   From,
  Length 
)
Value:
{ \
if (Dest + (Length) > DestEnd) \
goto too_long; \
memcpy(Dest, From, (Length) * sizeof(TCHAR)); \
Dest += Length; }
char TCHAR
Definition: xmlstorage.h:189
if(!(yy_init))
Definition: macro.lex.yy.c:704
VOID UINTN Length
Definition: acefiex.h:744
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878

Referenced by SubstituteVars().

#define APPEND1 (   Char)
Value:
{ \
if (Dest >= DestEnd) \
goto too_long; \
*Dest++ = Char; }
char Char
Definition: bzip2.c:161
if(!(yy_init))
Definition: macro.lex.yy.c:704

Referenced by SubstituteVars().

#define NT_SUCCESS (   StatCode)    ((NTSTATUS)(StatCode) >= 0)

Definition at line 149 of file cmd.c.

Referenced by __drv_allocatesMem(), __RxAcquireFcb(), _At_(), _Dispatch_type_(), _Function_class_(), _IRQL_requires_max_(), _KsEdit(), _main(), _MiFlushMappedSection(), _MiMapViewOfSegment(), _MiSimpleWrite(), _MiWriteBackPage(), _Ret_opt_bytecount_(), _Success_(), _tmain(), AccessCheck(), AccessCheckAndAuditAlarmA(), AccessCheckAndAuditAlarmW(), AccpLookupSidByName(), AccpOpenLSAPolicyHandle(), AccpOpenNamedObject(), AccRewriteGetHandleRights(), AccRewriteSetHandleRights(), acpi_create_registry_table(), acpi_create_volatile_registry_tables(), AcpiOsExecute(), AcpiOsInstallInterruptHandler(), AcpiRegQueryValue(), AcsHlpSendCommand(), actctx_init(), ActivateActCtx(), add_balance_item(), add_checksum_entry(), add_children_to_move_list(), add_data_reloc(), add_data_reloc_extent_item(), add_device(), add_dir_child(), add_metadata_reloc(), add_metadata_reloc_extent_item(), add_metadata_reloc_parent(), add_parents(), add_partial_stripe(), add_root_item_to_cache(), add_root_ref(), add_volume_device(), AddAccessAllowedAce(), AddAccessAllowedAceEx(), AddAccessAllowedObjectAce(), AddAccessDeniedAce(), AddAccessDeniedAceEx(), AddAccessDeniedObjectAce(), AddAce(), AddAuditAccessAce(), AddAuditAccessAceEx(), AddAuditAccessObjectAce(), BtrfsSend::AddClone(), AddCodepageToRegistry(), BtrfsDeviceAdd::AddDevice(), AddDevice(), AddDeviceInternal(), AddDiskToList(), AddFontResourceA(), AddFontResourceExA(), AddFontsSettingsToRegistry(), AddHotkeySettings(), AddInputEvents(), addIPAddress(), AddKbLayoutsToRegistry(), AddToSendBuffer(), AddUDPHeaderIPv4(), AdjustTokenGroups(), AdjustTokenPrivileges(), AfdAccept(), AfdBindSocket(), AfdConnectedSocketWriteData(), AfdCreateSocket(), AfdDeregisterEventHandlers(), AfdEnumEvents(), AfdEventSelect(), AfdGetSockName(), AfdListenSocket(), AfdPacketSocketWriteData(), AfdRegisterEventHandlers(), AfdStreamSocketConnect(), alloc_chunk(), Allocate(), allocate_cache(), allocate_cache_chunk(), allocate_tree_extents(), AllocateDictionaryEntry(), CUSBRequest::AllocateEndpointDescriptor(), CUSBHardwareDevice::AllocateEndpointDescriptor(), AllocateGuarded(), AllocateLocallyUniqueId(), AllocateReadOnly(), AllocateUserPhysicalPages(), AllocConsole(), allow_degraded_mount(), AppendUserEnvironmentVariable(), BtrfsPropSheet::apply_changes_file(), ArchInitializeContexts(), ario_ApplyBrokenVideoHack(), AssignProcessToJobObject(), AssignResources(), AtapiAdapterControl(), AtapiRegCheckParameterValue(), AtapiRegGetStringParameterValue(), AuthPortThreadRoutine(), BackupEventLogA(), BackupEventLogW(), balance_data_chunk(), balance_metadata_chunk(), BaseCheckForVDM(), BaseComputeProcessDllPath(), BaseCreateStack(), BaseCreateThreadPoolThread(), BaseCreateVDMEnvironment(), BaseGetNamedObjectDirectory(), BaseInitApphelp(), BaseInitializeStaticServerData(), Basep8BitStringToDynamicUnicodeString(), Basep8BitStringToStaticUnicodeString(), BasepAllocateActivationContextActivationBlock(), BasepAnsiStringToHeapUnicodeString(), BasepCheckForReadOnlyResource(), BasepCheckWebBladeHashes(), BasepComputeProcessPath(), BasepCopyFileExW(), BasepCreateDefaultTimerQueue(), BasepDoTapeOperation(), BasepGetModuleHandleExW(), BasepIsCurDirAllowedForPlainExeNames(), BasepIsProcessAllowed(), BasepIsRealtimeAllowed(), BasepLoadLibraryAsDatafile(), BasepMapFile(), BasepMoveFileDelayed(), BasepNotifyCsrOfThread(), BasepNotifyTrackingService(), BasepOpenFileForMove(), BasepProbeForDllManifest(), BasepReplaceProcessThreadTokens(), BasepSxsCloseHandles(), BasePushProcessParameters(), BaseSrvCreatePairWaitHandles(), BaseSrvDelayLoadKernel32(), BaseSrvIsVdmAllowed(), BaseUpdateVDMEntry(), BasicBehaviorChecks(), BasicSupportHandler(), BatteryClassInitializeDevice(), BatteryClassIoctl(), BatteryClassStatusNotify(), BatteryIoctl(), BcdDeleteElement(), BcdEnumerateAndUnpackElements(), BcdOpenObject(), BcdOpenStoreFromFile(), BcInitialize(), BdaCreateFilterFactoryEx(), BdaCreatePin(), BdaInitFilter(), Beep(), BehaviorChecks(), BfClearScreen(), BfLoadDeferredFontFiles(), BiAddStoreFromFile(), BiConvertBcdElements(), BiConvertRegistryDataToElement(), BiDeleteKey(), BiEnumerateElements(), BiEnumerateSubElements(), BiEnumerateSubKeys(), BiEnumerateSubObjectElements(), BiGetObjectDescription(), BiInitializeAndValidateHive(), BiLoadHive(), BindAdapter(), BindIoCompletionCallback(), BlAppendBootOptionString(), BlBsdInitializeLog(), BlDeviceReadAtOffset(), BlDisplayClearScreen(), BlDisplayGetOemBitmap(), BlDisplayGetScreenResolution(), BlDisplayGetTextCellResolution(), BlDisplayInvalidateOemBitmap(), BlDisplayValidOemBitmap(), BlFileOpen(), BlFileReadAtOffsetEx(), BlFileReadEx(), BlFwEnumerateDevice(), BlGetBootOptionDevice(), BlGetBootOptionString(), BlHtCreate(), BlImgAllocateImageBuffer(), BlImgFindSection(), BlImgLoadBootApplication(), BlImgLoadImageWithProgress2(), BlImgLoadPEImageEx(), BlImgQueryCodeIntegrityBootOptions(), BlImgUnallocateImageBuffer(), BlImgUnloadBootApplication(), BlMmAllocateHeap(), BlMmGetMemoryMap(), BlMmMapPhysicalAddressEx(), BlMmRemoveBadMemory(), BlMmUnmapVirtualAddressEx(), BlockIoEfiCompareDevice(), BlockIoEfiCreateDeviceEntry(), BlockIoEfiGetBlockIoInformation(), BlockIoEfiGetChildHandle(), BlockIoEfiGetDeviceInformation(), BlockIoFirmwareOpen(), BlockIoFirmwareRead(), BlockIoOpen(), BlockIopAllocateAlignedBuffer(), BlockIopInitialize(), BlockIopOperation(), BlockIopReadPhysicalDevice(), BlockIoRead(), BlpDeviceOpen(), BlpDisplayInitialize(), BlpDisplayRegisterLocale(), BlpDisplayReinitialize(), BlpFileInitialize(), BlpFileRegisterFileSystem(), BlpFwInitialize(), BlpIoInitialize(), BlpMmCreateBlockAllocator(), BlpMmDeleteBlockAllocator(), BlpMmInitialize(), BlpMmInitializeConstraints(), BlpResourceInitialize(), BlpSecureBootEFIIsEnabled(), BlResourceFindHtml(), BlResourceFindMessage(), BlSecureBootCheckForFactoryReset(), BlSecureBootIsEnabled(), BlStatusPrint(), BlTblMap(), BlTblSetEntry(), BlUtlGetAcpiTable(), bmap(), BmDisplayDumpError(), BmEnumerateBootEntries(), BmFwInitializeBootDirectoryPath(), BmFwMemoryInitialize(), BmFwRegisterRevocationList(), BmGetBootMenuPolicy(), BmGetBootSequence(), BmGetEntryDescription(), BmGetOptionList(), BmLaunchRecoverySequence(), BmMain(), BmOpenDataStore(), BmpFwGetApplicationDirectoryPath(), BmpFwGetFullPath(), BmpGetDefaultBootEntry(), BmpGetSelectedBootEntry(), BmpInitializeBootStatusDataLog(), BmpLaunchBootEntry(), BmpPopulateBootEntryList(), BmpTransferExecution(), BmpUpdateApplicationOptions(), BmPurgeOption(), BmResumeFromHibernate(), BootLoaderFloppyPage(), BootLoaderHarddiskMbrPage(), BootLoaderHarddiskVbrPage(), BroadcastOpen(), BrowseIndexEntries(), BtrfsSend::BrowseParent(), BuildAndSubmitIrp(), CUSBRequest::BuildBulkInterruptEndpoint(), CUSBRequest::BuildBulkInterruptTransferDescriptor(), CUSBRequest::BuildBulkInterruptTransferQueueHead(), CUSBRequest::BuildControlTransferDescriptor(), CUSBRequest::BuildControlTransferQueueHead(), BuildDesktopNameList(), BuildInteractiveProfileBuffer(), CUSBRequest::BuildIsochronousEndpoint(), CUSBRequest::BuildQueueHead(), BuildRawIpPacket(), CUSBRequest::BuildSetupPacket(), BuildSidListFromDomainAndName(), BuildTokenInformationBuffer(), CUSBRequest::BuildTransferDescriptorChain(), BuildUDPPacket(), BuildUserInfoBuffer(), BuildWindowStationNameList(), Bus_AddDevice(), Bus_PDO_PnP(), Bus_PlugInDevice(), Bus_StartFdo(), CabinetExtractFile(), CabinetOpen(), calc_csum(), CalculateMbrCheckSum(), CancelDeviceWakeupRequest(), CancelIo(), CancelTimerQueueTimer(), CancelWaitableTimer(), CcCopyData(), CcFlushCache(), CcInitCacheZeroPage(), CcInitializeCacheMap(), CcMapData(), CcpMapData(), CcReadVirtualAddress(), CcRosCreateVacb(), CcRosFlushDirtyPages(), CcRosFlushVacb(), CcRosGetVacb(), CcRosMapVacb(), CcUninitializeCacheMap(), CcWriteVirtualAddress(), CcZeroData(), CdCommonCreate(), CdCommonRead(), CdCompleteFcbOpen(), CdFindActiveVolDescriptor(), CdFindPrimaryVd(), CdfsCreateFile(), CdfsDeviceIoControl(), CdfsDirFindFile(), CdfsFindFile(), CdfsGetFCBForFile(), CdfsGetFsFullSizeInformation(), CdfsGetFsSizeInformation(), CdfsGetVolumeData(), CdfsIsNameLegalDOS8Dot3(), CdfsMakeAbsoluteFilename(), CdfsMountVolume(), CdfsOpenFile(), CdfsQueryDirectory(), CdfsQueryInformation(), CdfsQueryVolumeInformation(), CdfsRead(), CdfsReadFile(), CdfsReadSectors(), CdfsVerifyVolume(), CdGenerate8dot3Name(), CdInvalidateVolumes(), CdIs8dot3Name(), CdLockVolume(), CdLockVolumeInternal(), CdMountVolume(), CdMultiAsyncCompletionRoutine(), CdMultiSyncCompletionRoutine(), CdNonCachedRead(), CdNonCachedXARead(), CdPerformVerify(), CdPnpQueryRemove(), CdPnpRemove(), CdReadSectors(), CdRomAddDevice(), CdRomAllocateMmcResources(), CdRomCheckRegistryForMediaChangeValue(), CdRomCreateDeviceObject(), CdRomCreateNamedEvent(), CdRomCreateWellKnownName(), CdRomDeviceControlCompletion(), CdRomDeviceControlDispatch(), CdRomDeviceControlDvdSendKey(), CdRomDeviceControlDvdStartSessionReadKey(), CdRomDvdReadDiskKeyCompletion(), CdRomGetConfiguration(), CdRomGetDeviceParameter(), CdRomGetDeviceType(), CdRomInitDevice(), CdRomIsDeviceMmcDevice(), CdRomIsPlayActive(), CdRompFlushDelayedList(), CdRompGetConfiguration(), CdRomPickDvdRegion(), CdRomSetDeviceParameter(), CdRomSetVolumeIntermediateCompletion(), CdRomShutdownFlushCompletion(), CdRomStartDevice(), CdRomSwitchModeCompletion(), CdRomUpdateGeometryCompletion(), CdRomUpdateMmcDriveCapabilities(), CdRomXACompletion(), CdSingleAsyncCompletionRoutine(), CdSingleSyncCompletionRoutine(), CdUnlockVolume(), CdVerifyVcb(), CdVerifyVolume(), ChangeRemoteDatabaseUniqueId(), ChangeTimerQueueTimer(), ChangeUserDacl(), ChanMgrCloseChannelsWithFileObject(), ChanMgrCreateChannel(), ChanMgrGetByHandleAndFileObject(), ChanMgrGetChannelByName(), ChanMgrGetChannelCount(), ChanMgrGetNextActiveChannel(), ChanMgrIsUniqueName(), ChanMgrReapChannels(), ChannelCreate(), ChannelIsActive(), ChannelIsClosed(), check_csum(), BtrfsPropSheet::check_file(), CheckAdjacentVADs(), CheckDirectorySecurity__(), CheckFileSystemPage(), CheckForDeviceDesc(), CheckKeySecurity__(), CheckNameLegalDOS8Dot3A(), CheckRemoteDebuggerPresent(), CheckSize(), CheckTokenMembership(), CheckVolume(), ClassAddDevice(), ClassClaimDevice(), ClassCreateClose(), ClassCreateDeviceObject(), ClassDeviceControl(), ClassDispatchPnp(), ClassGetDescriptor(), ClassGetDeviceParameter(), ClassInitialize(), ClassInitializeMediaChangeDetection(), ClassInvalidateBusRelations(), ClassIoComplete(), ClassIoCompleteAssociated(), ClassModeSense(), ClassNameToVersion(), ClasspCreateClose(), ClasspEjectionControl(), ClasspEnableTimer(), ClasspFailurePredict(), ClasspInitializeGesn(), ClasspInitializeHotplugInfo(), ClasspInitializePolling(), ClasspIsMediaChangeDisabledDueToHardwareLimitation(), ClasspIsMediaChangeDisabledForClass(), ClasspMediaChangeDetectionCompletion(), ClasspMediaChangeDeviceInstanceOverride(), ClassPnp(), ClassPnpStartDevice(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), ClasspRegisterMountedDeviceInterface(), ClasspScanForSpecialInRegistry(), ClassQueryTimeOutRegistryValue(), ClassReadDriveCapacity(), ClassReadWrite(), ClassRemoveDevice(), ClassRetrieveDeviceRelations(), ClassSetDeviceParameter(), ClassSetFailurePredictionPoll(), ClassSystemControl(), ClassUpdateInformationInRegistry(), ClassWmiCompleteRequest(), ClassWmiFireEvent(), clear_free_space_cache(), ClearEventLogA(), ClearEventLogW(), ClientLoadLibrary(), ClientThread(), ClientThreadSetupHelper(), CloseConsoleHandle(), CloseEventLog(), CloseHandle(), CloseLogonLsaHandle(), CloseStreamRoutine(), CmBattAddAcAdapter(), CmBattAddBattery(), CmBattAddDevice(), CmBattCreateFdo(), CmBattDisableStatusNotify(), CmBattGetAcpiInterfaces(), CmBattGetBatteryStatus(), CmBattGetPsrData(), CmBattGetStaData(), CmBattGetUniqueId(), CmBattIoctl(), CmBattPnpDispatch(), CmBattQueryInformation(), CmBattQueryStatus(), CmBattQueryTag(), CmBattRemoveDevice(), CmBattSetStatusNotify(), CmBattSetTripPpoint(), CmBattSystemControl(), CmBattWaitWakeLoop(), BtrfsRecv::cmd_chmod(), BtrfsRecv::cmd_chown(), BtrfsRecv::cmd_clone(), BtrfsRecv::cmd_mkfile(), BtrfsRecv::cmd_removexattr(), BtrfsRecv::cmd_setxattr(), BtrfsRecv::cmd_snapshot(), BtrfsRecv::cmd_subvol(), CmDeleteKey(), CmDeleteValueKey(), CmGetSystemControlValues(), CmGetSystemDriverList(), CmiAddSubKey(), CmiCallRegisteredCallbacks(), CmiInitializeHive(), CmInitSystem1(), CmLoadKey(), CmpAddToHiveFileList(), CmpCmdHiveOpen(), CmpCopyKeyValueList(), CmpCreateControlSet(), CmpCreateEvent(), CmpCreateHardwareProfile(), CmpCreateLinkNode(), CmpCreateRegistryRoot(), CmpDeepCopyKeyInternal(), CmpDeleteKeyObject(), CmpDoCreate(), CmpDoCreateChild(), CmpDoFlushAll(), CmpDoFlushNextHive(), CmpDoOpen(), CmpFileFlush(), CmpFileRead(), CmpFileSetSize(), CmpFileWrite(), CmpFindControlSet(), CmpGetRegistryPath(), CmpHiveRootSecurityDescriptor(), CmpInitHiveFromFile(), CmpInitializeHardwareConfiguration(), CmpInitializeHive(), CmpInitializeHiveList(), CmpInitializeMachineDependentConfiguration(), CmpInitializeRegistryNode(), CmpInitializeSystemHive(), CmpIsHiveAlreadyLoaded(), CmpLinkHiveToMaster(), CmpLinkKeyToHive(), CmpLoadHiveThread(), CmpOpenHiveFiles(), CmpQuerySecurityDescriptor(), CmpRemoveFromHiveFileList(), CmpSetSystemValues(), CmpSetupConfigurationTree(), CmpSetValueKeyNew(), CmpSetVersionData(), CmpUnlinkHiveFromMaster(), CmSaveKey(), CmSaveMergedKeys(), CmSetValueKey(), co_IntCallEventProc(), co_IntCallHookProc(), co_IntCallLoadMenu(), co_IntCallLowLevelHook(), co_IntCallSentMessageCallback(), co_IntCallWindowProc(), co_IntClientLoadLibrary(), co_IntCopyImage(), co_IntDeliverUserAPC(), co_IntDoSendMessage(), co_IntGetCharsetInfo(), co_IntGetPeekMessage(), co_IntLoadDefaultCursors(), co_IntLoadSysMenuTemplate(), co_IntRegisterLogonProcess(), co_IntSendMessageTimeoutSingle(), co_IntSendMessageWithCallBack(), co_IntSetupOBM(), co_IntSetWndIcons(), co_IntWaitMessage(), CommandDumpSector(), CommandPartInfo(), commit_batch_list(), commit_batch_list_root(), CUSBDevice::CommitIrp(), CUSBDevice::CommitSetupPacket(), CompareFileName(), CompBattAddDevice(), CompBattAddNewBattery(), CompBattGetBatteries(), CompBattGetBatteryGranularity(), CompBattGetBatteryInformation(), CompBattGetDeviceObjectPointer(), CompBattPnpDispatch(), CompBattQueryInformation(), ComputeCompatibleFormat(), ConCfgOpenUserSettings(), ConDllInitialize(), ConDrvAttachTerminal(), ConDrvCreateController(), ConDrvCreateScreenBuffer(), ConDrvInitConsole(), ConDrvInitInputBuffer(), ConDrvRegisterFrontEnd(), ConDrvSetConsoleScreenBufferSize(), ConDrvWriteConsole(), ConDrvWriteConsoleInput(), ConDrvWriteConsoleOutputString(), ConfigureDevice(), ConfigureSoundBlasterDevice(), ConMgrAdvanceCurrentChannel(), ConMgrChannelClose(), ConMgrChannelOWrite(), ConMgrDisplayCurrentChannel(), ConMgrInitialize(), ConMgrProcessInputLine(), ConMgrResetCurrentChannel(), ConMgrSerialPortConsumer(), ConMgrSetCurrentChannel(), ConMgrShutdown(), ConMgrWriteData(), ConnectConsole(), ConnectNamedPipe(), ConnectPortDriver(), ConnectRegistry(), ConnectToLsa(), ConsoleCreateLocalInputConsole(), ConsoleCreateRemoteConsole(), ConsoleEfiGopEnable(), ConsoleEfiGopOpen(), ConsoleEfiGraphicalOpenProtocol(), ConsoleEfiTextFindModeFromAllowed(), ConsoleFirmwareGraphicalClear(), ConsoleFirmwareTextClear(), ConsoleFirmwareTextOpen(), ConsoleFirmwareTextSetState(), ConsoleGraphicalConstruct(), ConsoleGraphicalEnable(), ConsoleInputLocalEraseBuffer(), ConsoleTextLocalConstruct(), ConSrvAllocateConsole(), ConSrvApplyUserSettings(), ConSrvConnect(), ConSrvGetConsole(), ConSrvInheritConsole(), ConSrvInitConsole(), ConSrvInitHandlesTable(), ConSrvInitTerminal(), ConSrvLoadFrontEnd(), ConSrvNewProcess(), ConSrvTermInitTerminal(), construct_extent_item(), ConstructSoundDeviceNames(), ContinueDebugEvent(), Control(), convert_old_extent(), ConvertSidToStringSidW(), CopyAcceleratorTableA(), CopyLoop(), CopyMsgToKernelMem(), CopyMsgToUserMem(), create_calc_threads(), create_chunk(), create_directory_fcb(), create_journal_dev(), create_root(), create_snapshot(), create_stream(), create_subvol(), CreateAcceleratorTableA(), CreateBaseAcls(), CreateCdRomDeviceObject(), CreateClassDeviceObject(), CUSBDevice::CreateConfigurationDescriptor(), CreateConsoleScreenBuffer(), CreateContext(), CUSBRequest::CreateDescriptor(), CUSBDevice::CreateDeviceDescriptor(), CreateDeviceIds(), CreateDeviceSecurityDescriptor(), CreateDirectoryExW(), CreateDirectoryW(), CreateDiskDeviceObject(), CreateEnvironmentBlock(), CHCDController::CreateFDO(), CreateFiberEx(), CreateFileMappingW(), CreateFileW(), CUSBRequest::CreateGeneralTransferDescriptor(), CreateGreenFdo(), CreateHardLinkW(), CreateICA(), CreateInitialSystemToken(), CreateIoCompletionPort(), createIpForwardEntry(), CUSBRequest::CreateIsochronousTransferDescriptor(), CreateJobSet(), CreateKeyTest(), CreateMailslotW(), CreateMemoryResourceNotification(), CreateMixerPinAndSetFormat(), CreateNamedPipeW(), CreateNestedKey(), CreateNewDriveLetterName(), CreateNewVolumeName(), CreateNoDriveLetterEntry(), CreatePartitionDeviceObjects(), CreatePartitionList(), CHubController::CreatePDO(), CreatePinCallback(), CreatePipe(), CreatePrivateObjectSecurity(), CreateProcessAsUserA(), CreateProcessAsUserW(), CreateProcessInternalW(), CreateProtoHive(), CUSBRequest::CreateQueueHead(), CreateRegistryFile(), CreateRemoteDatabase(), CreateRemoteDatabaseWorker(), CreateRemoteThread(), CreateSoundDevice(), CreateSoundDeviceWithDefaultName(), CreateTestDevices(), CreateTimerQueue(), CreateTimerQueueTimer(), CreateToolhelp32Snapshot(), CreateUsbChildDeviceObject(), CreateWindowStationW(), CSR_API(), CSR_SERVER_DLL_INIT(), CsrApiHandleConnectionRequest(), CsrApiPortInitialize(), CsrApiRequestThread(), CsrClientCallServer(), CsrClientConnectToServer(), CsrConnectToUser(), CsrCreateLocalSystemSD(), CsrCreateProcess(), CsrCreateRemoteThread(), CsrCreateSessionObjectDirectory(), CsrCreateThread(), CsrExecServerThread(), CsrGetProcessLuid(), CsrImpersonateClient(), CsrInitializeProcessStructure(), CsrInsertThread(), CsrLoadServerDll(), CsrLockProcessByClientId(), CsrParseServerCommandLine(), CsrpCheckRequestThreads(), CsrpConnectToServer(), CsrRevertToSelf(), CsrSbApiHandleConnectionRequest(), CsrSbApiPortInitialize(), CsrSbApiRequestThread(), CsrSbCreateSession(), CsrServerInitialization(), CsrSetProcessSecurity(), CsrSetToShutdownPriority(), CsrSrvAttachSharedSection(), CsrSrvCreateSharedSection(), CsrThreadRefcountZero(), CsrUnhandledExceptionFilter(), CTEBlock(), data_reloc_add_tree_edr(), DbgkCreateThread(), DbgkForwardException(), DbgkOpenProcessDebugPort(), DbgkpOpenHandles(), DbgkpPostFakeModuleMessages(), DbgkpPostFakeProcessCreateMessages(), DbgkpPostFakeThreadMessages(), DbgkpQueueMessage(), DbgkpSectionToFileHandle(), DbgkpSendApiMessageLpc(), DbgkpSetProcessDebugObject(), DbgP(), DbgUiConvertStateChangeStructure(), DbgUiDebugActiveProcess(), DbgUiIssueRemoteBreakin(), DC_hSelectFont(), DebugActiveProcess(), DebugActiveProcessStop(), DebugBreakProcess(), DebugSetProcessKillOnExit(), DeconfigureDevice(), decrease_extent_refcount(), DecrementGdiHandleCount(), DefaultQueryInfoBufferCheck(), DefaultSetInfoBufferCheck(), DefineDosDeviceW(), delete_fileref(), delete_reparse_point(), delete_root_ref(), delete_xattr(), DeleteFileW(), deleteIpAddress(), deleteIpForwardEntry(), DeleteKeyTest(), DeleteRemoteDatabaseEntry(), DeleteTimerQueueEx(), DeleteTimerQueueTimer(), DeleteValueTest(), DeregisterEventSource(), DestroyPrivateObjectSecurity(), DestroySoundDevice(), DestroySoundDeviceWithDefaultName(), DeviceInterfaceTest_Func(), DeviceIoControl(), BtrfsDeviceResize::DeviceResizeDlgProc(), DeviceStatusChangeThread(), DGReceiveDatagram(), DIB_CreateDIBSection(), DisableThreadLibraryCalls(), DisableWriteCache(), DisconnectComplete(), DisconnectNamedPipe(), disk_arrival(), DiskAddDevice(), DiskClose(), DiskCreateFdo(), DiskCreatePdo(), DiskCreateSymbolicLinks(), DiskDetectFailurePrediction(), DiskDeviceControl(), DiskEnableDisableFailurePredictPolling(), DiskEnumerateDevice(), DiskFdoExecuteWmiMethod(), DiskFdoQueryWmiDataBlock(), DiskGetIdentifyInfo(), DiskGetInfoExceptionInformation(), DiskInfoExceptionComplete(), DiskInitFdo(), DiskInitPdo(), DiskIoctlGetDriveGeometryEx(), DiskIoctlGetDriveLayout(), DiskIoctlGetDriveLayoutEx(), DiskIoctlGetLengthInfo(), DiskIoctlGetPartitionInfo(), DiskIoctlGetPartitionInfoEx(), DiskIoctlSetDriveLayout(), DiskIoctlSetDriveLayoutEx(), DiskIoctlSetPartitionInfo(), DiskIoctlSetPartitionInfoEx(), DiskIoctlVerify(), DiskOpen(), DiskReadFailurePredictData(), DiskReadFailurePredictStatus(), DiskReadFailurePredictThresholds(), DiskReadPartitionTableEx(), DiskReadSmartLog(), DiskReadWriteVerification(), DiskReregWorker(), DiskSetCacheInformation(), DiskSetInfoExceptionInformation(), DiskStartFdo(), DiskUpdatePartitions(), DiskUpdateRemovablePartitions(), dismount_volume(), Dispatch_fnClose(), DispatchCreateKMix(), DispatchCreateSysAudioPin(), DisplayDacl(), DispTdiAssociateAddress(), DispTdiConnect(), DispTdiDisconnect(), DispTdiListen(), DispTdiQueryInformationEx(), DispTdiQueryInformationExComplete(), DispTdiReceive(), DispTdiReceiveDatagram(), DispTdiSend(), DispTdiSendDatagram(), DllMain(), Dns_Ip6StringToAddress_A(), Dns_Ip6StringToAddress_W(), Dns_StringToDnsAddrEx(), do_create_snapshot(), do_flush(), do_load_tree(), do_read(), do_read_job(), BtrfsRecv::do_recv(), BtrfsDeviceResize::do_resize(), do_rollback(), BtrfsPropSheet::do_search(), do_splits(), do_tree_writes(), do_write(), do_write2(), do_write_file(), do_write_file_prealloc(), do_write_job(), DoAdminUnlock(), DoAutoLogon(), DoChangePassword(), DoesFileExist(), DoesPathExist(), DoGenericAction(), DoLoginTasks(), DoLogon(), DoQuery(), DoTlistCommand(), DoWriteConsole(), dprintk(), DriverEntry(), drop_chunk(), drop_root(), drop_roots(), DsppGraphicsDisabledByBcd(), DsppInitialize(), DsppLoadFontFile(), DsppReinitialize(), DsRolepGetBasicInfo(), DSStaticRefreshParams(), DumpRegistryData(), duplicate_extents(), DuplicateConsoleHandle(), DuplicateHandle(), DuplicateTokenEx(), DxDdStartupDxGraphics(), EfiGopSetMode(), EfiInitpConvertEfiDevicePath(), EfiInitpConvertEfiFilePath(), EfiInitpCreateApplicationEntry(), EfiOpenProtocol(), EfipGetRsdt(), EfiVmCloseProtocol(), EfiVmOpenProtocol(), ElfBackupFile(), ElfCreateBackupLogHandle(), ElfCreateEventLogHandle(), ElfCreateFile(), ElfFlushFile(), ElfpInitExistingFile(), ElfpInitNewFile(), ElfrBackupELFA(), ElfrClearELFA(), ElfReadRecord(), ElfrIntReportEventW(), ElfrOpenBELA(), ElfrOpenELA(), ElfrReadELA(), ElfrReadELW(), ElfrRegisterEventSourceA(), ElfrReportEventA(), ElfWriteRecord(), EmptyWorkingSet(), EnableDeviceInstance(), EndTask(), EngCreateSection(), EngCreateSectionHack(), EngFileWrite(), EngFreeModule(), EngFreeSectionMem(), EngLoadModuleEx(), EngMapEvent(), EngMapSectionView(), EngpRegisterGraphicsDevice(), EngQuerySystemAttribute(), EngUnmapSectionView(), EngWaitForSingleObject(), Enum(), EnumDeviceDrivers(), EnumDeviceKeys(), EnumDisplaySettingsExA(), EnumDisplaySettingsExW(), EnumerateBiosDiskEntries(), EnumerateBusKey(), EnumerateDevices(), EnumerateKeyTest(), CEnumNTDirectory::EnumerateNext(), EnumerateSoundDevices(), EnumerateSubkey(), EnumerateValueTest(), EnumFontsA(), EnumNamesW(), EnumPageFilesW(), EnumProcesses(), EnumProcessModules(), EnumPropsA(), EnumPropsExA(), EnumPropsExW(), EnumPropsW(), EtfsMount(), EtfsOpen(), EtfspCachedSearchForDirent(), EtfspCheckEtfs(), EtfspCreateContext(), EtfspGetDirent(), EtfspSearchForDirent(), EtfsRead(), EventThread(), Ex2ProcessUserPerfStat(), ExAllocatePoolWithQuotaTag(), excise_extents(), ExCreateCallback(), ExeFmtpCreateImageSection(), ExeFmtpReadFile(), ExitThread(), ExitVDM(), ExitWindowsWorker(), ExpandEnvironmentStringsA(), ExpandEnvironmentStringsForUserW(), ExpandEnvironmentStringsW(), ExpandSymbolicLink(), ExpConvertLdrModuleToRtlModule(), ExpCreateSystemRootLink(), ExpDesktopOkToClose(), ExpGetCurrentUserUILanguage(), ExpGetGlobalAtomTable(), ExpInitializeCallbacks(), ExpInitializeEventImplementation(), ExpInitializeEventPairImplementation(), ExpInitializeExecutive(), ExpInitializeMutantImplementation(), ExpInitializeProfileImplementation(), ExpInitializeSemaphoreImplementation(), ExpInitializeTimerImplementation(), ExpInitNls(), ExpLoadBootSymbols(), ExpLoadInitialProcess(), ExpLoadUuidSequence(), ExpRaiseHardError(), ExpSaveUuidSequence(), ExpSetCurrentUserUILanguage(), ExpWin32kInit(), ExpWin32SessionCallout(), ExpWindowStationOkToClose(), ExRaiseHardError(), ExRefreshTimeZoneInformation(), ext2_alloc_block(), ext2_flush(), ext2_load_inode(), ext2_read_block(), ext2_read_inode(), ext2_save_inode(), ext2_write_block(), ext2_write_block_bitmap(), ext2_write_inode(), ext2_write_inode_bitmap(), Ext2AddEntry(), Ext2AllocateMcb(), Ext2BuildEntry(), Ext2BuildExtents(), Ext2Cleanup(), Ext2CompleteIrpContext(), Ext2CreateFile(), Ext2CreateInode(), Ext2CreateVolume(), Ext2DeleteFile(), Ext2DeleteReparsePoint(), Ext2DisMountVolume(), Ext2ExceptionHandler(), Ext2ExpandBlock(), Ext2ExpandExtent(), Ext2ExpandIndirect(), Ext2ExpandLast(), Ext2FillEntry(), Ext2Flush(), Ext2FollowLink(), Ext2Format(), Ext2GetBlock(), Ext2GetMediaInfo(), Ext2GetRetrievalPointerBase(), Ext2GetRetrievalPointers(), Ext2InitializeLabel(), Ext2InitializeVcb(), Ext2InitializeZone(), Ext2InvalidateVolumes(), Ext2LinuxError(), Ext2LoadBlock(), Ext2LoadInode(), Ext2LoadSuper(), Ext2LockControl(), Ext2LockVolume(), Ext2LookupFile(), Ext2MapIndirect(), Ext2MountVolume(), Ext2OEMToUnicode(), Ext2OpenDevice(), Ext2ParseRegistryVolumeParams(), Ext2PerformRegistryVolumeParams(), Ext2ProcessUserProperty(), Ext2QueryDirectory(), Ext2QueryExtentMappings(), Ext2QueryGlobalParameters(), Ext2QueryRegistrySettings(), Ext2QueryVolumeParams(), Ext2ReadDisk(), Ext2ReadFile(), Ext2ReadInode(), Ext2ReadVolume(), Ext2ReadWriteBlockAsyncCompletionRoutine(), Ext2ReadWriteBlockSyncCompletionRoutine(), Ext2RefreshSuper(), Ext2SaveInode(), Ext2ScanDir(), Ext2SetDispositionInfo(), Ext2SetFileInformation(), Ext2SetLinkInfo(), Ext2SetParentEntry(), Ext2SetRenameInfo(), Ext2SetReparsePoint(), Ext2ShutDown(), Ext2StartReaper(), Ext2SyncUninitializeCacheMap(), Ext2TruncateBlock(), Ext2TruncateExtent(), Ext2TruncateIndirect(), Ext2TruncateIndirectFast(), Ext2TruncateSymlink(), Ext2UnicodeToOEM(), Ext2UnLockVolume(), Ext2VerifyVcb(), Ext2VerifyVolume(), Ext2Write(), Ext2WriteDisk(), Ext2WriteFile(), Ext2WriteInode(), Ext2WriteSymlink(), Ext2WriteVolume(), ext3_append(), ext3_bread(), ext4_new_meta_blocks(), extend_file(), ExtractFont(), Fat12Format(), Fat12WriteBootSector(), Fat12WriteFAT(), Fat12WriteRootDirectory(), Fat16Format(), Fat16WriteBootSector(), Fat16WriteFAT(), Fat16WriteRootDirectory(), Fat32Format(), Fat32WriteBootSector(), Fat32WriteFAT(), Fat32WriteFsInfo(), Fat32WriteRootDirectory(), FATAddEntry(), FatalAppExitA(), FatalAppExitW(), FatiCreate(), FatiOpenExistingDcb(), FatiOpenExistingDir(), FatiOpenExistingFcb(), FatiOpenExistingFile(), FatiOpenVolume(), FatiTryToOpen(), FatMount(), FatMountVolume(), FatSetFcbNames(), FatWipeSectors(), Fatx16WriteFAT(), Fatx32WriteFAT(), FatxFormat(), FatxWriteBootSector(), FatxWriteRootDirectory(), fcb_get_new_sd(), fcb_get_sd(), fcb_load_csums(), FdcAddDevice(), FdcFdoPnp(), FdcFdoQueryBusRelations(), FDO_CloseConfiguration(), FDO_CreateChildPdo(), FDO_HandlePnp(), FDO_StartDevice(), FdoCreateRawParallelPdo(), FdoEnumerateDevices(), FdoPnp(), FdoPnpControl(), FdoQueryBusRelations(), FF_OpenW(), FF_PendSemaphore(), FF_Sleep(), FFSAddEntry(), FFSCompleteIrpContext(), FFSCopyRead(), FFSCreateFile(), FFSCreateInode(), FFSCreateVolume(), FFSDeleteFile(), FFSFlush(), FFSGetPartition(), FFSInitializeVcb(), FFSInvalidateVolumes(), FFSIsDirectoryEmpty(), FFSLoadDiskLabel(), FFSLoadSuper(), FFSLockControl(), FFSMountVolume(), FFSOEMToUnicode(), FFSQueryDirectory(), FFSReadDisk(), FFSReadFile(), FFSReadVolume(), FFSReadWriteBlockAsyncCompletionRoutine(), FFSReadWriteBlockSyncCompletionRoutine(), FFSRemoveEntry(), FFSSetInformation(), FFSSetParentEntry(), FFSSetRenameInfo(), FFSShutDown(), FFSSyncUninitializeCacheMap(), FFSUnicodeToOEM(), FFSUnpinRepinnedBcbs(), FFSv1LoadBlock(), FFSv1LoadInode(), FFSv1LookupFileName(), FFSv1ReadInode(), FFSv1ScanDir(), FFSv1WriteInode(), FFSv2LoadBlock(), FFSv2LoadInode(), FFSv2LookupFileName(), FFSv2ReadInode(), FFSv2ScanDir(), FFSWrite(), FFSWriteFile(), FFSWriteVolume(), file_create(), file_create2(), file_desc_fcb(), file_desc_fileref(), FileIoOpen(), FilenameA2W(), FileOpenConnection(), fill_in_file_name_information(), fill_in_hard_link_information(), FillConsoleOutputAttribute(), FillConsoleOutputCharacterA(), FilterAudioVolumeHandler(), FilterConnectCommunicationPort(), find_chunk_usage(), find_default_subvol(), find_devices(), find_disk_holes(), find_entry(), find_extent_data_refcount(), find_extent_shared_data_refcount(), find_extent_shared_tree_refcount(), find_file_in_dir(), find_gid(), find_item(), find_item_in_tree(), find_item_to_level(), find_metadata_address_in_chunk(), find_next_item(), find_prev_item(), find_send_dir(), find_subvol(), FindAttribute(), FindBitmapResource(), FindDeviceDescForAdapter(), FindDeviceDriver(), FindDeviceInfo(), FindFaceNameInList(), FindFile(), FindFirstAttribute(), FindFirstChangeNotificationW(), FindFirstFileA(), FindFirstFileExA(), FindFirstFileExW(), FindFirstStreamW(), FindModule(), FindNextAttribute(), FindNextChangeNotification(), FindNextFileA(), FindNextFileW(), FindProcessForShutdown(), FindProductName(), FindScsiAdapter(), FindScsiDisks(), CUSBQueue::FindTransferDescriptorInInterruptHeadEndpoints(), finish_inode(), finish_removing_device(), FinishDevPoDnIrp(), FinishDevPoUpIrp(), FirstSoundSentry(), FixupDll(), FltpAttachToFileSystemDevice(), FltpEnumerateFileSystemVolumes(), FltpFsNotification(), FltpGetObjectName(), FltpSetupCommunicationObjects(), FltRegisterFilter(), FltStartFiltering(), FltUnregisterFilter(), flush_changed_dev_stats(), flush_changed_extent(), flush_extents(), flush_fcb(), flush_fileref(), flush_partial_stripe(), flush_refs(), flush_subvol(), FlushConsoleInputBuffer(), FlushFileBuffers(), FlushInstructionCache(), FlushViewOfFile(), FontFamilyFillInfo(), FormatEx(), FormatEx2(), FormatPartitionPage(), ForwardIrpAndWait(), FreeBT_AbortPipes(), FreeBT_AddDevice(), FreeBT_DispatchPnP(), FreeBT_DispatchPower(), FreeBT_DispatchRead(), FreeBT_DispatchWrite(), FreeBT_GetHCIEvent(), FreeBT_GetRegistryDword(), FreeBT_ReadCompletion(), FreeBT_ResetDevice(), FreeBT_ResetPipe(), FreeBT_SendHCICommand(), FreeBT_WriteCompletion(), FreeConsole(), FreeDosDevicesProtection(), FreeLibrary(), FreeUserPhysicalPages(), fs_dismount(), fs_ignored(), fs_isdirty(), fs_lock(), fs_open(), fsctl_set_xattr(), FsdGetFsFullSizeInformation(), FsdGetFsSizeInformation(), FsdSetFsLabelInformation(), FsRecGetDeviceSectors(), FsRecGetDeviceSectorSize(), FsRecReadBlock(), FsRecRegisterFs(), FsRtlAcquireFileForModWriteEx(), FsRtlAreNamesEqual(), FsRtlGetFileSize(), FsRtlGetTunnelParameterValue(), FsRtlInitializeWorkerThread(), FsRtlInitSystem(), FsRtlIsNameInExpression(), FsRtlIsTotalDeviceFailure(), FsRtlNotifyVolumeEvent(), FsRtlpIsDfsEnabled(), FsRtlpOpenDev(), FsRtlpRegisterProviderWithMUP(), FsRtlpSetSymbolicLink(), FsRtlRegisterUncProvider(), FsRtlReleaseFileForCcFlush(), FsRtlReleaseFileForModWrite(), FsRtlTest_StartTest(), FstubAllocateDiskInformation(), FstubCreateDiskEFI(), FstubCreateDiskMBR(), FstubCreateDiskRaw(), FstubDetectPartitionStyle(), FstubGetDiskGeometry(), FstubReadHeaderEFI(), FstubReadPartitionTableEFI(), FstubReadPartitionTableMBR(), FstubSetPartitionInformationEFI(), FstubVerifyPartitionTableEFI(), FstubWriteBootSectorEFI(), FstubWriteEntryEFI(), FstubWritePartitionTableEFI(), ftGdiGetTextMetricsW(), GDI_MapHandleTable(), GdiPoolAllocate(), GdiPoolAllocateSection(), GdiPoolDeleteSection(), GenerateConsoleCtrlEvent(), get_device_change_count(), get_device_pnp_name(), get_device_pnp_name_guid(), get_devices(), get_dir_last_child(), get_ea_len(), get_extent_flags(), get_extent_refcount(), get_file_security(), get_last_inode(), get_mountdev_name(), get_orphan_name(), get_registry_value(), get_reparse_block(), get_reparse_point(), get_reparse_tag(), get_shiminfo(), get_subvol_path(), get_superblock_size(), get_top_level_sd(), get_tree_new_address(), get_usage(), GetAccountDomainSid(), GetAccountFlags(), getAddrByIndexOrName(), GetAllowedWorldAce(), getArpTable(), GetBinaryTypeA(), GetBuiltinDomainSid(), GetBusInterface(), GetCommandConsoleLaunchingPermission(), GetCompressedFileSizeW(), GetComputerIdentifier(), GetComputerNameExW(), GetComputerNameFromRegistry(), GetConsoleCP(), GetConsoleCursorInfo(), GetConsoleDisplayMode(), GetConsoleFontInfo(), GetConsoleFontSize(), GetConsoleHandleInformation(), GetConsoleHardwareState(), GetConsoleInputExeNameA(), GetConsoleMode(), GetConsoleOutputCP(), GetConsoleProcessList(), GetConsoleScreenBufferInfo(), GetConsoleSelectionInfo(), GetConsoleWindow(), GetCPFileNameFromRegistry(), GetCurrentActCtx(), GetCurrentConsoleFont(), GetCurrentDirectoryA(), GetCurrentHwProfileA(), GetDeviceId(), GetDevicePowerState(), GetDiskFreeSpaceExW(), GetDiskFreeSpaceW(), GetDisplayIdentifier(), GetDllDirectoryA(), GetDllList(), GetDomainSid(), GetDosDevicesProtection(), GetDriverName(), GetDriveTypeW(), GetEnvironmentStringsA(), GetEnvironmentVariableA(), GetEnvironmentVariableW(), GetErrorMode(), GetEventLogInformation(), GetExitCodeProcess(), GetExitCodeThread(), GetFileAttributesByHandle(), GetFileAttributesExW(), GetFileAttributesW(), GetFileInformationByHandle(), GetFileNameFromRecord(), GetFileSecurityW(), GetFileSize(), GetFileSizeEx(), GetFileSystem(), GetFileTime(), GetFileType(), GetFullPathNameA(), GetHandleInformation(), getInterfaceEntryByIndex(), getInterfaceEntryByName(), getInterfaceIndexByName(), getInterfaceIndexTableInt(), getInterfaceInfoByIndex(), getInterfaceInfoByName(), getInterfaceInfoSet(), GetInterfaceName(), getInterfaceNameByIndex(), getInterfacePhysicalByIndex(), getInterfacePhysicalByName(), getIPAddrEntryForIf(), GetKeyName(), GetKeySam(), GetLargestConsoleWindowSize(), GetLogicalDrives(), GetLogicalProcessorInformation(), GetLongPathNameA(), GetMailslotInfo(), GetMappedFileNameW(), GetModuleFileNameA(), GetModuleHandleForUnicodeString(), GetNamedPipeHandleStateA(), GetNamedPipeHandleStateW(), GetNamedPipeInfo(), GetNativeSystemInfo(), GetNextClusterExtend(), GetNextVDMCommand(), GetNfsVolumeData(), GetNlsSectionName(), GetNtfsFileRecord(), getNthInterfaceEntity(), getNthIpEntity(), GetNTObjectSymbolicLinkTarget(), GetNumaAvailableMemoryNode(), GetNumaHighestNodeNumber(), GetNumaNodeProcessorMask(), GetNumaProcessorNode(), getNumArpEntries(), GetNumberOfConsoleFonts(), GetNumberOfConsoleInputEvents(), GetNumberOfConsoleMouseButtons(), GetNumberOfEventLogRecords(), getNumInterfacesInt(), getNumRoutes(), GetOldestEventLogRecord(), GetOverlappedResult(), GetPasswordAge(), GetPerformanceInfo(), GetPriorityClass(), GetPrivateObjectSecurity(), GetProcAddress(), GetProcessAffinityMask(), GetProcessHandleCount(), GetProcessId(), GetProcessIdOfThread(), GetProcessImageFileNameA(), GetProcessImageFileNameW(), GetProcessIoCounters(), GetProcessMemoryInfo(), GetProcessorInformation(), GetProcessPriorityBoost(), GetProcessShutdownParameters(), GetProcessTimes(), GetProcessVersion(), GetProcessWorkingSetSizeEx(), GetPwrCapabilities(), GetQueuedCompletionStatus(), GetRegIntFromID(), GetRegistryValueBuffer(), GetRemoteDatabaseEntry(), GetRemoteDatabaseSize(), getRouteTable(), GetSecurityDescriptorControl(), GetSecurityDescriptorDacl(), GetSecurityDescriptorGroup(), GetSecurityDescriptorOwner(), GetSecurityDescriptorSacl(), GetShortPathNameA(), GetSiteSidFromToken(), GetSocketInformation(), GetSourcePaths(), GetStandardInformationFromRecord(), GetStartupInfoA(), GetStringBitmapA(), GetSysAudioDeviceCount(), GetSysAudioDevicePnpName(), GetSystemDirectoryA(), GetSystemInfo(), GetSystemPowerStatus(), GetSystemRegistryQuota(), GetSystemTimeAdjustment(), GetSystemTimes(), GetSystemVersionString(), GetSystemWindowsDirectoryA(), GetTempFileNameA(), GetTextExtentExPointA(), GetThreadContext(), GetThreadDesktop(), GetThreadId(), GetThreadIOPendingFlag(), GetThreadPriority(), GetThreadPriorityBoost(), GetThreadSelectorEntry(), GetThreadTimes(), GetTimeouts(), GetTimeZoneInformation(), GetTListInfo(), GetTokenInformation(), CCommonFolder< CRegistryFolder, RegPidlEntry, CRegistryFolderExtractIcon >::GetUIObjectOf(), GetUsbStringDescriptor(), GetUserDacl(), GetUserObjectSecurity(), GetUserSid(), GetUserSidStringFromToken(), GetVDMCurrentDirectories(), GetVersionExA(), GetVersionSendHandler(), GetVolumeBitmap(), GetVolumeInformationW(), GetVolumeNameForVolumeMountPointW(), GetWriteWatch(), GetWsChanges(), GlobalCreateSymbolicLink(), GlobalDeleteSymbolicLink(), GRAPHICS_BUFFER_Initialize(), GreenQueryBusRelations(), GspFindThread(), GuiApplyUserSettings(), GuiConsoleInputThread(), GuiConsoleShowConsoleProperties(), GuiInit(), HackSecureVirtualMemory(), HalAcpiGetTable(), HalpAcpiTableCacheInit(), HalpAddDevice(), HalpAdjustPCIResourceList(), HalpAssignDrive(), HalpDmaAllocateChildAdapter(), HalpDriverEntry(), HalpGetChipHacks(), HalpGetFullGeometry(), HalpGetNMICrashFlag(), HalpInitializePciBus(), HalpMarkAcpiHal(), HalpMarkChipsetDecode(), HalpQueryAcpiResourceRequirements(), HalpQueryPciRegistryInfo(), HalpQueryResources(), HalpReportDetectedDevices(), HalpReportSerialNumber(), HalpSetupAcpiPhase0(), HalpXboxDeviceHasXboxPartitioning(), HalpXboxExamineMBR(), HalpXboxIoReadPartitionTable(), HalpXboxIoSetPartitionInformation(), HalpXboxIoWritePartitionTable(), HalpXboxReadSector(), HandleCancelRemoveDevice(), HandleCancelStopDevice(), CHubController::HandleClassEndpoint(), CHubController::HandleClassInterface(), CHubController::HandleClassOther(), CHCDController::HandleDeviceControl(), HandleDeviceQueryPower(), HandleDeviceSetPower(), CHubController::HandleGetDescriptorFromInterface(), CPortPinWaveRT::HandleKsProperty(), CPortPinWavePci::HandleKsStream(), HandleLogoff(), HandleNecessaryPropertyInstances(), CHCDController::HandlePnp(), CHubController::HandlePnp(), CMiniportDMusUARTStream::HandlePortParams(), HandlePropertyInstances(), HandleQueryCapabilities(), CHubController::HandleQueryInterface(), HandleReadIrp(), HandleRemoveDevice(), CHubController::HandleSelectConfiguration(), HandleStartDevice(), HandleSurpriseRemoval(), CHubController::HandleSyncResetAndClearStall(), CHubController::HandleVendorDevice(), hasArp(), HDA_AddDevice(), HDA_FDOStartDevice(), HDA_InitCodec(), HdlspDispatch(), Heap32First(), Heap32ListFirst(), Heap32ListNext(), Heap32Next(), HeapExtend(), HeapQueryInformation(), HeapSetInformation(), HeapSummary(), HeapUsage(), HeapWalk(), Hid_DisableConfiguration(), Hid_GetDescriptor(), Hid_PnpStart(), Hid_SelectConfiguration(), HidClass_Read(), HidClassAddDevice(), HidClassFDO_DeviceRelations(), HidClassFDO_GetDescriptors(), HidClassFDO_StartDevice(), HidClassPDO_CreatePDO(), HidClassPDO_HandleQueryDeviceId(), HidClassPDO_HandleQueryHardwareId(), HidClassPDO_PnP(), HidPnp(), HidRegisterMinidriver(), HidUsb_GetReportDescriptor(), HidUsb_ReadReportCompletion(), HidUsb_ResetWorkerRoutine(), HistoryAddEntry(), HoldIoRequestsWorkerRoutine(), HvInitialize(), HvLoadHive(), HvpCreateHiveFreeCellList(), i8042BasicDetect(), i8042ChangeMode(), i8042ConnectKeyboardInterrupt(), i8042ConnectMouseInterrupt(), i8042DetectKeyboard(), i8042DetectMouse(), i8042Flush(), i8042InitializeHwHacks(), i8042KbdInterruptService(), i8042MouInitialize(), i8042MouInterruptService(), i8042Pnp(), i8042PnpStartDevice(), i8042PowerWorkItem(), i8042ReadData(), i8042ReadDataWait(), i8042SendHookWorkItem(), i8042SynchWritePort(), ICMPSendDatagram(), IdleNotificationCallback(), IdleNotificationRequestComplete(), IdleRequestWorkerRoutine(), if(), IKsAllocator_DispatchRequest(), IKsDevice_Create(), IKsDevice_fnQueryInterface(), IKsDevice_Pnp(), IKsDevice_PnpPostStart(), IKsDevice_PnpStartDevice(), IKsFilter_CopyFilterDescriptor(), IKsFilter_CreateDescriptors(), IKsFilter_DispatchClose(), IKsFilter_DispatchCreatePin(), IKsFilter_DispatchDeviceIoControl(), IKsFilter_fnAddProcessPin(), IKsFilter_fnQueryInterface(), IKsFilter_GetFilterFromIrp(), IKsFilterFactory_fnInitialize(), IKsFilterFactory_fnQueryInterface(), IKsPin_Close(), IKsPin_DispatchCreateClock(), IKsPin_DispatchKsStream(), IKsPin_fnQueryInterface(), IKsPin_PinDataFormatPropertyHandler(), IKsPin_PinMasterClock(), IKsPin_PinStatePropertyHandler(), ImgArchEfiStartBootApplication(), ImgpGetFileSize(), ImgpInitializeBootApplicationParameters(), ImgpLoadPEImage(), ImgpOpenFile(), ImpersonateAnonymousToken(), ImpersonateLoggedOnUser(), ImpersonateSelf(), ImposeSacCmdServiceStartTypePolicy(), increase_extent_refcount(), IncrementGdiHandleCount(), INF_OpenBufferedFileA(), InfoTdiSetRoute(), IniCacheLoad(), IniCacheSave(), CMiniportWaveStreamCMI::Init(), Init(), init_device(), InitApphelp(), InitAtomTable(), InitCapturePin(), InitCommandLines(), InitCsrApiPort(), InitDevice(), InitDisplayDriver(), InitExeName(), InitGdiHandleTable(), CUSBDevice::Initialize(), CHCDController::Initialize(), CHubController::Initialize(), BtrfsContextMenu::Initialize(), BtrfsVolPropSheet::Initialize(), CEnumRegKey::Initialize(), CEnumNTDirectory::Initialize(), InitializeAcl(), CUSBHardwareDevice::InitializeController(), InitializeCriticalSection(), InitializeCriticalSectionAndSpinCount(), InitializeDeviceData(), InitializeFilterWithKs(), InitializeFmIfsOnce(), InitializeGlobalData(), CMiniportDMusUART::InitializeHardware(), InitializeLibrary(), InitializeMachineInformation(), InitializeProcessForWsWatch(), InitializeProvider(), InitializeSecurityDescriptor(), InitializeSid(), InitializeSoundBlaster(), CUSBQueue::InitializeSyncSchedule(), InitLogPort(), InitMetrics(), InitNdisPools(), InitProcessCallback(), InitThreadCallback(), InitUserImpl(), InitVideo(), insert_cache_extent(), insert_chunk_fragmented(), insert_extent(), insert_prealloc_extent(), insert_sparse_extent(), insert_tree_extent(), insert_tree_extent_skinny(), insert_tree_item(), InsertAudioDevice(), InstallBuiltinAccounts(), InstallDevice(), InstallDriver(), InstallExt2BootCodeToDisk(), InstallExt2BootcodeToPartition(), InstallFat12BootCodeToFloppy(), InstallFat16BootCodeToDisk(), InstallFat16BootCodeToFile(), InstallFat32BootCodeToDisk(), InstallFat32BootCodeToFile(), InstallFatBootcodeToFloppy(), InstallFatBootcodeToPartition(), InstallMbrBootCodeToDisk(), InstallPrivileges(), InstallSubdevice(), InstantiatePins(), IntAddAtom(), IntAddConsoleAlias(), IntAddGlobalAtom(), IntAgpCommitPhysical(), IntAgpCommitVirtual(), IntAgpFreePhysical(), IntAgpFreeVirtual(), IntAgpGetInterface(), IntAgpReleasePhysical(), IntAgpReleaseVirtual(), IntAgpReservePhysical(), IntAgpReserveVirtual(), IntAgpSetRate(), IntAllocConsole(), IntAllowSetForegroundWindow(), IntAttachConsole(), IntCopyRegistryKey(), IntCopyRegistryValue(), IntCreateClass(), IntCreateNewRegistryPath(), IntCreateRegistryPath(), IntDDEGetCallback(), IntDDEPostCallback(), IntDefWindowProc(), IntDesktopObjectParse(), intEnableReactXDriver(), InternalAddAtom(), InternalDeleteAtom(), InternalFindAtom(), InternalGetAtomName(), InternalOpenDirW(), InternalWake(), IntExpungeConsoleCommandHistory(), IntFillConsoleOutputCode(), IntGdiAddFontResource(), IntGdiLoadFontsFromMemory(), IntGetAtomName(), IntGetCodePageEntry(), IntGetConsoleAlias(), IntGetConsoleAliases(), IntGetConsoleAliasesLength(), IntGetConsoleAliasExes(), IntGetConsoleAliasExesLength(), IntGetConsoleCommandHistory(), IntGetConsoleCommandHistoryLength(), IntGetConsoleInput(), IntGetConsoleKeyboardLayoutName(), IntGetConsoleTitle(), IntGetDesktopObjectHandle(), IntGetFontLocalizedName(), IntGetFullFileName(), IntGetMenuItemInfo(), IntGetWinStaForCbAccess(), IntKeyboardGetIndicatorTrans(), IntLoadFontSubstList(), IntLoadSystemFonts(), IntMapDesktopView(), IntPaintDesktop(), IntParseDesktopPath(), IntReadConsole(), IntReadConsoleOutput(), IntReadConsoleOutputCode(), IntRegisterClassAtom(), IntSafeCopyUnicodeString(), IntSafeCopyUnicodeStringTerminateNULL(), IntScrollConsoleScreenBuffer(), IntSetAconData(), IntSetClassMenuName(), IntSetConsoleNumberOfCommands(), IntSetConsoleTitle(), IntSetCursorData(), IntSetThreadDesktop(), IntTID2PTI(), IntUpdateControlKeyState(), IntUserHeapCreate(), IntValidateDesktopHandle(), IntValidateWindowStationHandle(), IntVideoPortAddDevice(), IntVideoPortCreateAdapterDeviceObject(), IntVideoPortDispatchFdoPnp(), IntVideoPortFilterResourceRequirements(), IntVideoPortFindAdapter(), IntVideoPortMapMemory(), IntVideoPortMapPhysicalMemory(), IntVideoPortSetupInterrupt(), IntVideoPortSetupTimer(), IntVideoPortUnmapMemory(), IntWriteConsole(), IntWriteConsoleInput(), IntWriteConsoleOutput(), IntWriteConsoleOutputCode(), invalidate_volumes(), InvalidateConsoleDIBits(), BtrfsContextMenu::InvokeCommand(), IoAttachDevice(), IoCompletion(), IoCreateController(), IoCreateDevice(), IoCreateStreamFileObjectEx(), IoCreateStreamFileObjectLite(), IoCreateSymbolicLink(), IoCreateUnprotectedSymbolicLink(), IoDeleteSymbolicLink(), IofCompleteRequest(), IoGetBootDiskInformation(), IoGetDeviceInterfaces(), IoGetDeviceProperty(), IoGetDmaAdapter(), IoGetRelatedTargetDevice(), IoInitSystem(), IoInvalidateDeviceState(), IoOpenDeviceInterfaceRegistryKey(), IoOpenDeviceRegistryKey(), IopActionConfigureChildServices(), IopActionInitChildServices(), IopActionInterrogateDeviceStack(), IopAssignDeviceResources(), IopAttachFilterDrivers(), IopAttachFilterDriversCallback(), IopBootLog(), IopCancelPrepareDeviceForRemoval(), IopCheckVpbMounted(), IopConnectLogPort(), IopCreateArcNames(), IopCreateArcNamesCd(), IopCreateArcNamesDisk(), IopCreateDeviceInstancePath(), IopCreateDeviceKeyPath(), IopCreateDeviceNode(), IopCreateDriver(), IopCreateEvent(), IopCreateFile(), IopCreateLogFile(), IopCreateObjectTypes(), IopCreateRegistryKeyEx(), IopCreateRootDirectories(), IopDetectResourceConflict(), IopDeviceFsIoControl(), IopDeviceStatus(), IopDoNameTransmogrify(), IopEnumerateDetectedDevices(), IopEnumerateDevice(), IopFetchConfigurationInformation(), IopFilterResourceRequirements(), IopGetDeviceDepth(), IopGetDeviceObjectPointer(), IopGetDeviceProperty(), IopGetDeviceRelations(), IopGetDriverObject(), IopGetInterfaceDeviceList(), IopGetParentIdPrefix(), IopGetRegistryValue(), IopGetRelatedDevice(), IopGetRelatedTargetDevice(), IopGetSetSecurityObject(), IopInitializeBootDrivers(), IopInitializeBuiltinDriver(), IopInitializeDevice(), IopInitializeDriverModule(), IopInitializePlugPlayServices(), IopInstallCriticalDevice(), IopIsFirmwareMapperDisabled(), IopLegacyResourceAllocation(), IopLoadServiceModule(), IopLoadUnloadDriver(), IopLogWorker(), IopMarkBootPartition(), IopMountVolume(), IopNotifyPlugPlayNotification(), IopOpenInterfaceKey(), IopOpenLinkOrRenameTarget(), IopParseDevice(), IopPrepareDeviceForRemoval(), IopQueryAttributesFile(), IopQueryBusDescription(), IopQueryCompatibleIds(), IopQueryDeviceCapabilities(), IopQueryDeviceDescription(), IopQueryHardwareIds(), IopQueryNameFile(), IopQueryRemoveChildDevices(), IopQueryRemoveDevice(), IopQueryRemoveDeviceRelations(), IopQueueTargetDeviceEvent(), IopReassignSystemRoot(), IopRemoveDevice(), IopResetDevice(), IopSaveBootLogToFile(), IopSetDeviceInstanceData(), IopSetDeviceSecurityDescriptor(), IopStartDevice(), IopStartDevice2(), IopStartRamdisk(), IopStopDevice(), IopStoreSystemPartitionInformation(), IopTraverseDeviceTreeNode(), IopUnloadDriver(), IopUpdateControlKeyWithResources(), IopUpdateResourceMap(), IopUpdateRootKey(), IopWriteLogFile(), IoQueryDeviceDescription(), IoReadDiskSignature(), IoReadPartitionTable(), IoReadPartitionTableEx(), IoRegisterDeviceInterface(), IoRegisterPlugPlayNotification(), IoReportDetectedDevice(), IoReportHalResourceUsage(), IoReportResourceForDetection(), IoReportResourceUsage(), IoReportTargetDeviceChange(), IoRequestDeviceEject(), IoSetDeviceInterfaceState(), IoSetPartitionInformationEx(), IoSetSystemPartition(), IoVerifyPartitionTable(), IoVerifyVolume(), IoVolumeDeviceToDosName(), IoWMIOpenBlock(), IoWMIQueryAllData(), IoWritePartitionTableEx(), Is64BitSystem(), is_btrfs_volume(), is_device_part_of_mounted_btrfs_raid(), is_device_removable(), is_extent_unique(), is_mounted_multi_device(), is_ssd(), is_tree_unique(), is_volume_mounted(), IsaAddDevice(), IsAcpiComputer(), IsaFdoPnp(), IsaFdoQueryDeviceRelations(), IsaFdoStartDevice(), IsaForwardIrpSynchronous(), IsaPdoPnp(), IsConsoleProcess(), IsCriticalProcess(), IsFtVolume(), isLoopback(), BtrfsIconOverlay::IsMemberOf(), IsOffline(), IsProcessInJob(), IsPwrHibernateAllowed(), IsPwrShutdownAllowed(), IsPwrSuspendAllowed(), IsRemoveAttachThread(), IsShimInfrastructureDisabled(), IsShortName_U(), IssueUniqueIdChangeNotify(), IssueUniqueIdChangeNotifyWorker(), IssueWaitWake(), IsThereAValidBootSector(), IsThisAMultiLunDevice(), IsThisASanyo(), IsTokenRestricted(), IsWow64Process(), K32CreateDBMonMutex(), KbdHid_AddDevice(), KbdHid_Create(), KbdHid_Pnp(), KbdHid_StartDevice(), KdbEnterDebuggerException(), KdbpAttachToProcess(), KdbpAttachToThread(), KdbpCliInit(), KdbpCmdBackTrace(), KdbpCmdDisassembleX(), KdbpCmdGdtLdtIdt(), KdbpCmdProc(), KdbpCmdThread(), KdbpDisableBreakPoint(), KdbpEnableBreakPoint(), KdbpOverwriteInstruction(), KdbpReadSymFile(), KdbpShouldStepOverInstruction(), KdbpStepIntoInstruction(), KdbpStepOverInstruction(), KdbpSymLoadModuleSymbols(), KdbpSymReadMem(), KdbpTrapFrameFromPrevTss(), KdbSymPrintAddress(), KdDebuggerInitialize0(), KdDisableDebuggerWithLock(), KdInitSystem(), KdpAddBreakpoint(), KdpCopyMemoryChunks(), KdpGetStateChange(), KdpInitDebugLog(), KdpLowRestoreBreakpoint(), KdpLowWriteContent(), KdPortInitializeEx(), KdpPortInitialize(), KdpReport(), KdpSendWaitContinue(), KdpStub(), KdSetOwedBreakpoints(), KeI386VdmInitialize(), KeInitializeThread(), KeQueryIntervalProfile(), KeyboardAddDevice(), KeyboardDeviceWorker(), KiDataAbortHandler(), KiInitializeBugCheck(), KiInitMachineDependent(), KiPageFaultHandler(), KiSystemServiceHandler(), KiTrap0EHandler(), KiUserModeCallout(), KMix_AddDevice(), KmtStartThread(), KoDriverInitialize(), KopAddDevice(), KopDispatchCreate(), KsAddObjectCreateItemToDeviceHeader(), KsAddObjectCreateItemToObjectHeader(), KsAllocateDeviceHeader(), KsAllocateExtraData(), KsAllocateObjectHeader(), KsCacheMedium(), KsCompletePendingRequest(), KsCopyObjectBagItems(), KsCreateBusEnumObject(), KsCreateDefaultAllocatorEx(), KsCreateDefaultClock(), KsCreateDevice(), KsDefaultDispatchPower(), KsDispatchSetSecurity(), KsecDeviceIoControl(), KsecGatherEntropyData(), KsecOpenDevice(), KsFastMethodHandler(), KsFastPropertyHandler(), KsFilterAddTopologyConnections(), KsFilterCreatePinFactory(), KsFilterFactoryUpdateCacheData(), KsGetImageNameAndResourceId(), KsiCreateObjectType(), KsInitializeDevice(), KsInitializeDriver(), KsLoadResource(), KsMapModuleName(), KsMergeAutomationTables(), KspCopyPropertySets(), KspCreate(), KspCreateDeviceAssociation(), KspCreateDeviceReference(), KspCreateFilter(), KspCreateFilterFactory(), KspCreatePDO(), KspCreatePin(), KspEnableBusDeviceInterface(), KspEnableEvent(), KspEnumerateBusRegistryKeys(), KsPinDataIntersection(), KsPinGetLeadingEdgeStreamPointer(), KspInstallBusEnumInterface(), KspInstallInterface(), KspMergePropertySet(), KspMethodHandlerWithAllocator(), KspPinPropertyHandler(), KspPropertyHandler(), KspReadMediaCategory(), KspRegisterDeviceAssociation(), KspRegisterDeviceInterfaces(), KsProbeStreamIrp(), KspScanBus(), KspSetDeviceInterfacesState(), KspStartBusDevice(), KspValidateConnectRequest(), KsReadFile(), KsRegisterCountedWorker(), KsRegisterFilterWithNoKSPins(), KsServiceBusEnumCreateRequest(), KsServiceBusEnumPnpRequest(), KsSetInformationFile(), KsStreamPointerAdvanceOffsets(), KsStreamPointerClone(), KsTopologyPropertyHandler(), KsValidateAllocatorCreateRequest(), KsValidateClockCreateRequest(), KsValidateTopologyNodeCreateRequest(), KsWriteFile(), LANTransmitInternal(), LDEVOBJ_bLoadImage(), LDEVOBJ_vUnloadImage(), LdrAddRefDll(), LdrDisableThreadCalloutsForDll(), LdrEnumerateLoadedModules(), LdrFindResource_U(), LdrFindResourceDirectory_U(), LdrGetDllHandleEx(), LdrLoadDll(), LdrOpenImageFileOptionsKey(), LdrpCheckForKnownDll(), LdrpCheckForLoadedDll(), LdrpCreateDllSection(), LdrPEFixupImports(), LdrpGetProcedureAddress(), LdrpGetShimEngineFunction(), LdrpHandleNewFormatImportDescriptors(), LdrpHandleOldFormatImportDescriptors(), LdrpHandleOneNewFormatImportDescriptor(), LdrpHandleOneOldFormatImportDescriptor(), LdrpInit(), LdrpInitializeExecutionOptions(), LdrpInitializeProcess(), LdrpInitializeThread(), LdrpLoadDll(), LdrpLoadImportModule(), LdrpLoadShimEngine(), LdrpMapDll(), LdrpResolveFullName(), LdrProcessDriverModule(), LdrpRunInitializeRoutines(), LdrpSearchPath(), LdrpSetProtection(), LdrpSnapIAT(), LdrpSnapThunk(), LdrpUpdateLoadCount3(), LdrpWalkImportDescriptor(), LdrQueryImageFileExecutionOptionsEx(), LdrQueryImageFileKeyOption(), LdrUnloadDll(), LdrVerifyImageMatchesChecksum(), lie_about_fs_type(), ListDirectory(), ListenComplete(), load_cache_chunk(), load_chunk_root(), load_csum(), load_dir_children(), load_free_space_cache(), load_stored_free_space_cache(), load_stored_free_space_tree(), load_tree(), CMiniportWaveCMI::loadChannelConfigFromRegistry(), LoadGlobalSettings(), LoadLibraryExW(), LoadLogFile(), LoadModule(), LoadOle32Export(), LoadProvider(), lock_volume(), LockFile(), LockFileEx(), LockHandles(), log_file_checksum_error(), log_file_checksum_error_shared(), log_tree_checksum_error_shared(), log_unrecoverable_error(), LogfBackupFile(), LogfClearFile(), LogfCreate(), LogfpSetFileSize(), LogfReadEvents(), LogfReportEvent(), LogMessage(), LogonUserExW(), look_for_balance_item(), look_for_collision(), look_for_roots(), LookupAccountNameW(), LookupAccountSidW(), LookupPrivilegeDisplayNameW(), LookupPrivilegeNameW(), LookupPrivilegeValueW(), LookupSidInformation(), LoopTransmit(), LpcpCopyRequestData(), LpcpCreatePort(), LsaApLogonUser(), LsaCallAuthenticationPackage(), LsaConnectUntrusted(), LsaDeregisterLogonProcess(), LsaEnumerateLogonSessions(), LsaGetLogonSessionData(), LsaIOpenPolicyTrusted(), LsaLogonUser(), LsaLookupAuthenticationPackage(), LsapAddAuthPackage(), LsapAddSamGroups(), LsapCallAuthenticationPackage(), LsapCheckLogonProcess(), LsapCopyLocalGroups(), LsapCreateAccountSd(), LsapCreateDatabaseKeys(), LsapCreateDatabaseObjects(), LsapCreateDbObject(), LsapCreateLogonSession(), LsapCreatePolicySd(), LsapCreateSecretSd(), LsapDeleteDbObject(), LsapDeleteLogonSession(), LsapEnumLogonSessions(), LsapGetDomainInfo(), LsapGetLogonSessionData(), LsapGetObjectAttribute(), LsapHandlePortConnection(), LsapInitDatabase(), LsapInitLsa(), LsapIsDatabaseInstalled(), LsapLogonUser(), LsapLookupAccountDomainSids(), LsapLookupAccountNames(), LsapLookupBuiltinDomainSids(), LsapLookupBuiltinNames(), LsapLookupFullyQualifiedWellKnownNames(), LsapLookupIsolatedAccountNames(), LsapLookupIsolatedBuiltinNames(), LsapLookupIsolatedNames(), LsapLookupNames(), LsapLookupSids(), LsapLookupWellKnownSids(), LsapOpenDbObject(), LsapOpenLsaPort(), LsapRegDeleteSubKey(), LsapRegEnumerateSubKey(), LsapRegEnumerateValue(), LsapRegQueryKeyInfo(), LsapRegQueryValue(), LsapRmCreateLogonSession(), LsapRmDeleteLogonSession(), LsapRmInitializeServer(), LsapRmServerThread(), LsapSetObjectAttribute(), LsapSetPrivileges(), LsapSplitNames(), LsaQuerySecret(), LsaQuerySecurityObject(), LsarAddAccountRights(), LsarAddPrivilegesToAccount(), LsarCreateAccount(), LsarCreateSecret(), LsarDeleteObject(), LsaRegisterLogonProcess(), LsarEnumerateAccountRights(), LsarEnumerateAccounts(), LsarEnumerateAccountsWithUserRight(), LsarEnumeratePrivileges(), LsarEnumeratePrivilegesAccount(), LsaRetrievePrivateData(), LsarGetQuotasForAccount(), LsarGetSystemAccessAccount(), LsarLookupNames(), LsarLookupNames2(), LsarLookupPrivilegeDisplayName(), LsarLookupPrivilegeName(), LsarLookupPrivilegeValue(), LsarLookupSids(), LsarOpenAccount(), LsarOpenPolicy(), LsarOpenSecret(), LsarpCreateAccount(), LsarpEnumeratePrivileges(), LsarpOpenAccount(), LsarQueryAccountDomain(), LsarQueryAuditEvents(), LsarQueryAuditFull(), LsarQueryAuditLog(), LsarQueryDefaultQuota(), LsarQueryDnsDomain(), LsarQueryInformationPolicy(), LsarQueryModification(), LsarQueryPrimaryDomain(), LsarQuerySecret(), LsarQuerySecurityObject(), LsarQueryServerRole(), LsarRemoveAccountRights(), LsarRemovePrivilegesFromAccount(), LsarRetrievePrivateData(), LsarSetAccountDomain(), LsarSetAuditFull(), LsarSetInformationPolicy(), LsarSetPrimaryDomain(), LsarSetQuotasForAccount(), LsarSetSecret(), LsarSetSecurityObject(), LsarSetSystemAccessAccount(), LsarStorePrivateData(), LsaSetSecurityObject(), lzo_decompress(), lzo_write_compressed_bit(), main(), make_file_orphan(), MakeAbsoluteSD(), MakeAbsoluteSD2(), MakeReadOnly(), MakeSelfRelativeSD(), MakeSocketIntoConnection(), MapDefaultKey(), MapFile(), MapGlobalUserHeap(), MapUserPhysicalPages(), MapUserPhysicalPagesScatter(), MapViewOfFileEx(), mbstowcs(), MemCleanup(), MemInitialize(), MiCacheEvictPages(), MiCallDllUnloadAndUnloadDll(), MiCheckForUserStackOverflow(), MiCowCacheSectionPage(), MiCreateMemoryEvent(), MiCreatePebOrTeb(), MiDeletePte(), MiDispatchFault(), MiGetOnePage(), MiGetPageTableForProcess(), MiInitBalancerThread(), MiInitializeMemoryEvents(), MiInitializePfn(), MiInitializePfnAndMakePteValid(), MiInitializeSessionPool(), MiInsertNode(), MiLoadImageSection(), MiLoadUserSymbols(), MiLockVirtualMemory(), MiMakeSystemAddressValid(), MiMakeSystemAddressValidPfn(), MiMapViewInSystemSpace(), MiMapViewOfDataSection(), MiQueryMemoryBasicInformation(), MiQueryMemorySectionName(), MiReadFilePage(), MiReadPage(), MiReloadBootLoadedDrivers(), MiResolveImageReferences(), MiResolvePageFileFault(), MiResolveProtoPteFault(), MiRosCleanupMemoryArea(), MiRosUnmapViewOfSection(), MiSessionCreateInternal(), MiSimpleRead(), MiSnapThunk(), MiSwapInPage(), MiTrimMemoryConsumer(), MiUnmapViewOfSection(), mknod(), MmAccessFaultSectionView(), MmAllocateSpecialPool(), MmArchInitialize(), MmArmAccessFault(), MmBapFreeBlockAllocatorTableEntry(), MmCheckSystemImage(), MmCreateArm3Section(), MmCreateCacheSection(), MmCreateDataFileSection(), MmCreateImageSection(), MmCreatePageFileSection(), MmCreatePeb(), MmCreatePhysicalMemorySection(), MmCreateProcessAddressSpace(), MmCreateSection(), MmCreateTeb(), MmDefInitializeTranslation(), MmDefpMapPhysicalAddress(), MmExtendCacheSection(), MmFinalizeSectionPageOut(), MmFwGetMemoryMap(), MmGetFileNameForAddress(), MmGetFileNameForFileObject(), MmGetPageTableForProcess(), MmGetPageTableForProcessForPAE(), MmGetSystemRoutineAddress(), MmHaInitialize(), MmHapHeapAllocatorExtend(), MmInitializeProcessAddressSpace(), MmInitMpwThread(), MmLoadSystemImage(), MmMapPhysicalAddress(), MmMapViewOfSection(), MmMapViewOfSegment(), MmMdCopyList(), MmMdRemoveRegionFromMdlEx(), MmMpwThreadMain(), MmNotPresentFaultCachePage(), MmNotPresentFaultCacheSectionInner(), MmNotPresentFaultSectionView(), MmPaAllocatePages(), MmPageOutPhysicalAddress(), MmPageOutSectionView(), MmPaInitialize(), MmPapAllocatePagesInRange(), MmPapAllocatePhysicalPagesInRange(), MmPapAllocateRegionFromMdl(), MmPapFreePhysicalPages(), MmPapPageAllocatorExtend(), MmPaReleaseSelfMapPages(), MmPaReserveSelfMapPages(), MmPaTruncateMemory(), MmpPageOutPhysicalAddress(), MmProbeAndLockPages(), MmpSectionAccessFaultInner(), MmSelectMappingAddress(), MmSessionCreate(), MmTrimUserMemory(), MmTrInitialize(), MmUnloadSystemImage(), MmUnsharePageEntrySectionSegment(), MmWritePageSectionView(), Mmx86InitializeMemoryMap(), Mmx86MapInitStructure(), Mmx86pMapMemoryRegions(), Module32FirstW(), Module32NextW(), MouHid_AddDevice(), MouHid_Create(), MouHid_Pnp(), MouHid_StartDevice(), mount_vol(), mountmgr_add_drive_letter(), mountmgr_process_drive(), MountMgrAssignDriveLetters(), MountMgrCheckUnprocessedVolumes(), MountMgrCreatePointWorker(), MountMgrDeletePoints(), MountMgrDeletePointsDbOnly(), MountMgrDeviceControl(), MountMgrKeepLinksWhenOffline(), MountMgrMountedDeviceArrival(), MountMgrNextDriveLetter(), MountMgrNextDriveLetterWorker(), MountMgrNotifyNameChange(), MountMgrQueryDosVolumePath(), MountMgrQueryDosVolumePaths(), MountMgrQuerySymbolicLink(), MountMgrQueryVolumePaths(), MountmgrReadNoAutoMount(), MountMgrUniqueIdChangeRoutine(), MountMgrValidateBackPointer(), MountMgrVolumeMountPointChanged(), MountMgrVolumeMountPointCreated(), MountMgrVolumeMountPointDeleted(), move_across_subvols(), MoveFileWithProgressW(), MsfsQueryInformation(), MsgiUnicodeToAnsiMessage(), MsvpChangePassword(), MsvpCheckPassword(), MupDereferenceMasterIoContext(), MupGetProviderInformation(), MuppIsDfsEnabled(), my_open(), MyDeleteFile(), MyLogonUser(), NATIVE_FormatPartition(), ndisBindMiniportsToProtocol(), NdisCompleteBindAdapter(), NdisCompleteUnbindAdapter(), NdisIAddDevice(), NdisIDispatchPnp(), NdisIPnPStartDevice(), NdisMAllocateMapRegisters(), NdisMRegisterDevice(), NdisMRegisterInterrupt(), NdisMRegisterMiniport(), NdisMSetupDmaTransfer(), NdisOpenConfiguration(), NdisOpenFile(), NdisRegisterProtocol(), NdisWriteConfiguration(), NetEnumerateTrustedDomains(), NetLocalGroupAdd(), NetLocalGroupAddMembers(), NetLocalGroupDel(), NetLocalGroupDelMembers(), NetLocalGroupEnum(), NetLocalGroupGetInfo(), NetLocalGroupGetMembers(), NetLocalGroupSetInfo(), NetUserAdd(), NetUserChangePassword(), NetUserDel(), NetUserEnum(), NetUserGetGroups(), NetUserGetInfo(), NetUserGetLocalGroups(), NetUserModalsGet(), NetUserSetInfo(), NewDispatchObject(), CMiniportWaveCMI::newDMAChannel(), NewIUnregisterSubdevice(), NewMiniportDMusUART(), NewPortDMus(), NewPortTopology(), NewPortWaveCyclic(), NewPortWavePci(), NewPortWaveRT(), NewPortWaveRTStream(), nfs41_DeleteConnection(), NlsInit(), NotificationCallback(), notify_change_directory(), NotifyChangeEventLog(), NpAddDataQueueEntry(), NpCommonRead(), NpCommonSetSecurityInfo(), NpControlPipe(), NpCreateCcb(), NpCreateClientEnd(), NpCreateExistingNamedPipe(), NpCreateNewNamedPipe(), NpCreatePipeEx(), NpFsdCreate(), NpFsdCreateNamedPipe(), NpGetClientSecurityContext(), NpInitializeAliases(), NpInitializeSecurity(), NpOpenNamedPipeRootDirectory(), NpOpenPipeEx(), NpQueryPipe_(), NpReadPipe(), NpSetListeningPipeState(), NpTransceive(), NpTranslateAlias(), NpWaitForNamedPipe(), NpWaitPipe(), NpWriteDataQueue(), NpWritePipe(), NtAcceptConnectPort(), NtAccessCheck(), NtAddAtom(), NtAdjustPrivilegesToken(), NtAlertResumeThread(), NtAlertThread(), NtAllocateUuids(), NtAllocateVirtualMemory(), NtAssignProcessToJobObject(), NtCancelIoFile(), NtCancelTimer(), NtClearEvent(), NtCloseObjectAuditAlarm(), NtCompareTokens(), NtCompleteConnectPort(), NtContinue(), NtCreateDebugObject(), NtCreateDirectoryObject(), NtCreateEvent(), NtCreateEventPair(), NtCreateIoCompletion(), NtCreateJobObject(), NtCreateKey(), NtCreateMutant(), NtCreatePagingFile(), NtCreateProfile(), NtCreateSection(), NtCreateSemaphore(), NtCreateSymbolicLinkObject(), NtCreateTimer(), NtCreateToken(), NtDebugActiveProcess(), NtDebugContinue(), NtDeleteKey(), NtDeleteValueKey(), NtDuplicateObject(), NtDuplicateToken(), NtEnumerateKey(), NtEnumerateValueKey(), NtExtendSection(), NtFindAtom(), NtFlushBuffersFile(), NtFlushInstructionCache(), NtFlushKey(), NtFlushVirtualMemory(), NtFreeVirtualMemory(), NtfsCreateFile(), NtfsDirFindFile(), NtfsDumpFileAttributes(), NtfsFindFileAt(), NtfsFindMftRecord(), NtfsGetFCBForFile(), NtfsGetFileSize(), NtfsGetFreeClusters(), NtfsGetFsSizeInformation(), NtfsGetSteamInformation(), NtfsGetVolumeData(), NtfsHasFileSystem(), NtfsLookupFileAt(), NtfsMakeRootFCB(), NtfsMoonWalkID(), NtfsMountVolume(), NtfsOpenFile(), NtfsOpenFileById(), NtfsQueryDirectory(), NtfsQueryInformation(), NtfsQueryVolumeInformation(), NtfsRead(), NtfsReadDisk(), NtfsReadFCBAttribute(), NtfsReadFile(), NtGdiAngleArc(), NtGdiArcInternal(), NtGdiCreateColorSpace(), NtGdiCreateDIBitmapInternal(), NtGdiCreateDIBSection(), NtGdiExtCreatePen(), NtGdiExtCreateRegion(), NtGdiExtEscape(), NtGdiExtTextOutW(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), NtGdiGetDCDword(), NtGdiGetDeviceGammaRamp(), NtGdiGetFontData(), NtGdiGetFontFamilyInfo(), NtGdiGetFontResourceInfoInternalW(), NtGdiGetFontUnicodeRanges(), NtGdiGetGlyphIndicesW(), NtGdiGetGlyphOutline(), NtGdiGetKerningPairs(), NtGdiGetOutlineTextMetricsInternalW(), NtGdiGetRasterizerCaps(), NtGdiGetRealizationInfo(), NtGdiGetRgnBox(), NtGdiGetTextCharsetInfo(), NtGdiGetTextExtentExW(), NtGdiGetTextFaceW(), NtGdiHfontCreate(), NtGdiOffsetViewportOrgEx(), NtGdiOffsetWindowOrgEx(), NtGdiPolyPatBlt(), NtGdiPolyPolyDraw(), NtGdiRectVisible(), NtGdiScaleWindowExtEx(), NtGdiSetDeviceGammaRamp(), NtGdiSetViewportOrgEx(), NtGdiSetWindowOrgEx(), NtGetContextThread(), NtGetPlugPlayEvent(), NtGetWriteWatch(), NtImpersonateClientOfPort(), NtImpersonateThread(), NtIsProcessInJob(), NtLoadDriver(), NtLockFile(), NtLockVirtualMemory(), NtMakePermanentObject(), NtMapViewOfSection(), NtNotifyChangeDirectoryFile(), NtOpenDirectoryObject(), NtOpenEvent(), NtOpenEventPair(), NtOpenIoCompletion(), NtOpenJobObject(), NtOpenKey(), NtOpenMutant(), NtOpenObjectAuditAlarm(), NtOpenProcess(), NtOpenProcessTokenEx(), NtOpenSemaphore(), NtOpenThread(), NtOpenThreadTokenEx(), NtOpenTimer(), NtPrivilegeCheck(), NtPrivilegedServiceAuditAlarm(), NtProcessStartup(), NtProtectVirtualMemory(), NtPulseEvent(), NtQueryDefaultUILanguage(), NtQueryDirectoryFile(), NtQueryDirectoryObject(), NtQueryEvent(), NtQueryInformationAtom(), NtQueryInformationFile(), NtQueryInformationProcess(), NtQueryInformationThread(), NtQueryInformationToken(), NtQueryIoCompletion(), NtQueryKey(), NtQueryMutant(), NtQueryObject(), NtQueryOpenSubKeys(), NtQuerySection(), NtQuerySecurityObject(), NtQuerySemaphore(), NtQuerySymbolicLinkObject(), NtQuerySystemEnvironmentValue(), NtQueryTimer(), NtQueryValueKey(), NtQueryVirtualMemory(), NtQueryVolumeInformationFile(), NtQueueApcThread(), NtRaiseException(), NtReadFile(), NtReadVirtualMemory(), NtRegisterThreadTerminatePort(), NtReleaseMutant(), NtReleaseSemaphore(), NtRemoveIoCompletion(), NtRemoveProcessDebug(), NtReplyPort(), NtReplyWaitReceivePortEx(), NtRequestPort(), NtRequestWaitReplyPort(), NtResetEvent(), NtResetWriteWatch(), NtResumeProcess(), NtResumeThread(), NtSaveKeyEx(), NtSaveMergedKeys(), NtSecureConnectPort(), NtSetContextThread(), NtSetDefaultHardErrorPort(), NtSetDefaultLocale(), NtSetDefaultUILanguage(), NtSetEvent(), NtSetEventBoostPriority(), NtSetHighEventPair(), NtSetHighWaitLowEventPair(), NtSetInformationDebugObject(), NtSetInformationFile(), NtSetInformationObject(), NtSetInformationProcess(), NtSetInformationThread(), NtSetInformationToken(), NtSetIoCompletion(), NtSetLowEventPair(), NtSetLowWaitHighEventPair(), NtSetSecurityObject(), NtSetSystemEnvironmentValue(), NtSetSystemPowerState(), NtSetTimer(), NtSetValueKey(), NtSetVolumeInformationFile(), NtSignalAndWaitForSingleObject(), NtStartProfile(), NtStopProfile(), NtSuspendProcess(), NtSuspendThread(), NtTerminateJobObject(), NtTerminateProcess(), NtTerminateThread(), NtUnloadKey2(), NtUnlockFile(), NtUnlockVirtualMemory(), NtUnmapViewOfSection(), NtUserAttachThreadInput(), NtUserBeginPaint(), NtUserBuildHwndList(), NtUserBuildPropList(), NtUserCloseDesktop(), NtUserCloseWindowStation(), NtUserConsoleControl(), NtUserCreateAcceleratorTable(), NtUserCreateDesktop(), NtUserCreateWindowEx(), NtUserCreateWindowStation(), NtUserEndPaint(), NtUserEnumDisplayDevices(), NtUserEnumDisplayMonitors(), NtUserEnumDisplaySettings(), NtUserFindExistingCursorIcon(), NtUserGetCaretPos(), NtUserGetClassInfo(), NtUserGetClipCursor(), NtUserGetCursorFrameInfo(), NtUserGetCursorInfo(), NtUserGetGuiResources(), NtUserGetGUIThreadInfo(), NtUserGetIconSize(), NtUserGetMenuBarInfo(), NtUserGetMenuItemRect(), NtUserGetMonitorInfo(), NtUserGetObjectInformation(), NtUserGetScrollBarInfo(), NtUserGetThreadDesktop(), NtUserGetUpdateRect(), NtUserGetWindowPlacement(), NtUserGetWOWClass(), NtUserInitializeClientPfnArrays(), NtUserInternalGetWindowText(), NtUserLockWindowStation(), NtUserMonitorFromRect(), NtUserOpenDesktop(), NtUserOpenInputDesktop(), NtUserOpenWindowStation(), NtUserProcessConnect(), NtUserQueryInformationThread(), NtUserRedrawWindow(), NtUserRegisterUserApiHook(), NtUserRegisterWindowMessage(), NtUserResolveDesktop(), NtUserScrollDC(), NtUserScrollWindowEx(), NtUserSendInput(), NtUserSetCursorIconData(), NtUserSetInformationThread(), NtUserSetScrollBarInfo(), NtUserSetScrollInfo(), NtUserSetShellWindowEx(), NtUserSetWindowsHookEx(), NtUserSetWindowStationUser(), NtUserSetWinEventHook(), NtUserSwitchDesktop(), NtUserThunkedMenuItemInfo(), NtUserUnlockWindowStation(), NtUserUnregisterClass(), NtUserWaitForInputIdle(), NtWaitForDebugEvent(), NtWaitForSingleObject(), NtWaitHighEventPair(), NtWaitLowEventPair(), NtWriteFile(), NtWriteVirtualMemory(), ObAssignObjectSecurityDescriptor(), ObAssignSecurity(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObCreateObject(), ObCreateObjectType(), ObDuplicateObject(), ObGetObjectSecurity(), ObInitSystem(), ObInsertObject(), ObjectCloseAuditAlarmA(), ObjectCloseAuditAlarmW(), ObjectDeleteAuditAlarmA(), ObjectDeleteAuditAlarmW(), ObjectOpenAuditAlarmA(), ObjectOpenAuditAlarmW(), ObjectPrivilegeAuditAlarmA(), ObjectPrivilegeAuditAlarmW(), ObOpenObjectByName(), ObOpenObjectByPointer(), ObpCaptureObjectCreateInformation(), ObpCheckObjectReference(), ObpCheckTraverseAccess(), ObpCreateDeviceMap(), ObpCreateDosDevicesDirectory(), ObpCreateGlobalDosDevicesSD(), ObpCreateHandle(), ObpCreateKernelObjectsSD(), ObpCreateSymbolicLinkName(), ObpCreateUnnamedHandle(), ObpDuplicateHandleCallback(), ObpIncrementHandleCount(), ObpIncrementUnnamedHandleCount(), ObpLookupObjectName(), ObpParseSymbolicLink(), ObReferenceObjectByName(), ObSetSecurityDescriptorInfo(), ObtCreateObjectTypes(), OffsetToCluster(), OnlineMountedVolumes(), open_fcb(), open_fcb_stream(), open_file(), open_fileref(), open_fileref_by_inode(), open_fileref_child(), OpenAccountDomain(), OpenAliasByName(), OpenBackupEventLogA(), OpenBackupEventLogW(), OpenBuiltinDomain(), OpenClassesRootKey(), OpenConsoleW(), OpenDevice(), OpenDeviceReadWrite(), OpenDirectory(), OpenDirectoryByHandleOrPath(), OpenEventLogA(), OpenEventLogW(), OpenFile(), OpenFileMappingW(), OpenInputDevice(), OpenKey(), OpenLogonLsaHandle(), OpenLSAPolicyHandle(), OpenMupFileSystem(), OpenProcess(), OpenProcessToken(), OpenRegistryHandlesFromSymbolicLink(), OpenRemoteDatabase(), OpenSubkey(), openTcpFile(), OpenThread(), OpenUserByName(), OpenUserRegistryPathPerProcessId(), OpenWindowStationW(), OutputDebugStringW(), PacketSocketRecvComplete(), PageFileBehaviorChecks(), parse_manifest(), partial_stripe_read(), PatchKeyboardDriver(), PauseBalanceW(), BtrfsScrub::PauseScrub(), PcAddAdapterDevice(), PcCreateItemDispatch(), PcCreatePinDispatch(), PciAcpiFindRsdt(), PciAddDevice(), PciAssignSlotResources(), PciBeginStateTransition(), PciBuildDefaultExclusionLists(), PciBuildHackTable(), PciDispatchIrp(), PciFdoIrpQueryInterface(), PciFdoIrpStartDevice(), PciGetAcpiTable(), PciGetBiosConfig(), PciGetConfigHandlers(), PciGetDescriptionMessage(), PciGetDeviceProperty(), PciGetHotPlugParameters(), PciGetIrqRoutingTableFromRegistry(), PciGetRegistryValue(), PciIdeChannelEnabled(), PciIdeXAddDevice(), PciIdeXFdoPnpDispatch(), PciIdeXFdoQueryBusRelations(), PciIdeXFdoStartDevice(), PciIdeXInitialize(), PciIdeXPdoQueryResourceRequirements(), PciIdeXSetBusData(), PciInitializeArbiters(), PciIsDatacenter(), PciIsSlotPresentInParentMethod(), PciIsSuiteVersion(), PciOpenKey(), PciPdoCreate(), PciPdoIrpStartDevice(), PciQueryCapabilities(), PciQueryDeviceRelations(), PciQueryForPciBusInterface(), PciQueryId(), PciQueryInterface(), PciQueryPowerCapabilities(), PciQueryRequirements(), PciSaveBiosConfig(), PciScanBus(), PciSetPowerManagedDevicePowerState(), PciVerifierInit(), PcmciaAddDevice(), PcNewDmaChannel(), PcNewInterruptSync(), PcNewRegistryKey(), PcNewResourceList(), PcNewServiceGroup(), PcRegisterAdapterPowerManagement(), PcRegisterSubdevice(), PcRequestNewPowerState(), PDO_HandleInternalDeviceControl(), PdoQueryInterface(), PeekNamedPipe(), PeFmtCreateSection(), PerfDataGetCommandLine(), PerfDataInitialize(), PerfDataRefresh(), PerformSampleRateConversion(), Phase1InitializationDiscard(), PICE_close(), PICE_len(), PICE_open(), PICE_read(), PiceSendIoctl(), PiGetDeviceRegistryProperty(), PiInitCacheGroupInformation(), Pin_fnDeviceIoControl(), Pin_fnFastWrite(), Pin_fnWrite(), PinCaptureProcess(), PinPropertyHandler(), PinRenderProcess(), PinSetStateWorkerRoutine(), PinWaveCyclicDataFormat(), PinWaveCyclicState(), PinWavePciDataFormat(), PinWavePciState(), PipCallDriverAddDevice(), PipGetDriverTagPriority(), PlayLogonSoundThread(), pnp_cancel_remove_device(), PNP_GetDepth(), PNP_GetDeviceList(), PNP_GetDeviceListSize(), PNP_GetDeviceRegProp(), PNP_GetDeviceStatus(), PNP_GetInterfaceDeviceList(), PNP_GetInterfaceDeviceListSize(), PNP_GetRelatedDeviceInstance(), pnp_query_remove_device(), pnp_remove_device(), PnpDeviceObjectToDeviceInstance(), PnpEventThread(), PnpRootAddDevice(), PnpRootCreateDevice(), PnpRootDriverEntry(), PnpRootFdoPnpControl(), PnpRootQueryDeviceRelations(), PopAddRemoveSysCapsCallback(), PopFlushVolumes(), PopFlushVolumeWorker(), PopQuerySystemPowerStateTraverse(), PopReadShutdownPolicy(), PopSetSystemPowerState(), PopSetSystemPowerStateTraverse(), BtrfsDeviceAdd::populate_device_tree(), PoRequestShutdownEvent(), PortClsPnp(), PortClsPower(), PortThreadRoutine(), PostQueuedCompletionStatus(), PPBridge_SaveCurrentSettings(), PpInitGetGroupOrderIndex(), PreloadGlobalMessageTable(), prepare_raid0_write(), prepare_raid10_write(), prepare_raid5_write(), prepare_raid6_write(), PrepareARPPacket(), PrepareCopyPageInfFile(), PrepareICMPPacket(), CMiniportWaveStreamCMI::prepareStream(), print_error(), PrintProcess(), PrintProcessList(), PrintThreads(), PrivilegeCheck(), PrivilegedServiceAuditAlarmA(), PrivilegedServiceAuditAlarmW(), PrivMoveFileIdentityW(), probe_volume(), ProbeIsaPnpBus(), Process32FirstW(), Process32NextW(), ProcessDisplayRegistry(), ProcessIdToHandle(), ProcessIdToSessionId(), ProcessLocaleRegistry(), ProcessorAddDevice(), ProcessorPnp(), ProcessorSetFriendlyName(), ProcessPlayingNotes(), ProcessPortMessage(), ProcessResources(), CMiniportDMusUART::ProcessResources(), PropertyHandler_Level(), PropertyHandler_OnOff(), PropertyHandler_Synth(), ProSend(), ProtectBootIni(), ProtectHandle(), PsaCaptureProcessesAndThreads(), PsaCaptureSystemModules(), PsaEnumerateProcessesAndThreads(), PsaEnumerateProcessModules(), PsaEnumerateSystemModules(), PsaiMalloc(), PsAssignImpersonationToken(), PsaWalkProcessesAndThreads(), PsaWalkSystemModules(), PsChargePoolQuota(), PsConvertToGuiThread(), PsLocateSystemDll(), PsOpenTokenOfProcess(), PspAssignPrimaryToken(), PspCreateProcess(), PspCreateThread(), PspInitializeProcessSecurity(), PspInitializeSystemDll(), PspInitPhase0(), PspInitPhase1(), PspLookupKernelUserEntryPoints(), PspQueryDescriptorThread(), PspSetPrimaryToken(), PulseEvent(), PwrCompletionFunction(), QSI_DEF(), query_balance(), query_dir_item(), query_directory(), query_filesystems(), QueryActCtxW(), QueryDeviceInformation(), QueryDosDeviceW(), QueryFileInfo(), QueryFlag(), QueryInformationJobObject(), QueryKeyValue(), QueryMemoryResourceNotification(), QueryPathCompletionRoutine(), QueryPerformanceCounter(), QueryPerformanceFrequency(), QueryPointsFromMemory(), QueryPointsFromSymbolicLinkName(), QuerySuggestedLinkName(), QuerySymbolicLinkNamesFromStorage(), QueryUniqueIdFromMaster(), QueryVolumeName(), QueryWorkingSet(), QueryWorkingSetEx(), CUSBQueue::QueueHeadCleanup(), QueueUserAPC(), QueueUserWorkItem(), RamdiskAddDevice(), RamdiskCreateDiskDevice(), RamdiskCreateRamdisk(), RamdiskDeviceControl(), RamdiskPnp(), RamdiskScsi(), RamdiskWorkerThread(), rationalize_extents(), RawChannelIWrite(), RawChannelOEcho(), RawChannelOFlush(), RawCleanup(), RawClose(), RawCompletionRoutine(), RawCreate(), RawFsDriverEntry(), RawInputThreadMain(), RawIPSendDatagram(), RawMountVolume(), RawQueryFsSizeInfo(), RawUserFsCtrl(), read_bitmaps(), read_data(), read_data_dup(), read_data_raid0(), read_data_raid10(), read_data_raid5(), read_data_raid6(), read_file(), read_group_mappings(), read_mappings(), read_registry(), read_send_buffer(), read_superblock(), ReadandSelectDescriptors(), ReadAttribute(), ReadBlock(), ReadConsoleInput(), ReadDirectoryChangesW(), ReadEventLogA(), ReadEventLogW(), ReadFile(), ReadFileEx(), ReadFileScatter(), ReadInputBuffer(), ReadIpConfiguration(), ReadKeyValue(), ReadLogBuffer(), ReadMemorySendHandler(), ReadProcessMemory(), ReadRecord(), ReadRegistryEntries(), ReadRegistryValue(), ReadStringFromRegistry(), ReadVolumeLabel(), RealDefWindowProcA(), RealDefWindowProcW(), RealizeFontInit(), ReconcileThisDatabaseWithMasterWorker(), ReconfigureAdapter(), reduce_tree_extent(), BtrfsContextMenu::reflink_copy(), reflink_copy2(), BtrfsBalance::RefreshBalanceDlg(), BtrfsVolPropSheet::RefreshDevList(), BtrfsScrub::RefreshScrubDlg(), BtrfsVolPropSheet::RefreshUsage(), RegCloseKey(), RegCopyTreeW(), RegCreateKeyExW(), RegDeleteKeyExW(), RegDeleteKeyValueW(), RegDeleteTreeW(), RegDeleteValueA(), RegDeleteValueW(), RegEnumKeyExW(), RegEnumValueW(), RegFlushKey(), RegGetKeySecurity(), RegImportBinaryHive(), RegInitializeRegistry(), RegisterBlueScreenMachineInformation(), RegisterClientPFN(), RegisterConnection(), RegisterConsoleVDM(), RegisterDeviceInterfaces(), RegisterEventSourceA(), RegisterEventSourceW(), RegisterForTargetDeviceNotification(), RegisterInShimCache(), RegisterLogonProcess(), RegisterServiceCtrlHandlerA(), RegisterServiceCtrlHandlerExA(), RegisterServicesProcess(), RegisterUncProvider(), RegisterWaitForSingleObject(), RegisterWaitForSingleObjectEx(), registry_callback(), registry_load_volume_options(), registry_mark_volume_mounted(), registry_mark_volume_unmounted(), registry_mark_volume_unmounted_path(), RegistryPage(), RegLoadKeyW(), RegNotifyChangeKeyValue(), RegOpenCurrentUser(), RegOpenKey(), RegOpenKeyExW(), RegOpenUserClassesRoot(), RegOverridePredefKey(), RegpCopyTree(), RegpOpenOrCreateKey(), RegQueryInfoKeyW(), RegQueryValue(), RegQueryValueExW(), RegReadDWORD(), RegReplaceKeyW(), RegRestoreKeyW(), RegSaveKeyW(), RegSetKeySecurity(), RegSetKeyValueA(), RegSetKeyValueW(), RegSetValueA(), RegSetValueExA(), RegSetValueExW(), RegSetValueW(), RegTGetDwordValue(), RegTGetStringValue(), RegUnLoadKeyW(), RegWriteUserSetting(), ReleaseMemory(), ReleaseMutex(), ReleaseSemaphore(), remove_balance_item(), remove_device(), remove_drive_letter(), remove_free_space_inode(), remove_root_extents(), remove_superblocks(), remove_volume_child(), RemoveDeviceW(), RemoveDirectoryW(), RemoveFontResourceExA(), ReplaceFileW(), ReportDetectedDevice(), ReportEventA(), ReportEventW(), ReportGreenPdo(), RequestDeviceWakeup(), RequestWakeupLatency(), reset_subkeys(), ResetDevice(), ResetEvent(), ResetStatsW(), ResetWriteWatch(), resize_device(), ResSelectLocale(), ResumeThread(), RevertToSelf(), RfsdBuildBDL2(), RfsdCleanup(), RfsdCompleteIrpContext(), RfsdCopyRead(), RfsdCreateFile(), RfsdCreateInode(), RfsdCreateVolume(), RfsdDeleteFile(), RfsdDirectoryCallback(), RfsdExpandFile(), RfsdFlush(), RfsdInitializeVcb(), RfsdInvalidateVolumes(), RfsdIsDirectoryEmpty(), RfsdLoadBlock(), RfsdLoadInode(), RfsdLoadItem(), RfsdLoadSuper(), RfsdLockControl(), RfsdLookupFileName(), RfsdMountVolume(), RfsdOEMToUnicode(), RfsdQueryDirectory(), RfsdQueryParameters(), RfsdReadDisk(), RfsdReadFile(), RfsdReadInode(), RfsdReadVolume(), RfsdReadWriteBlockAsyncCompletionRoutine(), RfsdReadWriteBlockSyncCompletionRoutine(), RfsdScanDirCallback(), RfsdSetInformation(), RfsdSetRenameInfo(), RfsdShutDown(), RfsdSupersedeOrOverWriteFile(), RfsdSyncUninitializeCacheMap(), RfsdTruncateFile(), RfsdUnicodeToOEM(), RfsdUnpinRepinnedBcbs(), RfsdWrite(), RfsdWriteFile(), RfsdWriteInode(), RfsdWriteVolume(), RootHubInitCallbackFunction(), RosSymCreateFromFile(), RosSymCreateFromMem(), RosSymZwReadFile(), RosSymZwSeekFile(), RpnpEvaluateStack(), RQueryServiceObjectSecurity(), RSetServiceObjectSecurity(), RtlAcquirePrivilege(), RtlAcquireResourceExclusive(), RtlAcquireResourceShared(), RtlAdjustPrivilege(), RtlAllocateHandle(), RtlAllocateHeap(), RtlAnsiCharToUnicodeChar(), RtlAnsiStringToUnicodeString(), RtlApplyRXact(), RtlApplyRXactNoFlush(), RtlCheckRegistryKey(), RtlConvertSharedToExclusive(), RtlCreateActivationContext(), RtlCreateAtomTable(), RtlCreateBootStatusDataFile(), RtlCreateEnvironment(), RtlCreateHeap(), RtlCreateQueryDebugBuffer(), RtlCreateRegistryKey(), RtlCreateSystemVolumeInformationFolder(), RtlCreateUnicodeStringFromAsciiz(), RtlCreateUserProcess(), RtlCreateUserSecurityObject(), RtlCreateUserThread(), RtlDebugCreateHeap(), RtlDefaultNpAcl(), RtlDeleteRegistryValue(), RtlDestroyQueryDebugBuffer(), RtlDoesFileExists_UEx(), RtlDoesFileExists_UstrEx(), RtlDosPathNameToNtPathName_U(), RtlDosPathNameToRelativeNtPathName_U(), RtlDosPathNameToRelativeNtPathName_Ustr(), RtlDosSearchPath_U(), RtlDosSearchPath_Ustr(), RtlEncodePointer(), RtlEqualComputerName(), RtlExpandEnvironmentStrings_U(), RtlFindActivationContextSectionString(), RtlFindMessage(), RtlFormatCurrentUserKeyPath(), RtlFreeHeap(), RtlFreeUserThreadStack(), RtlGetFullPathName_U(), RtlGetFullPathName_Ustr(), RtlGetSetBootStatusData(), RtlImpersonateSelf(), RtlInitializeResource(), RtlInitializeRXact(), RtlInt64ToUnicodeString(), RtlIntegerToUnicodeString(), RtlInvertRangeList(), RtlIpv4AddressToStringA(), RtlIpv4AddressToStringExA(), RtlIpv4AddressToStringExW(), RtlIpv4AddressToStringW(), RtlIpv4StringToAddressA(), RtlIpv4StringToAddressExA(), RtlIpv4StringToAddressExW(), RtlIpv4StringToAddressW(), RtlIpv6AddressToStringA(), RtlIpv6AddressToStringExA(), RtlIpv6AddressToStringExW(), RtlIpv6AddressToStringW(), RtlIpv6StringToAddressA(), RtlIpv6StringToAddressExA(), RtlIpv6StringToAddressExW(), RtlIpv6StringToAddressW(), RtlIsDosDeviceName_U(), RtlLargeStringToUnicodeString(), RtlLocalTimeToSystemTime(), RtlLockBootStatusData(), RtlLookupAtomInAtomTable(), RtlMergeRangeLists(), RtlNewInstanceSecurityObject(), RtlNewSecurityGrantedAccess(), RtlNtPathNameToDosPathName(), RtlOemStringToCountedUnicodeString(), RtlOemStringToUnicodeString(), RtlOpenCurrentUser(), RtlpCallQueryRegistryRoutine(), RtlpCreateUnCommittedRange(), RtlpCreateUserStack(), RtlpDeCommitFreeBlock(), RtlpDestroyHeapSegment(), RtlpDosPathNameToRelativeNtPathName_U(), RtlpDosPathNameToRelativeNtPathName_Ustr(), RtlpDphAllocateNode(), RtlpDphAllocateVm(), RtlpDphCoalesceNodeIntoAvailable(), RtlpDphFreeVm(), RtlpDphGrowVirtual(), RtlpDphInitializeDelayedFreeQueue(), RtlpDphProcessStartupInitialization(), RtlpDphProtectVm(), RtlpExecuteIoWorkItem(), RtlpExecuteWorkItem(), RtlpExtendHeap(), RtlpFindAndCommitPages(), RtlpGetRegistryHandle(), RtlpHashAtomName(), RtlpInitEnvironment(), RtlpInitializeHeap(), RtlpInitializeThreadPool(), RtlpIoWorkerThreadProc(), RtlpIpv4StringToAddressParserW(), RtlpIsIoPending(), RtlpMapFile(), RtlpNtEnumerateSubKey(), RtlpNtQueryValueKey(), RtlpOpenThreadToken(), RtlpPageHeapAllocate(), RtlpPageHeapCreate(), RtlpQueryRemoteProcessModules(), RtlpQueueIoWorkerThread(), RtlpQueueWorkerThread(), RtlpSetSecurityObject(), RtlpStartWorkerThread(), RtlpStringToUlongBase(), RtlpSysVolCheckOwnerAndSecurity(), RtlpSysVolCreateSecurityDescriptor(), RtlpSysVolTakeOwnership(), RtlpUnWaitCriticalSection(), RtlpWorkerThreadProc(), RtlQueryAtomInAtomTable(), RtlQueryProcessDebugInformation(), RtlQueryRegistryValues(), RtlQuerySecurityObject(), RtlQueueWorkItem(), RtlReadOutOfProcessMemoryStream(), RtlReAllocateHeap(), RtlReleasePrivilege(), RtlRunEncodeUnicodeString(), RtlSetCurrentDirectory_U(), RtlSetEnvironmentVariable(), RtlSetIoCompletionCallback(), RtlSetTimeZoneInformation(), RtlStringCatExWorkerA(), RtlStringCatExWorkerW(), RtlStringCatNExWorkerA(), RtlStringCatNExWorkerW(), RtlStringCatNWorkerA(), RtlStringCatNWorkerW(), RtlStringCatWorkerA(), RtlStringCatWorkerW(), RtlStringCbCatExA(), RtlStringCbCatExW(), RtlStringCbCatNExA(), RtlStringCbCatNExW(), RtlStringCbCopyExA(), RtlStringCbCopyExW(), RtlStringCbCopyNExA(), RtlStringCbCopyNExW(), RtlStringCbLengthA(), RtlStringCbLengthW(), RtlStringCbPrintfExA(), RtlStringCbPrintfExW(), RtlStringCbVPrintfExA(), RtlStringCbVPrintfExW(), RtlStringCchLengthA(), RtlStringCchLengthW(), RtlStringCopyExWorkerA(), RtlStringCopyExWorkerW(), RtlStringCopyNExWorkerA(), RtlStringCopyNExWorkerW(), RtlStringLengthWorkerA(), RtlStringLengthWorkerW(), RtlStringVPrintfExWorkerA(), RtlStringVPrintfExWorkerW(), RtlSystemTimeToLocalTime(), RtlUnicodeStringToAnsiString(), RtlUnicodeStringToCountedOemString(), RtlUnicodeStringToOemString(), RtlUpcaseUnicodeStringToAnsiString(), RtlUpcaseUnicodeStringToCountedOemString(), RtlUpcaseUnicodeStringToOemString(), RtlWriteRegistryValue(), RtlxAddAuditAccessAceEx(), RtlxAddMandatoryLabelAceEx(), RunTest(), RunUSetup(), RXactpCommit(), RxCanonicalizeNameAndObtainNetRoot(), RxChangeBufferingState(), RxCollapseOrCreateSrvOpen(), RxCommonCleanup(), RxCommonClose(), RxCommonQueryInformation(), RxCommonRead(), RxCommonWrite(), RxCompleteRequest(), RxCompleteRequest_Real(), RxConstructNetRoot(), RxConstructSrvCall(), RxConstructVirtualNetRoot(), RxCreateFromNetRoot(), RxCreateSrvCallCallBack(), RxCreateTreeConnect(), RxCreateVNetRoot(), RxDispatchToWorkerThread(), RxDriverEntry(), RxFindOrConstructVirtualNetRoot(), RxFindOrCreateConnections(), RxFindOrCreateFcb(), RxFirstCanonicalize(), RxFlushFcbInSystemCache(), RxGetRegistryParameters(), RxGetStringRegistryParameter(), RxInitializeDispatcher(), RxInitializeVNetRootParameters(), RxInitializeWorkQueueDispatcher(), RxInsertWorkQueueItem(), RxLowIoIoCtlShellCompletion(), RxLowIoReadShellCompletion(), RxLowIoSubmit(), RxLowIoWriteShellCompletion(), RxPrefixClaim(), RxPurgeFcbInSystemCache(), RxpWorkerThreadDispatcher(), RxQueryDirectory(), RxReadRegistryParameters(), RxRegisterMinirdr(), RxSearchForCollapsibleOpen(), RxSetBasicInfo(), RxSetDispositionInfo(), RxSpinUpRequestsDispatcher(), RxSpinUpWorkerThread(), RxStartMinirdr(), RxUninitializeCacheMap(), RxXXXControlFileCallthru(), SacPutString(), SamChangePasswordUser(), SamGetAliasMembership(), SamGetGroupsForUser(), SamGetMembersInAlias(), SamGetMembersInGroup(), SamIConnect(), SamIInitialize(), SamLookupIdsInDomain(), SamLookupNamesInDomain(), SampAddGroupMembershipToUser(), SampAddMemberToAlias(), SampAddMemberToGroup(), SampCheckAccountNameInDomain(), SampCheckPassword(), SampCreateAccountDomainSD(), SampCreateAccountSid(), SampCreateAliasSD(), SampCreateBuiltinDomainSD(), SampCreateDbObject(), SampCreateGroupSD(), SampCreateServerSD(), SampCreateUserSD(), SampDeleteAccountDbObject(), SampGetLogonHoursAttribute(), SampGetMembersInAlias(), SampGetNumberOfAccounts(), SampGetObjectAttributeString(), SampGetUserGroupAttributes(), SampInitDatabase(), SampInitHashes(), SampInitializeSAM(), SampOpenDbObject(), SampQueryAliasAdminComment(), SampQueryAliasGeneral(), SampQueryAliasName(), SampQueryDomainGeneral(), SampQueryDomainGeneral2(), SampQueryDomainLockout(), SampQueryDomainLogoff(), SampQueryDomainModified(), SampQueryDomainModified2(), SampQueryDomainName(), SampQueryDomainOem(), SampQueryDomainPassword(), SampQueryDomainReplication(), SampQueryDomainServerRole(), SampQueryDomainState(), SampQueryGroupAdminComment(), SampQueryGroupAttribute(), SampQueryGroupGeneral(), SampQueryGroupName(), SampQueryUserAccount(), SampQueryUserAccountName(), SampQueryUserAdminComment(), SampQueryUserAll(), SampQueryUserControl(), SampQueryUserExpires(), SampQueryUserFullName(), SampQueryUserGeneral(), SampQueryUserHome(), SampQueryUserInternal1(), SampQueryUserLogon(), SampQueryUserLogonHours(), SampQueryUserName(), SampQueryUserParameters(), SampQueryUserPreferences(), SampQueryUserPrimaryGroup(), SampQueryUserProfile(), SampQueryUserScript(), SampQueryUserWorkStations(), SampRegCloseKey(), SampRegDeleteKey(), SampRegEnumerateSubKey(), SampRegEnumerateValue(), SampRegQueryKeyInfo(), SampRegQueryValue(), SampRemoveAccountNameFromDomain(), SampRemoveAllMembersFromAlias(), SampRemoveGroupMembershipFromUser(), SampRemoveMemberFromAlias(), SampRemoveMemberFromAllAliases(), SampRemoveMemberFromGroup(), SampRemoveUserFromAllGroups(), SampSetAccountNameInDomain(), SampSetAliasName(), SampSetDomainLockout(), SampSetDomainLogoff(), SampSetDomainPassword(), SampSetDomainServerRole(), SampSetDomainState(), SampSetGroupAttribute(), SampSetGroupName(), SampSetupAddMemberToGroup(), SampSetupCreateAliasAccount(), SampSetupCreateDomain(), SampSetupCreateGroupAccount(), SampSetupCreateServer(), SampSetupCreateUserAccount(), SampSetUserAll(), SampSetUserControl(), SampSetUserExpires(), SampSetUserGeneral(), SampSetUserGroupAttributes(), SampSetUserInternal1(), SampSetUserName(), SampSetUserPassword(), SampSetUserPreferences(), SampSetUserPrimaryGroup(), SamQueryDisplayInformation(), SamrAddMemberToAlias(), SamrAddMemberToGroup(), SamrAddMultipleMembersToAlias(), SamrChangePasswordUser(), SamrConnect(), SamrCreateAliasInDomain(), SamrCreateGroupInDomain(), SamrCreateUser2InDomain(), SamrCreateUserInDomain(), SamrDeleteAlias(), SamrDeleteGroup(), SamrDeleteUser(), SamrEnumerateAliasesInDomain(), SamrEnumerateDomainsInSamServer(), SamrEnumerateGroupsInDomain(), SamrEnumerateUsersInDomain(), SamrGetAliasMembership(), SamrGetDomainPasswordInformation(), SamrGetGroupsForUser(), SamrGetMembersInAlias(), SamrGetMembersInGroup(), SamrGetUserDomainPasswordInformation(), SamrLookupDomainInSamServer(), SamrLookupIdsInDomain(), SamrLookupNamesInDomain(), SamrOpenAlias(), SamrOpenDomain(), SamrOpenGroup(), SamrOpenUser(), SamrQueryInformationAlias(), SamrQueryInformationDomain(), SamrQueryInformationGroup(), SamrQueryInformationUser(), SamrQuerySecurityObject(), SamrRemoveMemberFromAlias(), SamrRemoveMemberFromForeignDomain(), SamrRemoveMemberFromGroup(), SamrRemoveMultipleMembersFromAlias(), SamrSetInformationAlias(), SamrSetInformationDomain(), SamrSetInformationGroup(), SamrSetInformationUser(), SamrSetMemberAttributesOfGroup(), SamrSetSecurityObject(), SamrShutdownSamServer(), SamSetInformationUser(), SamSetSecurityObject(), SatisfyAccept(), SaveBootSector(), ScanForSpecial(), ScBuildAnsiArgsVector(), ScConnectControlPipe(), ScCreateWellKnownSids(), ScDomainIdToSid(), ScmCheckDriver(), ScmConvertToBootPathName(), ScmCreateDefaultSD(), ScmCreateDefaultServiceSD(), ScmCreateOrReferenceServiceImage(), ScmGetDriverStatus(), ScmLoadDriver(), ScmLogAccountHack(), ScmSetServicePassword(), ScmUnloadDriver(), ScreenAddDevice(), ScrLoadFontTable(), scrub_chunk(), scrub_chunk_raid56(), scrub_chunk_raid56_stripe_run(), scrub_data_extent(), scrub_extent(), scrub_extent_dup(), scrub_extent_raid10(), ScrubRegistryRoutine(), ScsiCdRomFindDevices(), ScsiClassAddDevice(), ScsiClassAssignDriveLetter(), ScsiClassClaimDevice(), ScsiClassCreateDeviceObject(), ScsiClassGetInquiryData(), ScsiClassInitialize(), ScsiClassIoComplete(), ScsiClassIoCompleteAssociated(), ScsiClassModeSense(), ScsiClassQueryTimeOutRegistryValue(), ScsiClassReadDriveCapacity(), ScsiClassReadWrite(), ScsiDiskDeviceControl(), ScsiDiskModeSelect(), ScsiPortGetUncachedExtension(), ScsiPortInitialize(), ScsiPortStartIo(), SdbDeletePermLayerKeys(), SdbGetMatchingExe(), SdbGUIDFromString(), SdbGUIDToString(), SdbpAppendLayer(), SdbpCreate(), SdbpFlush(), SdbpGetPermLayersInternal(), SdbpMatchExe(), SdbpOpenDatabase(), SdbpOpenKey(), SdbpOpenMemMappedFile(), SdbpPropagateEnvLayers(), SdbSetPermLayerKeys(), SearchForLegacyDrivers(), SearchPathA(), SeCaptureLuidAndAttributesArray(), SeCaptureSidAndAttributesArray(), SeCreateClientSecurity(), SeCreateClientSecurityFromSubjectContext(), SeExchangePrimaryToken(), SeiAddHooks(), SeiCreateShimModuleInfo(), SeiFindHookModuleInfoForImportDescriptor(), SeiGetShimData(), SeiInit(), SeiInitDebugSupport(), SeInitializeProcessAuditName(), SeiPatchNewImport(), SeiSetLayerEnvVar(), CUSBDevice::SelectConfiguration(), CUSBDevice::SelectInterface(), SelectInterfaces(), SeLocateProcessImageName(), send_add_tlv_clone_path(), send_extent_data(), send_inode(), send_inode_extref(), send_inode_ref(), send_notification_fcb(), send_notification_fileref(), send_read_symlink(), send_subvol(), send_xattr(), SendComplete(), SendDeviceIrp(), SendFragments(), SendIoctl(), SendLinkCreated(), SendLinkDeleted(), SendOnlineNotification(), SepAccessCheck(), SepAccessCheckAndAuditAlarm(), SepAdtInitializeBounds(), SepCaptureSecurityQualityOfService(), SepCreateClientSecurity(), SepCreateToken(), SepDuplicateToken(), SepInitializationPhase1(), SepRegQueryHelper(), SepRmCommandServerThread(), SepRmCommandServerThreadInit(), SepRmCreateLogonSession(), SerenumAddDevice(), SerenumDetectLegacyDevice(), SerenumDetectPnpDevice(), SerenumFdoPnp(), SerenumFdoStartDevice(), SerenumInitMultiSzString(), SeReportSecurityEvent(), SerialAddDeviceInternal(), SerialDeviceControl(), SerialPnp(), SerialPnpStartDevice(), SerialRead(), SerialReceiveByte(), SerialSendByte(), SerialSetBaudRate(), SerialSetLineControl(), SerialWrite(), SeRmInitPhase0(), SeRmInitPhase1(), SermouseAddDevice(), SermouseDetectLegacyDevice(), SermouseDeviceWorker(), SermousePnp(), SeSetWorldSecurityDescriptor(), SeSubProcessToken(), BtrfsPropSheet::set_cmdline(), set_disposition_information(), set_end_of_file_information(), set_file_security(), set_label(), set_link_information(), set_ntstatus(), set_rename_information(), set_reparse_point(), set_symlink(), set_valid_data_length_information(), set_xattr(), set_zero_data(), SetAccountsDomainSid(), SetAclInformation(), SetAdministratorPassword(), SetAttributesOnFile(), SetComputerNameToRegistry(), SetConsoleActiveScreenBuffer(), SetConsoleCommandHistoryMode(), SetConsoleCP(), SetConsoleCursor(), SetConsoleCursorInfo(), SetConsoleCursorPosition(), SetConsoleDisplayMode(), SetConsoleFont(), SetConsoleHandleInformation(), SetConsoleHardwareState(), SetConsoleIcon(), SetConsoleInputExeNameA(), SetConsoleMenuClose(), SetConsoleMode(), SetConsoleOutputCP(), SetConsolePalette(), SetConsoleScreenBufferSize(), SetConsoleTextAttribute(), SetConsoleWindowInfo(), SetCurrentDirectoryA(), SetCurrentDirectoryW(), SetDefaultLanguage(), SetDefaultPagefile(), CUSBDevice::SetDeviceAddress(), CHubController::SetDeviceInterface(), SetDllDirectoryA(), SetEndOfFile(), SetEnvironmentVariableA(), SetEnvironmentVariableW(), SetEvent(), SetFileAttributesByHandle(), SetFileAttributesW(), SetFileInformationByHandle(), SetFilePointer(), SetFilePointerEx(), SetFileSecurityW(), SetFileShortNameW(), SetFileTime(), SetFileValidData(), SetGeoID(), SetHandleInformation(), SetInformationJobObject(), SetInstallPathValue(), SetIpNetEntry(), SetKernelObjectSecurity(), SetLastWriteTime(), SetLocalTime(), SetMailslotInfo(), SetMixerInputOutputFormat(), SetMountedDeviceValue(), SetNamedPipeHandleState(), SetPriorityClass(), SetPrivateObjectSecurity(), SetProcessAffinityMask(), SetProcessPriorityBoost(), SetProcessShutdownParameters(), SetProcessWorkingSetSizeEx(), SetRegistryValue(), SetRosSpecificInfo(), SetSecurityDescriptorControl(), SetSecurityDescriptorDacl(), SetSecurityDescriptorGroup(), SetSecurityDescriptorOwner(), SetSecurityDescriptorSacl(), SetServiceObjectSecurity(), SetSocketInformation(), CHCDController::SetSymbolicLink(), SetSystemPowerState(), SetSystemTime(), SetSystemTimeAdjustment(), SetThreadAffinityMask(), SetThreadContext(), SetThreadExecutionState(), SetThreadIdealProcessor(), SetThreadPriority(), SetThreadPriorityBoost(), SetThreadToken(), SetTimerQueueTimer(), SetTimeZoneInformation(), SetTokenInformation(), setup_adapter(), SetupCommitFileQueueW(), SetupCopyFile(), SetupCreateDirectory(), SetupCreateSingleDirectory(), SetupStartPage(), SetUserEnvironmentVariable(), SetUserInfo(), SetUserObjectSecurity(), SetValueTest1(), SetValueTest2(), SetVDMCurrentDirectories(), SetVolumeLabelW(), SetWaitableTimer(), shared_tree_is_unique(), BtrfsBalance::ShowBalance(), ShutDown_Hibernate(), ShutDown_PowerOff(), ShutDown_Reboot(), ShutDown_StandBy(), SignalObjectAndWait(), SimpleErrorChecks(), skip_to_difference(), SleepConditionVariableCS(), SleepConditionVariableSRW(), SmCompleteSession(), SmConnectApiPort(), SmConnectToSm(), SmExecPgm(), SmExecuteProgram(), SmLookupSubsystem(), SmpAcquirePrivilege(), SmpCallCsrCreateProcess(), SmpConfigureEnvironment(), SmpConfigureExcludeKnownDlls(), SmpConfigureObjectDirectories(), SmpCreateDynamicEnvironmentVariables(), SmpCreatePagingFile(), SmpCreatePagingFileDescriptor(), SmpCreatePagingFileOnAnyDrive(), SmpCreatePagingFileOnFixedDrive(), SmpCreatePagingFiles(), SmpCreateSecurityDescriptors(), SmpCreateVolumeDescriptors(), SmpDeletePagingFile(), SmpExecPgm(), SmpExecuteCommand(), SmpExecuteImage(), SmpExecuteInitialCommand(), SmpGetPagingFileSize(), SmpGetProcessMuSessionId(), SmpGetVolumeFreeSpace(), SmpHandleConnectionRequest(), SmpInit(), SmpInitializeDosDevices(), SmpInitializeKnownDllsInternal(), SmpInvokeAutoChk(), SmpLoadDataFromRegistry(), SmpLoadSubSystem(), SmpLoadSubSystemsForMuSession(), SmpMakeSystemManagedPagingFileDescriptor(), SmpParseCommandLine(), SmpProcessFileRenames(), SmpProcessModuleImports(), SmpQueryRegistrySosOption(), SmpRestoreBootStatusData(), SmpSaveAndClearBootStatusData(), SmpSbCreateSession(), SmpSetProcessMuSessionId(), SmpTranslateSystemPartitionInformation(), SmQueryInformation(), SmSessionComplete(), snapshot_tree_copy(), SockAsyncSelectCompletionRoutine(), SockAsyncThread(), SockCreateOrReferenceAsyncThread(), SockProcessAsyncSelect(), SpeakerInitialize(), SpiBuildDeviceMap(), SpiCreatePortConfig(), SpiGetPciConfigData(), SpiInitOpenKeys(), SpiMemCopy(), SpiParseDeviceInfo(), SpiScanAdapter(), SpiScanDevice(), SSI_DEF(), start_balance(), start_scrub(), START_TEST(), StartAuthenticationPort(), StartBalanceW(), StartDevice(), StartMemoryMonitor(), StartProcedure(), BtrfsScrub::StartScrub(), STDMETHODIMP_(), still_has_superblock(), StopBalanceW(), BtrfsScrub::StopScrub(), CMiniportWaveCMI::storeChannelConfigToRegistry(), StreamClassAddDevice(), StreamClassReadWriteConfig(), StreamClassReenumerateStreams(), StreamClassRegisterAdapter(), StreamClassStartDevice(), StreamSocketConnectComplete(), StressTesting(), StuffStdHandle(), SubmitIdleRequestIrp(), SURFACE_AllocSurface(), SuspendThread(), SvchostBuildSharedGlobals(), SwAddDevice(), SwDispatchCreate(), SwDispatchPnp(), SwDispatchPower(), SwDispatchSystemControl(), SymlinkCreateTests(), sync_ext_cutoff_points(), sync_read_phys(), SynchronizedDMusMPUWrite(), sys_thread_new(), SysAudio_AddDevice(), SysAudioHandleProperty(), SysAudioOpenKMixer(), SysAudioRegisterDeviceInterfaces(), SysAudioRegisterNotifications(), SysPoCompletionRoutine(), SystemProcessTest(), SystemProcessTestWorker(), SystemProcessWorker(), TCPConnect(), TCPListen(), TCPSendDataCallback(), TCPSendIoctl(), TCPStartup(), TdiBuildConnectionInfo(), TdiBuildNullConnectionInfo(), TdiOpenDevice(), TdiOpenThread(), TdiQueryAddress(), TdiQueryMaxDatagramLength(), TdiReceiveDatagram(), TdiReceiveThread(), TdiSendThread(), TerminateJobObject(), TerminateProcess(), TerminateThread(), test6(), test7(), Test_API(), Test_EmptyFile(), Test_Flags(), Test_ImageSection(), Test_IoRegisterPlugPlayNotification(), Test_NoLoadSection(), Test_NtFreeVirtualMemory(), Test_PageFileSection(), Test_ProcessTimes(), Test_TimeAdjustment(), test_vol(), TestAllInformation(), TestConnect(), TestCreateNamedPipe(), TestCreateOpen_(), TestDeviceCreateDelete(), TestDuplicate(), TestFreeNoAccess(), TestGetCollectionDescription(), TestInterfaceRegistry(), TestIoCreateFile(), TestIrpHandler(), TestKM(), TestMessageHandler(), TestModuleRegistry(), TestObRootSecurity(), TestPhysicalMemorySection(), TestProviderInfo(), TestReadWrite(), TestRelativeNames(), TestSharedCacheMap(), TestSymlinks(), TestUM(), TestZwLoad(), TestZwUnload(), TextIntRealizeFont(), TEXTMODE_BUFFER_Initialize(), TH32CreateSnapshot(), TH32CreateSnapshotSectionInitialize(), BtrfsSend::Thread(), Thread32First(), Thread32Next(), TiCloseFileObject(), TiCreateFileObject(), TiDispatch(), TiGetProtocolNumber(), TimerDpcRoutine(), TlsFree(), TraceHandleCount_(), TransactNamedPipe(), CPortPinDMus::TransferMidiData(), CPortPinDMus::TransferMidiDataToDMus(), TransferPktComplete(), trim_unalloc_space(), trim_whole_device(), truncate_file(), TruncateRemoteDatabase(), try_clone(), try_clone_edr(), try_consolidation(), try_extend_data(), try_tree_amalgamate(), TUILockedSAS(), UDFAssignAcl(), UDFBlankMount(), UDFCheckOtherFS(), UDFCheckOtherFSByName(), UDFCloseAllXXXDelayedInDir(), UDFCloseFileInfoChain(), UDFCommonCleanup(), UDFCommonCreate(), UDFCommonDeviceControl(), UDFCommonFileInfo(), UDFCommonQueryVolInfo(), UDFCommonRead(), UDFCommonSetVolInfo(), UDFCommonWrite(), UDFCompareVcb(), UDFCompleteMount(), UDFCreateFsDeviceObject(), UDFDismountDevice(), UDFDismountVolume(), UDFDoesOSAllowFileToBeTargetForRename__(), UDFFileDirInfoToNT(), UDFFirstOpenFile(), UDFGetBasicInformation(), UDFGetBlockSize(), UDFGetDiskInfo(), UDFGetEaInformation(), UDFGetInternalInformation(), UDFGetNetworkInformation(), UDFGetRetrievalPointers(), UDFGetStandardInformation(), UDFHardLink(), UDFInitializeFCB(), UDFInitializeVCB(), UDFInitializeZones(), UDFInvalidateVolumes(), UDFLockCallersBuffer(), UDFLockVolume(), UDFMarkStreamsForDeletion(), UDFMountVolume(), UDFPerformVerify(), UDFPhReadSynchronous(), UDFPhWriteSynchronous(), UDFPnpQueryRemove(), UDFPrepareForWriteOperation(), UDFPretendFileDeleted__(), UDFQueryDirectory(), UDFQueueDelayedClose(), UDFReadSecurity(), UDFRegCheckParameterValue(), UDFRename(), UDFSetAccessRights(), UDFSetAllocationInformation(), UDFSetDispositionInformation(), UDFSetEOF(), UDFSetFileAllocModeFromICB(), UDFSetMRWMode(), UDFVerifyVcb(), UDFVerifyVolume(), UDFWriteSecurity(), UDPSendDatagram(), UDPStartup(), UnhandledExceptionFilter(), UniataClaimLegacyPCIIDE(), UniataConnectIntr2(), uninit(), UniqueIdChangeNotifyWorker(), UnlockFile(), UnlockFileEx(), UnmapViewOfFile(), UnprotectBootIni(), UnProtectHandle(), UnregisterWait(), UnregisterWaitEx(), update_backup_superblock(), update_changed_extent_ref(), update_chunk_cache(), update_chunk_cache_tree(), update_chunk_caches(), update_chunk_caches_tree(), update_chunk_usage(), update_chunks(), update_dev_item(), update_extent_flags(), update_extent_level(), update_root_backref(), update_root_root(), update_tree_extents(), update_tree_extents_recursive(), UpdateBootIni(), CPortPinWaveCyclic::UpdateCommonBuffer(), CPortPinWaveCyclic::UpdateCommonBufferOverlap(), UpdateDeviceObjects(), UpdateFreeLoaderIni(), UpdateGeometry(), UpdateRemovableGeometry(), BtrfsScrub::UpdateTextBox(), BtrfsVolPropSheet::UsageDlgProc(), UsbAudioCaptureComplete(), USBAudioCreateFilterContext(), USBAudioGetDescriptor(), USBAudioGetStringDescriptor(), USBAudioInitComponentId(), USBAudioPinCreate(), USBAudioPnPStart(), USBAudioRegCreateMediaCategoriesKey(), UsbAudioRenderComplete(), USBAudioSelectAudioStreamingInterface(), USBAudioSelectConfiguration(), USBAudioStartDevice(), USBCCG_InitIdsWithInterfaceDescriptor(), USBCCGP_AddDevice(), USBCCGP_CustomEnumWithInterface(), USBCCGP_EnumerateFunctions(), USBCCGP_EnumWithAssociationDescriptor(), USBCCGP_EnumWithAudioLegacy(), USBCCGP_GetDescriptor(), USBCCGP_GetDescriptors(), USBCCGP_GetStringDescriptor(), USBCCGP_InitFunctionDescriptor(), USBCCGP_LegacyEnum(), USBCCGP_PdoHandleQueryId(), USBCCGP_PDOSelectConfiguration(), USBCCGP_SelectConfiguration(), USBCCGP_SelectInterface(), USBD_GetDeviceInformationEx(), USBD_GetPdoRegistryParameter(), USBD_InitializeDeviceEx(), USBD_UnRegisterRootHubCallBack(), USBH_AbortInterruptPipe(), USBH_AddDevice(), USBH_ChangeIndication(), USBH_ChangeIndicationProcessChange(), USBH_ChangeIndicationWorker(), USBH_CheckDeviceLanguage(), USBH_CheckIdleDeferred(), USBH_CompletePortIdleIrpsWorker(), USBH_CreateDevice(), USBH_FdoCleanup(), USBH_FdoIdleNotificationRequestComplete(), USBH_FdoQueryBusRelations(), USBH_FdoStartDevice(), USBH_FdoWWIrpIoCompletion(), USBH_GetConfigurationDescriptor(), USBH_GetDeviceType(), USBH_GetSerialNumberString(), USBH_HubIsBusPowered(), USBH_HubPnPIrpComplete(), USBH_IoctlGetNodeConnectionInformation(), USBH_OpenConfiguration(), USBH_PdoIoctlResetPort(), USBH_PdoPnP(), USBH_PdoQueryDeviceText(), USBH_PdoRemoveDevice(), USBH_PdoStartDevice(), USBH_PortIdleNotificationCancelRoutine(), USBH_PowerIrpCompletion(), USBH_ProcessDeviceInformation(), USBH_QueryCapsComplete(), USBH_ResetDevice(), USBH_ResetHub(), USBH_ResetInterruptPipe(), USBH_RestoreDevice(), USBH_SelectConfigOrInterfaceComplete(), USBH_SetPdoRegistryParameter(), USBH_StartHubFdoDevice(), USBH_SymbolicLink(), USBH_SyncDisablePort(), USBH_SyncGetHubDescriptor(), USBH_SyncGetStringDescriptor(), USBH_SyncPowerOnPort(), USBH_SyncPowerOnPorts(), USBH_SyncResetPort(), USBH_WriteFailReasonID(), USBHI_ControllerSelectiveSuspend(), USBHI_CreateUsbDevice(), USBHI_GetExtendedHubInformation(), USBHI_GetRootHubSymbolicName(), USBHI_InitializeUsbDevice(), USBHI_RemoveUsbDevice(), USBHUB_AddDevice(), USBHUB_DispatchPower(), USBHUB_FdoHandleDeviceControl(), USBHUB_FdoHandlePnp(), USBHUB_FdoStartDevice(), USBHUB_IsRootHubFDO(), USBHUB_ParentFDOStartDevice(), USBHUB_PdoHandleInternalDeviceControl(), USBHUB_PdoHandlePnp(), USBLIB_AddDevice(), USBPORT_AddDevice(), USBPORT_CompleteTransfer(), USBPORT_CreateDevice(), USBPORT_CreateLegacySymbolicLink(), USBPORT_CreatePdo(), USBPORT_FdoPnP(), USBPORT_FlushMapTransfers(), USBPORT_GetRegistryKeyValueFullInfo(), USBPORT_HandleSelectConfiguration(), USBPORT_HandleSubmitURB(), USBPORT_Initialize20Hub(), USBPORT_InitializeDevice(), USBPORT_IsCompanionController(), USBPORT_OpenInterface(), USBPORT_OpenPipe(), USBPORT_ParseResources(), USBPORT_PdoPnP(), USBPORT_PdoQueryInterface(), USBPORT_QueryCapabilities(), USBPORT_RegisterDeviceInterface(), USBPORT_ReopenPipe(), USBPORT_RestoreDevice(), USBPORT_SendSetupPacket(), USBPORT_SetRegistryKeyValue(), USBPORT_StartDevice(), USBPORT_SyncResetPipeAndClearStall(), USBPORT_UserGetHcName(), USBPORT_UserGetRootHubName(), USBPORT_ValidateURB(), USBSTOR_AddDevice(), USBSTOR_CreatePDO(), USBSTOR_CSWCompletionRoutine(), USBSTOR_DataCompletionRoutine(), USBSTOR_FdoHandleStartDevice(), USBSTOR_GetDescriptor(), USBSTOR_GetDescriptors(), USBSTOR_GetMaxLUN(), USBSTOR_HandleTransferError(), USBSTOR_PdoHandlePnp(), USBSTOR_PdoHandleQueryDeviceId(), USBSTOR_SelectConfigurationAndInterface(), USBSTOR_SendFormatCapacityIrp(), USBSTOR_SendInquiryIrp(), USBSTOR_SendIrp(), USBSTOR_SendModeSense(), USBSTOR_TimerWorkerRoutine(), User32CreateWindowEx(), User32EnumWindows(), UserChangeDisplaySettings(), UserClientConnect(), UserCreateHeap(), UserCreateMenu(), UserCreateWinstaDirectory(), UserDrawCaptionText(), UserEndShutdown(), UserEnumDisplayDevices(), UserEnumRegistryDisplaySettings(), UserExitReactOS(), UserGetClassName(), UserGetLanguageID(), UserGetLanguageToggle(), UserGetShellWindow(), UserInitialize(), UserInitiateShutdown(), UserInitKeyboard(), UserInsertMenuItem(), UserLoadImage(), UserLoadKbdFile(), UserLoadKbdLayout(), UserMenuInfo(), UserMenuItemInfo(), UserOpenDisplaySettingsKey(), UserpCaptureStringParameters(), UserpFormatMessages(), UserpGetClientFileName(), UserServerHardError(), UserSetCursorIconData(), UserSetProcessWindowStation(), UserUnregisterClass(), BtrfsRecv::utf8_to_utf16(), UTF8EncodeAndSend(), VDDAllocMem(), VDDDeInstallMemoryHook(), VDDFreeMem(), VDDInstallMemoryHook(), VdmDispatchPageFault(), VdmpInitialize(), VdmpStartExecution(), verify_device(), verify_vcb(), verify_volume(), VerifyConsoleIoHandle(), VerifyEventWaitable(), VerifyVersionInfoW(), VfatBlockDeviceIoControl(), VfatCreate(), VfatCreateFile(), vfatDirFindFile(), VfatDismountVolume(), VfatFastIoQueryBasicInfo(), VfatFastIoQueryStandardInfo(), vfatFindDirSpace(), VfatFlushFile(), VfatFlushVolume(), VfatFormat(), VfatGetAllInformation(), vfatGetFCBForFile(), VfatGetRetrievalPointers(), VfatHasFileSystem(), vfatInitFCBFromDirEntry(), vfatMakeFCBFromDirEntry(), vfatMakeRootFCB(), VfatMarkVolumeDirty(), VfatMount(), VfatMoveEntry(), VfatOpenFile(), vfatPrepareTargetForRename(), VfatQueryInformation(), VfatRead(), VfatReadDisk(), VfatReadDiskPartial(), VfatReadFileData(), VfatReadWritePartialCompletion(), VfatRenameChildFCB(), vfatRenameEntry(), VfatSetAllocationSizeInformation(), vfatSetFCBNewDirName(), VfatSetRenameInformation(), VfatShutdown(), vfatUpdateFCB(), VfatVerify(), VfatWrite(), VfatWriteDiskPartial(), VfatWriteFileData(), VfatxFormat(), VideoPortCheckForDeviceExistence(), VideoPortEnumerateChildren(), VideoPortGetAccessRanges(), VideoPortGetRegistryParameters(), VideoPortGetVersion(), VideoPortInitialize(), VideoPortInt10(), VideoPortIsNoVesa(), VideoPortQueryServices(), VideoPortStartDma(), VideoPortVerifyAccessRanges(), VideoPortWaitForSingleObject(), VirtualAllocEx(), VirtualFreeEx(), VirtualLock(), VirtualProtectEx(), VirtualQueryEx(), VirtualUnlock(), vol_check_verify(), vol_close(), vol_get_disk_extents(), vol_is_writable(), volume_arrival(), VTUTF8ChannelAnsiDispatch(), VTUTF8ChannelCreate(), VTUTF8ChannelIWrite(), VTUTF8ChannelOEcho(), VTUTF8ChannelOFlush(), VTUTF8ChannelOWrite(), VTUTF8ChannelProcessAttributes(), W32kCreateFileSection(), W32kDosPathNameToNtPathName(), W32kMapViewOfSection(), W32kOpenFile(), WahCreateSocketHandle(), WahOpenHandleHelper(), wait_for_flush(), WaitForDebugEvent(), WaitForMultipleObjectsEx(), WaitForSingleObjectEx(), WaitNamedPipeW(), WaitWakeCallback(), WarmSocketForBind(), WarmSocketForConnection(), watch_registry(), wcstombs(), wctomb(), WdmaudAddDevice(), WdmAudClose(), WdmAudControlDeviceState(), WdmAudControlOpenMixer(), WdmAudCreate(), WdmAudFrameSize(), WdmAudGetDeviceInterface(), WdmAudInitWorkerRoutine(), WdmAudOpenSysAudioDevices(), WdmAudReadWrite(), WdmAudRegisterDeviceInterface(), WdmAudResetStream(), WIN32close(), WIN32read(), WIN32write(), WIN_ListChildren(), WinLdrAddDriverToList(), WinMain(), wmain(), WmiInitialize(), WmipCreateGuidObject(), WmipInitializeGuidObjectType(), WmipIoControl(), WmipOpenGuidForEvents(), WmipOpenGuidObject(), WmipOpenGuidObjectByName(), WmipQueryRawSMBiosTables(), WmipRegisterGuids(), WorkerThread(), Wow64DisableWow64FsRedirection(), Wow64EnableWow64FsRedirection(), Wow64RevertWow64FsRedirection(), Write(), write_btrfs(), write_compressed(), write_data(), write_data_complete(), write_data_phys(), write_file(), write_file2(), write_metadata_items(), write_primary_superblock(), write_roots(), write_superblocks(), write_trees(), WriteBreakPointSendHandler(), WriteConsole(), WriteConsoleOutputCharacterA(), WriteConsoleOutputCharacterW(), WriteFile(), WriteFileEx(), WriteFileGather(), WriteLogBuffer(), WriteMemorySendHandler(), WritePartitions(), WriteProcessMemory(), WriteRemoteDatabaseEntry(), WSHIoctl_GetInterfaceList(), WSPAccept(), WSPBind(), WSPCloseSocket(), WSPConnect(), WSPEnumNetworkEvents(), WSPEventSelect(), WSPGetPeerName(), WSPGetSockName(), WSPListen(), WSPRecv(), WSPRecvFrom(), WSPSelect(), WSPSend(), WSPSendTo(), WSPShutdown(), WSPSocket(), wWinMain(), xHalExamineMBR(), xHalGetPartialGeometry(), xHalIoAssignDriveLetters(), xHalIoReadPartitionTable(), xHalIoSetPartitionInformation(), xHalIoWritePartitionTable(), xHalpGetDiskNumberFromRDisk(), xHalpGetRDiskCount(), xHalQueryDriveLayout(), xOpenFile(), zero_blocks(), zero_data(), zlib_write_compressed_bit(), ZombifyActCtx(), and FLOATSAFE::~FLOATSAFE().

#define SHELLEXECUTETEXT   "ShellExecuteExA"

Definition at line 258 of file cmd.c.

Referenced by RunFile().

Typedef Documentation

typedef BOOL(WINAPI * MYEX)(LPSHELLEXECUTEINFO lpExecInfo)

Definition at line 261 of file cmd.c.

typedef NTSTATUS(WINAPI * NtQueryInformationProcessProc)(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG)

Definition at line 152 of file cmd.c.

typedef NTSTATUS(WINAPI * NtReadVirtualMemoryProc)(HANDLE, PVOID, PVOID, ULONG, PULONG)

Definition at line 154 of file cmd.c.

Function Documentation

int _tmain ( int  argc,
const TCHAR argv[] 
)

Definition at line 1824 of file cmd.c.

1825 {
1826  HANDLE hConsole;
1827  TCHAR startPath[MAX_PATH];
1829 
1832 
1833  GetCurrentDirectory(MAX_PATH,startPath);
1834  _tchdir(startPath);
1835 
1836  SetFileApisToOEM();
1837  InputCodePage = 0;
1838  OutputCodePage = 0;
1839 
1840  hConsole = CreateFile(_T("CONOUT$"), GENERIC_READ|GENERIC_WRITE,
1842  OPEN_EXISTING, 0, NULL);
1843  if (hConsole != INVALID_HANDLE_VALUE)
1844  {
1845  if (!GetConsoleScreenBufferInfo(hConsole, &Info))
1846  {
1848  CloseHandle(hConsole);
1849  return(1);
1850  }
1851  wDefColor = Info.wAttributes;
1852  CloseHandle(hConsole);
1853  }
1854 
1858 
1859  /* check switches on command-line */
1860  Initialize();
1861 
1862  /* call prompt routine */
1863  ProcessInput();
1864 
1865  /* do the cleanup */
1866  Cleanup();
1867 
1869 
1871  return(nErrorLevel);
1872 }
INT nErrorLevel
Definition: cmd.c:161
Definition: video.h:583
#define cmd_exit(code)
Definition: cmddbg.h:34
#define CloseHandle
Definition: compat.h:398
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1056
VOID ConErrFormatMessage(DWORD MessageId,...)
Definition: console.c:381
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define FILE_SHARE_READ
Definition: compat.h:125
#define _T(x)
Definition: tchar.h:1542
#define GENERIC_WRITE
Definition: nt_native.h:90
#define GetCurrentDirectory
Definition: winbase.h:3567
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP(VOID)
Definition: console.c:2453
WORD wDefColor
Definition: cmd.c:177
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:697
smooth NULL
Definition: ftsmooth.c:513
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(VOID)
Definition: console.c:2393
static VOID Initialize()
Definition: cmd.c:1619
#define OPEN_EXISTING
Definition: compat.h:426
LPTSTR DuplicateEnvironment(VOID)
Definition: setlocal.c:21
char TCHAR
Definition: xmlstorage.h:189
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:420
#define MAX_PATH
Definition: compat.h:26
LPTSTR lpOriginalEnvironment
Definition: cmd.c:170
UINT OutputCodePage
Definition: console.c:26
UINT InputCodePage
Definition: console.c:25
static VOID ProcessInput()
Definition: cmd.c:1416
static VOID Cleanup()
Definition: cmd.c:1782
#define GENERIC_READ
Definition: compat.h:124
VOID WINAPI SetFileApisToOEM(VOID)
Definition: utils.c:819
DWORD *typedef HANDLE
Definition: winlogon.h:52
#define cmd_free(ptr)
Definition: cmddbg.h:31
#define GetModuleHandle
Definition: winbase.h:3589
CRITICAL_SECTION ChildProcessRunningLock
Definition: cmd.c:162
#define CreateFile
Definition: winbase.h:3511
HANDLE CMD_ModuleHandle
Definition: cmd.c:171
int _tchdir(const _TCHAR *_path)
Definition: chdir.c:8
VOID AddBreakHandler ( VOID  )

Definition at line 1489 of file cmd.c.

Referenced by FilePromptYN(), FilePromptYNA(), Initialize(), and PagePrompt().

1490 {
1492 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCtrlHandler(PHANDLER_ROUTINE HandlerRoutine, BOOL Add)
Definition: console.c:2111
BOOL WINAPI BreakHandler(DWORD dwCtrlType)
Definition: cmd.c:1435
BOOL(CALLBACK * PHANDLER_ROUTINE)(_In_ DWORD)
Definition: wincon.h:222
BOOL WINAPI BreakHandler ( DWORD  dwCtrlType)

Definition at line 1435 of file cmd.c.

Referenced by AddBreakHandler(), and RemoveBreakHandler().

1436 {
1437  DWORD dwWritten;
1438  INPUT_RECORD rec;
1439  static BOOL SelfGenerated = FALSE;
1440 
1441  if ((dwCtrlType != CTRL_C_EVENT) &&
1442  (dwCtrlType != CTRL_BREAK_EVENT))
1443  {
1444  return FALSE;
1445  }
1446  else
1447  {
1448  if (SelfGenerated)
1449  {
1450  SelfGenerated = FALSE;
1451  return TRUE;
1452  }
1453  }
1454 
1456  {
1457  SelfGenerated = TRUE;
1458  GenerateConsoleCtrlEvent (dwCtrlType, 0);
1459  return TRUE;
1460  }
1461  else
1462  {
1464  }
1465 
1466  rec.EventType = KEY_EVENT;
1467  rec.Event.KeyEvent.bKeyDown = TRUE;
1468  rec.Event.KeyEvent.wRepeatCount = 1;
1469  rec.Event.KeyEvent.wVirtualKeyCode = _T('C');
1470  rec.Event.KeyEvent.wVirtualScanCode = _T('C') - 35;
1471  rec.Event.KeyEvent.uChar.AsciiChar = _T('C');
1472  rec.Event.KeyEvent.uChar.UnicodeChar = _T('C');
1474 
1476  &rec,
1477  1,
1478  &dwWritten);
1479 
1480  bCtrlBreak = TRUE;
1481  /* FIXME: Handle batch files */
1482 
1483  //ConOutPrintf(_T("^C"));
1484 
1485  return TRUE;
1486 }
#define TRUE
Definition: types.h:120
WCHAR UnicodeChar
Definition: wincon.h:230
#define CTRL_BREAK_EVENT
Definition: wincon.h:66
WORD wVirtualScanCode
Definition: wincon.h:228
#define WriteConsoleInput
Definition: wincon.h:773
DWORD dwControlKeyState
Definition: wincon.h:233
HANDLE hIn
Definition: cmd.c:168
#define CTRL_C_EVENT
Definition: wincon.h:65
DWORD DWORD
Definition: winlogon.h:75
WORD wVirtualKeyCode
Definition: wincon.h:227
WORD wRepeatCount
Definition: wincon.h:226
#define _T(x)
Definition: tchar.h:1542
BOOL WINAPI DECLSPEC_HOTPATCH GenerateConsoleCtrlEvent(DWORD dwCtrlEvent, DWORD dwProcessGroupId)
Definition: console.c:2134
#define FALSE
Definition: types.h:117
#define KEY_EVENT
Definition: wincon.h:122
unsigned int BOOL
Definition: ntddk_ex.h:94
KEY_EVENT_RECORD KeyEvent
Definition: wincon.h:263
BOOL WINAPI TryEnterCriticalSection(LPCRITICAL_SECTION)
union _KEY_EVENT_RECORD::@2981 uChar
union _INPUT_RECORD::@2982 Event
CRITICAL_SECTION ChildProcessRunningLock
Definition: cmd.c:162
WORD EventType
Definition: wincon.h:261
#define RIGHT_CTRL_PRESSED
Definition: wincon.h:133
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
BOOL bCtrlBreak
Definition: cmd.c:158
static VOID Cleanup ( void  )
static

Definition at line 1782 of file cmd.c.

Referenced by _tmain().

1783 {
1784  /* run cmdexit.bat */
1785  if (IsExistingFile (_T("cmdexit.bat")))
1786  {
1788 
1789  ParseCommandLine (_T("cmdexit.bat"));
1790  }
1791  else if (IsExistingFile (_T("\\cmdexit.bat")))
1792  {
1794  ParseCommandLine (_T("\\cmdexit.bat"));
1795  }
1796 
1797 #ifdef FEATURE_DIRECTORY_STACK
1798  /* destroy directory stack */
1800 #endif
1801 
1802 #ifdef FEATURE_HISTORY
1803  CleanHistory();
1804 #endif
1805 
1806  /* free GetEnvVar's buffer */
1807  GetEnvVar(NULL);
1808 
1809  /* Remove ctrl break handler */
1811 
1812  /* Restore the default console mode */
1817 
1819 }
VOID CleanHistory(VOID)
Definition: history.c:151
VOID ConErrResPuts(UINT resID)
Definition: console.c:476
VOID DestroyDirectoryStack(VOID)
Definition: dirstack.c:90
INT ParseCommandLine(LPTSTR cmd)
Definition: cmd.c:567
#define ENABLE_ECHO_INPUT
Definition: wincon.h:77
#define ENABLE_WRAP_AT_EOL_OUTPUT
Definition: blue.h:45
#define _T(x)
Definition: tchar.h:1542
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
Definition: console.c:1608
smooth NULL
Definition: ftsmooth.c:513
#define STD_INPUT_HANDLE
Definition: winbase.h:262
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:137
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
#define ENABLE_LINE_INPUT
Definition: wincon.h:76
#define STD_OUTPUT_HANDLE
Definition: winbase.h:263
#define ENABLE_PROCESSED_OUTPUT
Definition: blue.h:44
#define ENABLE_PROCESSED_INPUT
Definition: wincon.h:75
LPTSTR GetEnvVar(LPCTSTR varName)
Definition: cmd.c:768
CRITICAL_SECTION ChildProcessRunningLock
Definition: cmd.c:162
#define STRING_CMD_ERROR5
Definition: resource.h:33
BOOL IsExistingFile(LPCTSTR)
Definition: misc.c:484
VOID RemoveBreakHandler(VOID)
Definition: cmd.c:1495
INT ConvertULargeInteger ( ULONGLONG  num,
LPTSTR  des,
UINT  len,
BOOL  bPutSeparator 
)

Definition at line 186 of file cmd.c.

Referenced by CommandMemory(), DirPrintNewList(), DirPrintOldList(), PrintDiskInfo(), and PrintSummary().

187 {
188  TCHAR temp[39]; /* maximum length with nNumberGroups == 1 */
189  UINT n, iTarget;
190 
191  if (len <= 1)
192  return 0;
193 
194  n = 0;
195  iTarget = nNumberGroups;
196  if (!nNumberGroups)
197  bPutSeparator = FALSE;
198 
199  do
200  {
201  if (iTarget == n && bPutSeparator)
202  {
203  iTarget += nNumberGroups + 1;
204  temp[38 - n++] = cThousandSeparator;
205  }
206  temp[38 - n++] = (TCHAR)(num % 10) + _T('0');
207  num /= 10;
208  } while (num > 0);
209  if (n > len-1)
210  n = len-1;
211 
212  memcpy(des, temp + 39 - n, n * sizeof(TCHAR));
213  des[n] = _T('\0');
214 
215  return n;
216 }
GLuint n
Definition: s_context.h:57
#define _T(x)
Definition: tchar.h:1542
#define FALSE
Definition: types.h:117
INT nNumberGroups
Definition: locale.c:22
TCHAR cThousandSeparator
Definition: locale.c:18
char TCHAR
Definition: xmlstorage.h:189
GLuint GLuint num
Definition: glext.h:9618
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
GLenum GLsizei len
Definition: glext.h:6722
static stack_node_t temp
Definition: rpn.c:18
static const WCHAR des[]
Definition: oid.c:1034
unsigned int UINT
Definition: ndis.h:50
INT DoCommand ( LPTSTR  first,
LPTSTR  rest,
PARSED_COMMAND Cmd 
)

Definition at line 498 of file cmd.c.

Referenced by ExecuteCommand().

499 {
500  TCHAR *com;
501  TCHAR *cp;
502  LPTSTR param; /* pointer to command's parameters */
503  INT cl;
504  LPCOMMAND cmdptr;
505  BOOL nointernal = FALSE;
506  INT ret;
507 
508  TRACE ("DoCommand: (\'%s\' \'%s\')\n", debugstr_aw(first), debugstr_aw(rest));
509 
510  /* full command line */
511  com = cmd_alloc((_tcslen(first) + _tcslen(rest) + 2) * sizeof(TCHAR));
512  if (com == NULL)
513  {
515  return 1;
516  }
517 
518  /* If present in the first word, these characters end the name of an
519  * internal command and become the beginning of its parameters. */
520  cp = first + _tcscspn(first, _T("\t +,/;=[]"));
521 
522  for (cl = 0; cl < (cp - first); cl++)
523  {
524  /* These characters do it too, but if one of them is present,
525  * then we check to see if the word is a file name and skip
526  * checking for internal commands if so.
527  * This allows running programs with names like "echo.exe" */
528  if (_tcschr(_T(".:\\"), first[cl]))
529  {
530  TCHAR tmp = *cp;
531  *cp = _T('\0');
532  nointernal = IsExistingFile(first);
533  *cp = tmp;
534  break;
535  }
536  }
537 
538  /* Scan internal command table */
539  for (cmdptr = cmds; !nointernal && cmdptr->name; cmdptr++)
540  {
541  if (!_tcsnicmp(first, cmdptr->name, cl) && cmdptr->name[cl] == _T('\0'))
542  {
543  _tcscpy(com, first);
544  _tcscat(com, rest);
545  param = &com[cl];
546 
547  /* Skip over whitespace to rest of line, exclude 'echo' command */
548  if (_tcsicmp(cmdptr->name, _T("echo")) != 0)
549  while (_istspace(*param))
550  param++;
551  ret = cmdptr->func(param);
552  cmd_free(com);
553  return ret;
554  }
555  }
556 
557  ret = Execute(com, first, rest, Cmd);
558  cmd_free(com);
559  return ret;
560 }
#define _tcsicmp
Definition: xmlstorage.h:205
const GLint * first
Definition: glext.h:5794
#define debugstr_aw
Definition: precomp.h:34
COMMAND cmds[]
Definition: main.c:21
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
Definition: tcscpy.h:8
int32_t INT
Definition: typedefs.h:57
CHAR * LPTSTR
Definition: xmlstorage.h:192
INT(* func)(PCONSOLE_STATE, LPSTR)
Definition: cmdcons.c:29
#define _T(x)
Definition: tchar.h:1542
#define FALSE
Definition: types.h:117
#define _tcsnicmp
Definition: xmlstorage.h:207
size_t __cdecl _tcslen(const _TCHAR *str)
Definition: tcslen.h:9
smooth NULL
Definition: ftsmooth.c:513
VOID error_out_of_memory(VOID)
Definition: error.c:135
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
Definition: tcschr.h:4
char TCHAR
Definition: xmlstorage.h:189
#define TRACE(s)
Definition: solgame.cpp:4
unsigned int BOOL
Definition: ntddk_ex.h:94
GLfloat param
Definition: glext.h:5796
int ret
#define cmd_alloc(size)
Definition: cmddbg.h:29
#define cmd_free(ptr)
Definition: cmddbg.h:31
static INT Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
Definition: cmd.c:314
POINT cp
Definition: magnifier.c:58
_TCHAR * _tcscat(_TCHAR *s, const _TCHAR *append)
Definition: tcscat.h:8
#define _istspace
Definition: tchar.h:1504
LPSTR name
Definition: cmdcons.c:27
BOOL IsExistingFile(LPCTSTR)
Definition: misc.c:484
#define _tcscspn
Definition: tchar.h:1407
LPTSTR DoDelayedExpansion ( LPTSTR  Line)

Definition at line 1342 of file cmd.c.

Referenced by ExecuteCommand(), ExecuteFor(), ExecuteIf(), and PerformRedirection().

1343 {
1344  TCHAR Buf1[CMDLINE_LENGTH];
1345  TCHAR Buf2[CMDLINE_LENGTH];
1346 
1347  /* First, substitute FOR variables */
1348  if (!SubstituteForVars(Line, Buf1))
1349  return NULL;
1350 
1351  if (!bDelayedExpansion || !_tcschr(Buf1, _T('!')))
1352  return cmd_dup(Buf1);
1353 
1354  /* FIXME: Delayed substitutions actually aren't quite the same as
1355  * immediate substitutions. In particular, it's possible to escape
1356  * the exclamation point using ^. */
1357  if (!SubstituteVars(Buf1, Buf2, _T('!')))
1358  return NULL;
1359  return cmd_dup(Buf2);
1360 }
#define CMDLINE_LENGTH
Definition: help.h:12
BOOL SubstituteVars(TCHAR *Src, TCHAR *Dest, TCHAR Delim)
Definition: cmd.c:1140
#define _T(x)
Definition: tchar.h:1542
smooth NULL
Definition: ftsmooth.c:513
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
Definition: tcschr.h:4
char TCHAR
Definition: xmlstorage.h:189
Definition: ncftp.h:79
BOOL SubstituteForVars(TCHAR *Src, TCHAR *Dest)
Definition: cmd.c:1306
BOOL bDelayedExpansion
Definition: cmd.c:165
#define cmd_dup(str)
Definition: cmddbg.h:32
static INT Execute ( LPTSTR  Full,
LPTSTR  First,
LPTSTR  Rest,
PARSED_COMMAND Cmd 
)
static

Definition at line 314 of file cmd.c.

Referenced by DoCommand().

315 {
316  TCHAR szFullName[MAX_PATH];
317  TCHAR *first, *rest, *dot;
318  TCHAR szWindowTitle[MAX_PATH], szNewTitle[MAX_PATH*2];
319  DWORD dwExitCode = 0;
320  TCHAR *FirstEnd;
321  TCHAR szFullCmdLine [CMDLINE_LENGTH];
322 
323  TRACE ("Execute: \'%s\' \'%s\'\n", debugstr_aw(First), debugstr_aw(Rest));
324 
325  /* Though it was already parsed once, we have a different set of rules
326  for parsing before we pass to CreateProcess */
327  if (First[0] == _T('/') || (First[0] && First[1] == _T(':')))
328  {
329  /* Use the entire first word as the program name (no change) */
330  FirstEnd = First + _tcslen(First);
331  }
332  else
333  {
334  /* If present in the first word, spaces and ,;=/ end the program
335  * name and become the beginning of its parameters. */
336  BOOL bInside = FALSE;
337  for (FirstEnd = First; *FirstEnd; FirstEnd++)
338  {
339  if (!bInside && (_istspace(*FirstEnd) || _tcschr(_T(",;=/"), *FirstEnd)))
340  break;
341  bInside ^= *FirstEnd == _T('"');
342  }
343  }
344 
345  /* Copy the new first/rest into the buffer */
346  first = Full;
347  rest = &Full[FirstEnd - First + 1];
348  _tcscpy(rest, FirstEnd);
349  _tcscat(rest, Rest);
350  *FirstEnd = _T('\0');
351  _tcscpy(first, First);
352 
353  /* check for a drive change */
354  if ((_istalpha (first[0])) && (!_tcscmp (first + 1, _T(":"))))
355  {
356  BOOL working = TRUE;
357  if (!SetCurrentDirectory(first))
358  /* Guess they changed disc or something, handle that gracefully and get to root */
359  {
360  TCHAR str[4];
361  str[0]=first[0];
362  str[1]=_T(':');
363  str[2]=_T('\\');
364  str[3]=0;
365  working = SetCurrentDirectory(str);
366  }
367 
368  if (!working) ConErrResPuts (STRING_FREE_ERROR1);
369  return !working;
370  }
371 
372  /* get the PATH environment variable and parse it */
373  /* search the PATH environment variable for the binary */
375  if (!SearchForExecutable(First, szFullName))
376  {
377  error_bad_command(first);
378  return 1;
379  }
380 
381  GetConsoleTitle(szWindowTitle, ARRAYSIZE(szWindowTitle));
382  bTitleSet = FALSE;
383  _stprintf(szNewTitle, _T("%s - %s%s"), szWindowTitle, First, Rest);
384  SetConsoleTitle(szNewTitle);
385 
386  /* check if this is a .BAT or .CMD file */
387  dot = _tcsrchr (szFullName, _T('.'));
388  if (dot && (!_tcsicmp (dot, _T(".bat")) || !_tcsicmp (dot, _T(".cmd"))))
389  {
390  while (*rest == _T(' '))
391  rest++;
392  TRACE ("[BATCH: %s %s]\n", debugstr_aw(szFullName), debugstr_aw(rest));
393  dwExitCode = Batch(szFullName, first, rest, Cmd);
394  }
395  else
396  {
397  /* exec the program */
398  PROCESS_INFORMATION prci;
399  STARTUPINFO stui;
400 
401  /* build command line for CreateProcess(): FullName + " " + rest */
402  BOOL quoted = !!_tcschr(First, ' ');
403  _tcscpy(szFullCmdLine, quoted ? _T("\"") : _T(""));
404  _tcsncat(szFullCmdLine, First, CMDLINE_LENGTH - _tcslen(szFullCmdLine) - 1);
405  _tcsncat(szFullCmdLine, quoted ? _T("\"") : _T(""), CMDLINE_LENGTH - _tcslen(szFullCmdLine) - 1);
406 
407  if (*rest)
408  {
409  _tcsncat(szFullCmdLine, _T(" "), CMDLINE_LENGTH - _tcslen(szFullCmdLine) - 1);
410  _tcsncat(szFullCmdLine, rest, CMDLINE_LENGTH - _tcslen(szFullCmdLine) - 1);
411  }
412 
413  TRACE ("[EXEC: %s]\n", debugstr_aw(szFullCmdLine));
414 
415  /* fill startup info */
416  memset (&stui, 0, sizeof (STARTUPINFO));
417  stui.cb = sizeof (STARTUPINFO);
420 
421  /* Set the console to standard mode */
424 
425  if (CreateProcess(szFullName,
426  szFullCmdLine,
427  NULL,
428  NULL,
429  TRUE,
430  0, /* CREATE_NEW_PROCESS_GROUP */
431  NULL,
432  NULL,
433  &stui,
434  &prci))
435  {
436  CloseHandle(prci.hThread);
437  }
438  else
439  {
440  // See if we can run this with ShellExecute() ie myfile.xls
442  szFullName,
443  rest,
444  NULL,
445  SW_SHOWNORMAL);
446  }
447 
448  if (prci.hProcess != NULL)
449  {
450  if (bc != NULL || bWaitForCommand || IsConsoleProcess(prci.hProcess))
451  {
452  /* when processing a batch file or starting console processes: execute synchronously */
455 
457 
459 
460  GetExitCodeProcess(prci.hProcess, &dwExitCode);
461  nErrorLevel = (INT)dwExitCode;
462  }
463  CloseHandle(prci.hProcess);
464  }
465  else
466  {
467  TRACE ("[ShellExecute failed!: %s]\n", debugstr_aw(Full));
468  error_bad_command(first);
469  dwExitCode = 1;
470  }
471 
472  /* Restore our default console mode */
477  }
478 
479  /* Get code page if it has been changed */
482  if (!bTitleSet)
483  SetConsoleTitle(szWindowTitle);
484 
485  return dwExitCode;
486 }
INT nErrorLevel
Definition: cmd.c:161
#define SW_SHOWDEFAULT
Definition: winuser.h:774
#define TRUE
Definition: types.h:120
#define CloseHandle
Definition: compat.h:398
static BOOL bWaitForCommand
Definition: cmd.c:160
VOID ConErrResPuts(UINT resID)
Definition: console.c:476
#define _tcsicmp
Definition: xmlstorage.h:205
LPBATCH_CONTEXT bc
Definition: batch.c:66
#define SEE_MASK_NOCLOSEPROCESS
Definition: shellapi.h:31
int _tcscmp(const _TCHAR *s1, const _TCHAR *s2)
Definition: tcscmp.h:8
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
Definition: proc.c:1213
#define SEE_MASK_NO_CONSOLE
Definition: shellapi.h:38
const GLint * first
Definition: glext.h:5794
#define debugstr_aw
Definition: precomp.h:34
#define CMDLINE_LENGTH
Definition: help.h:12
#define ARRAYSIZE(array)
Definition: filtermapper.c:28
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
Definition: tcscpy.h:8
DWORD dwFlags
Definition: winbase.h:793
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
HANDLE RunFile(DWORD flags, LPTSTR filename, LPTSTR params, LPTSTR directory, INT show)
Definition: cmd.c:263
static BOOL IsConsoleProcess(HANDLE Process)
Definition: cmd.c:221
#define _istalpha
Definition: tchar.h:1492
static VOID StripQuotes(LPSTR in)
Definition: cmdcons.c:116
DWORD DWORD
Definition: winlogon.h:75
#define ENABLE_ECHO_INPUT
Definition: wincon.h:77
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
#define ENABLE_WRAP_AT_EOL_OUTPUT
Definition: blue.h:45
#define _T(x)
Definition: tchar.h:1542
#define FALSE
Definition: types.h:117
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
Definition: console.c:1608
#define INT(a)
Definition: assyntax.h:463
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP(VOID)
Definition: console.c:2453
const WCHAR * str
size_t __cdecl _tcslen(const _TCHAR *str)
Definition: tcslen.h:9
smooth NULL
Definition: ftsmooth.c:513
#define GetConsoleTitle
Definition: wincon.h:763
BOOL SearchForExecutable(LPCTSTR, LPTSTR)
Definition: where.c:142
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(VOID)
Definition: console.c:2393
#define STARTF_USESHOWWINDOW
Definition: winbase.h:463
#define STD_INPUT_HANDLE
Definition: winbase.h:262
DWORD dwChildProcessId
Definition: cmd.c:167
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:137
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
Definition: tcschr.h:4
char TCHAR
Definition: xmlstorage.h:189
_TCHAR * _tcsncat(_TCHAR *dst, const _TCHAR *src, size_t n)
Definition: tcsncat.h:5
#define TRACE(s)
Definition: solgame.cpp:4
unsigned int BOOL
Definition: ntddk_ex.h:94
DWORD cb
Definition: winbase.h:782
#define MAX_PATH
Definition: compat.h:26
#define ENABLE_LINE_INPUT
Definition: wincon.h:76
UINT OutputCodePage
Definition: console.c:26
UINT InputCodePage
Definition: console.c:25
#define STD_OUTPUT_HANDLE
Definition: winbase.h:263
#define CreateProcess
Definition: winbase.h:3520
#define ENABLE_PROCESSED_OUTPUT
Definition: blue.h:44
#define _stprintf
Definition: utility.h:124
#define ENABLE_PROCESSED_INPUT
Definition: wincon.h:75
#define SW_SHOWNORMAL
Definition: winuser.h:764
STARTUPINFOA STARTUPINFO
Definition: winbase.h:3481
#define SetConsoleTitle
Definition: wincon.h:771
VOID error_bad_command(LPTSTR)
Definition: error.c:121
static BOOLEAN First
Definition: dem.c:250
CRITICAL_SECTION ChildProcessRunningLock
Definition: cmd.c:162
WORD wShowWindow
Definition: winbase.h:794
#define STRING_FREE_ERROR1
Definition: resource.h:52
_TCHAR * _tcsrchr(const _TCHAR *s, _XINT c)
Definition: tcsrchr.h:4
_TCHAR * _tcscat(_TCHAR *s, const _TCHAR *append)
Definition: tcscat.h:8
#define _istspace
Definition: tchar.h:1504
BOOL bTitleSet
Definition: cmd.c:166
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define INFINITE
Definition: serial.h:102
#define memset(x, y, z)
Definition: compat.h:39
static BOOL Full
Definition: gflags.c:20
#define SetCurrentDirectory
Definition: winbase.h:3665
static HANDLE ExecuteAsync ( PARSED_COMMAND Cmd)
static

Definition at line 585 of file cmd.c.

Referenced by ExecutePipeline().

586 {
587  TCHAR CmdPath[MAX_PATH];
588  TCHAR CmdParams[CMDLINE_LENGTH], *ParamsEnd;
589  STARTUPINFO stui;
590  PROCESS_INFORMATION prci;
591 
592  /* Get the path to cmd.exe */
593  GetModuleFileName(NULL, CmdPath, MAX_PATH);
594 
595  /* Build the parameter string to pass to cmd.exe */
596  ParamsEnd = _stpcpy(CmdParams, _T("/S/D/C\""));
597  ParamsEnd = Unparse(Cmd, ParamsEnd, &CmdParams[CMDLINE_LENGTH - 2]);
598  if (!ParamsEnd)
599  {
601  return NULL;
602  }
603  _tcscpy(ParamsEnd, _T("\""));
604 
605  memset(&stui, 0, sizeof stui);
606  stui.cb = sizeof(STARTUPINFO);
607  if (!CreateProcess(CmdPath, CmdParams, NULL, NULL, TRUE, 0,
608  NULL, NULL, &stui, &prci))
609  {
611  return NULL;
612  }
613 
614  CloseHandle(prci.hThread);
615  return prci.hProcess;
616 }
#define TRUE
Definition: types.h:120
#define CloseHandle
Definition: compat.h:398
VOID ErrorMessage(DWORD, LPTSTR,...)
Definition: error.c:26
#define CMDLINE_LENGTH
Definition: help.h:12
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
Definition: tcscpy.h:8
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1056
LPTSTR _stpcpy(LPTSTR, LPCTSTR)
Definition: misc.c:445
#define _T(x)
Definition: tchar.h:1542
smooth NULL
Definition: ftsmooth.c:513
VOID error_out_of_memory(VOID)
Definition: error.c:135
char TCHAR
Definition: xmlstorage.h:189
DWORD cb
Definition: winbase.h:782
#define MAX_PATH
Definition: compat.h:26
#define GetModuleFileName
Definition: winbase.h:3593
#define CreateProcess
Definition: winbase.h:3520
TCHAR * Unparse(PARSED_COMMAND *Cmd, TCHAR *Out, TCHAR *OutEnd)
Definition: parser.c:844
STARTUPINFOA STARTUPINFO
Definition: winbase.h:3481
#define memset(x, y, z)
Definition: compat.h:39
static VOID ExecuteAutoRunFile ( HKEY  hkeyRoot)
static

Definition at line 1536 of file cmd.c.

Referenced by Initialize().

1537 {
1538  TCHAR autorun[2048];
1539  DWORD len = sizeof autorun;
1540  HKEY hkey;
1541 
1542  if (RegOpenKeyEx(hkeyRoot,
1543  _T("SOFTWARE\\Microsoft\\Command Processor"),
1544  0,
1545  KEY_READ,
1546  &hkey) == ERROR_SUCCESS)
1547  {
1548  if (RegQueryValueEx(hkey,
1549  _T("AutoRun"),
1550  0,
1551  0,
1552  (LPBYTE)autorun,
1553  &len) == ERROR_SUCCESS)
1554  {
1555  if (*autorun)
1556  ParseCommandLine(autorun);
1557  }
1558  RegCloseKey(hkey);
1559  }
1560 }
#define RegQueryValueEx
Definition: winreg.h:521
#define ERROR_SUCCESS
Definition: deptool.c:10
#define KEY_READ
Definition: nt_native.h:1023
unsigned char * LPBYTE
Definition: typedefs.h:53
INT ParseCommandLine(LPTSTR cmd)
Definition: cmd.c:567
DWORD DWORD
Definition: winlogon.h:75
LONG WINAPI RegCloseKey(HKEY hKey)
Definition: reg.c:423
#define _T(x)
Definition: tchar.h:1542
char TCHAR
Definition: xmlstorage.h:189
HANDLE HKEY
Definition: registry.h:24
GLenum GLsizei len
Definition: glext.h:6722
#define RegOpenKeyEx
Definition: winreg.h:517
INT ExecuteCommand ( PARSED_COMMAND Cmd)

Definition at line 706 of file cmd.c.

Referenced by Batch(), ExecuteCommand(), ExecuteIf(), ParseCommandLine(), ProcessInput(), and RunInstance().

707 {
708  PARSED_COMMAND *Sub;
709  LPTSTR First, Rest;
710  INT Ret = 0;
711 
712  if (!PerformRedirection(Cmd->Redirections))
713  return 1;
714 
715  switch (Cmd->Type)
716  {
717  case C_COMMAND:
718  Ret = 1;
719  First = DoDelayedExpansion(Cmd->Command.First);
720  if (First)
721  {
722  Rest = DoDelayedExpansion(Cmd->Command.Rest);
723  if (Rest)
724  {
725  Ret = DoCommand(First, Rest, Cmd);
726  cmd_free(Rest);
727  }
728  cmd_free(First);
729  }
730  break;
731  case C_QUIET:
732  case C_BLOCK:
733  case C_MULTI:
734  for (Sub = Cmd->Subcommands; Sub; Sub = Sub->Next)
735  Ret = ExecuteCommand(Sub);
736  break;
737  case C_IFFAILURE:
738  Sub = Cmd->Subcommands;
739  Ret = ExecuteCommand(Sub);
740  if (Ret != 0)
741  {
742  nErrorLevel = Ret;
743  Ret = ExecuteCommand(Sub->Next);
744  }
745  break;
746  case C_IFSUCCESS:
747  Sub = Cmd->Subcommands;
748  Ret = ExecuteCommand(Sub);
749  if (Ret == 0)
750  Ret = ExecuteCommand(Sub->Next);
751  break;
752  case C_PIPE:
753  ExecutePipeline(Cmd);
754  break;
755  case C_IF:
756  Ret = ExecuteIf(Cmd);
757  break;
758  case C_FOR:
759  Ret = ExecuteFor(Cmd);
760  break;
761  }
762 
764  return Ret;
765 }
INT nErrorLevel
Definition: cmd.c:161
Definition: cmd.h:363
struct _PARSED_COMMAND * Subcommands
Definition: cmd.h:366
BYTE Type
Definition: cmd.h:369
struct _PARSED_COMMAND::@51::@53 Command
int32_t INT
Definition: typedefs.h:57
struct _PARSED_COMMAND * Next
Definition: cmd.h:367
CHAR * LPTSTR
Definition: xmlstorage.h:192
smooth NULL
Definition: ftsmooth.c:513
Definition: cmd.h:363
Definition: cmd.h:363
INT DoCommand(LPTSTR first, LPTSTR rest, PARSED_COMMAND *Cmd)
Definition: cmd.c:498
static VOID ExecutePipeline(PARSED_COMMAND *Cmd)
Definition: cmd.c:619
LPTSTR DoDelayedExpansion(LPTSTR Line)
Definition: cmd.c:1342
VOID UndoRedirection(REDIRECTION *, REDIRECTION *End)
Definition: redir.c:133
Definition: cmd.h:363
Definition: cmd.h:363
struct _REDIRECTION * Redirections
Definition: cmd.h:368
#define cmd_free(ptr)
Definition: cmddbg.h:31
static BOOLEAN First
Definition: dem.c:250
BOOL PerformRedirection(REDIRECTION *)
Definition: redir.c:54
INT ExecuteCommand(PARSED_COMMAND *Cmd)
Definition: cmd.c:706
INT ExecuteIf(struct _PARSED_COMMAND *Cmd)
Definition: if.c:66
INT ExecuteFor(struct _PARSED_COMMAND *Cmd)
Definition: for.c:458
Definition: cmd.h:363
Definition: cmd.h:363
static VOID ExecutePipeline ( PARSED_COMMAND Cmd)
static

Definition at line 619 of file cmd.c.

Referenced by ExecuteCommand().

620 {
621 #ifdef FEATURE_REDIRECTION
622  HANDLE hInput = NULL;
623  HANDLE hOldConIn = GetStdHandle(STD_INPUT_HANDLE);
624  HANDLE hOldConOut = GetStdHandle(STD_OUTPUT_HANDLE);
626  INT nProcesses = 0;
627  DWORD dwExitCode;
628 
629  /* Do all but the last pipe command */
630  do
631  {
632  HANDLE hPipeRead, hPipeWrite;
633  if (nProcesses > (MAXIMUM_WAIT_OBJECTS - 2))
634  {
636  goto failed;
637  }
638 
639  /* Create the pipe that this process will write into.
640  * Make the handles non-inheritable initially, because this
641  * process shouldn't inherit the reading handle. */
642  if (!CreatePipe(&hPipeRead, &hPipeWrite, NULL, 0))
643  {
644  error_no_pipe();
645  goto failed;
646  }
647 
648  /* The writing side of the pipe is STDOUT for this process */
650  SetStdHandle(STD_OUTPUT_HANDLE, hPipeWrite);
651 
652  /* Execute it (error check is done later for easier cleanup) */
653  hProcess[nProcesses] = ExecuteAsync(Cmd->Subcommands);
654  CloseHandle(hPipeWrite);
655  if (hInput)
656  CloseHandle(hInput);
657 
658  /* The reading side of the pipe will be STDIN for the next process */
660  SetStdHandle(STD_INPUT_HANDLE, hPipeRead);
661  hInput = hPipeRead;
662 
663  if (!hProcess[nProcesses])
664  goto failed;
665  nProcesses++;
666 
667  Cmd = Cmd->Subcommands->Next;
668  } while (Cmd->Type == C_PIPE);
669 
670  /* The last process uses the original STDOUT */
671  SetStdHandle(STD_OUTPUT_HANDLE, hOldConOut);
672  hProcess[nProcesses] = ExecuteAsync(Cmd);
673  if (!hProcess[nProcesses])
674  goto failed;
675  nProcesses++;
676  CloseHandle(hInput);
677  SetStdHandle(STD_INPUT_HANDLE, hOldConIn);
678 
679  /* Wait for all processes to complete */
681  WaitForMultipleObjects(nProcesses, hProcess, TRUE, INFINITE);
683 
684  /* Use the exit code of the last process in the pipeline */
685  GetExitCodeProcess(hProcess[nProcesses - 1], &dwExitCode);
686  nErrorLevel = (INT)dwExitCode;
687 
688  while (--nProcesses >= 0)
689  CloseHandle(hProcess[nProcesses]);
690  return;
691 
692 failed:
693  if (hInput)
694  CloseHandle(hInput);
695  while (--nProcesses >= 0)
696  {
697  TerminateProcess(hProcess[nProcesses], 0);
698  CloseHandle(hProcess[nProcesses]);
699  }
700  SetStdHandle(STD_INPUT_HANDLE, hOldConIn);
701  SetStdHandle(STD_OUTPUT_HANDLE, hOldConOut);
702 #endif
703 }
INT nErrorLevel
Definition: cmd.c:161
#define TRUE
Definition: types.h:120
#define CloseHandle
Definition: compat.h:398
struct _PARSED_COMMAND * Subcommands
Definition: cmd.h:366
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
Definition: proc.c:1213
#define MAXIMUM_WAIT_OBJECTS
Definition: winbase.h:376
BYTE Type
Definition: cmd.h:369
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
DWORD WINAPI WaitForMultipleObjects(IN DWORD nCount, IN CONST HANDLE *lpHandles, IN BOOL bWaitAll, IN DWORD dwMilliseconds)
Definition: synch.c:151
int32_t INT
Definition: typedefs.h:57
DWORD DWORD
Definition: winlogon.h:75
#define _T(x)
Definition: tchar.h:1542
#define INT(a)
Definition: assyntax.h:463
smooth NULL
Definition: ftsmooth.c:513
#define HANDLE_FLAG_INHERIT
Definition: winbase.h:259
#define STD_INPUT_HANDLE
Definition: winbase.h:262
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:137
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] STATPROPSETSTG *rgelt, [out] ULONG *pceltFetched)
BOOL WINAPI DECLSPEC_HOTPATCH SetStdHandle(DWORD nStdHandle, HANDLE hHandle)
Definition: console.c:1213
static HANDLE ExecuteAsync(PARSED_COMMAND *Cmd)
Definition: cmd.c:585
#define STD_OUTPUT_HANDLE
Definition: winbase.h:263
BOOL WINAPI CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes, DWORD nSize)
Definition: npipe.c:28
VOID error_too_many_parameters(LPTSTR)
Definition: error.c:76
DWORD *typedef HANDLE
Definition: winlogon.h:52
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
Definition: proc.c:1577
CRITICAL_SECTION ChildProcessRunningLock
Definition: cmd.c:162
VOID error_no_pipe(VOID)
Definition: error.c:128
BOOL WINAPI SetHandleInformation(IN HANDLE hObject, IN DWORD dwMask, IN DWORD dwFlags)
Definition: handle.c:78
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define INFINITE
Definition: serial.h:102
Definition: cmd.h:363
static LPTSTR FindForVar ( TCHAR  Var,
BOOL IsParam0 
)
static

Definition at line 1293 of file cmd.c.

Referenced by SubstituteForVars().

1294 {
1295  FOR_CONTEXT *Ctx;
1296  *IsParam0 = FALSE;
1297  for (Ctx = fc; Ctx != NULL; Ctx = Ctx->prev)
1298  {
1299  if ((UINT)(Var - Ctx->firstvar) < Ctx->varcount)
1300  return Ctx->values[Var - Ctx->firstvar];
1301  }
1302  return NULL;
1303 }
UINT varcount
Definition: batch.h:28
TCHAR firstvar
Definition: batch.h:27
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:513
LPFOR_CONTEXT fc
Definition: for.c:53
LPTSTR * values
Definition: batch.h:29
unsigned int UINT
Definition: ndis.h:50
struct tagFORCONTEXT * prev
Definition: batch.h:26
LPCTSTR GetBatchVar ( TCHAR varName,
UINT varNameLen 
)

Definition at line 1095 of file cmd.c.

Referenced by SubstituteVars().

1096 {
1097  LPCTSTR ret;
1098  TCHAR *varNameEnd;
1099  BOOL dummy;
1100 
1101  *varNameLen = 1;
1102 
1103  switch ( *varName )
1104  {
1105  case _T('~'):
1106  varNameEnd = varName + 1;
1107  ret = GetEnhancedVar(&varNameEnd, FindArg);
1108  if (!ret)
1109  {
1110  error_syntax(varName);
1111  return NULL;
1112  }
1113  *varNameLen = varNameEnd - varName;
1114  return ret;
1115  case _T('0'):
1116  case _T('1'):
1117  case _T('2'):
1118  case _T('3'):
1119  case _T('4'):
1120  case _T('5'):
1121  case _T('6'):
1122  case _T('7'):
1123  case _T('8'):
1124  case _T('9'):
1125  return FindArg(*varName, &dummy);
1126 
1127  case _T('*'):
1128  //
1129  // Copy over the raw params(not including the batch file name
1130  //
1131  return bc->raw_params;
1132 
1133  case _T('%'):
1134  return _T("%");
1135  }
1136  return NULL;
1137 }
static LPTSTR GetEnhancedVar(TCHAR **pFormat, LPTSTR(*GetVar)(TCHAR, BOOL *))
Definition: cmd.c:846
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
LPBATCH_CONTEXT bc
Definition: batch.c:66
#define _T(x)
Definition: tchar.h:1542
LPTSTR FindArg(TCHAR Char, BOOL *IsParam0)
Definition: batch.c:83
smooth NULL
Definition: ftsmooth.c:513
return(0)
char TCHAR
Definition: xmlstorage.h:189
unsigned int BOOL
Definition: ntddk_ex.h:94
int ret
VOID error_syntax(LPTSTR)
Definition: error.c:149
unsigned char dummy
Definition: maze.c:118
static VOID GetCmdLineCommand ( TCHAR commandline,
TCHAR ptr,
BOOL  AlwaysStrip 
)
static

Definition at line 1564 of file cmd.c.

Referenced by Initialize().

1565 {
1566  TCHAR *LastQuote;
1567 
1568  while (_istspace(*ptr))
1569  ptr++;
1570 
1571  /* Remove leading quote, find final quote */
1572  if (*ptr == _T('"') &&
1573  (LastQuote = _tcsrchr(++ptr, _T('"'))) != NULL)
1574  {
1575  TCHAR *Space;
1576  /* Under certain circumstances, all quotes are preserved.
1577  * CMD /? documents these conditions as follows:
1578  * 1. No /S switch
1579  * 2. Exactly two quotes
1580  * 3. No "special characters" between the quotes
1581  * (CMD /? says &<>()@^| but parentheses did not
1582  * trigger this rule when I tested them.)
1583  * 4. Whitespace exists between the quotes
1584  * 5. Enclosed string is an executable filename
1585  */
1586  *LastQuote = _T('\0');
1587  for (Space = ptr + 1; Space < LastQuote; Space++)
1588  {
1589  if (_istspace(*Space)) /* Rule 4 */
1590  {
1591  if (!AlwaysStrip && /* Rule 1 */
1592  !_tcspbrk(ptr, _T("\"&<>@^|")) && /* Rules 2, 3 */
1593  SearchForExecutable(ptr, commandline)) /* Rule 5 */
1594  {
1595  /* All conditions met: preserve both the quotes */
1596  *LastQuote = _T('"');
1597  _tcscpy(commandline, ptr - 1);
1598  return;
1599  }
1600  break;
1601  }
1602  }
1603 
1604  /* The conditions were not met: remove both the
1605  * leading quote and the last quote */
1606  _tcscpy(commandline, ptr);
1607  _tcscpy(&commandline[LastQuote - ptr], LastQuote + 1);
1608  return;
1609  }
1610 
1611  /* No quotes; just copy */
1612  _tcscpy(commandline, ptr);
1613 }
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
Definition: tcscpy.h:8
#define _T(x)
Definition: tchar.h:1542
static PVOID ptr
Definition: dispmode.c:30
smooth NULL
Definition: ftsmooth.c:513
BOOL SearchForExecutable(LPCTSTR, LPTSTR)
Definition: where.c:142
char TCHAR
Definition: xmlstorage.h:189
_TCHAR * _tcsrchr(const _TCHAR *s, _XINT c)
Definition: tcsrchr.h:4
#define _istspace
Definition: tchar.h:1504
#define _tcspbrk
Definition: tchar.h:1412
static LPTSTR GetEnhancedVar ( TCHAR **  pFormat,
LPTSTR(*)(TCHAR, BOOL *)  GetVar 
)
static

Definition at line 846 of file cmd.c.

Referenced by GetBatchVar(), and SubstituteForVars().

847 {
848  static const TCHAR ModifierTable[] = _T("dpnxfsatz");
849  enum {
850  M_DRIVE = 1, /* D: drive letter */
851  M_PATH = 2, /* P: path */
852  M_NAME = 4, /* N: filename */
853  M_EXT = 8, /* X: extension */
854  M_FULL = 16, /* F: full path (drive+path+name+ext) */
855  M_SHORT = 32, /* S: full path (drive+path+name+ext), use short names */
856  M_ATTR = 64, /* A: attributes */
857  M_TIME = 128, /* T: modification time */
858  M_SIZE = 256, /* Z: file size */
859  } Modifiers = 0;
860 
861  TCHAR *Format, *FormatEnd;
862  TCHAR *PathVarName = NULL;
863  LPTSTR Variable;
864  TCHAR *VarEnd;
865  BOOL VariableIsParam0;
866  TCHAR FullPath[MAX_PATH];
867  TCHAR FixedPath[MAX_PATH], *Filename, *Extension;
868  HANDLE hFind;
869  WIN32_FIND_DATA w32fd;
870  TCHAR *In, *Out;
871 
872  static TCHAR Result[CMDLINE_LENGTH];
873 
874  /* There is ambiguity between modifier characters and FOR variables;
875  * the rule that cmd uses is to pick the longest possible match.
876  * For example, if there is a %n variable, then out of %~anxnd,
877  * %~anxn will be substituted rather than just %~an. */
878 
879  /* First, go through as many modifier characters as possible */
880  FormatEnd = Format = *pFormat;
881  while (*FormatEnd && _tcschr(ModifierTable, _totlower(*FormatEnd)))
882  FormatEnd++;
883 
884  if (*FormatEnd == _T('$'))
885  {
886  /* $PATH: syntax */
887  PathVarName = FormatEnd + 1;
888  FormatEnd = _tcschr(PathVarName, _T(':'));
889  if (!FormatEnd)
890  return NULL;
891 
892  /* Must be immediately followed by the variable */
893  Variable = GetVar(*++FormatEnd, &VariableIsParam0);
894  if (!Variable)
895  return NULL;
896  }
897  else
898  {
899  /* Backtrack if necessary to get a variable name match */
900  while (!(Variable = GetVar(*FormatEnd, &VariableIsParam0)))
901  {
902  if (FormatEnd == Format)
903  return NULL;
904  FormatEnd--;
905  }
906  }
907 
908  for (; Format < FormatEnd && *Format != _T('$'); Format++)
909  Modifiers |= 1 << (_tcschr(ModifierTable, _totlower(*Format)) - ModifierTable);
910 
911  *pFormat = FormatEnd + 1;
912 
913  /* Exclude the leading and trailing quotes */
914  VarEnd = &Variable[_tcslen(Variable)];
915  if (*Variable == _T('"'))
916  {
917  Variable++;
918  if (VarEnd > Variable && VarEnd[-1] == _T('"'))
919  VarEnd--;
920  }
921 
922  if ((char *)VarEnd - (char *)Variable >= sizeof Result)
923  return _T("");
924  memcpy(Result, Variable, (char *)VarEnd - (char *)Variable);
925  Result[VarEnd - Variable] = _T('\0');
926 
927  if (PathVarName)
928  {
929  /* $PATH: syntax - search the directories listed in the
930  * specified environment variable for the file */
931  LPTSTR PathVar;
932  FormatEnd[-1] = _T('\0');
933  PathVar = GetEnvVar(PathVarName);
934  FormatEnd[-1] = _T(':');
935  if (!PathVar ||
936  !SearchPath(PathVar, Result, NULL, MAX_PATH, FullPath, NULL))
937  {
938  return _T("");
939  }
940  }
941  else if (Modifiers == 0)
942  {
943  /* For plain %~var with no modifiers, just return the variable without quotes */
944  return Result;
945  }
946  else if (VariableIsParam0)
947  {
948  /* Special case: If the variable is %0 and modifier characters are present,
949  * use the batch file's path (which includes the .bat/.cmd extension)
950  * rather than the actual %0 variable (which might not). */
951  _tcscpy(FullPath, bc->BatchFilePath);
952  }
953  else
954  {
955  /* Convert the variable, now without quotes, to a full path */
956  if (!GetFullPathName(Result, MAX_PATH, FullPath, NULL))
957  return _T("");
958  }
959 
960  /* Next step is to change the path to fix letter case (e.g.
961  * C:\ReAcToS -> C:\ReactOS) and, if requested with the S modifier,
962  * replace long filenames with short. */
963 
964  In = FullPath;
965  Out = FixedPath;
966 
967  /* Copy drive letter */
968  *Out++ = *In++;
969  *Out++ = *In++;
970  *Out++ = *In++;
971  /* Loop over each \-separated component in the path */
972  do {
973  TCHAR *Next = _tcschr(In, _T('\\'));
974  if (Next)
975  *Next++ = _T('\0');
976  /* Use FindFirstFile to get the correct name */
977  if (Out + _tcslen(In) + 1 >= &FixedPath[MAX_PATH])
978  return _T("");
979  _tcscpy(Out, In);
980  hFind = FindFirstFile(FixedPath, &w32fd);
981  /* If it doesn't exist, just leave the name as it was given */
982  if (hFind != INVALID_HANDLE_VALUE)
983  {
984  LPTSTR FixedComponent = w32fd.cFileName;
985  if (*w32fd.cAlternateFileName &&
986  ((Modifiers & M_SHORT) || !_tcsicmp(In, w32fd.cAlternateFileName)))
987  {
988  FixedComponent = w32fd.cAlternateFileName;
989  }
990  FindClose(hFind);
991 
992  if (Out + _tcslen(FixedComponent) + 1 >= &FixedPath[MAX_PATH])
993  return _T("");
994  _tcscpy(Out, FixedComponent);
995  }
996  Filename = Out;
997  Out += _tcslen(Out);
998  *Out++ = _T('\\');
999 
1000  In = Next;
1001  } while (In != NULL);
1002  Out[-1] = _T('\0');
1003 
1004  /* Build the result string. Start with attributes, modification time, and
1005  * file size. If the file didn't exist, these fields will all be empty. */
1006  Out = Result;
1007  if (hFind != INVALID_HANDLE_VALUE)
1008  {
1009  if (Modifiers & M_ATTR)
1010  {
1011  static const struct {
1012  TCHAR Character;
1013  WORD Value;
1014  } *Attrib, Table[] = {
1015  { _T('d'), FILE_ATTRIBUTE_DIRECTORY },
1016  { _T('r'), FILE_ATTRIBUTE_READONLY },
1017  { _T('a'), FILE_ATTRIBUTE_ARCHIVE },
1018  { _T('h'), FILE_ATTRIBUTE_HIDDEN },
1019  { _T('s'), FILE_ATTRIBUTE_SYSTEM },
1020  { _T('c'), FILE_ATTRIBUTE_COMPRESSED },
1021  { _T('o'), FILE_ATTRIBUTE_OFFLINE },
1022  { _T('t'), FILE_ATTRIBUTE_TEMPORARY },
1023  { _T('l'), FILE_ATTRIBUTE_REPARSE_POINT },
1024  };
1025  for (Attrib = Table; Attrib != &Table[9]; Attrib++)
1026  {
1027  *Out++ = w32fd.dwFileAttributes & Attrib->Value
1028  ? Attrib->Character
1029  : _T('-');
1030  }
1031  *Out++ = _T(' ');
1032  }
1033  if (Modifiers & M_TIME)
1034  {
1035  FILETIME ft;
1036  SYSTEMTIME st;
1037  FileTimeToLocalFileTime(&w32fd.ftLastWriteTime, &ft);
1038  FileTimeToSystemTime(&ft, &st);
1039 
1040  Out += FormatDate(Out, &st, TRUE);
1041  *Out++ = _T(' ');
1042  Out += FormatTime(Out, &st);
1043  *Out++ = _T(' ');
1044  }
1045  if (Modifiers & M_SIZE)
1046  {
1048  Size.LowPart = w32fd.nFileSizeLow;
1049  Size.HighPart = w32fd.nFileSizeHigh;
1050  Out += _stprintf(Out, _T("%I64u "), Size.QuadPart);
1051  }
1052  }
1053 
1054  /* When using the path-searching syntax or the S modifier,
1055  * at least part of the file path is always included.
1056  * If none of the DPNX modifiers are present, include the full path */
1057  if (PathVarName || (Modifiers & M_SHORT))
1058  if ((Modifiers & (M_DRIVE | M_PATH | M_NAME | M_EXT)) == 0)
1059  Modifiers |= M_FULL;
1060 
1061  /* Now add the requested parts of the name.
1062  * With the F modifier, add all parts to form the full path. */
1063  Extension = _tcsrchr(Filename, _T('.'));
1064  if (Modifiers & (M_DRIVE | M_FULL))
1065  {
1066  *Out++ = FixedPath[0];
1067  *Out++ = FixedPath[1];
1068  }
1069  if (Modifiers & (M_PATH | M_FULL))
1070  {
1071  memcpy(Out, &FixedPath[2], (char *)Filename - (char *)&FixedPath[2]);
1072  Out += Filename - &FixedPath[2];
1073  }
1074  if (Modifiers & (M_NAME | M_FULL))
1075  {
1076  while (*Filename && Filename != Extension)
1077  *Out++ = *Filename++;
1078  }
1079  if (Modifiers & (M_EXT | M_FULL))
1080  {
1081  if (Extension)
1082  Out = _stpcpy(Out, Extension);
1083  }
1084 
1085  /* Trim trailing space which otherwise would appear as a
1086  * result of using the A/T/Z modifiers but no others. */
1087  while (Out != &Result[0] && Out[-1] == _T(' '))
1088  Out--;
1089  *Out = _T('\0');
1090 
1091  return Result;
1092 }
INT FormatTime(TCHAR *, LPSYSTEMTIME)
Definition: dir.c:688
unsigned short WORD
Definition: ntddk_ex.h:93
#define TRUE
Definition: types.h:120
#define FILE_ATTRIBUTE_TEMPORARY
Definition: nt_native.h:708
#define _tcsicmp
Definition: xmlstorage.h:205
LPBATCH_CONTEXT bc
Definition: batch.c:66
#define FILE_ATTRIBUTE_SYSTEM
Definition: nt_native.h:704
#define CMDLINE_LENGTH
Definition: help.h:12
VKNAME Modifiers[]
Definition: data.c:56
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
Definition: tcscpy.h:8
$ULONG LowPart
Definition: ntbasedef.h:568
INT FormatDate(TCHAR *, LPSYSTEMTIME, BOOL)
Definition: dir.c:659
_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:426
BOOL WINAPI FileTimeToLocalFileTime(IN CONST FILETIME *lpFileTime, OUT LPFILETIME lpLocalFileTime)
Definition: time.c:211
CHAR * LPTSTR
Definition: xmlstorage.h:192
#define SearchPath
Definition: winbase.h:3662
LPTSTR _stpcpy(LPTSTR, LPCTSTR)
Definition: misc.c:445
#define _T(x)
Definition: tchar.h:1542
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185
size_t __cdecl _tcslen(const _TCHAR *str)
Definition: tcslen.h:9
smooth NULL
Definition: ftsmooth.c:513
#define FindFirstFile
Definition: winbase.h:3544
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
Definition: tcschr.h:4
#define FILE_ATTRIBUTE_REPARSE_POINT
Definition: ntifs_ex.h:381
#define FILE_ATTRIBUTE_DIRECTORY
Definition: nt_native.h:705
UINTN Size
Definition: acefiex.h:555
char TCHAR
Definition: xmlstorage.h:189
$ULONG HighPart
Definition: ntbasedef.h:569
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:178
unsigned int BOOL
Definition: ntddk_ex.h:94
TCHAR BatchFilePath[MAX_PATH]
Definition: batch.h:14
#define MAX_PATH
Definition: compat.h:26
#define FILE_ATTRIBUTE_READONLY
Definition: nt_native.h:702
#define FILE_ATTRIBUTE_COMPRESSED
Definition: nt_native.h:711
#define FILE_ATTRIBUTE_ARCHIVE
Definition: nt_native.h:706
#define _totlower
Definition: tchar.h:1511
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define GetFullPathName
Definition: winbase.h:3583
PBYTE Character
Definition: device.h:83
UINTN UINT8 Value
Definition: acefiex.h:751
#define _stprintf
Definition: utility.h:124
DWORD *typedef HANDLE
Definition: winlogon.h:52
LPTSTR GetEnvVar(LPCTSTR varName)
Definition: cmd.c:768
#define FILE_ATTRIBUTE_HIDDEN
Definition: nt_native.h:703
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 * Format
Definition: acpixf.h:1196
_TCHAR * _tcsrchr(const _TCHAR *s, _XINT c)
Definition: tcsrchr.h:4
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092
#define FILE_ATTRIBUTE_OFFLINE
Definition: nt_native.h:712
BOOL WINAPI FindClose(HANDLE hFindFile)
Definition: find.c:500
LPTSTR GetEnvVar ( LPCTSTR  varName)

Definition at line 768 of file cmd.c.

Referenced by Cleanup(), GetEnhancedVar(), and GetEnvVarOrSpecial().

769 {
770  static LPTSTR ret = NULL;
771  UINT size;
772 
773  cmd_free(ret);
774  ret = NULL;
775  size = GetEnvironmentVariable(varName, NULL, 0);
776  if (size > 0)
777  {
778  ret = cmd_alloc(size * sizeof(TCHAR));
779  if (ret != NULL)
780  GetEnvironmentVariable(varName, ret, size + 1);
781  }
782  return ret;
783 }
CHAR * LPTSTR
Definition: xmlstorage.h:192
smooth NULL
Definition: ftsmooth.c:513
char TCHAR
Definition: xmlstorage.h:189
int ret
#define cmd_alloc(size)
Definition: cmddbg.h:29
#define cmd_free(ptr)
Definition: cmddbg.h:31
GLsizeiptr size
Definition: glext.h:5919
unsigned int UINT
Definition: ndis.h:50
#define GetEnvironmentVariable
Definition: winbase.h:3576
LPCTSTR GetEnvVarOrSpecial ( LPCTSTR  varName)

Definition at line 786 of file cmd.c.

Referenced by ExecuteIf(), seta_identval(), and SubstituteVars().

787 {
788  static TCHAR ret[MAX_PATH];
789 
790  LPTSTR var = GetEnvVar(varName);
791  if (var)
792  return var;
793 
794  /* env var doesn't exist, look for a "special" one */
795  /* %CD% */
796  if (_tcsicmp(varName,_T("cd")) ==0)
797  {
799  return ret;
800  }
801  /* %TIME% */
802  else if (_tcsicmp(varName,_T("time")) ==0)
803  {
804  return GetTimeString();
805  }
806  /* %DATE% */
807  else if (_tcsicmp(varName,_T("date")) ==0)
808  {
809  return GetDateString();
810  }
811 
812  /* %RANDOM% */
813  else if (_tcsicmp(varName,_T("random")) ==0)
814  {
815  /* Get random number */
816  _itot(rand(),ret,10);
817  return ret;
818  }
819 
820  /* %CMDCMDLINE% */
821  else if (_tcsicmp(varName,_T("cmdcmdline")) ==0)
822  {
823  return GetCommandLine();
824  }
825 
826  /* %CMDEXTVERSION% */
827  else if (_tcsicmp(varName,_T("cmdextversion")) ==0)
828  {
829  /* Set version number to 2 */
830  _itot(2,ret,10);
831  return ret;
832  }
833 
834  /* %ERRORLEVEL% */
835  else if (_tcsicmp(varName,_T("errorlevel")) ==0)
836  {
837  _itot(nErrorLevel,ret,10);
838  return ret;
839  }
840 
841  return NULL;
842 }
INT nErrorLevel
Definition: cmd.c:161
#define _tcsicmp
Definition: xmlstorage.h:205
CHAR * LPTSTR
Definition: xmlstorage.h:192
#define _itot
Definition: tchar.h:608
LPTSTR GetTimeString(VOID)
Definition: locale.c:73
#define _T(x)
Definition: tchar.h:1542
_Check_return_ int __cdecl rand(void)
Definition: rand.c:10
#define GetCurrentDirectory
Definition: winbase.h:3567
smooth NULL
Definition: ftsmooth.c:513
#define GetCommandLine
Definition: winbase.h:3561
char TCHAR
Definition: xmlstorage.h:189
#define MAX_PATH
Definition: compat.h:26
int ret
LPTSTR GetDateString(VOID)
Definition: locale.c:58
LPTSTR GetEnvVar(LPCTSTR varName)
Definition: cmd.c:768
static VOID Initialize ( )
static

Definition at line 1619 of file cmd.c.

Referenced by _tmain().

1620 {
1621  HMODULE NtDllModule;
1622  TCHAR commandline[CMDLINE_LENGTH];
1623  TCHAR ModuleName[_MAX_PATH + 1];
1624  INT nExitCode;
1625 
1626  //INT len;
1627  TCHAR *ptr, *cmdLine, option = 0;
1628  BOOL AlwaysStrip = FALSE;
1629  BOOL AutoRun = TRUE;
1630 
1631  /* Get version information */
1632  InitOSVersion();
1633 
1634  /* Some people like to run ReactOS cmd.exe on Win98, it helps in the
1635  * build process. So don't link implicitly against ntdll.dll, load it
1636  * dynamically instead */
1637  NtDllModule = GetModuleHandle(TEXT("ntdll.dll"));
1638  if (NtDllModule != NULL)
1639  {
1640  NtQueryInformationProcessPtr = (NtQueryInformationProcessProc)GetProcAddress(NtDllModule, "NtQueryInformationProcess");
1641  NtReadVirtualMemoryPtr = (NtReadVirtualMemoryProc)GetProcAddress(NtDllModule, "NtReadVirtualMemory");
1642  }
1643 
1644  InitLocale();
1645 
1646  /* get default input and output console handles */
1649 
1650  /* Initialize prompt support */
1651  InitPrompt();
1652 
1653 #ifdef FEATURE_DIR_STACK
1654  /* initialize directory stack */
1656 #endif
1657 
1658 #ifdef FEATURE_HISTORY
1659  /*initialize history*/
1660  InitHistory();
1661 #endif
1662 
1663  /* Set COMSPEC environment variable */
1664  if (0 != GetModuleFileName (NULL, ModuleName, _MAX_PATH + 1))
1665  {
1666  ModuleName[_MAX_PATH] = _T('\0');
1667  SetEnvironmentVariable (_T("COMSPEC"), ModuleName);
1668  }
1669 
1670  /* Add ctrl break handler */
1671  AddBreakHandler();
1672 
1673  /* Set our default console mode */
1674  SetConsoleMode(hOut, 0); // Reinitialize the console output mode
1677 
1678  cmdLine = GetCommandLine();
1679  TRACE ("[command args: %s]\n", debugstr_aw(cmdLine));
1680 
1681  for (ptr = cmdLine; *ptr; ptr++)
1682  {
1683  if (*ptr == _T('/'))
1684  {
1685  option = _totupper(ptr[1]);
1686  if (option == _T('?'))
1687  {
1689  nErrorLevel = 1;
1690  bExit = TRUE;
1691  return;
1692  }
1693  else if (option == _T('P'))
1694  {
1695  if (!IsExistingFile (_T("\\autoexec.bat")))
1696  {
1697 #ifdef INCLUDE_CMD_DATE
1698  cmd_date (_T(""));
1699 #endif
1700 #ifdef INCLUDE_CMD_TIME
1701  cmd_time (_T(""));
1702 #endif
1703  }
1704  else
1705  {
1706  ParseCommandLine (_T("\\autoexec.bat"));
1707  }
1708  bCanExit = FALSE;
1709  }
1710  else if (option == _T('A'))
1711  {
1713  }
1714  else if (option == _T('C') || option == _T('K') || option == _T('R'))
1715  {
1716  /* Remainder of command line is a command to be run */
1717  break;
1718  }
1719  else if (option == _T('D'))
1720  {
1721  AutoRun = FALSE;
1722  }
1723  else if (option == _T('Q'))
1724  {
1726  }
1727  else if (option == _T('S'))
1728  {
1729  AlwaysStrip = TRUE;
1730  }
1731 #ifdef INCLUDE_CMD_COLOR
1732  else if (!_tcsnicmp(ptr, _T("/T:"), 3))
1733  {
1734  /* process /T (color) argument */
1735  wDefColor = (WORD)_tcstoul(&ptr[3], &ptr, 16);
1737  }
1738 #endif
1739  else if (option == _T('U'))
1740  {
1741  bUnicodeOutput = TRUE;
1742  }
1743  else if (option == _T('V'))
1744  {
1745  bDelayedExpansion = _tcsnicmp(&ptr[2], _T(":OFF"), 4);
1746  }
1747  }
1748  }
1749 
1750  if (!*ptr)
1751  {
1752  /* If neither /C or /K was given, display a simple version string */
1753  ConOutChar(_T('\n'));
1755  _T(KERNEL_VERSION_STR),
1756  _T(KERNEL_VERSION_BUILD_STR));
1757  ConOutPuts(_T("(C) Copyright 1998-") _T(COPYRIGHT_YEAR) _T(" ReactOS Team.\n"));
1758  }
1759 
1760  if (AutoRun)
1761  {
1764  }
1765 
1766  if (*ptr)
1767  {
1768  /* Do the /C or /K command */
1769  GetCmdLineCommand(commandline, &ptr[2], AlwaysStrip);
1771  nExitCode = ParseCommandLine(commandline);
1773  if (option != _T('K'))
1774  {
1775  nErrorLevel = nExitCode;
1776  bExit = TRUE;
1777  }
1778  }
1779 }
VOID InitLocale(VOID)
Definition: locale.c:25
INT nErrorLevel
Definition: cmd.c:161
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 const char UINT32 const char const char * ModuleName
Definition: acpixf.h:1256
unsigned short WORD
Definition: ntddk_ex.h:93
#define TRUE
Definition: types.h:120
BOOL bUnicodeOutput
Definition: cmd.c:163
static BOOL bWaitForCommand
Definition: cmd.c:160
VOID InitHistory(VOID)
Definition: history.c:132
#define STRING_REACTOS_VERSION
Definition: resource.h:92
#define HKEY_CURRENT_USER
Definition: winreg.h:11
INT cmd_date(LPTSTR)
Definition: date.c:176
#define debugstr_aw
Definition: precomp.h:34
#define CMDLINE_LENGTH
Definition: help.h:12
HANDLE hIn
Definition: cmd.c:168
static VOID GetCmdLineCommand(TCHAR *commandline, TCHAR *ptr, BOOL AlwaysStrip)
Definition: cmd.c:1564
VOID ConOutResPaging(BOOL NewPage, UINT resID)
Definition: console.c:269
INT ParseCommandLine(LPTSTR cmd)
Definition: cmd.c:567
VOID InitPrompt(VOID)
Definition: prompt.c:57
#define _totupper
Definition: tchar.h:1509
static NtQueryInformationProcessProc NtQueryInformationProcessPtr
Definition: cmd.c:173
int32_t INT
Definition: typedefs.h:57
NTSTATUS(WINAPI * NtQueryInformationProcessProc)(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG)
Definition: cmd.c:152
#define ENABLE_ECHO_INPUT
Definition: wincon.h:77
BOOL SetScreenColor(WORD wColor, BOOL bNoFill)
Definition: color.c:27
#define ENABLE_WRAP_AT_EOL_OUTPUT
Definition: blue.h:45
#define _T(x)
Definition: tchar.h:1542
#define FALSE
Definition: types.h:117
#define _tcsnicmp
Definition: xmlstorage.h:207
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
Definition: console.c:1608
#define _MAX_PATH
Definition: utility.h:77
NTSTATUS(WINAPI * NtReadVirtualMemoryProc)(HANDLE, PVOID, PVOID, ULONG, PULONG)
Definition: cmd.c:154
static PVOID ptr
Definition: dispmode.c:30
WORD wDefColor
Definition: cmd.c:177
smooth NULL
Definition: ftsmooth.c:513
Definition: getopt.h:108
static VOID ExecuteAutoRunFile(HKEY hkeyRoot)
Definition: cmd.c:1536
#define GetCommandLine
Definition: winbase.h:3561
#define STD_INPUT_HANDLE
Definition: winbase.h:262
INT cmd_time(LPTSTR)
Definition: time.c:132
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:137
char TCHAR
Definition: xmlstorage.h:189
BOOL bCanExit
Definition: cmd.c:157
#define TRACE(s)
Definition: solgame.cpp:4
unsigned int BOOL
Definition: ntddk_ex.h:94
VOID ConOutResPrintf(UINT resID,...)
Definition: console.c:439
VOID InitDirectoryStack(VOID)
Definition: dirstack.c:79
static NtReadVirtualMemoryProc NtReadVirtualMemoryPtr
Definition: cmd.c:174
BOOL bDisableBatchEcho
Definition: cmd.c:164
#define ENABLE_LINE_INPUT
Definition: wincon.h:76
#define GetModuleFileName
Definition: winbase.h:3593
#define _tcstoul
Definition: tchar.h:595
#define SetEnvironmentVariable
Definition: winbase.h:3670
#define STD_OUTPUT_HANDLE
Definition: winbase.h:263
VOID AddBreakHandler(VOID)
Definition: cmd.c:1489
#define ENABLE_PROCESSED_OUTPUT
Definition: blue.h:44
#define ENABLE_PROCESSED_INPUT
Definition: wincon.h:75
#define TEXT(s)
Definition: k32.h:26
#define GetModuleHandle
Definition: winbase.h:3589
BOOL bDelayedExpansion
Definition: cmd.c:165
VOID ConOutPuts(LPTSTR)
Definition: console.c:283
#define STRING_CMD_HELP8
Definition: resource.h:87
BOOL bExit
Definition: cmd.c:156
HANDLE HMODULE
Definition: typedefs.h:76
HANDLE hOut
Definition: cmd.c:169
#define GetProcAddress(x, y)
Definition: compat.h:410
VOID ConOutChar(TCHAR)
Definition: console.c:259
BOOL IsExistingFile(LPCTSTR)
Definition: misc.c:484
VOID InitOSVersion(VOID)
Definition: ver.c:32
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12
static BOOL IsConsoleProcess ( HANDLE  Process)
static

Definition at line 221 of file cmd.c.

Referenced by Execute().

222 {
225  PEB ProcessPeb;
227 
229  {
230  return TRUE;
231  }
232 
235  &Info, sizeof(PROCESS_BASIC_INFORMATION), NULL);
236  if (! NT_SUCCESS(Status))
237  {
238  WARN ("NtQueryInformationProcess failed with status %08x\n", Status);
239  return TRUE;
240  }
241  Status = NtReadVirtualMemoryPtr (
242  Process, Info.PebBaseAddress, &ProcessPeb,
243  sizeof(PEB), &BytesRead);
244  if (! NT_SUCCESS(Status) || sizeof(PEB) != BytesRead)
245  {
246  WARN ("Couldn't read virt mem status %08x bytes read %lu\n", Status, BytesRead);
247  return TRUE;
248  }
249 
250  return IMAGE_SUBSYSTEM_WINDOWS_CUI == ProcessPeb.ImageSubsystem;
251 }
Definition: video.h:583
#define TRUE
Definition: types.h:120
#define WARN(fmt,...)
Definition: debug.h:111
static NtQueryInformationProcessProc NtQueryInformationProcessPtr
Definition: cmd.c:173
#define IMAGE_SUBSYSTEM_WINDOWS_CUI
Definition: ntimage.h:438
smooth NULL
Definition: ftsmooth.c:513
static NtReadVirtualMemoryProc NtReadVirtualMemoryPtr
Definition: cmd.c:174
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: cmd.c:149
LONG NTSTATUS
Definition: DriverTester.h:11
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
unsigned int ULONG
Definition: retypes.h:1
_Must_inspect_result_ _In_ PFILE_OBJECT _In_opt_ PLARGE_INTEGER _In_ ULONG _In_ FLT_IO_OPERATION_FLAGS _Out_opt_ PULONG BytesRead
Definition: fltkernel.h:1255
ULONG ImageSubsystem
Definition: ntddk_ex.h:308
INT ParseCommandLine ( LPTSTR  cmd)

Definition at line 567 of file cmd.c.

Referenced by Cleanup(), ExecuteAutoRunFile(), and Initialize().

568 {
569  INT Ret = 0;
571  if (Cmd)
572  {
573  Ret = ExecuteCommand(Cmd);
574  FreeCommand(Cmd);
575  }
576  return Ret;
577 }
Definition: ftp_var.h:139
int32_t INT
Definition: typedefs.h:57
Definition: sacdrv.h:278
VOID FreeCommand(PARSED_COMMAND *Cmd)
Definition: parser.c:945
PARSED_COMMAND * ParseCommand(LPTSTR Line)
Definition: parser.c:707
INT ExecuteCommand(PARSED_COMMAND *Cmd)
Definition: cmd.c:706
static VOID ProcessInput ( )
static

Definition at line 1416 of file cmd.c.

Referenced by _tmain().

1417 {
1419 
1420  while (!bCanExit || !bExit)
1421  {
1422  Cmd = ParseCommand(NULL);
1423  if (!Cmd)
1424  continue;
1425 
1426  ExecuteCommand(Cmd);
1427  FreeCommand(Cmd);
1428  }
1429 }
smooth NULL
Definition: ftsmooth.c:513
BOOL bCanExit
Definition: cmd.c:157
Definition: sacdrv.h:278
VOID FreeCommand(PARSED_COMMAND *Cmd)
Definition: parser.c:945
BOOL bExit
Definition: cmd.c:156
PARSED_COMMAND * ParseCommand(LPTSTR Line)
Definition: parser.c:707
INT ExecuteCommand(PARSED_COMMAND *Cmd)
Definition: cmd.c:706
BOOL ReadLine ( TCHAR commandline,