mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
Document g_win32_get_windows_version().
2004-10-31 Tor Lillqvist <tml@iki.fi> * glib/gwin32.c: Document g_win32_get_windows_version().
This commit is contained in:
committed by
Tor Lillqvist
parent
20e56bbc2c
commit
8ff42a540e
@@ -1,5 +1,7 @@
|
|||||||
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib/gwin32.c: Document g_win32_get_windows_version().
|
||||||
|
|
||||||
* glib/gstdio.[ch]: Add g_lstat().
|
* glib/gstdio.[ch]: Add g_lstat().
|
||||||
|
|
||||||
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib/gwin32.c: Document g_win32_get_windows_version().
|
||||||
|
|
||||||
* glib/gstdio.[ch]: Add g_lstat().
|
* glib/gstdio.[ch]: Add g_lstat().
|
||||||
|
|
||||||
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib/gwin32.c: Document g_win32_get_windows_version().
|
||||||
|
|
||||||
* glib/gstdio.[ch]: Add g_lstat().
|
* glib/gstdio.[ch]: Add g_lstat().
|
||||||
|
|
||||||
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib/gwin32.c: Document g_win32_get_windows_version().
|
||||||
|
|
||||||
* glib/gstdio.[ch]: Add g_lstat().
|
* glib/gstdio.[ch]: Add g_lstat().
|
||||||
|
|
||||||
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
2004-10-31 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib/gwin32.c: Document g_win32_get_windows_version().
|
||||||
|
|
||||||
* glib/gstdio.[ch]: Add g_lstat().
|
* glib/gstdio.[ch]: Add g_lstat().
|
||||||
|
|
||||||
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
@@ -71,12 +71,13 @@ g_win32_ftruncate (gint fd,
|
|||||||
/**
|
/**
|
||||||
* g_win32_getlocale:
|
* g_win32_getlocale:
|
||||||
*
|
*
|
||||||
* The setlocale in the Microsoft C library uses locale names of the
|
* The setlocale() function in the Microsoft C library uses locale
|
||||||
* form "English_United States.1252" etc. We want the UNIXish standard
|
* names of the form "English_United States.1252" etc. We want the
|
||||||
* form "en_US", "zh_TW" etc. This function gets the current thread
|
* UNIXish standard form "en_US", "zh_TW" etc. This function gets the
|
||||||
* locale from Windows - without any encoding info - and returns it as
|
* current thread locale from Windows - without any encoding info -
|
||||||
* a string of the above form for use in forming file names etc. The
|
* and returns it as a string of the above form for use in forming
|
||||||
* returned string should be deallocated with g_free().
|
* file names etc. The returned string should be deallocated with
|
||||||
|
* g_free().
|
||||||
*
|
*
|
||||||
* Returns: newly-allocated locale name.
|
* Returns: newly-allocated locale name.
|
||||||
**/
|
**/
|
||||||
@@ -1301,6 +1302,24 @@ _g_win32_thread_init (void)
|
|||||||
g_win32_windows_version_init ();
|
g_win32_windows_version_init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* g_win32_get_windows_version:
|
||||||
|
*
|
||||||
|
* Returns version information for the Windows operating system the
|
||||||
|
* code is running on. See MSDN documentation for the GetVersion()
|
||||||
|
* function. To summarize, the most significant bit is one on Win9x,
|
||||||
|
* and zero on NT-based systems. The least significant byte is 4 on
|
||||||
|
* Windows NT 4, 5 on Windows XP. Software that needs really detailled
|
||||||
|
* version and feature information should use Win32 API like
|
||||||
|
* GetVersionEx() and VerifyVersionInfo().
|
||||||
|
*
|
||||||
|
* If there is an environment variable G_WIN32_PRETEND_WIN9X defined
|
||||||
|
* (with any value), this function always returns a version code for
|
||||||
|
* Windows 9x. This is mainly an internal debugging aid for GTK and
|
||||||
|
* GLib developers, to be able to check the code paths for Win9x.
|
||||||
|
*
|
||||||
|
* Returns: The version information.
|
||||||
|
**/
|
||||||
guint
|
guint
|
||||||
g_win32_get_windows_version (void)
|
g_win32_get_windows_version (void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user