Skip to content

Commit

Permalink
regen list of syscalls
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gaynor committed Sep 8, 2017
1 parent 3581dba commit 4703ecb
Showing 1 changed file with 76 additions and 85 deletions.
161 changes: 76 additions & 85 deletions win32k-tracing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ const EXCLUDED_WIN32K_SYSCALLS = [
];

const WIN32K_SYSCALLS = [
"IsNtGdiFastPolyPolylineSupported",
"IsNtGdiFlushUserBatchSupported",
"NtBindCompositionSurface",
"NtCompositionInputThread",
"NtCompositionSetDropTarget",
"NtCreateCompositionInputSink",
"NtCreateCompositionSurfaceHandle",
"NtCreateImplicitCompositionInputSink",
"NtDCompositionAddCrossDeviceVisualChild",
"NtDCompositionBeginFrame",
"NtDCompositionCommitChannel",
Expand Down Expand Up @@ -49,7 +53,6 @@ const WIN32K_SYSCALLS = [
"NtDCompositionSetChildRootVisual",
"NtDCompositionSetDebugCounter",
"NtDCompositionSubmitDWMBatch",
"NtDCompositionSyncWait",
"NtDCompositionSynchronize",
"NtDCompositionTelemetryAnimationScenarioBegin",
"NtDCompositionTelemetryAnimationScenarioReference",
Expand All @@ -60,6 +63,8 @@ const WIN32K_SYSCALLS = [
"NtDCompositionTelemetryTouchInteractionUpdate",
"NtDCompositionUpdatePointerCapture",
"NtDCompositionWaitForChannel",
"NtDesktopCaptureBits",
"NtDuplicateCompositionInputSink",
"NtGdiAbortDoc",
"NtGdiAbortPath",
"NtGdiAddEmbFontToDC",
Expand Down Expand Up @@ -120,32 +125,13 @@ const WIN32K_SYSCALLS = [
"NtGdiCreateServerMetaFile",
"NtGdiCreateSessionMappedDIBSection",
"NtGdiCreateSolidBrush",
"NtGdiD3dContextCreate",
"NtGdiD3dContextDestroy",
"NtGdiD3dContextDestroyAll",
"NtGdiD3dDrawPrimitives2",
"NtGdiD3dValidateTextureStageState",
"NtGdiDDCCIGetCapabilitiesString",
"NtGdiDDCCIGetCapabilitiesStringLength",
"NtGdiDDCCIGetTimingReport",
"NtGdiDDCCIGetVCPFeature",
"NtGdiDDCCISaveCurrentSettings",
"NtGdiDDCCISetVCPFeature",
"NtGdiDdAddAttachedSurface",
"NtGdiDdAlphaBlt",
"NtGdiDdAttachSurface",
"NtGdiDdBeginMoCompFrame",
"NtGdiDdBlt",
"NtGdiDdCanCreateD3DBuffer",
"NtGdiDdCanCreateSurface",
"NtGdiDdColorControl",
"NtGdiDdCreateD3DBuffer",
"NtGdiDdCreateDirectDrawObject",
"NtGdiDdCreateFullscreenSprite",
"NtGdiDdCreateMoComp",
"NtGdiDdCreateSurface",
"NtGdiDdCreateSurfaceEx",
"NtGdiDdCreateSurfaceObject",
"NtGdiDdDDIAbandonSwapChain",
"NtGdiDdDDIAcquireKeyedMutex",
"NtGdiDdDDIAcquireKeyedMutex2",
Expand Down Expand Up @@ -209,9 +195,7 @@ const WIN32K_SYSCALLS = [
"NtGdiDdDDIGetOverlayState",
"NtGdiDdDDIGetPostCompositionCaps",
"NtGdiDdDDIGetPresentHistory",
"NtGdiDdDDIGetPresentHistoryInternal",
"NtGdiDdDDIGetPresentQueueEvent",
"NtGdiDdDDIGetPresentStatsInternal",
"NtGdiDdDDIGetProcessSchedulingPriorityBand",
"NtGdiDdDDIGetProcessSchedulingPriorityClass",
"NtGdiDdDDIGetResourcePresentPrivateDriverData",
Expand Down Expand Up @@ -322,46 +306,9 @@ const WIN32K_SYSCALLS = [
"NtGdiDdDDIWaitForSynchronizationObjectFromGpu",
"NtGdiDdDDIWaitForVerticalBlankEvent",
"NtGdiDdDDIWaitForVerticalBlankEvent2",
"NtGdiDdDeleteDirectDrawObject",
"NtGdiDdDeleteSurfaceObject",
"NtGdiDdDestroyD3DBuffer",
"NtGdiDdDestroyFullscreenSprite",
"NtGdiDdDestroyMoComp",
"NtGdiDdDestroySurface",
"NtGdiDdEndMoCompFrame",
"NtGdiDdFlip",
"NtGdiDdFlipToGDISurface",
"NtGdiDdGetAvailDriverMemory",
"NtGdiDdGetBltStatus",
"NtGdiDdGetDC",
"NtGdiDdGetDriverInfo",
"NtGdiDdGetDriverState",
"NtGdiDdGetDxHandle",
"NtGdiDdGetFlipStatus",
"NtGdiDdGetInternalMoCompInfo",
"NtGdiDdGetMoCompBuffInfo",
"NtGdiDdGetMoCompFormats",
"NtGdiDdGetMoCompGuids",
"NtGdiDdGetScanLine",
"NtGdiDdLock",
"NtGdiDdLockD3D",
"NtGdiDdNotifyFullscreenSpriteUpdate",
"NtGdiDdQueryDirectDrawObject",
"NtGdiDdQueryMoCompStatus",
"NtGdiDdQueryVisRgnUniqueness",
"NtGdiDdReenableDirectDrawObject",
"NtGdiDdReleaseDC",
"NtGdiDdRenderMoComp",
"NtGdiDdResetVisrgn",
"NtGdiDdSetColorKey",
"NtGdiDdSetExclusiveMode",
"NtGdiDdSetGammaRamp",
"NtGdiDdSetOverlayPosition",
"NtGdiDdUnattachSurface",
"NtGdiDdUnlock",
"NtGdiDdUnlockD3D",
"NtGdiDdUpdateOverlay",
"NtGdiDdWaitForVerticalBlank",
"NtGdiDeleteClientObj",
"NtGdiDeleteColorSpace",
"NtGdiDeleteColorTransform",
Expand All @@ -373,25 +320,7 @@ const WIN32K_SYSCALLS = [
"NtGdiDoPalette",
"NtGdiDrawEscape",
"NtGdiDrawStream",
"NtGdiDvpAcquireNotification",
"NtGdiDvpCanCreateVideoPort",
"NtGdiDvpColorControl",
"NtGdiDvpCreateVideoPort",
"NtGdiDvpDestroyVideoPort",
"NtGdiDvpFlipVideoPort",
"NtGdiDvpGetVideoPortBandwidth",
"NtGdiDvpGetVideoPortConnectInfo",
"NtGdiDvpGetVideoPortField",
"NtGdiDvpGetVideoPortFlipStatus",
"NtGdiDvpGetVideoPortInputFormats",
"NtGdiDvpGetVideoPortLine",
"NtGdiDvpGetVideoPortOutputFormats",
"NtGdiDvpGetVideoSignalStatus",
"NtGdiDvpReleaseNotification",
"NtGdiDvpUpdateVideoPort",
"NtGdiDvpWaitForVideoPortSync",
"NtGdiDwmCreatedBitmapRemotingOutput",
"NtGdiDxgGenericThunk",
"NtGdiEllipse",
"NtGdiEnableEudc",
"NtGdiEndDoc",
Expand Down Expand Up @@ -448,12 +377,10 @@ const WIN32K_SYSCALLS = [
"NtGdiFONTOBJ_pvTrueTypeFontFile",
"NtGdiFONTOBJ_pxoGetXform",
"NtGdiFONTOBJ_vGetInfo",
"NtGdiFastPolyPolyline",
"NtGdiFillPath",
"NtGdiFillRgn",
"NtGdiFlattenPath",
"NtGdiFlush",
"NtGdiFlushUserBatch",
"NtGdiFontIsLinked",
"NtGdiForceUFIMapping",
"NtGdiFrameRgn",
Expand Down Expand Up @@ -656,6 +583,67 @@ const WIN32K_SYSCALLS = [
"NtGdiXLATEOBJ_cGetPalette",
"NtGdiXLATEOBJ_hGetColorTransform",
"NtGdiXLATEOBJ_iXlate",
"NtHWCursorUpdatePointer",
"NtMITActivateInputProcessing",
"NtMITBindInputTypeToMonitors",
"NtMITCoreMsgKGetConnectionHandle",
"NtMITCoreMsgKOpenConnectionTo",
"NtMITCoreMsgKSend",
"NtMITDeactivateInputProcessing",
"NtMITDisableMouseIntercept",
"NtMITEnableMouseIntercept",
"NtMITSetInputCallbacks",
"NtMITSynthesizeMouseInput",
"NtMITSynthesizeMouseWheel",
"NtMITSynthesizeTouchInput",
"NtMITUpdateInputGlobals",
"NtMITWaitForMultipleObjectsEx",
"NtNotifyPresentToCompositionSurface",
"NtOpenCompositionSurfaceDirtyRegion",
"NtOpenCompositionSurfaceSectionInfo",
"NtOpenCompositionSurfaceSwapChainHandleInfo",
"NtQueryCompositionInputIsImplicit",
"NtQueryCompositionInputQueueAndTransform",
"NtQueryCompositionInputSink",
"NtQueryCompositionInputSinkLuid",
"NtQueryCompositionInputSinkViewId",
"NtQueryCompositionSurfaceBinding",
"NtQueryCompositionSurfaceHDRMetaData",
"NtQueryCompositionSurfaceRenderingRealization",
"NtQueryCompositionSurfaceStatistics",
"NtRIMAddInputObserver",
"NtRIMAreSiblingDevices",
"NtRIMDeviceIoControl",
"NtRIMFreeInputBuffer",
"NtRIMGetDevicePreparsedData",
"NtRIMGetDevicePreparsedDataLockfree",
"NtRIMGetDeviceProperties",
"NtRIMGetDevicePropertiesLockfree",
"NtRIMGetPhysicalDeviceRect",
"NtRIMGetSourceProcessId",
"NtRIMObserveNextInput",
"NtRIMOnPnpNotification",
"NtRIMOnTimerNotification",
"NtRIMReadInput",
"NtRIMRegisterForInput",
"NtRIMRemoveInputObserver",
"NtRIMSetTestModeStatus",
"NtRIMUnregisterForInput",
"NtRIMUpdateInputObserverRegistration",
"NtSetCompositionSurfaceAnalogExclusive",
"NtSetCompositionSurfaceBufferUsage",
"NtSetCompositionSurfaceDirectFlipState",
"NtSetCompositionSurfaceHDRMetaData",
"NtSetCompositionSurfaceIndependentFlipInfo",
"NtSetCompositionSurfaceStatistics",
"NtTokenManagerConfirmOutstandingAnalogToken",
"NtTokenManagerCreateCompositionTokenHandle",
"NtTokenManagerGetAnalogExclusiveSurfaceUpdates",
"NtTokenManagerGetAnalogExclusiveTokenEvent",
"NtTokenManagerOpenSectionAndEvents",
"NtTokenManagerThread",
"NtUnBindCompositionSurface",
"NtUpdateInputSinkTransforms",
"NtUserAcquireIAMKey",
"NtUserAcquireInteractiveControlBackgroundAccess",
"NtUserActivateKeyboardLayout",
Expand Down Expand Up @@ -1029,7 +1017,8 @@ const WIN32K_SYSCALLS = [
"NtUserSetCapture",
"NtUserSetChildWindowNoActivate",
"NtUserSetClassLong",
"NtUserSetClassLongPtr",
// TODO: Seems to cause an error when this is included.
// "NtUserSetClassLongPtr",
"NtUserSetClassWord",
"NtUserSetClipboardData",
"NtUserSetClipboardViewer",
Expand Down Expand Up @@ -1091,7 +1080,8 @@ const WIN32K_SYSCALLS = [
"NtUserSetWindowFNID",
"NtUserSetWindowFeedbackSetting",
"NtUserSetWindowLong",
"NtUserSetWindowLongPtr",
// TODO: Seems to cause an error when this is included.
// "NtUserSetWindowLongPtr",
"NtUserSetWindowPlacement",
"NtUserSetWindowPos",
"NtUserSetWindowRgn",
Expand Down Expand Up @@ -1151,10 +1141,11 @@ const WIN32K_SYSCALLS = [
"NtUserWaitForMsgAndEvent",
"NtUserWaitForRedirectionStartComplete",
"NtUserWaitMessage",
"NtUserWin32kSysCallFilterStub",
"NtUserWindowFromPhysicalPoint",
"NtUserWindowFromPoint",
"NtUserYieldTask"
"NtUserYieldTask",
"NtValidateCompositionSurfaceHandle",
"NtVisualCaptureBits",
];

function _executeCommand(cmd) {
Expand Down

0 comments on commit 4703ecb

Please sign in to comment.