Author: jimtabor
Date: Mon Aug 27 10:38:51 2007
New Revision: 28590
URL: http://svn.reactos.org/svn/reactos?rev=28590&view=rev
Log:
Update ENUMFONTDATAW structure based on returned data.
Modified:
trunk/reactos/include/reactos/win32k/ntgdityp.h
Modified: trunk/reactos/include/reactos/win32k/ntgdityp.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntgdityp.h (original)
+++ trunk/reactos/include/reactos/win32k/ntgdityp.h Mon Aug 27 10:38:51 2007
@@ -120,18 +120,36 @@
TMDIFF Diff;
} TMW_INTERNAL, *PTMW_INTERNAL;
-typedef struct _ENUMFONTDATAW
+typedef struct _DESIGNVECTORINT {
+ DWORD dvReserved;
+ DWORD dvNumAxes;
+ LONG dvValues[0];
+} DESIGNVECTORINT, *PDESIGNVECTORINT;
+
+typedef struct _ENUMFONTDATAINT
{
- DWORD cbSize; // Size of ENUMFONTDATAW + (size of ENUMTEXTMETRIC + ENUMLOGFONTEXDV)
- PENUMTEXTMETRIC lpentm; // Ptr with in this structure. ^^^ if Win2k + ^^^
- DWORD FontType;
- PENUMLOGFONTEXDV lpelfedv; // Prt with in this structure.
- // The rest of the structure is variable in size.
- // Based on iEnumType and Win32Compat flags,,
- // if w2k+ {ENUMTEXTMETRIC else NEWTEXTMETRICS} or TEXTMETRIC
- // if w2k+ {ENUMLOGFONTEXDV else ENUMLOGFONT} or LOGFONT
+ DWORD dwReserved;
+ DWORD dwReserved1;
+ ENUMTEXTMETRICW etmTm;
+} ENUMFONTDATAINT, *PENUMFONTDATAINT;
+
+typedef struct _ENUMFONTDATAW
+{
+ DWORD dwSize; // Full size of this structure.
+ ULONG ulOffsetTM; // Offset to enfdi in this structure.
+ DWORD dwFontType; // If sign set scale enum.
+ ENUMLOGFONTEXW elfex;
+/*
+ * Yuam 14.5:
+ * DESIGNVECTOR is a variable-size data structure that specifies the number of
+ * axes and a value for each axis.
+ * So it maybe smaller than MM_MAX_NUMAXES.
+ */
+ DESIGNVECTORINT DesignVectori;
+ ENUMFONTDATAINT enfdi;
} ENUMFONTDATAW, *PENUMFONTDATAW;
-
+
+
/* Number Representation */
typedef struct _EFLOAT_S
{
Author: arty
Date: Mon Aug 27 09:00:03 2007
New Revision: 28589
URL: http://svn.reactos.org/svn/reactos?rev=28589&view=rev
Log:
Slight improvement: When terminating the process, kill sibling threads first.
We'll need this for synchronization at process termination among other things.
Thanks alex for pointing out that we didn't do this.
Modified:
trunk/reactos/dll/win32/kernel32/process/proc.c
Modified: trunk/reactos/dll/win32/kernel32/process/proc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/process/proc.c (original)
+++ trunk/reactos/dll/win32/kernel32/process/proc.c Mon Aug 27 09:00:03 2007
@@ -567,6 +567,9 @@
ULONG Request;
NTSTATUS Status;
+ /* kill sibling threads ... we want to be alone at this point */
+ NtTerminateProcess (NULL, 0);
+
/* unload all dll's */
LdrShutdownProcess ();