Share via


CeSvcGetBinary

The CeSvcGetBinary function reads a binary value from a registry subkey and copies the data into a buffer.

Syntax

HRESULT CeSvcGetBinary (
  HCESVC hSvc,
  LPCTSTR pszValName,
  LPBYTE pszVal,
  LPDWORD pcbVal 
);

Parameters

  • hSvc
    [in] Specifies a handle to a registry subkey.
  • pszValName
    [in] Reference to a null-terminated string that contains the name of the binary value.
  • pszVal
    [in, out] Reference to a buffer that receives the data.
  • pcbVal
    [in, out] Reference to a variable that specifies the size, in bytes, of the buffer. When the function returns, this variable contains the size of the data copied to the buffer.

Return Values

This function returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    The function completed successfully.

Remarks

This function is part of Windows CE CEUTIL, a utility DLL for dealing with desktop registry entries for Windows CE. CEUTIL functions are for use by desktop applications that need to communicate remotely with Windows CE–based devices. These functions are not available to applications running on Windows CE–based devices.

Requirements

Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Header: ceutil.h
Library: ceutil.lib

See Also

ActiveSync API Functions

CeSvcSetBinary

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.