Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DWORD,LPTSR,LPBYTE,HANDLE what do these terms mean?

I came across these terms recently, while studying a program. I got an idea that they were data types...?

Are they really?

Could you please explain me what these terms really mean? I have not found their documentation.

like image 488
saplingPro Avatar asked Jul 13 '11 13:07

saplingPro


3 Answers

I have not found there documentation

Here it is:

  • Windows Data Types

All data types you mentioned are documented there. For your convenience:

  • DWORD

    • A 32-bit unsigned integer. The range is 0 through 4294967295 decimal.
    • This type is declared in WinDef.h as follows: typedef unsigned long DWORD;
  • HANDLE

    • A handle to an object.
    • This type is declared in WinNT.h as follows: typedef PVOID HANDLE;
  • LPBYTE

    • A pointer to a BYTE.
    • This type is declared in WinDef.h as follows: typedef BYTE far *LPBYTE;

And there is nothing LPTSR. There is LPSTR, and LPTSTR however.

like image 146
Nawaz Avatar answered Nov 12 '22 11:11

Nawaz


Assuming context of Windows development, they are simply data types. See Windows Data Types (from Microsoft).

like image 32
Chad Avatar answered Nov 12 '22 10:11

Chad


These are most commonly encountered as Microsoft-specific typedefs.

For instance http://msdn.microsoft.com/en-us/library/cc230353(v=prot.10).aspx is an MSDN help page about LPSTR.

like image 26
Oliver Charlesworth Avatar answered Nov 12 '22 09:11

Oliver Charlesworth