Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / Win32

NT Service and Inter-process Communication using Mailslot

Rate me:
Please Sign up or sign in to vote.
4.40/5 (7 votes)
25 Jun 2009CPOL3 min read 33.3K   970   25  
This article explains about different parts of an NT service and inter-process communication using Mailslots.
#if !defined(_SIGMA_SUPPORT_SERVICE_H_INCLUDED_)
#define _SIGMA_SUPPORT_SERVICE_H_INCLUDED_

void WINAPI ServiceMain(DWORD argc, LPTSTR *argv);
void WINAPI ServiceHandler(DWORD dwCtrlCode);
BOOL SetSigmaServiceStatus(DWORD dwCurrentState, DWORD dwWaitHint, DWORD dwExitCode);
void StopSigmaService();
DWORD SigmaSupportServiceStatusThread(LPVOID lpParam);
BOOL PostToMailSlot(HANDLE hMailslot, TCHAR* lpszMessage);


#define SIGMA_SUPPORT_SERVICE_NAME "SigmaSrv"
#define WAIT_HINT 30000

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India

Comments and Discussions