merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 07 Aug 2010 11:11:21 +0300
changeset 488 ea05ac5655ef
parent 486 b4b963218091 (current diff)
parent 487 eb598e0a7bae (diff)
child 490 846340fce4f2
merged
--- a/devel-windows.rst	Fri Aug 06 11:23:02 2010 +0300
+++ b/devel-windows.rst	Sat Aug 07 11:11:21 2010 +0300
@@ -158,3 +158,59 @@
 
   http://sourceforge.net/projects/wtl
   http://en.wikipedia.org/wiki/Windows_Template_Library
+
+* Windows style variable names.
+
+  Prefix   |  Data type
+  ---------+-----------------------------------------
+  b        |  boolean
+  by       |  byte or unsigned char
+  c        |  char
+  cx / cy  |  short used as size
+  dw       |  DWORD, double word or unsigned long
+  fn       |  function
+  h        |  handle
+  i        |  int (integer)
+  l        |  Long
+  n        |  short int
+  p        |  a pointer variable containing the address of a variable
+  s        |  string
+  sz       |  ASCIIZ null-terminated string
+  w        |  WORD unsigned int
+  x, y     |  short used as coordinates
+
+  PrefixCategory  | Mean
+  ----------------+----------------
+  CS              | Class style
+  CW              | Create window
+  DT              | Draw text
+  IDC             | Cursor ID
+  IDI             | Icon ID
+  WM              | Window message
+  WS              | Window style
+
+  Data type | Meaning
+  ----------+-------------------------------------------------------------------
+  FAR       | Same as far. Identifies an address that originally used the
+            | segment:offset addressing schema. Now FAR simply identifies a
+            | (default) 32-bit address but may be omitted entirely in many cases.
+            |
+  PASCAL    | Same as Pascal. The Pascal convention demanded by Windows
+            | defines the order in which arguments are found in the stack when
+            | passed as calling parameters.
+            |
+  WORD	    | Unsigned integer (16 bits)
+            |
+  UINT      | Unsigned integer, same as WORD
+            |
+  DWORD     | Double word, unsigned long int (32 bits)
+            |
+  LONG      | Signed long integer (32 bits)
+            |
+  LPSTR     | Long (far) pointer to character string
+            |
+  NEAR      | Obsolete, previously identified an address value within a 16KB
+            | memory block.
+
+  http://www.tenouk.com/cnotation.html
+                C/C++ NOTATION STORY