CloseNtmsNotification function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The CloseNtmsNotification function closes the specified open notification channel.
Syntax
DWORD CloseNtmsNotification(
[in] HANDLE hNotification
);
Parameters
[in] hNotification
Notification handle returned by the OpenNtmsNotification function.
Return value
This function returns one of the following values.
Value | Meaning |
---|---|
|
The database query or update failed. |
|
The value specified in the hNotification parameter is not valid. |
|
The hNotification parameter is NULL. |
|
Unable to connect to the RSM service. |
|
The function was successful. |
Remarks
If the CloseNtmsNotification function is called while there is an outstanding call to the WaitForNtmsNotification function, an error returns.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | ntmsapi.h |
Library | Ntmsapi.lib |
DLL | Ntmsapi.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for