Winapi 32-bit C Programming Issue: Lpdword?

Discussion in 'Software' started by HarryPotter, Feb 25, 2023.

  1. HarryPotter

    HarryPotter MajorGeek

    Hi! I am porting some compression code from an old system to WIndows and am having a problem: the ReadFile function is expecting Parameter 4 to be an LPDWORD variable. I was using "&m" as the parameter, where "m" is declared as "unsigned m;". I want to record the number of bytes read for the compression code. I'm sorry for the stupid question, but what is the definition of LPDWORD?
     
  2. _nullptr

    _nullptr Major Geeky Geek Geek

    DWORD m;
    &m

    DWORD (double word) aka ULONG, uint32, unsigned int, unsigned long, etc
     
  3. HarryPotter

    HarryPotter MajorGeek

    I found my problem: I was declaring the original variable as unsigned rather than unsigned long. I made that mistake because I thought unsigned and unsigned long were synonymous.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds