Reply To: WinPkFilter from a class

Home Forums Discussions Support Portal WinPkFilter from a class Reply To: WinPkFilter from a class


Vadim Smirnov

Basically using atexit() the way you did is not correct, you should pass a static function to atexit() instead of C++ class method. Also, since you are making the windows service you can release interfaces when your service process is stopped instead of using atexit().

From the design point of view I would create a C++ classe to wrap each interface and manipulated adapter thru this class ( ReleaseInterface functionality could be placed into the class destructor). Some more advanced WinpkFilter code can be downloaded from this page once you are a registered customer.