//*************************************************************** // From the book "Win32 System Services: The Heart of Windows 98 // and Windows 2000" // by Marshall Brain // Published by Prentice Hall // // Copyright 1995, by Prentice Hall. // // This code demonstrates passing a parameter to a thread // function. //*************************************************************** // thread1.cpp #include #include #include // The function to run in a thread void HonkThread(DWORD iter) { DWORD i; for (i=0; i