* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: accel.c,v 1.7 2003/07/09 00:09:47 hyperion Exp $
+/* $Id: accel.c,v 1.8 2003/07/10 21:04:31 chorns Exp $
*
* PROJECT: ReactOS user32.dll
* FILE: lib/user32/windows/input.c
/* WIN32 FUNCTIONS ***********************************************************/
/*
- Dereference the specified accelerator table, removing it from the cache and
- deleting the associated NtUser object as appropriate
-*/
+ * Dereference the specified accelerator table, removing it from the cache and
+ * deleting the associated NtUser object as appropriate
+ *
+ * @implemented
+ */
BOOL WINAPI DestroyAcceleratorTable(HACCEL hAccel)
{
U32_ACCEL_CACHE_ENTRY ** ppEntry;
return NtUserDestroyAcceleratorTable(hAccel);
}
-/* Create an accelerator table from a named resource */
+
+/*
+ * Create an accelerator table from a named resource
+ *
+ * @implemented
+ */
HACCEL WINAPI LoadAcceleratorsW(HINSTANCE hInstance, LPCWSTR lpTableName)
{
return U32LoadAccelerators
FindResourceExW(hInstance, MAKEINTRESOURCEW(RT_ACCELERATOR), lpTableName, 0)
);
}
-
+
+
+/*
+ * @implemented
+ */
HACCEL WINAPI LoadAcceleratorsA(HINSTANCE hInstance, LPCSTR lpTableName)
{
return U32LoadAccelerators
);
}
-/* Translate a key press into a WM_COMMAND message */
+/*
+ * Translate a key press into a WM_COMMAND message
+ *
+ * @implemented
+ */
int WINAPI TranslateAcceleratorW(HWND hWnd, HACCEL hAccTable, LPMSG lpMsg)
{
if(!U32IsValidAccelMessage(lpMsg->message)) return 0;
return NtUserTranslateAccelerator(hWnd, hAccTable, lpMsg);
}
-/* NTUSER STUBS */
+/*
+ * @implemented
+ */
int WINAPI CopyAcceleratorTableW
(
HACCEL hAccelSrc,
return NtUserCopyAcceleratorTable(hAccelSrc, lpAccelDst, cAccelEntries);
}
+/*
+ * @implemented
+ */
HACCEL WINAPI CreateAcceleratorTableW(LPACCEL lpaccl, int cEntries)
{
return NtUserCreateAcceleratorTable(lpaccl, cEntries);
}
-/* ANSI STUBS */
+
+/*
+ * @implemented
+ */
int WINAPI CopyAcceleratorTableA
(
HACCEL hAccelSrc,
return cAccelEntries;
}
+
+/*
+ * @implemented
+ */
HACCEL WINAPI CreateAcceleratorTableA(LPACCEL lpaccl, int cEntries)
{
int i;
return CreateAcceleratorTableW(lpaccl, cEntries);
}
+
+/*
+ * @implemented
+ */
int WINAPI TranslateAcceleratorA(HWND hWnd, HACCEL hAccTable, LPMSG lpMsg)
{
MSG mCopy = *lpMsg;