win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinCopyAccelTable (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINACCELERATORS
 
USHORT WinCopyAccelTable(haccel, pacct, cbCopyMax)
HACCEL haccel;        /* handle of the accelerator table            */
PACCELTABLE pacct;    /* address of structure receiving information */
USHORT cbCopyMax;     /* maximum size of data area                  */
 
The WinCopyAccelTable function copies an accelerator table. This function is
used to obtain the accelerator-table data that corresponds to an
accelerator-table handle or to determine the size of the accelerator-table
data.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
haccel     Identifies the accelerator table.
 
pacct      Points to the area of memory where the accelerator-table
           information will be copied (in the form of an ACCELTABLE
           structure). If this parameter is NULL, the function will return
           with the number of bytes needed to copy the table.
 
cbCopyMax  Specifies the maximum size of the data area pointed to by the
           pacct parameter. This parameter is ignored if pacct is NULL.
 
Return Value
 
The return value is the amount of data copied or the length required for the
complete accelerator table if the function was successful, or it is zero if
an error occurs.
 
See Also
 
ACCELTABLE