Ignore:
Timestamp:
Apr 26, 2001, 3:22:49 PM (24 years ago)
Author:
sandervl
Message:

added mailslot implemenation, named pipe fixes + FreeLibraryAndExitThread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/stubs.cpp

    r5451 r5587  
    582582
    583583  return (NULL);
    584 }
    585 /*****************************************************************************
    586  * Name      : HANDLE WIN32API CreateMailslotA
    587  * Purpose   : The CreateMailslot function creates a mailslot with the specified
    588  *             name and returns a handle that a mailslot server can use to
    589  *             perform operations on the mailslot. The mailslot is local to the
    590  *             computer that creates it. An error occurs if a mailslot with
    591  *             the specified name already exists.
    592  * Parameters: LPCSTR lpName              pointer to string for mailslot name
    593  *             DWORD nMaxMessageSize      maximum message size
    594  *             DWORD lReadTimeout         milliseconds before read time-out
    595  *             LPSECURITY_ATTRIBUTES lpSecurityAttributes pointer to security structure
    596  * Variables :
    597  * Result    : If the function succeeds, the return value is a handle to
    598  *             the mailslot, for use in server mailslot operations.
    599  *             If the function fails, the return value is INVALID_HANDLE_VALUE.
    600  * Remark    :
    601  * Status    : UNTESTED STUB
    602  *
    603  * Author    : Markus Montkowski [Tha, 1998/05/21 17:46]
    604  *****************************************************************************/
    605 
    606 HANDLE WIN32API CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize,
    607                                    DWORD lReadTimeout,
    608                                    LPSECURITY_ATTRIBUTES lpSecurityAttributes)
    609 {
    610 
    611   dprintf(("KERNEL32: CreateMailslotA(%08x,%08x,%08x,%08x) not implemented - INVALID_HANDLE_VALUE\n",
    612            lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes
    613           ));
    614 
    615   return (INVALID_HANDLE_VALUE);
    616 }
    617 
    618 /*****************************************************************************
    619  * Name      : HANDLE WIN32API CreateMailslotW
    620  * Purpose   : The CreateMailslot function creates a mailslot with the specified
    621  *             name and returns a handle that a mailslot server can use to
    622  *             perform operations on the mailslot. The mailslot is local to the
    623  *             computer that creates it. An error occurs if a mailslot with
    624  *             the specified name already exists.
    625  * Parameters: LPCWSTR lpName             pointer to string for mailslot name
    626  *             DWORD nMaxMessageSize      maximum message size
    627  *             DWORD lReadTimeout         milliseconds before read time-out
    628  *             LPSECURITY_ATTRIBUTES lpSecurityAttributes  pointer to security
    629  *                                                         structure
    630  * Variables :
    631  * Result    : If the function succeeds, the return value is a handle to
    632  *             the mailslot, for use in server mailslot operations.
    633  *             If the function fails, the return value is INVALID_HANDLE_VALUE.
    634  * Remark    :
    635  * Status    : UNTESTED STUB
    636  *
    637  * Author    : Markus Montkowski [Tha, 1998/05/21 17:46]
    638  *****************************************************************************/
    639 
    640 HANDLE WIN32API CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize,
    641                                    DWORD lReadTimeout,
    642                                    LPSECURITY_ATTRIBUTES lpSecurityAttributes)
    643 {
    644 
    645   dprintf(("KERNEL32: CreateMailslotW(%08x,%08x,%08x,%08x) not implemented - INVALID_HANDLE_VALUE\n",
    646            lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes
    647           ));
    648 
    649   return (INVALID_HANDLE_VALUE);
    650584}
    651585
     
    11491083
    11501084/*****************************************************************************
    1151  * Name      : VOID WIN32API FreeLibraryAndExitThread
    1152  * Purpose   : The FreeLibraryAndExitThread function decrements the reference
    1153  *             count of a loaded dynamic-link library (DLL) by one, and then
    1154  *             calls ExitThread to terminate the calling thread.
    1155  *             The function does not return.
    1156  *
    1157  *             The FreeLibraryAndExitThread function gives threads that are
    1158  *             created and executed within a dynamic-link library an opportunity
    1159  *             to safely unload the DLL and terminate themselves.
    1160  * Parameters:
    1161  * Variables :
    1162  * Result    :
    1163  * Remark    :
    1164  * Status    : UNTESTED STUB
    1165  *
    1166  * Author    : Markus Montkowski [Tha, 1998/05/21 20:57]
    1167  *****************************************************************************/
    1168 
    1169 VOID WIN32API FreeLibraryAndExitThread( HMODULE hLibModule, DWORD dwExitCode)
    1170 {
    1171 
    1172   dprintf(("KERNEL32:  FreeLibraryAndExitThread(%08x,%08x) not implemented\n",
    1173            hLibModule, dwExitCode
    1174           ));
    1175 
    1176 }
    1177 
    1178 
    1179 /*****************************************************************************
    11801085 * Name      : DWORD GetHandleInformation
    11811086 * Purpose   : The GetHandleInformation function obtains information about certain
     
    12011106}
    12021107
    1203 
    1204 /*****************************************************************************
    1205  * Name      : BOOL GetMailslotInfo
    1206  * Purpose   : The GetMailslotInfo function retrieves information about the
    1207  *             specified mailslot.
    1208  * Parameters: HANDLE  hMailslot        mailslot handle
    1209  *             LPDWORD lpMaxMessageSize address of maximum message size
    1210  *             LPDWORD lpNextSize       address of size of next message
    1211  *             LPDWORD lpMessageCount   address of number of messages
    1212  *             LPDWORD lpReadTimeout    address of read time-out
    1213  * Variables :
    1214  * Result    : TRUE / FALSE
    1215  * Remark    :
    1216  * Status    : UNTESTED STUB
    1217  *
    1218  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1219  *****************************************************************************/
    1220 
    1221 BOOL WIN32API GetMailslotInfo(HANDLE  hMailslot,
    1222                                  LPDWORD lpMaxMessageSize,
    1223                                  LPDWORD lpNextSize,
    1224                                  LPDWORD lpMessageCount,
    1225                                  LPDWORD lpReadTimeout)
    1226 {
    1227   dprintf(("KERNEL32: GetMailslotInfo(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
    1228            hMailslot,
    1229            lpMaxMessageSize,
    1230            lpNextSize,
    1231            lpMessageCount,
    1232            lpReadTimeout));
    1233 
    1234   return (FALSE);
    1235 }
    12361108
    12371109
     
    17981670}
    17991671
    1800 
    1801 /*****************************************************************************
    1802  * Name      : BOOL SetMailslotInfo
    1803  * Purpose   : The SetMailslotInfo function sets the time-out value used by the
    1804  *             specified mailslot for a read operation.
    1805  * Parameters: HANDLE hObject       handle to a mailslot object
    1806  *             DWORD  dwReadTimeout read time-out
    1807  * Variables :
    1808  * Result    : TRUE / FALSE
    1809  * Remark    :
    1810  * Status    : UNTESTED STUB
    1811  *
    1812  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1813  *****************************************************************************/
    1814 
    1815 BOOL WIN32API SetMailslotInfo(HANDLE hObject,
    1816                                  DWORD  dwReadTimeout)
    1817 {
    1818   dprintf(("KERNEL32: SetMailslotInfo(%08xh,%08xh) not implemented.\n",
    1819            hObject,
    1820            dwReadTimeout));
    1821 
    1822   return (FALSE);
    1823 }
    1824 
    1825 
    18261672/*****************************************************************************
    18271673 * Name      : BOOL SetSystemPowerState
Note: See TracChangeset for help on using the changeset viewer.