Share via


PHRegisterSingletonApplication (Windows Embedded CE 6.0)

1/6/2010

This control registers this application as a singleton application - meaning only one instance of the application can run at a time.

Syntax

BOOL PHRegisterSingletonApplication(
const WCHAR* pNameToRegister, 
HANDLE* phApplication
);

Parameters

  • pNameToRegister
    [in] A pointer to a string holding the application name to register.
  • phApplication
    [out] Handle registered on the application's behalf. The caller is responsible for calling CloseHandle on the result

Return Value

This control returns TRUE or FALSE to indicated success or failure.

Remarks

Note

This documentation applies to functionality implemented in sample code for PhCommon. For more information, see PhCommon Reference.

Requirements

Header controldefinitions.h
Library PhCommon.dll
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

PhCommon Controls APIs
PhCommon Reference