Partager via


ProviderUnInitialize (Windows Embedded CE 6.0)

1/6/2010

A Provider DLL implements this function. The Location Framework calls this export during service shutdown.

Syntax

DWORD  ProviderStop(void);

Parameters

There are no parameters.

Return Value

Return values from this function are ignored.

Remarks

This function is called immediately before the Location Framework unloads the Provider DLL. Cleanup operations that are not safe to be called from the Providers DLLMain (such as thread related, COM, winsock, etc…) must be called in this function.

If the Provider has spun up any worker threads, it must block until all of them come to a halt in this function. Failure to do so can cause a crash because the worker threads will attempt to execute on code pages that have been freed when the library was unloaded.

Requirements

Header lfplugin.h
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Location Framework Plugin Functions