Sign in to follow this  
Followers 0
AcidCorps

Checking CD-Key with PIDGEN.DLL

5 posts in this topic

I mentioned a project in a previous post which is a simular application to nLite, creatating a unattended windows xp setup.

where I am now I need to check the CD-Key to verify that it will work, I've done some research and found that Pidgen.dll is the file which checks the cd-key (I don't believe it is the file that activates windows simply checks the key during setup) I was wondering if anyone could help me find the dll call to check the cd-key outside of setup.

I've looked around and haven't found to much as far as checking the key, I've found people that have managed to open the file but I won't say what they found on this forum

any help would be great

- Acid

Share this post


Link to post
Share on other sites



I have some C++ code but don't understand it enough I was hoping somebody would help me convert it to AutoIt

Load DLL:

typedef int (*PIDGenAProc)(LPCSTR,int,int,int,int,int,int,int,int,int,int,int,int,int); 
 
 pPIDGenAproc pPIDGenA;
 
 hModule = LoadLibrary("PIDGEN.DLL");
 if (hModule != 0) 
 {
     // Load Failed. use GetLastError() to find out why.
 }
 else
 {
     pPIDGenA = (PIDGenAProc) GetProcAddress(hinstLib, TEXT("PIDGenA")); 
 }

Which if i understand right DllCall takes care of all that (pleae correct me if I'm wrong)

To call the function:

if (pPIDGenA != (PIDGenaProc)(NULL))
     (pPIDGenA)("hello",0,1,2,3,4,5,6,7,8,9,10,11,12);

DllCall?

Functions:

int __stdcall PIDGenA(LPCSTR,int,int,int,int,int,int,int,int,int,int,int,int,int)
 int __stdcall PIDGenW(LPCWSTR,int,int,int,int,int,int,int,int,int,int,int,int,int)
 int __stdcall PIDGenSimpA(LPCSTR lpString,int,int,int,int,int,int,int,int)
 int __stdcall PIDGenSimpW(LPCWSTR lpWideCharStr,int,int,int,int,int,int,int,int)
 int __stdcall SetupPIDGenA(LPCSTR lpString,int,int,int,int,int,int)
 int __stdcall SetupPIDGenW(LPCWSTR lpWideCharStr,int,int,int,int,int,int)
 int __stdcall VerifyPIDSequenceW(int,int,wchar_t *Str1)

No idea what to do with these

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Nevermind found it.

Edited by Thatsgreat2345

Share this post


Link to post
Share on other sites

I know this is a really old trend, my computer crashed and I just got a new one so it's time to start this project up, I looked at DllOpen, Call, and struction but I still have no idea how to use the C++ code as an auto it code, I really don't understand C++ at all. I was hoping someone could give me a little more guidence.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0