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

Functions

BOOL InitializeWindowClasses ()
 
WNDCLASSEXACloneWindowClass (CONST WNDCLASSEXA *lpwcx)
 
WNDCLASSEXAFindWindowClass (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

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 
)
WNDCLASSEXA* CloneWindowClass ( CONST WNDCLASSEXA lpwcx)

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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:

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

Here is the caller graph for this function:

LRESULT WINAPI DispatchMessageA ( CONST MSG lpMsg)
LRESULT WINAPI DispatchMessageW ( CONST MSG lpMsg)
HWND WINAPI FindWindowA ( LPCSTR  lpClassName,
LPCSTR  lpWindowName 
)
WNDCLASSEXA* FindWindowClass ( LPCSTR  lpClassName)

Here is the call graph for this function:

Here is the caller graph for this function:

HWND WINAPI FindWindowExA ( HWND  hWndParent,
HWND  hWndChildAfter,
LPCSTR  lpszClass,
LPCSTR  lpszWindow 
)
HWND WINAPI FindWindowExW ( HWND  hWndParent,
HWND  hWndChildAfter,
LPCWSTR  lpszClass,
LPCWSTR  lpszWindow 
)
HWND WINAPI FindWindowW ( LPCWSTR  lpClassName,
LPCWSTR  lpWindowName 
)
BOOL WINAPI GetMessageA ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax 
)
LPARAM WINAPI GetMessageExtraInfo ( VOID  )
DWORD WINAPI GetMessagePos ( VOID  )
LONG WINAPI GetMessageTime ( VOID  )
BOOL WINAPI GetMessageW ( LPMSG  lpMsg,
HWND  hWnd,
UINT  wMsgFilterMin,
UINT  wMsgFilterMax 
)
LONG WINAPI GetWindowLongA ( HWND  hWnd,
int  nIndex 
)
LONG_PTR WINAPI GetWindowLongPtrA ( HWND  hWnd,
int  nIndex 
)
LONG_PTR WINAPI GetWindowLongPtrW ( HWND  hWnd,
int  nIndex 
)
LONG WINAPI GetWindowLongW ( HWND  hWnd,
int  nIndex 
)
WORD WINAPI GetWindowWord ( HWND  hWnd,
int  nIndex 
)

Standard Functions

BOOL InitializeWindowClasses ( )

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)
VOID WINAPI PostQuitMessage ( int  nExitCode)

Here is the caller graph for this function:

ATOM WINAPI RegisterClassA ( CONST WNDCLASSA lpWndClass)
ATOM WINAPI RegisterClassExA ( CONST WNDCLASSEXA lpwcx)

Here is the call graph for this function:

ATOM WINAPI RegisterClassExW ( CONST WNDCLASSEXW lpwcx)
ATOM WINAPI RegisterClassW ( CONST WNDCLASSW lpWndClass)
BOOL WINAPI ReplyMessage ( LRESULT  lResult)
LRESULT WINAPI SendMessageA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

Here is the caller graph for this function:

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 
)
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 
)
LRESULT WINAPI SendMessageW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

Here is the caller graph for this function:

BOOL WINAPI SendNotifyMessageA ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
BOOL WINAPI SendNotifyMessageW ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
LPARAM WINAPI SetMessageExtraInfo ( LPARAM  lParam)
BOOL WINAPI SetMessageQueue ( int  cMessagesMax)
LONG WINAPI SetWindowLongA ( HWND  hWnd,
int  nIndex,
LONG  dwNewLong 
)
LONG_PTR WINAPI SetWindowLongPtrA ( HWND  hWnd,
int  nIndex,
LONG_PTR  dwNewLong 
)
LONG_PTR WINAPI SetWindowLongPtrW ( HWND  hWnd,
int  nIndex,
LONG_PTR  dwNewLong 
)
LONG WINAPI SetWindowLongW ( HWND  hWnd,
int  nIndex,
LONG  dwNewLong 
)
WORD WINAPI SetWindowWord ( HWND  hWnd,
int  nIndex,
WORD  wNewWord 
)
BOOL WINAPI TranslateMessage ( CONST MSG lpMsg)

Here is the caller graph for this function:

BOOL WINAPI UnregisterClassA ( LPCSTR  lpClassName,
HINSTANCE  hInstance 
)
BOOL WINAPI UnregisterClassW ( LPCWSTR  lpClassName,
HINSTANCE  hInstance 
)
BOOL WINAPI WaitMessage ( VOID  )

Variable Documentation

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