FreeRDP
wnd.c File Reference
#include <winpr/crt.h>
#include <winpr/collections.h>
#include <winpr/wnd.h>
#include "wnd.h"

Functions

static BOOL InitializeWindowClasses (void)
 
static WNDCLASSEXA * CloneWindowClass (CONST WNDCLASSEXA *lpwcx)
 
static WNDCLASSEXA * FindWindowClass (LPCSTR lpClassName)
 
WORD WINAPI GetWindowWord (HWND hWnd, int nIndex)
 
WORD WINAPI SetWindowWord (HWND hWnd, int nIndex, WORD wNewWord)
 
LONG WINAPI GetWindowLongA (HWND hWnd, int nIndex)
 
LONG WINAPI GetWindowLongW (HWND hWnd, int nIndex)
 
LONG WINAPI SetWindowLongA (HWND hWnd, int nIndex, LONG dwNewLong)
 
LONG WINAPI SetWindowLongW (HWND hWnd, int nIndex, LONG dwNewLong)
 
LONG_PTR WINAPI GetWindowLongPtrA (HWND hWnd, int nIndex)
 
LONG_PTR WINAPI GetWindowLongPtrW (HWND hWnd, int nIndex)
 
LONG_PTR WINAPI SetWindowLongPtrA (HWND hWnd, int nIndex, LONG_PTR dwNewLong)
 
LONG_PTR WINAPI SetWindowLongPtrW (HWND hWnd, int nIndex, LONG_PTR dwNewLong)
 
BOOL WINAPI DestroyWindow (HWND hWnd)
 
VOID WINAPI PostQuitMessage (int nExitCode)
 
ATOM WINAPI RegisterClassA (CONST WNDCLASSA *lpWndClass)
 
ATOM WINAPI RegisterClassW (CONST WNDCLASSW *lpWndClass)
 
ATOM WINAPI RegisterClassExA (CONST WNDCLASSEXA *lpwcx)
 
ATOM WINAPI RegisterClassExW (CONST WNDCLASSEXW *lpwcx)
 
BOOL WINAPI UnregisterClassA (LPCSTR lpClassName, HINSTANCE hInstance)
 
BOOL WINAPI UnregisterClassW (LPCWSTR lpClassName, HINSTANCE hInstance)
 
