What data type of HANDLE could be in C++ Linux?, or it can be any type based on the requirement.
HANDLE
can be void
type or other data types.
The example below to define the use of HANDLE
type in my code.
HANDLE hFile;
HANDLE hFile = CreateFile(hldFile, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
I need to define the data type to HANDLE
to return value of calling other functions like CreateFile
in the example above.