Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. private.h
  5. Abstract:
  6. Author:
  7. noela 01-20-98
  8. Notes:
  9. Revision History:
  10. --*/
  11. extern HINSTANCE ghUIInst;
  12. //extern const WCHAR gszCardKeyW[];
  13. //***************************************************************************
  14. //***************************************************************************
  15. //***************************************************************************
  16. void AllocNewID( HKEY MainKey, LPDWORD lpdw );
  17. void PASCAL WideStringToNotSoWideString( LPBYTE lpBase, LPDWORD lpdwThing );
  18. PWSTR PASCAL MultiToWide( LPCSTR lpStr );
  19. PWSTR PASCAL NotSoWideStringToWideString( LPCSTR lpStr, DWORD dwLength );
  20. //***************************************************************************
  21. //***************************************************************************
  22. //***************************************************************************
  23. typedef enum
  24. {
  25. Dword,
  26. lpDword,
  27. hXxxApp,
  28. hXxxApp_NULLOK,
  29. // lpsz,
  30. lpszW,
  31. lpGet_SizeToFollow,
  32. lpSet_SizeToFollow,
  33. lpSet_Struct,
  34. lpGet_Struct,
  35. Size,
  36. Hwnd
  37. } ARG_TYPE;
  38. typedef struct _FUNC_ARGS
  39. {
  40. DWORD Flags;
  41. ULONG_PTR Args[MAX_TAPI_FUNC_ARGS];
  42. BYTE ArgTypes[MAX_TAPI_FUNC_ARGS];
  43. } FUNC_ARGS, *PFUNC_ARGS;
  44. typedef struct _UI_REQUEST_THREAD_PARAMS
  45. {
  46. BOOL bRequestCompleted;
  47. PFUNC_ARGS pFuncArgs;
  48. LONG lResult;
  49. } UI_REQUEST_THREAD_PARAMS, *PUI_REQUEST_THREAD_PARAMS;
  50. typedef struct _INIT_DATA
  51. {
  52. DWORD dwKey;
  53. DWORD dwInitOptions;
  54. union
  55. {
  56. HWND hwnd;
  57. HANDLE hEvent;
  58. HANDLE hCompletionPort;
  59. };
  60. union
  61. {
  62. LINECALLBACK lpfnCallback;
  63. DWORD dwCompletionKey;
  64. };
  65. HANDLE hXxxApp;
  66. BOOL bPendingAsyncEventMsg;
  67. DWORD dwNumTotalEntries;
  68. DWORD dwNumUsedEntries;
  69. PASYNC_EVENT_PARAMS pEventBuffer;
  70. PASYNC_EVENT_PARAMS pValidEntry;
  71. PASYNC_EVENT_PARAMS pFreeEntry;
  72. DWORD dwNumLines;
  73. BOOL bLine;
  74. } INIT_DATA, *PINIT_DATA;
  75. #if DBG
  76. #define DBGOUT(arg) DbgPrt arg
  77. VOID
  78. DbgPrt(
  79. IN DWORD dwDbgLevel,
  80. IN PUCHAR DbgMessage,
  81. IN ...
  82. );
  83. //DWORD gdwDebugLevel;
  84. #define DOFUNC(arg1,arg2) DoFunc(arg1,arg2)
  85. LONG
  86. WINAPI
  87. DoFunc(
  88. PFUNC_ARGS pFuncArgs,
  89. char *pszFuncName
  90. );
  91. #else
  92. #define DBGOUT(arg)
  93. #define DOFUNC(arg1,arg2) DoFunc(arg1)
  94. LONG
  95. WINAPI
  96. DoFunc(
  97. PFUNC_ARGS pFuncArgs
  98. );
  99. #endif