HWND WINAPI CreateWindowExA (DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
 
HWND WINAPI CreateWindowExW (DWORD dwExStyle, LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
 
HWND WINAPI FindWindowA (LPCSTR lpClassName, LPCSTR lpWindowName)
 
HWND WINAPI FindWindowW (LPCWSTR lpClassName, LPCWSTR lpWindowName)
 
HWND WINAPI FindWindowExA (HWND hWndParent, HWND hWndChildAfter, LPCSTR lpszClass, LPCSTR lpszWindow)
 
HWND WINAPI FindWindowExW (HWND hWndParent, HWND hWndChildAfter, LPCWSTR lpszClass, LPCWSTR lpszWindow)
 
BOOL WINAPI GetMessageA (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
 
BOOL WINAPI GetMessageW (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
 
DWORD WINAPI GetMessagePos (VOID)
 
LONG WINAPI GetMessageTime (VOID)
 
LPARAM WINAPI GetMessageExtraInfo (VOID)
 
LPARAM WINAPI SetMessageExtraInfo (LPARAM lParam)
 
BOOL WINAPI SetMessageQueue (int cMessagesMax)
 
LRESULT WINAPI SendMessageA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
LRESULT WINAPI SendMessageW (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
LRESULT WINAPI SendMessageTimeoutA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, UINT fuFlags, UINT uTimeout, PDWORD_PTR lpdwResult)
 
LRESULT WINAPI SendMessageTimeoutW (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, UINT fuFlags, UINT uTimeout, PDWORD_PTR lpdwResult)
 
BOOL WINAPI SendNotifyMessageA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
BOOL WINAPI SendNotifyMessageW (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
BOOL WINAPI SendMessageCallbackA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, ULONG_PTR dwData)
 
BOOL WINAPI SendMessageCallbackW (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, SENDASYNCPROC lpResultCallBack, ULONG_PTR dwData)
 
BOOL WINAPI TranslateMessage (CONST MSG *lpMsg)
 
LRESULT WINAPI DispatchMessageA (CONST MSG *lpMsg)
 
LRESULT WINAPI DispatchMessageW (CONST MSG *lpMsg)
 
BOOL WINAPI PeekMessageA (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
 
BOOL WINAPI PeekMessageW (LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
 
BOOL WINAPI ReplyMessage (LRESULT lResult)
 
BOOL WINAPI WaitMessage (VOID)
 
LRESULT WINAPI CallWindowProcA (WNDPROC lpPrevWndFunc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
LRESULT WINAPI CallWindowProcW (WNDPROC lpPrevWndFunc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
LRESULT WINAPI DefWindowProcA (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
LRESULT WINAPI DefWindowProcW (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 

Variables

static wArrayList * g_WindowClasses = NULL
 

Function Documentation

◆ CallWindowProcA()

LRESULT WINAPI CallWindowProcA ( WNDPROC  lpPrevWndFunc,
HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ CallWindowProcW()

LRESULT WINAPI CallWindowProcW ( WNDPROC  lpPrevWndFunc,
HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ CloneWindowClass()

static WNDCLASSEXA* CloneWindowClass ( CONST WNDCLASSEXA *  lpwcx)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateWindowExA()

HWND WINAPI CreateWindowExA ( DWORD  dwExStyle,
LPCSTR  lpClassName,
LPCSTR  lpWindowName,
DWORD  dwStyle,
int  X,
int  Y,
int  nWidth,
int  nHeight,
HWND  hWndParent,
HMENU  hMenu,
HINSTANCE  hInstance,
LPVOID  lpParam 
)
Here is the call graph for this function:

◆ CreateWindowExW()

HWND WINAPI CreateWindowExW ( DWORD  dwExStyle,
LPCWSTR  lpClassName,
LPCWSTR  lpWindowName,
DWORD  dwStyle,
int  X,
int  Y,
int  nWidth,
int  nHeight,
HWND  hWndParent,
HMENU  hMenu,
HINSTANCE  hInstance,
LPVOID  lpParam 
)
Here is the caller graph for this function:

◆ DefWindowProcA()

LRESULT WINAPI DefWindowProcA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ DefWindowProcW()

LRESULT WINAPI DefWindowProcW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ DestroyWindow()

BOOL WINAPI DestroyWindow ( HWND  hWnd)
Here is the caller graph for this function:

◆ DispatchMessageA()

LRESULT WINAPI DispatchMessageA ( CONST MSG *  lpMsg)

◆ DispatchMessageW()

LRESULT WINAPI DispatchMessageW ( CONST MSG *  lpMsg)

◆ FindWindowA()

HWND WINAPI FindWindowA ( LPCSTR  lpClassName,
LPCSTR  lpWindowName 
)

◆ FindWindowClass()

static WNDCLASSEXA* FindWindowClass ( LPCSTR  lpClassName)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindWindowExA()

HWND WINAPI FindWindowExA ( HWND  hWndParent,
HWND  hWndChildAfter,
LPCSTR  lpszClass,
LPCSTR  lpszWindow 
)

◆ FindWindowExW()

HWND WINAPI FindWindowExW ( HWND  hWndParent,
HWND  hWndChildAfter,
LPCWSTR  lpszClass,
LPCWSTR  lpszWindow 
)

◆ FindWindowW()

HWND WINAPI FindWindowW ( LPCWSTR  lpClassName,
LPCWSTR  lpWindowName 
)

◆ GetMessageA()

BOOL WINAPI GetMessageA ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax 
)

◆ GetMessageExtraInfo()

LPARAM WINAPI GetMessageExtraInfo ( VOID  )

◆ GetMessagePos()

DWORD WINAPI GetMessagePos ( VOID  )

◆ GetMessageTime()

LONG WINAPI GetMessageTime ( VOID  )

◆ GetMessageW()

BOOL WINAPI GetMessageW ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax 
)

◆ GetWindowLongA()

LONG WINAPI GetWindowLongA ( HWND  hWnd,
int  nIndex 
)

◆ GetWindowLongPtrA()

LONG_PTR WINAPI GetWindowLongPtrA ( HWND  hWnd,
int  nIndex 
)

◆ GetWindowLongPtrW()

LONG_PTR WINAPI GetWindowLongPtrW ( HWND  hWnd,
int  nIndex 
)

◆ GetWindowLongW()

LONG WINAPI GetWindowLongW ( HWND  hWnd,
int  nIndex 
)

◆ GetWindowWord()

WORD WINAPI GetWindowWord ( HWND  hWnd,
int  nIndex 
)

Standard Functions

◆ InitializeWindowClasses()

static BOOL InitializeWindowClasses ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PeekMessageA()

BOOL WINAPI PeekMessageA ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax,
UINT  wRemoveMsg 
)

◆ PeekMessageW()

BOOL WINAPI PeekMessageW ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax,
UINT  wRemoveMsg 
)

◆ PostQuitMessage()

VOID WINAPI PostQuitMessage ( int  nExitCode)
Here is the caller graph for this function:

◆ RegisterClassA()

ATOM WINAPI RegisterClassA ( CONST WNDCLASSA *  lpWndClass)

◆ RegisterClassExA()

ATOM WINAPI RegisterClassExA ( CONST WNDCLASSEXA *  lpwcx)
Here is the call graph for this function:

◆ RegisterClassExW()

ATOM WINAPI RegisterClassExW ( CONST WNDCLASSEXW *  lpwcx)

◆ RegisterClassW()

ATOM WINAPI RegisterClassW ( CONST WNDCLASSW *  lpWndClass)

◆ ReplyMessage()

BOOL WINAPI ReplyMessage ( LRESULT  lResult)

◆ SendMessageA()

LRESULT WINAPI SendMessageA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
Here is the caller graph for this function:

◆ SendMessageCallbackA()

BOOL WINAPI SendMessageCallbackA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam,
SENDASYNCPROC  lpResultCallBack,
ULONG_PTR  dwData 
)

◆ SendMessageCallbackW()

BOOL WINAPI SendMessageCallbackW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam,
SENDASYNCPROC  lpResultCallBack,
ULONG_PTR  dwData 
)

◆ SendMessageTimeoutA()

LRESULT WINAPI SendMessageTimeoutA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam,
UINT  fuFlags,
UINT  uTimeout,
PDWORD_PTR  lpdwResult 
)

◆ SendMessageTimeoutW()

LRESULT WINAPI SendMessageTimeoutW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam,
UINT  fuFlags,
UINT  uTimeout,
PDWORD_PTR  lpdwResult 
)

◆ SendMessageW()

LRESULT WINAPI SendMessageW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
Here is the caller graph for this function:

◆ SendNotifyMessageA()

BOOL WINAPI SendNotifyMessageA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ SendNotifyMessageW()

BOOL WINAPI SendNotifyMessageW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ SetMessageExtraInfo()

LPARAM WINAPI SetMessageExtraInfo ( LPARAM  lParam)

◆ SetMessageQueue()

BOOL WINAPI SetMessageQueue ( int  cMessagesMax)

◆ SetWindowLongA()

LONG WINAPI SetWindowLongA ( HWND  hWnd,
int  nIndex,
LONG  dwNewLong 
)

◆ SetWindowLongPtrA()

LONG_PTR WINAPI SetWindowLongPtrA ( HWND  hWnd,
int  nIndex,
LONG_PTR  dwNewLong 
)

◆ SetWindowLongPtrW()

LONG_PTR WINAPI SetWindowLongPtrW ( HWND  hWnd,
int  nIndex,
LONG_PTR  dwNewLong 
)

◆ SetWindowLongW()

LONG WINAPI SetWindowLongW ( HWND  hWnd,
int  nIndex,
LONG  dwNewLong 
)

◆ SetWindowWord()

WORD WINAPI SetWindowWord ( HWND  hWnd,
int  nIndex,
WORD  wNewWord 
)

◆ TranslateMessage()

BOOL WINAPI TranslateMessage ( CONST MSG *  lpMsg)
Here is the caller graph for this function:

◆ UnregisterClassA()

BOOL WINAPI UnregisterClassA ( LPCSTR  lpClassName,
HINSTANCE  hInstance 
)

◆ UnregisterClassW()

BOOL WINAPI UnregisterClassW ( LPCWSTR  lpClassName,
HINSTANCE  hInstance 
)

◆ WaitMessage()

BOOL WINAPI WaitMessage ( VOID  )

Variable Documentation

◆ g_WindowClasses

wArrayList* g_WindowClasses = NULL
static

WinPR: Windows Portable Runtime Window Notification System

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Custom Functions