Guest_imported
New member
- Jan 1, 1970
- 0
Hallo,
I have the following C++ code:
typedef struct tagIOCTLParams
{
DWORD dioc_IOCtlCode;
PVOID dioc_InBuf;
} IOCTLPARAMS, *PIOCTLPARAMS;
...
PIOCTLPARAMS p;
char buf[128];
_snprintf (buf, 128,
"IOCTL is: %i",
p->dioc_IOCtlCode);
But %i seemed to be wrong, because I get a value like "-1475374670" instead of "-2080374773".
What have I done wrong?
Bye Tim
I have the following C++ code:
typedef struct tagIOCTLParams
{
DWORD dioc_IOCtlCode;
PVOID dioc_InBuf;
} IOCTLPARAMS, *PIOCTLPARAMS;
...
PIOCTLPARAMS p;
char buf[128];
_snprintf (buf, 128,
"IOCTL is: %i",
p->dioc_IOCtlCode);
But %i seemed to be wrong, because I get a value like "-1475374670" instead of "-2080374773".
What have I done wrong?
Bye Tim