src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cpp
/**
 * \brief Register the Win32 Window class.
 * \param hInstance instance of the program
 */
\brief Register the Win32 Window class.
\param hInstance instance of the program
\ brief Register the Win32 Window class . \ param hInstance instance of the program
static void RegisterWindowClassW(HINSTANCE hInstance)
{
  WNDCLASSEXW wcex;
  memset(&wcex, 0x00, sizeof(WNDCLASSEXW));
  wcex.cbSize = sizeof(WNDCLASSEXW);
  wcex.style          = CS_HREDRAW | CS_VREDRAW;
  wcex.lpfnWndProc    = WndProcW;
  wcex.cbClsExtra     = 0;
  wcex.cbWndExtra     = 0;
  wcex.hInstance      = hInstance;
  wcex.hIcon          = 0;
  wcex.hCursor        = 0;
  wcex.hbrBackground  = (HBRUSH)(COLOR_WINDOW + 1);
  wcex.lpszMenuName   = 0;
  wcex.lpszClassName  = WINDOW_SHORTCUT_NAME;
  wcex.hIconSm        = 0;
  if(RegisterClassExW(&wcex) == 0)
  {
    fprintf(stderr, "Failed to register window class: %d", GetLastError());
    fflush(stderr);
  }
}
static void RegisterWindowClassW ( HINSTANCE hInstance ) { WNDCLASSEXW wcex ; memset ( & wcex , 0x00 , sizeof ( WNDCLASSEXW ) ) ; wcex . cbSize = sizeof ( WNDCLASSEXW ) ; wcex . style = CS_HREDRAW | CS_VREDRAW ; wcex . lpfnWndProc = WndProcW ; wcex . cbClsExtra = 0 ; wcex . cbWndExtra = 0 ; wcex . hInstance = hInstance ; wcex . hIcon = 0 ; wcex . hCursor = 0 ; wcex . hbrBackground = ( HBRUSH ) ( COLOR_WINDOW + 1 ) ; wcex . lpszMenuName = 0 ; wcex . lpszClassName = WINDOW_SHORTCUT_NAME ; wcex . hIconSm = 0 ; if ( RegisterClassExW ( & wcex ) == 0 ) { fprintf ( stderr , " " , GetLastError ( ) ) ; fflush ( stderr ) ; } }
\brief Register the Win32 Window class.
\ brief Register the Win32 Window class .