Skip to content

Ghidra is a software reverse engineering (SRE) framework

2.6 KB
Raw Blame
:: ###
:: IP: GHIDRA
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at
::
::      http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
:: ##
::Run this from this same directory
@echo off
:: After extraction, manual edits are required to implement the captureState for LastError

C:\Software\jextract-25\bin\jextract ^
  --output ..\src\main\java ^
  --target-package com.microsoft.win32 ^
  win32.h ^
  --include-function AssignProcessToJobObject ^
  --include-function CloseHandle ^
  --include-function ClosePseudoConsole ^
  --include-function ConnectNamedPipe ^
  --include-function CreatePipe ^
  --include-function CreateJobObjectW ^
  --include-function CreateProcessW ^
  --include-function CreatePseudoConsole ^
  --include-function FlushFileBuffers ^
  --include-function FormatMessageW ^
  --include-function GetExitCodeProcess ^
  --include-function InitializeProcThreadAttributeList ^
  --include-function LocalFree ^
  --include-function ReadFile ^
  --include-function ResizePseudoConsole ^
  --include-function TerminateJobObject ^
  --include-function UpdateProcThreadAttribute ^
  --include-function WaitForSingleObject ^
  --include-function WriteFile ^
  --include-struct _COORD ^
  --include-struct _PROCESS_INFORMATION ^
  --include-struct _STARTUPINFOW ^
  --include-struct _STARTUPINFOEXW ^
  --include-typedef DWORD ^
  --include-typedef UINT ^
  --include-typedef HANDLE ^
  --include-typedef HRESULT ^
  --include-typedef LPWSTR ^
  --include-constant S_OK ^
  --include-constant CREATE_UNICODE_ENVIRONMENT ^
  --include-constant ERROR_BROKEN_PIPE ^
  --include-constant ERROR_PIPE_CONNECTED ^
  --include-constant ERROR_PIPE_LISTENING ^
  --include-constant EXTENDED_STARTUPINFO_PRESENT ^
  --include-constant FORMAT_MESSAGE_FROM_SYSTEM ^
  --include-constant FORMAT_MESSAGE_IGNORE_INSERTS ^
  --include-constant FORMAT_MESSAGE_ARGUMENT_ARRAY ^
  --include-constant FORMAT_MESSAGE_ALLOCATE_BUFFER ^
  --include-constant PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE ^
  --include-constant STARTF_USESTDHANDLES ^
  --include-constant STILL_ACTIVE ^
  --include-constant WAIT_ABANDONED ^
  --include-constant WAIT_FAILED ^
  --include-constant WAIT_OBJECT_0 ^
  --include-constant WAIT_TIMEOUT ^
  --library Kernel32