是的,假设lParam'确实'包含指向结构的指针,那么你通过'cast'得到它:
SomeStruct* s; //declare pointer-to-struct variable s = (SomeStruct*) lParam; //assign integer value as pointer to struct printf("the value of s->foo is %d", s->foo); //print result