Source code of Windows XP (NT5)
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.

235 lines
7.6 KiB

  1. //
  2. // cmdlink.c
  3. //
  4. VOID CmlActivate(LPCML lpcml);
  5. LPCML CmlClone(LPCML lpcml);
  6. LPCML CmlCreateWorker(LPSTR lpstrCmd, BOOL fCmdIsLink, BOOL fFilename);
  7. #define CmlCreate(lpstrCmd, fCmdIsLink) \
  8. CmlCreateWorker(lpstrCmd, fCmdIsLink, FALSE)
  9. #define CmlCreateFromFilename(lpstrCmd, fCmdIsLink) \
  10. CmlCreateWorker(lpstrCmd, fCmdIsLink, TRUE)
  11. VOID CmlDelete(LPCML lpcml);
  12. VOID CmlDraw(LPCML lpcml, HDC hdc, LPRECT lprc, INT xHSB, BOOL fFocus);
  13. VOID CmlFixBounds(LPCML lpcml);
  14. LPCML CmlReadFromNative(LPSTR *lplpstr);
  15. DWORD CmlWriteToNative(LPCML lpcml, LPSTR *lplpstr);
  16. //
  17. // dlgprocs.c
  18. //
  19. INT_PTR MyDialogBox(UINT idd, HWND hwndParent, DLGPROC lpfnDlgProc);
  20. BOOL IconDialog(LPIC lpic);
  21. BOOL ChangeCmdLine(LPCML lpcml);
  22. VOID ChangeLabel(LPIC lpic);
  23. INT_PTR CALLBACK fnChangeCmdText(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  24. INT_PTR CALLBACK fnProperties(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  25. INT_PTR CALLBACK fnChangeText(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  26. INT_PTR CALLBACK fnInvalidLink(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  27. //
  28. // embed.c
  29. //
  30. BOOL EmbActivate(LPEMBED lpembed, UINT wVerb);
  31. LPEMBED EmbCreate(LPSTR lpstrFile);
  32. VOID EmbDelete(LPEMBED lpembed);
  33. VOID EmbDraw(LPEMBED lpembed, HDC hdc, LPRECT lprc, BOOL fFocus);
  34. LPEMBED EmbReadFromNative(LPSTR *lplpstr);
  35. DWORD EmbWriteToNative(LPEMBED lpembed, LPSTR *lplpstr);
  36. VOID EmbWriteToFile(LPEMBED lpembed, INT fh);
  37. VOID EmbRead(LPEMBED lpembed);
  38. BOOL EmbDoVerb(LPEMBED lpembed, UINT wVerb);
  39. BOOL EmbActivateThroughOle(LPEMBED lpembed, LPSTR lpdocname, UINT wVerb);
  40. INT CALLBACK EmbCallBack(LPOLECLIENT lpclient, OLE_NOTIFICATION flags,
  41. LPOLEOBJECT lpObject);
  42. VOID EmbDeleteLinkObject(LPEMBED lpembed);
  43. //
  44. // filedlgs.c
  45. //
  46. VOID OfnInit(VOID);
  47. BOOL OfnGetName(HWND hwnd, UINT msg);
  48. HANDLE OfnGetNewLinkName(HWND hwnd, HANDLE hData);
  49. VOID Normalize(LPSTR lpstrFile);
  50. //
  51. // icon.c
  52. //
  53. LPIC IconClone(LPIC lpic);
  54. LPIC IconCreateFromFile(LPSTR lpstrFile);
  55. LPIC IconCreateFromObject(LPOLEOBJECT lpObject);
  56. VOID IconDelete(LPIC lpic);
  57. VOID IconDraw(LPIC lpic, HDC hdc, LPRECT lprc, BOOL fFocus, INT cxImage,
  58. INT cyImage);
  59. LPIC IconReadFromNative(LPSTR *lplpstr);
  60. DWORD IconWriteToNative(LPIC lpic, LPSTR *lplpstr);
  61. VOID GetCurrentIcon(LPIC lpic);
  62. //
  63. // packager.c
  64. //
  65. LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  66. VOID SetTitle(BOOL fRegistering);
  67. VOID InitFile(VOID);
  68. VOID ErrorMessage(UINT id);
  69. BOOL ProcessMessage(VOID);
  70. LPSTR Contains(LPSTR lpString, LPSTR lpPattern);
  71. VOID Dirty(VOID);
  72. VOID DeregisterDoc(VOID);
  73. VOID Raise(INT iPane);
  74. INT_PTR MessageBoxAfterBlock(HWND hwndParent, LPSTR lpText, LPSTR lpCaption,
  75. UINT fuStyle);
  76. INT_PTR DialogBoxAfterBlock(LPCSTR lpTemplate, HWND hwndParent,
  77. DLGPROC lpDialogFunc);
  78. //
  79. // pane.c
  80. //
  81. BOOL InitPaneClasses(VOID);
  82. BOOL InitPanes(VOID);
  83. VOID EndPanes(VOID);
  84. LRESULT CALLBACK SubtitleWndProc(HWND hWnd, UINT msg, WPARAM wParam,
  85. LPARAM lParam);
  86. LRESULT CALLBACK PaneWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  87. LRESULT CALLBACK SplitterFrame(HWND hWnd, UINT msg, WPARAM wParam,
  88. LPARAM lParam);
  89. VOID DeletePane(INT iPane, BOOL fDeleteUndo);
  90. VOID DeletePaneObject(LPVOID lpobj, INT objType);
  91. //
  92. // picture.c
  93. //
  94. BOOL InitClient(VOID);
  95. VOID EndClient(VOID);
  96. LPPICT PicCreate(LPOLEOBJECT lpObject, LPRECT lprcObject);
  97. VOID PicDelete(LPPICT lppict);
  98. BOOL PicDraw(LPPICT lppict, HDC hDC, LPRECT lprc, INT xHSB, INT yVSB,
  99. BOOL fPicture, BOOL fFocus);
  100. LPPICT PicPaste(BOOL fPaste, LPSTR lpstrName);
  101. BOOL Error(OLESTATUS olestat);
  102. INT CALLBACK CallBack(LPOLECLIENT lpclient, OLE_NOTIFICATION flags,
  103. LPOLEOBJECT lpObject);
  104. VOID WaitForObject(LPOLEOBJECT lpObject);
  105. BOOL PicSetUpdateOptions(LPPICT lppict, UINT idCmd);
  106. LPPICT PicReadFromNative(LPSTR *lplpstr, LPSTR lpstrName);
  107. DWORD PicWriteToNative(LPPICT lppict, LPOLEOBJECT lpObject, LPSTR *lplpstr);
  108. VOID Hourglass(BOOL fOn);
  109. VOID PicActivate(LPPICT lppict, UINT idCmd);
  110. VOID PicUpdate(LPPICT lppict);
  111. VOID PicFreeze(LPPICT lppict);
  112. VOID PicChangeLink(LPPICT lppict);
  113. BOOL PicCopy(LPPICT lppict);
  114. VOID PicSaveUndo(LPPICT lppict);
  115. LPPICT PicFromFile(BOOL fEmbedded, LPSTR szFile);
  116. typedef int (__stdcall *PCALL_BACK)(LPOLECLIENT, OLE_NOTIFICATION, LPOLEOBJECT);
  117. LPOLECLIENT PicCreateClient(PCALL_BACK fnCallBack, LPOLECLIENTVTBL lpclivtbl);
  118. //
  119. // register.c
  120. //
  121. VOID RegInit(VOID);
  122. VOID RegGetClassId(LPSTR lpstrName, DWORD nameBufferSize, LPSTR lpstrClass);
  123. INT RegMakeFilterSpec(LPSTR lpstrClass, LPSTR lpstrExt, LPSTR lpstrFilterSpec);
  124. VOID RegGetExeName(LPSTR lpstrExe, LPSTR lpstrClass, DWORD dwBytes);
  125. //
  126. // server.c
  127. //
  128. BOOL InitServer(VOID);
  129. VOID DeleteServer(LPSAMPSRVR lpsrvr);
  130. VOID DestroyServer(VOID);
  131. LPSAMPDOC InitDoc(LPSAMPSRVR lpsrvr, LHSERVERDOC lhdoc, LPSTR lptitle);
  132. VOID ChangeDocName(LPSAMPDOC *lplpdoc, LPSTR lpname);
  133. BOOL SendDocChangeMsg(LPSAMPDOC lpdoc, UINT options);
  134. LPSAMPDOC CreateNewDoc(LPSAMPSRVR lpsrvr, LHSERVERDOC lhdoc, LPSTR lpstr);
  135. LPSAMPDOC CreateDocFromFile(LPSAMPSRVR lpsrvr, LHSERVERDOC lhdoc, LPSTR lpstr);
  136. BOOL CopyObjects(VOID);
  137. LPSAMPITEM CreateNewItem(LPSAMPDOC lpdoc);
  138. HANDLE GetNative(BOOL fClip);
  139. BOOL PutNative(HANDLE hdata);
  140. HANDLE GetLink(VOID);
  141. HANDLE GetMF(VOID);
  142. VOID InitEmbedded(BOOL fCreate);
  143. LPSAMPITEM AddItem(LPSAMPITEM lpitem);
  144. BOOL DeleteItem(LPSAMPITEM lpitem);
  145. VOID EndEmbedding(VOID);
  146. //
  147. // stream.c
  148. //
  149. VOID SetFile(STREAMOP sop, INT fh, LPSTR *lplpstr);
  150. DWORD ReadStream(LPAPPSTREAM lpStream, LPSTR lpstr, DWORD cb);
  151. DWORD PosStream(LPAPPSTREAM lpStream, LONG pos, INT iorigin);
  152. DWORD WriteStream(LPAPPSTREAM lpStream, LPSTR lpstr, DWORD cb);
  153. DWORD MemRead(LPSTR *lplpStream, LPSTR lpItem, DWORD dwSize);
  154. DWORD MemWrite(LPSTR *lplpStream, LPSTR lpItem, DWORD dwSize);
  155. //
  156. // virtable.c
  157. //
  158. OLESTATUS SrvrOpen(LPOLESERVER lpolesrvr, LHSERVERDOC lhdoc, LPSTR lpdocname,
  159. LPOLESERVERDOC *lplpoledoc);
  160. OLESTATUS SrvrCreate(LPOLESERVER lpolesrvr, LHSERVERDOC lhdoc,
  161. LPSTR lpclassname, LPSTR lpdocname, LPOLESERVERDOC *lplpoledoc);
  162. OLESTATUS SrvrCreateFromTemplate(LPOLESERVER lpolesrvr, LHSERVERDOC lhdoc,
  163. LPSTR lpclassname, LPSTR lpdocname, LPSTR lptemplatename,
  164. LPOLESERVERDOC *lplpoledoc);
  165. OLESTATUS SrvrEdit(LPOLESERVER lpolesrvr, LHSERVERDOC lhdoc, LPSTR lpclassname,
  166. LPSTR lpdocname, LPOLESERVERDOC *lplpoledoc);
  167. OLESTATUS SrvrExit(LPOLESERVER lpolesrvr);
  168. OLESTATUS SrvrRelease(LPOLESERVER lpolesrvr);
  169. OLESTATUS SrvrExecute(LPOLESERVER lpolesrvr, HANDLE hCmds);
  170. OLESTATUS DocSave(LPOLESERVERDOC lpoledoc);
  171. OLESTATUS DocClose(LPOLESERVERDOC lpoledoc);
  172. OLESTATUS DocRelease(LPOLESERVERDOC lpoledoc);
  173. OLESTATUS DocGetObject(LPOLESERVERDOC lpoledoc, LPSTR lpitemname,
  174. LPOLEOBJECT *lplpoleobject, LPOLECLIENT lpoleclient);
  175. OLESTATUS DocSetHostNames(LPOLESERVERDOC lpoledoc, LPSTR lpclientName,
  176. LPSTR lpdocName);
  177. OLESTATUS DocSetDocDimensions(LPOLESERVERDOC lpoledoc, LPRECT lprc);
  178. OLESTATUS DocSetColorScheme(LPOLESERVERDOC lpoledoc, LPLOGPALETTE lppal);
  179. OLESTATUS DocExecute(LPOLESERVERDOC lpoledoc, HANDLE hCmds);
  180. OLESTATUS ItemDelete(LPOLEOBJECT lpoleobject);
  181. OLESTATUS ItemGetData(LPOLEOBJECT lpoleobject, OLECLIPFORMAT cfFormat,
  182. LPHANDLE lphandle);
  183. OLESTATUS ItemSetData(LPOLEOBJECT lpoleobject, OLECLIPFORMAT cfFormat,
  184. HANDLE hdata);
  185. OLESTATUS ItemDoVerb(LPOLEOBJECT lpoleobject, UINT wVerb, BOOL fShow,
  186. BOOL fActivate);
  187. OLESTATUS ItemShow(LPOLEOBJECT lpoleobject, BOOL fActivate);
  188. OLESTATUS ItemSetBounds(LPOLEOBJECT lpoleobject, LPRECT lprc);
  189. OLESTATUS ItemSetTargetDevice(LPOLEOBJECT lpoleobject, HANDLE h);
  190. OLECLIPFORMAT ItemEnumFormats(LPOLEOBJECT lpobject, OLECLIPFORMAT cfFormat);
  191. LPVOID ItemQueryProtocol(LPOLEOBJECT lpoleobject, LPSTR lpprotocol);
  192. OLESTATUS ItemSetColorScheme(LPOLEOBJECT lpoleobject, LPLOGPALETTE lppal);
  193. BOOL IsOleServerDoc(LPSTR lpdocname);