0

I am getting started coding a win32 windows application and ran across a c++ syntax that I haven't seen before in some example code on the MSDN.

LRESULT CALLBACK DemoApp::WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{

    /* Code omitted for clarity */

    ::SetWindowLongPtrW(
    hwnd,
    GWLP_USERDATA,
    PtrToUlong(pDemoApp)
    );

    /* Code omitted for clarity */

}

I am used to seeing a class / namespace preceding the :: operator. What does this mean when there is no preceding identifier. Also, is there a name for this construct so I can efficiently Google more information?

Thanks!

PeterM
  • 2,372
  • 1
  • 26
  • 35

0 Answers0