Fórum Função de Hardware ID Visual Studio #481244
03/06/2014
0
Código fonte escrito em Linguagem C .
INT PASCAL FAR sendHook (__in SOCKET s, __in_bcount(len) CONST CHAR FAR *buf, __in INT len, __in INT flags)
{
CONST CHAR *psz = strstr(buf, "hardwareid=");
if (psz != NULL) //se o parametro "hardwareid" for encontrado...
{
//modifica o hardware id
DWORD dwHardwareID = GetTickCount() + 123456789; //aqui fica o número do HardwareID em que enviará para outros servidores .
wsprintfA((LPSTR)buf, "GET /AuthenticationService.svc/IsBlockedByHardware?hardwareid=%d HTTP/1.1", dwHardwareID);
}
return _send_original(s, buf, len, flags);
}Henrique Batista
Curtir tópico
+ 0Posts
03/06/2014
Henrique Batista
Gostei + 0
04/06/2014
Henrique Batista
Gostei + 0
04/06/2014
Joel Rodrigues
Qual é sua principal dúvida então?
Gostei + 0
04/06/2014
Henrique Batista
eu queri saber como faço essa codigo virar uma dll...
Gostei + 0
04/06/2014
Joel Rodrigues
Gostei + 0
04/06/2014
Henrique Batista
Gostei + 0
05/06/2014
Joel Rodrigues
No primeiro caso, em que projeto você quer importar essa DLL?
Gostei + 0
05/06/2014
Henrique Batista
Gostei + 0
12/06/2014
Joel Rodrigues
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)