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.

187 lines
2.8 KiB

  1. /*
  2. * This file contains stubs to simulate WINNET apis
  3. *
  4. * Createsd 4/23/91 sanfords
  5. */
  6. #include <windows.h>
  7. #include "winnet.h"
  8. WORD
  9. WNetOpenJob(
  10. LPTSTR szQueue,
  11. LPTSTR szJobTitle,
  12. WORD nCopies,
  13. LPINT lpfh
  14. )
  15. {
  16. szQueue; szJobTitle; nCopies; lpfh;
  17. return (0);
  18. }
  19. WORD
  20. WNetCloseJob(
  21. WORD fh,
  22. LPINT lpidJob,
  23. LPTSTR szQueue
  24. )
  25. {
  26. fh; lpidJob; szQueue;
  27. return (0);
  28. }
  29. WORD
  30. WNetWriteJob(
  31. HANDLE hJob,
  32. LPTSTR lpData,
  33. LPINT lpcb
  34. )
  35. {
  36. hJob; lpData; lpcb;
  37. return (0);
  38. }
  39. WORD
  40. WNetAbortJob(
  41. WORD fh,
  42. LPTSTR lpszQueue
  43. )
  44. {
  45. fh; lpszQueue;
  46. return (0);
  47. }
  48. WORD
  49. WNetHoldJob(
  50. LPTSTR szQueue,
  51. WORD idJob
  52. )
  53. {
  54. szQueue; idJob;
  55. return (0);
  56. }
  57. WORD
  58. WNetReleaseJob(
  59. LPTSTR szQueue,
  60. WORD idJob
  61. )
  62. {
  63. szQueue; idJob;
  64. return (0);
  65. }
  66. WORD
  67. WNetCancelJob(
  68. LPTSTR szQueue,
  69. WORD idJob
  70. )
  71. {
  72. szQueue; idJob;
  73. return (0);
  74. }
  75. WORD
  76. WNetSetJobCopies(
  77. LPTSTR szQueue,
  78. WORD idJob,
  79. WORD nCopies
  80. )
  81. {
  82. szQueue; idJob; nCopies;
  83. return (0);
  84. }
  85. WORD
  86. WNetWatchQueue(
  87. HWND hwnd,
  88. LPTSTR szLocal,
  89. LPTSTR szUsername,
  90. WORD wIndex
  91. )
  92. {
  93. hwnd; szLocal; szUsername; wIndex;
  94. return (0);
  95. }
  96. WORD
  97. WNetUnwatchQueue(
  98. LPTSTR szQueue
  99. )
  100. {
  101. szQueue;
  102. return (0);
  103. }
  104. WORD
  105. WNetLockQueueData(
  106. LPTSTR szQueue,
  107. LPTSTR szUsername,
  108. LPQUEUESTRUCT *lplpQueue
  109. )
  110. {
  111. szQueue; szUsername; lplpQueue;
  112. return (0);
  113. }
  114. WORD
  115. WNetUnlockQueueData(
  116. LPTSTR szQueue
  117. )
  118. {
  119. szQueue;
  120. return (0);
  121. }
  122. // grabbed from win31 user\net.c
  123. DWORD
  124. APIENTRY
  125. WNetErrorText(
  126. DWORD wError,
  127. LPTSTR lpsz,
  128. DWORD cbMax
  129. )
  130. {
  131. DWORD wInternalError;
  132. DWORD cb = 0;
  133. #ifdef LATER
  134. TCHAR szT[40];
  135. #endif
  136. wsprintf( lpsz, TEXT("Error %d occurred"), wError);
  137. return cb;
  138. }
  139. #if LATERMAYBE
  140. WORD LFNFindFirst(LPTSTR,WORD,LPINT,LPINT,WORD,PFILEFINDBUF2);
  141. WORD LFNFindNext(HANDLE,LPINT,WORD,PFILEFINDBUF2);
  142. WORD LFNFindClose(HANDLE);
  143. WORD LFNGetAttribute(LPTSTR,LPINT);
  144. WORD LFNSetAttribute(LPTSTR,WORD);
  145. WORD LFNCopy(LPTSTR,LPTSTR,PQUERYPROC);
  146. WORD LFNMove(LPTSTR,LPTSTR);
  147. WORD LFNDelete(LPTSTR);
  148. WORD LFNMKDir(LPTSTR);
  149. WORD LFNRMDir(LPTSTR);
  150. WORD LFNGetVolumeLabel(WORD,LPTSTR);
  151. WORD LFNSetVolumeLabel(WORD,LPTSTR);
  152. WORD LFNParse(LPTSTR,LPTSTR,LPTSTR);
  153. WORD LFNVolumeType(WORD,LPINT);
  154. #endif