LotusScript to C API Programming Guide

rtLib Domino Rich Text Management template
Home
Show details for ContentContent
Purchase
Ready-to-use samples
Show details for Online resourcesOnline resources
Forum
Links
Happy readers

Anonymous

login


 

Hosted by Prominic.NET, Inc.
Main topic: REGGetIDInfo

REGGetIDInfo (by Gerhard Ritter, 05/14/2009 04:13:48 AM)

Hi,

This API function is capable to return both, boolean values (e.g. the hierarchical flag) and string data (e.g. the username).

So we'd rather declare two different functions in LS.

For Windows32 platforms I use these:

' for string data

Declare Function W32_REGGetIDInfo_String Lib notesLib Alias "REGGetIDInfo" (_

Byval IDFileName As Lmbcs String, _

Byval InfoType As Integer, _

Byval OutBufr As String, _

Byval OutBufrLen As Integer, _

ActualLen As Integer) As Integer

' for boolean values

' NOTE: OutBufrLen = 4 (the leght of data type 'long' in LS)

Declare Function W32_REGGetIDInfo_Boolean Lib notesLib Alias "REGGetIDInfo" (_

Byval IDFileName As Lmbcs String, _

Byval InfoType As Integer, _

OutBufr As Long, _

Byval OutBufrLen As Integer, _

ActualLen As Integer) As Integer