VirtualBox

Changeset 13656 in vbox


Ignore:
Timestamp:
Oct 29, 2008 3:17:57 PM (16 years ago)
Author:
vboxsync
Message:

Use the unicode functions instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/win/HostPowerWin.cpp

    r13655 r13656  
    2929#include "Logging.h"
    3030
    31 static char gachWindowClassName[] = "VBoxPowerNotifyClass";
     31static WCHAR gachWindowClassName[] = L"VBoxPowerNotifyClass";
    3232
    3333HostPowerServiceWin::HostPowerServiceWin(VirtualBox *aVirtualBox) : HostPowerService(aVirtualBox)
     
    7272
    7373    /* Register the Window Class. */
    74     WNDCLASSA wc;
     74    WNDCLASS wc;
    7575
    7676    wc.style         = CS_NOCLOSE;
     
    8585    wc.lpszClassName = gachWindowClassName;
    8686
    87     ATOM atomWindowClass = RegisterClassA(&wc);
     87    ATOM atomWindowClass = RegisterClass(&wc);
    8888
    8989    if (atomWindowClass == 0)
     
    9595    {
    9696        /* Create the window. */
    97         hwnd = pPowerObj->mHwnd = CreateWindowExA (WS_EX_TOOLWINDOW | WS_EX_TRANSPARENT | WS_EX_TOPMOST,
     97        hwnd = pPowerObj->mHwnd = CreateWindowEx (WS_EX_TOOLWINDOW | WS_EX_TRANSPARENT | WS_EX_TOPMOST,
    9898                                                  gachWindowClassName, gachWindowClassName,
    9999                                                  WS_POPUPWINDOW,
     
    128128    if (atomWindowClass != 0)
    129129    {
    130         UnregisterClassA (gachWindowClassName, hInstance);
     130        UnregisterClass (gachWindowClassName, hInstance);
    131131        atomWindowClass = 0;
    132132    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette