#include #include int main() { HANDLE stdinHandle(::GetStdHandle(STD_INPUT_HANDLE)); ::std::cout << ::GetFileType(stdinHandle) << ::std::endl; LARGE_INTEGER fileSize; BOOL getFileSizeExResult(::GetFileSizeEx(stdinHandle, ::std::addressof(fileSize))); if (!getFileSizeExResult) { ::std::cout << "GetFileSizeEx error " << ::GetLastError() << ::std::endl; return -1; } ::std::cout << "Worked" << ::std::endl; }