MQAuth Edit

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Bloodshot
decaying skeleton
decaying skeleton
Posts: 4
Joined: Mon Aug 09, 2004 4:30 pm

MQAuth Edit

Post by Bloodshot » Mon Aug 09, 2004 4:36 pm

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.

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Mon Aug 09, 2004 4:44 pm

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
Last edited by eqjoe on Mon Aug 09, 2004 4:45 pm, edited 1 time in total.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Re: MQAuth Edit

Post by dont_know_at_all » Mon Aug 09, 2004 4:45 pm

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.

Bloodshot
decaying skeleton
decaying skeleton
Posts: 4
Joined: Mon Aug 09, 2004 4:30 pm

Post by Bloodshot » Mon Aug 09, 2004 4:53 pm

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!