Implement SetCPGlobal (an undocumented Win32 API).

This commit is contained in:
Troy Rollo 2005-03-29 11:34:03 +00:00 committed by Alexandre Julliard
parent 976bdc4faa
commit f51736cb0c
2 changed files with 22 additions and 0 deletions

View File

@ -737,6 +737,7 @@
@ stdcall ScrollConsoleScreenBufferW(long ptr ptr ptr ptr)
@ stdcall SearchPathA(str str str long ptr ptr)
@ stdcall SearchPathW(wstr wstr wstr long ptr ptr)
@ stdcall SetCPGlobal(long)
@ stdcall SetCommBreak(long)
@ stdcall SetCommConfig(long ptr long)
@ stdcall SetCommMask(long ptr)

View File

@ -1205,6 +1205,27 @@ UINT WINAPI GetACP(void)
}
/******************************************************************************
* SetCPGlobal (KERNEL32.@)
*
* Set the current Ansi code page Id for the system.
*
* PARAMS
* acp [I] code page ID to be the new ACP.
*
* RETURNS
* The previous ACP.
*/
UINT WINAPI SetCPGlobal( UINT acp )
{
UINT ret = GetACP();
const union cptable *new_cptable = wine_cp_get_table( acp );
if (new_cptable) ansi_cptable = new_cptable;
return ret;
}
/***********************************************************************
* GetOEMCP (KERNEL32.@)
*