Page 1 of 1

MQAuth Edit

Posted: Mon Aug 09, 2004 4:36 pm
by Bloodshot
MQAuth.cpp

Code: Select all

#include "MQ2Main.h"

DWORD gh;
LRESULT CALLBACK proc( int nCode, WPARAM wParam, LPARAM lParam ){return ::CallNextHookEx( (HHOOK)gh, nCode, wParam, lParam );}
typedef DWORD	(__cdecl *FNCB)(DWORD,HINSTANCE,DWORD&);
#undef MQ2AUTH
#define	MQ2AUTH(z) VOID z(DWORD x){FNCB f=(FNCB)x;f((DWORD)proc,ghInstance,gh);}
#include "MQ2Auth0.h"
To add multiple users, must this be modified to include MQ2Auth1.h and so on? I'm still sort of unfamiliar with the syntax this language uses also, such as...
#include "MQ2Auth0.h, MQ2Auth1.h, MQ2Auth2.h"
or
#include "MQ2Auth0.h"
#include "MQ2Auth1.h"
#include "MQ2Auth2.h"
I am very new to this particular programming language, and trying to teach myself aside from the free information available online. So if you have a spare moment, and able to answer this I'd appreciate it.

Forgive my ignorance, it's a learning experience is progress. I'm not looking for all the answers, but maybe a step in the right direction.

Posted: Mon Aug 09, 2004 4:44 pm
by eqjoe
No.


Run MQ2auth.exe on each system and simply append the hash from the resulting MQ2auth0.h. So the MQ2auth0.h can support up to 8 systems hash in the same file (if I remember correctly).

Another way to do this is to make a network share, run mq2auth.exe from the share on each system that you want to authorize. The exe will append each systems hash to the MQ2auth0.h.

-j

Re: MQAuth Edit

Posted: Mon Aug 09, 2004 4:45 pm
by dont_know_at_all
Bloodshot wrote:To add multiple users, must this be modified to include MQ2Auth1.h and so on? I'm still sort of unfamiliar with the syntax this language uses also, such as...
No. MQ2Auth.exe modifies the mq2auth0.h file. Follow the instructions for compiling for multiple machines.

Posted: Mon Aug 09, 2004 4:53 pm
by Bloodshot
Read the instructions regarding multiple installations again, and with what you said in mind it makes perfect sense. Not sure why it eluded me the first time, but learning is a process...

Thanks for the help guys!