c++ - convert structure to char pointer in c# -
below piece of code written in c++, how can convert in c#. if check pams_get_msgw function , first param of (char*), how can pass same in c# . struct { short m_nstatus; short m_nreg_id; short m_nnumber_reg; } oregreply; short nbufsize = sizeof(oregreply); q_address osenderqueue; nmsgtype = msg_type_sbs_reg_reply; cpriority = 0; ltimeout = 300; // 30 seconds //wait reply telegram sbs server lstatus = pams_get_msgw((char *) &oregreply, &cpriority, &osenderqueue, &nmsgclass, &nmsgtype, &nbufsize, &nmsglen, <imeout, null, null, null, null, null, null, null); my c# declaration pams_get_msgw function this ...