So, does anyone know how should I properly initialize CLR or what should I do at all, to be able to run a .NET process in my exeutable? I'm out of ideas.

What I can't understand is that using Process Hollowing on a .NET host exe and .NET payload exe works perfectly. Thus creating a suspended process of a .NET file is perfectly fine and it's running. But a default-suspended process has no CLR initialization at all. Actually as I've seen, I couldn't spot any special thing at all. So why does simply loading it into my process fail?

I'd like to ask if anyone can help me in this topic. I'd like to build
a home-made RFID cloner for custom purposes I've already
got an RC522 MiFare reader/writer, which works at 13.56Mhz,
but most of the devices I encountered it didn't even recognized.
Probably because they use different frequency.

As I've seen that different frequency is 125kHz, but I can't
make sure.

As I've seen such RFID cards has an ID and a DATA place,
which usually has some kind of ACL restriction.

At some places I read that 125kHz cards are primitve and only
has ID burnt into, meanwhile others mention even DATA at
125kHz devices.

Now I'd like to ask - what is the truth, how do these RFID cards
build up? Is it possible to make a cloner for most of the standard
cards? ( well, everything is possible ) How should I start further

Recently I wanted to hook firefox (and probably later I want to try other apps & browsers) to hook their exit routine. I don't want a specific hook at a custom address, I was thinking something general.

My main point is to block closing by:

ALT+F4

Right corner, X button

ALT-F4 is easy to do, but I've got struggled with how to block exit with the X button. I might approach it the wrong point, so please write it if you've got an better idea

So, my current method is:

I'm hooking main message loop by using SetWindowLongPtr, and sniffing the messages. In case of a forbidden message I just return 0, so I won't execute it's associated thing.

I actually tried to block almost every freaky message, but only one thing helped me: blocking mouse click, which is obviously not the best solution

I tried blocking

WM_QUIT

WM_CLOSE

WM_DESTROY

WM_NCDESTROY

And many other non-quit related messages. NONE helped, firefox still closed after pressing exit.