I have some data in the memory which is pointed to by a pointer (ptr2data), how do i pass this data to a function which accepts unsigned long/DWORD data types?
unsigned long* ptr2data;
DWORD temp;
ptr2data = (unsigned long*)&SomeArrayOfData[4];
temp = (DWORD) tempSerNum;
AddDevice(7, temp);
The above code passes the address to the data I need to the function, not the data itself!! Please help me fix this.
Thanks