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.

154 lines
5.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. ////
  23. // app.h - interface for command line argument functions in app.c
  24. ////
  25. #ifndef __APP_H__
  26. #define __APP_H__
  27. #include "winlocal.h"
  28. #define APP_VERSION 0x00000106
  29. // handle to app engine
  30. //
  31. DECLARE_HANDLE32(HAPP);
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. // AppInit - initialize app engine
  36. // <dwVersion> (i) must be APP_VERSION
  37. // <hInst> (i) instance handle of calling module
  38. // return handle (NULL if error)
  39. //
  40. HAPP DLLEXPORT WINAPI AppInit(DWORD dwVersion, HINSTANCE hInst);
  41. // AppTerm - shut down app engine
  42. // <hApp> (i) handle returned from AppInit
  43. // return 0 if success
  44. //
  45. int DLLEXPORT WINAPI AppTerm(HAPP hApp);
  46. // AppGetInstance - get instance handle
  47. // <hApp> (i) handle returned from AppInit
  48. // return instance handle, NULL if error
  49. //
  50. HINSTANCE DLLEXPORT WINAPI AppGetInstance(HAPP hApp);
  51. // AppGetFileName - get full path of application executable
  52. // <hApp> (i) handle returned from AppInit
  53. // return pointer to app file name, NULL if error
  54. //
  55. LPCTSTR DLLEXPORT WINAPI AppGetFileName(HAPP hApp);
  56. // AppGetDirectory - get drive and directory of application executable
  57. // <hApp> (i) handle returned from AppInit
  58. // return pointer to app path, NULL if error
  59. //
  60. LPCTSTR DLLEXPORT WINAPI AppGetDirectory(HAPP hApp);
  61. // AppDirectoryIsReadOnly - test if application directory is read-only
  62. // <hApp> (i) handle returned from AppInit
  63. // return TRUE if read-only, otherwise FALSE
  64. //
  65. BOOL DLLEXPORT WINAPI AppDirectoryIsReadOnly(HAPP hApp);
  66. // AppGetProfile - get ini filename of application
  67. // <hApp> (i) handle returned from AppInit
  68. // return pointer to app profile, NULL if error
  69. //
  70. // NOTE: by default, the filename returned by this function
  71. // has the same file path and name as the application executable,
  72. // with a ".ini" extension. If the application directory is
  73. // read-only, the Windows directory is used instead.
  74. // To override the default, use the AppSetProfile() function.
  75. //
  76. LPCTSTR DLLEXPORT WINAPI AppGetProfile(HAPP hApp);
  77. // AppSetProfile - set ini filename of application
  78. // <hApp> (i) handle returned from AppInit
  79. // <lpszProfile> (i) ini filename
  80. // return 0 if success
  81. //
  82. int DLLEXPORT WINAPI AppSetProfile(HAPP hApp, LPCTSTR lpszProfile);
  83. // AppGetName - get name of application
  84. // <hApp> (i) handle returned from AppInit
  85. // return pointer to app profile, NULL if error
  86. //
  87. // NOTE: by default, the name returned by this function
  88. // has the same root name as the application executable,
  89. // with no extension. To override the default, use the
  90. // AppSetName() function.
  91. //
  92. LPCTSTR DLLEXPORT WINAPI AppGetName(HAPP hApp);
  93. // AppSetName - set name of application
  94. // <hApp> (i) handle returned from AppInit
  95. // <lpszName> (i) application name
  96. // return 0 if success
  97. //
  98. int DLLEXPORT WINAPI AppSetName(HAPP hApp, LPCTSTR lpszName);
  99. // AppGetMainWnd - get main window of application
  100. // <hApp> (i) handle returned from AppInit
  101. // return window handle, NULL if error or none
  102. //
  103. HWND DLLEXPORT WINAPI AppGetMainWnd(HAPP hApp);
  104. // AppSetMainWnd - set main window of application
  105. // <hApp> (i) handle returned from AppInit
  106. // <hwndMain> (i) handle to main window
  107. // return 0 if success
  108. //
  109. int DLLEXPORT WINAPI AppSetMainWnd(HAPP hApp, HWND hwndMain);
  110. // AppEnable3dControls - give standard controls a 3d appearance
  111. // <hApp> (i) handle returned from AppInit
  112. // <fEnable> (i) TRUE to enable, FALSE to disable
  113. // <dwFlags> (i) control flags
  114. // 0 reserved; must be zero
  115. // return 0 if success, -1 if error, 1 if OS already enables 3d controls
  116. //
  117. int DLLEXPORT WINAPI AppEnable3dControls(HAPP hApp, BOOL fEnable, DWORD dwFlags);
  118. // AppIs3dControlsEnabled - return TRUE if 3d controls enabled
  119. // <hApp> (i) handle returned from AppInit
  120. // return TRUE if 3d controls enabled, otherwise FALSE
  121. //
  122. BOOL DLLEXPORT WINAPI AppIs3dControlsEnabled(HAPP hApp);
  123. // AppOnSysColorChange - handler for WM_SYSCOLORCHANGE message
  124. // <hApp> (i) handle returned from AppInit
  125. // return 0 if success
  126. //
  127. LRESULT DLLEXPORT WINAPI AppOnSysColorChange(HAPP hApp);
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131. #endif // __APP_H__