Jump to content

4 posts in this topic

Recommended Posts

Was wondering how I would hook this function that has a custom enumerable type for the first argument parsed into the function. What I mean is how I would exactly define it as it's a custom enum.

When I mean Hooking I mean by using MS and doing a MSHookFunction. 

Do excuse my not very good understanding off MSHook's and its usage.

// Thing to hook:
// As you can see: 'LocationType' is the custom enum type. 
public static bool IsActiveFountain(LocationType locationType, int index)
{
	return default(bool);
}

 

Updated by carpoa
Link to comment
https://iosgods.com/topic/177790-ms-hooking-function-with-custom-enum-for-arg0/
Share on other sites

21 hours ago, Taylor Meyer said:

so I want to mention right away to make it clear that this is not my expertise at all



but what I did is I took your code and did some prompts into Copilot AI code interpreter and this is what it said:

Disclaimer: keep in mind if anything is wrong it is the AI

everything in the quote and the extra quote is by the code interpreter
 



Generated using Copilot AI

I appreciate you trying to help but if you don't know please don't go to an AI bot. They only know from the data given to them from when they were learning from the internet meaning they can be wrong most of the time.

@Laxus@Zahir

I do not mean to be a pain by pinging you both but I could use some help with this.

Iam a bit inexperienced with MSHooking and stuff like that; I know how to do it just in this case with custom types like this I don't really know.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines