Sixes
04-17-2003, 07:22 AM
That'll teach you to use literals :)
Also my compiler complains unless winsock32.h is included before stdio.h.
*** /cygdrive/c/Program Files/MySEQ/myseqserverc/myseqserverc.cpp Thu Apr 17 02:31:00 2003
--- myseqserverc.cpp Thu Apr 17 15:20:34 2003
***************
*** 1,10 ****
// myseqserverc.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
//#include <winsock.h>
- #include <winsock2.h>
#include <windows.h>
#include <time.h>
#include <sys/types.h>
--- 1,10 ----
// myseqserverc.cpp : Defines the entry point for the console application.
//
+ #include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
//#include <winsock.h>
#include <windows.h>
#include <time.h>
#include <sys/types.h>
***************
*** 390,396 ****
}
if (si.pNext != 0) {
! ReadProcessMemory(eqprocess, addr, &si, 364, &tmp);
}
else {
--- 390,396 ----
}
if (si.pNext != 0) {
! ReadProcessMemory(eqprocess, addr, &si, sizeof(si)-4, &tmp);
}
else {
Also my compiler complains unless winsock32.h is included before stdio.h.
*** /cygdrive/c/Program Files/MySEQ/myseqserverc/myseqserverc.cpp Thu Apr 17 02:31:00 2003
--- myseqserverc.cpp Thu Apr 17 15:20:34 2003
***************
*** 1,10 ****
// myseqserverc.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
//#include <winsock.h>
- #include <winsock2.h>
#include <windows.h>
#include <time.h>
#include <sys/types.h>
--- 1,10 ----
// myseqserverc.cpp : Defines the entry point for the console application.
//
+ #include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
//#include <winsock.h>
#include <windows.h>
#include <time.h>
#include <sys/types.h>
***************
*** 390,396 ****
}
if (si.pNext != 0) {
! ReadProcessMemory(eqprocess, addr, &si, 364, &tmp);
}
else {
--- 390,396 ----
}
if (si.pNext != 0) {
! ReadProcessMemory(eqprocess, addr, &si, sizeof(si)-4, &tmp);
}
else {