diff --git a/dlls/user/class.c b/dlls/user/class.c index 759b9ece50a..ff89bb92a43 100644 --- a/dlls/user/class.c +++ b/dlls/user/class.c @@ -510,6 +510,9 @@ void CLASS_AddWindow( CLASS *class, WND *win, WINDOWPROCTYPE type ) /*********************************************************************** * RegisterClassA (USER32.@) + * + * Register a window class. + * * RETURNS * >0: Unique identifier * 0: Failure @@ -536,6 +539,8 @@ ATOM WINAPI RegisterClassA( const WNDCLASSA* wc ) /* [in] Address of structure w /*********************************************************************** * RegisterClassW (USER32.@) + * + * See RegisterClassA. */ ATOM WINAPI RegisterClassW( const WNDCLASSW* wc ) { diff --git a/dlls/user/cursoricon.c b/dlls/user/cursoricon.c index 98c093ff031..19704451338 100644 --- a/dlls/user/cursoricon.c +++ b/dlls/user/cursoricon.c @@ -1233,6 +1233,10 @@ HICON16 WINAPI CreateIcon16( HINSTANCE16 hInstance, INT16 nWidth, * (*) Windows does not support 15bpp but it supports the 555 RGB 16bpp * format! * + * RETURNS + * Success: handle to an icon + * Failure: NULL + * * BUGS * * - The provided bitmaps are not resized! @@ -1492,7 +1496,10 @@ DWORD WINAPI DumpIcon16( SEGPTR pInfo, WORD *lpLen, /*********************************************************************** * SetCursor (USER32.@) - * RETURNS: + * + * Set the cursor shape. + * + * RETURNS * A handle to the previous cursor shape. */ HCURSOR WINAPI SetCursor( HCURSOR hCursor /* [in] Handle of cursor to show */ ) @@ -2183,7 +2190,7 @@ end: /********************************************************************** * LoadImageA (USER32.@) * - * FIXME: implementation lacks some features, see LR_ defines in winuser.h + * See LoadImageW. */ /* filter for page-fault exceptions */ @@ -2290,8 +2297,8 @@ HANDLE WINAPI LoadImageW( HINSTANCE hinst, LPCWSTR name, UINT type, * Success: Handle to newly created image * Failure: NULL * - * FIXME: implementation still lacks nearly all features, see LR_* - * defines in winuser.h + * FIXME + * implementation still lacks nearly all features, see LR_* defines in winuser.h. */ HICON WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx, INT desiredy, UINT flags ) @@ -2342,6 +2349,8 @@ HBITMAP WINAPI LoadBitmapW( /********************************************************************** * LoadBitmapA (USER32.@) + * + * See LoadBitmapW. */ HBITMAP WINAPI LoadBitmapA( HINSTANCE instance, LPCSTR name ) { diff --git a/dlls/user/dde_misc.c b/dlls/user/dde_misc.c index f2a907b9cb4..1139cf09800 100644 --- a/dlls/user/dde_misc.c +++ b/dlls/user/dde_misc.c @@ -582,6 +582,8 @@ UINT WDML_Initialize(LPDWORD pidInst, PFNCALLBACK pfnCallback, /****************************************************************************** * DdeInitializeA (USER32.@) + * + * See DdeInitializeW. */ UINT WINAPI DdeInitializeA(LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes) @@ -1089,9 +1091,7 @@ static HSZ WDML_CreateString(WDML_INSTANCE* pInstance, LPCVOID ptr, int codepage /***************************************************************** * DdeCreateStringHandleA [USER32.@] * - * RETURNS - * Success: String handle - * Failure: 0 + * See DdeCreateStringHandleW. */ HSZ WINAPI DdeCreateStringHandleA(DWORD idInst, LPCSTR psz, INT codepage) { @@ -1147,8 +1147,9 @@ HSZ WINAPI DdeCreateStringHandleW(DWORD idInst, LPCWSTR psz, INT codepage) /***************************************************************** * DdeFreeStringHandle (USER32.@) - * RETURNS: success: nonzero - * fail: zero + * RETURNS + * success: nonzero + * fail: zero */ BOOL WINAPI DdeFreeStringHandle(DWORD idInst, HSZ hsz) { @@ -1173,8 +1174,9 @@ BOOL WINAPI DdeFreeStringHandle(DWORD idInst, HSZ hsz) /***************************************************************** * DdeKeepStringHandle (USER32.@) * - * RETURNS: success: nonzero - * fail: zero + * RETURNS + * success: nonzero + * fail: zero */ BOOL WINAPI DdeKeepStringHandle(DWORD idInst, HSZ hsz) { @@ -1201,10 +1203,14 @@ BOOL WINAPI DdeKeepStringHandle(DWORD idInst, HSZ hsz) * Compares the value of two string handles. This comparison is * not case sensitive. * - * Returns: - * -1 The value of hsz1 is zero or less than hsz2 - * 0 The values of hsz 1 and 2 are the same or both zero. - * 1 The value of hsz2 is zero of less than hsz1 + * PARAMS + * hsz1 [I] Handle to the first string + * hsz2 [I] Handle to the second string + * + * RETURNS + * -1 The value of hsz1 is zero or less than hsz2 + * 0 The values of hsz 1 and 2 are the same or both zero. + * 1 The value of hsz2 is zero of less than hsz1 */ INT WINAPI DdeCmpStringHandles(HSZ hsz1, HSZ hsz2) { diff --git a/dlls/user/defwnd.c b/dlls/user/defwnd.c index d6228e87971..27d0683daa9 100644 --- a/dlls/user/defwnd.c +++ b/dlls/user/defwnd.c @@ -716,6 +716,7 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa /*********************************************************************** * DefWindowProcA (USER32.@) * + * See DefWindowProcW. */ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) { diff --git a/dlls/user/menu.c b/dlls/user/menu.c index 6500aa87398..26274036887 100644 --- a/dlls/user/menu.c +++ b/dlls/user/menu.c @@ -4802,8 +4802,8 @@ static BOOL translate_accelerator( HWND hWnd, UINT message, WPARAM wParam, LPARA } /********************************************************************** - * TranslateAccelerator (USER32.@) * TranslateAcceleratorA (USER32.@) + * TranslateAccelerator (USER32.@) */ INT WINAPI TranslateAcceleratorA( HWND hWnd, HACCEL hAccel, LPMSG msg ) { diff --git a/dlls/user/message.c b/dlls/user/message.c index a6e18c416a3..4c70fd43ee7 100644 --- a/dlls/user/message.c +++ b/dlls/user/message.c @@ -2810,8 +2810,8 @@ BOOL WINAPI GetMessageA( MSG *msg, HWND hwnd, UINT first, UINT last ) /*********************************************************************** - * IsDialogMessage (USER32.@) * IsDialogMessageA (USER32.@) + * IsDialogMessage (USER32.@) */ BOOL WINAPI IsDialogMessageA( HWND hwndDlg, LPMSG pmsg ) { @@ -2873,6 +2873,8 @@ BOOL WINAPI TranslateMessage( const MSG *msg ) /*********************************************************************** * DispatchMessageA (USER32.@) + * + * See DispatchMessageW. */ LONG WINAPI DispatchMessageA( const MSG* msg ) { @@ -3203,8 +3205,8 @@ void WINAPI UserYield16(void) /*********************************************************************** - * RegisterWindowMessage (USER.118) * RegisterWindowMessageA (USER32.@) + * RegisterWindowMessage (USER.118) */ UINT WINAPI RegisterWindowMessageA( LPCSTR str ) { @@ -3226,8 +3228,8 @@ UINT WINAPI RegisterWindowMessageW( LPCWSTR str ) /*********************************************************************** - * BroadcastSystemMessage (USER32.@) * BroadcastSystemMessageA (USER32.@) + * BroadcastSystemMessage (USER32.@) */ LONG WINAPI BroadcastSystemMessageA( DWORD flags, LPDWORD recipients, UINT msg, WPARAM wp, LPARAM lp ) { diff --git a/dlls/user/misc.c b/dlls/user/misc.c index 277534e665e..40748b58ba5 100644 --- a/dlls/user/misc.c +++ b/dlls/user/misc.c @@ -190,6 +190,9 @@ BOOL WINAPI GetAltTabInfoW(HWND hwnd, int iItem, PALTTABINFO pati, LPWSTR pszIte * * PARAMS * dwLevel [I] Debugging error level + * + * RETURNS + * Nothing. */ VOID WINAPI SetDebugErrorLevel( DWORD dwLevel ) { diff --git a/dlls/user/resource.c b/dlls/user/resource.c index 7f11e70d454..f07aab0a840 100644 --- a/dlls/user/resource.c +++ b/dlls/user/resource.c @@ -296,7 +296,9 @@ HACCEL WINAPI CreateAcceleratorTableW(LPACCEL lpaccel, INT cEntries) * PARAMS * handle [I] Handle to accelerator table * - * RETURNS STD + * RETURNS + * Success: TRUE + * Failure: FALSE */ BOOL WINAPI DestroyAcceleratorTable( HACCEL handle ) { diff --git a/dlls/user/scroll.c b/dlls/user/scroll.c index 895ae4e93fc..0f40feb0406 100644 --- a/dlls/user/scroll.c +++ b/dlls/user/scroll.c @@ -1324,7 +1324,9 @@ static INT SCROLL_GetScrollPos(HWND hwnd, INT nBar) * lpMin [O] Where to store minimum value * lpMax [O] Where to store maximum value * - * RETURNS STD + * RETURNS + * Success: TRUE + * Failure: FALSE */ static BOOL SCROLL_GetScrollRange(HWND hwnd, INT nBar, LPINT lpMin, LPINT lpMax) { @@ -1859,7 +1861,9 @@ INT WINAPI GetScrollPos(HWND hwnd, INT nBar) * maxVal [I] New Maximum value * bRedraw [I] Should scrollbar be redrawn afterwards? * - * RETURNS STD + * RETURNS + * Success: TRUE + * Failure: FALSE */ BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRedraw) { @@ -1984,7 +1988,9 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, BOOL fShowH, BOOL fShowV * nBar [I] One of SB_HORZ, SB_VERT, or SB_CTL * fShow [I] TRUE = show, FALSE = hide * - * RETURNS STD + * RETURNS + * Success: TRUE + * Failure: FALSE */ BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow) { diff --git a/dlls/user/win.c b/dlls/user/win.c index 8d7d0366436..e4016abe568 100644 --- a/dlls/user/win.c +++ b/dlls/user/win.c @@ -2127,6 +2127,8 @@ LONG WINAPI SetWindowLong16( HWND16 hwnd, INT16 offset, LONG newval ) /********************************************************************** * SetWindowLongA (USER32.@) + * + * See SetWindowLongW. */ LONG WINAPI SetWindowLongA( HWND hwnd, INT offset, LONG newval ) { @@ -2274,8 +2276,8 @@ INT WINAPI GetWindowTextW( HWND hwnd, LPWSTR lpString, INT nMaxCount ) /******************************************************************* - * SetWindowText (USER32.@) * SetWindowTextA (USER32.@) + * SetWindowText (USER32.@) */ BOOL WINAPI SetWindowTextA( HWND hwnd, LPCSTR lpString ) { diff --git a/dlls/user/winproc.c b/dlls/user/winproc.c index 5067b83db2f..f283856599e 100644 --- a/dlls/user/winproc.c +++ b/dlls/user/winproc.c @@ -3293,6 +3293,8 @@ LRESULT WINAPI CallWindowProcA( /********************************************************************** * CallWindowProcW (USER32.@) + * + * See CallWindowProcA. */ LRESULT WINAPI CallWindowProcW( WNDPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )