Update of /cvsroot/pywin32/pywin32/win32/src
In directory sc8-pr-cvs1:/tmp/cvs-serv6310
Modified Files:
win32apimodule.cpp
Log Message:
Add GetThreadLocale.
Index: win32apimodule.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/win32apimodule.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** win32apimodule.cpp 28 Apr 2003 10:53:20 -0000 1.23
--- win32apimodule.cpp 26 Jul 2003 14:08:29 -0000 1.24
***************
*** 3355,3358 ****
--- 3355,3367 ----
}
+ // @pymethod int|win32api|GetThreadLocale|Returns the current thread's locale.
+ static PyObject *
+ PyGetThreadLocale(PyObject *self, PyObject *args)
+ {
+ if (!PyArg_ParseTuple(args, ":GetThreadLocale"))
+ return NULL;
+ return PyInt_FromLong(GetThreadLocale());
+ }
+
// @pymethod |win32api|OutputDebugString|Sends a string to the Windows debugging device.
static PyObject *
***************
*** 3924,3927 ****
--- 3933,3937 ----
{"GetTempFileName", PyGetTempFileName, 1}, // @pymeth GetTempFileName|Creates a temporary file.
{"GetTempPath", PyGetTempPath, 1}, // @pymeth GetTempPath|Returns the path designated as holding temporary files.
+ {"GetThreadLocale", PyGetThreadLocale, 1}, // @pymeth GetThreadLocale|Returns the current thread's locale.
{"GetTickCount", PyGetTickCount, 1}, // @pymeth GetTickCount|Returns the milliseconds since windows started.
{"GetTimeZoneInformation", PyGetTimeZoneInformation,1}, // @pymeth GetTimeZoneInformation|Returns the system time-zone information.
|