mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
Now write out the DEF file (okay that was too easy).
svn path=/trunk/; revision=43967
This commit is contained in:
parent
e430f44387
commit
ce3c33cc9f
1 changed files with 26 additions and 2 deletions
|
@ -348,8 +348,32 @@ kbd_rc(IN PKEYNAME DescriptionData,
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
kbd_def(VOID)
|
kbd_def(VOID)
|
||||||
{
|
{
|
||||||
/* FIXME: Stub */
|
CHAR OutputFile[13];
|
||||||
return FALSE;
|
FILE *FileHandle;
|
||||||
|
|
||||||
|
/* Build the keyboard name and internal name */
|
||||||
|
strcpy(OutputFile, gKBDName);
|
||||||
|
strcat(OutputFile, ".DEF");
|
||||||
|
|
||||||
|
/* Open it */
|
||||||
|
FileHandle = fopen(OutputFile, "wt");
|
||||||
|
if (!FileHandle)
|
||||||
|
{
|
||||||
|
/* Fail */
|
||||||
|
printf(" %12s : can't open for write.\n", OutputFile);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Write the file exports */
|
||||||
|
fprintf(FileHandle,
|
||||||
|
"LIBRARY %s\n\n"
|
||||||
|
"EXPORTS\n"
|
||||||
|
" KbdLayerDescriptor @1\n",
|
||||||
|
gKBDName);
|
||||||
|
|
||||||
|
/* Clean up */
|
||||||
|
fclose(FileHandle);
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
|
Loading…
Reference in a new issue