Private function 2 pls go through

Const wAPIModule = “NNOTES” ’ Windows/32

'please tell why ’ Windows/32 it is written and where the wAPIModule remins in system and what does it mean by wAPIModule = “NNOTES”

Const NOTE_CLASS_ABOUT = &H8002

Const NOTE_INFO_DB = 0

Const NOTE_INFO_ID = 1

Const NOTE_INFO_OID = 2

Const NOTE_INFO_CLASS = 3

Const NOTE_INFO_FLAGS = 7

Const ITEM_SIGN = 1

Const ITEM_SUMMARY = 4

Const TYPE_TEXT = &H0500

…from here

Declare Private Function NSFDbOpen Lib wAPIModule Alias “NSFDbOpen” _

( Byval P As String, hDB As Long) As Integer

and how can it be understood that the function will be as Integer and it passes two arguments whic are string and Long…pls help

Declare Private Function NSFDbClose Lib wAPIModule Alias “NSFDbClose” _

( Byval hDB As Long) As Integer

Declare Private Function NSFNoteUpdate Lib wAPIModule Alias “NSFNoteUpdate” _

( Byval hNT As Long, Byval F As Integer) As Integer

Declare Private Function NSFNoteCreate Lib wAPIModule Alias “NSFNoteCreate” _

( Byval hDB As Long, hNT As Long) As Integer

Declare Private Function NSFNoteSetInfo Lib wAPIModule Alias “NSFNoteSetInfo” _

( Byval hNT As Long, Byval M As Integer, V As Any) As Integer

Declare Private Function NSFNoteSign Lib wAPIModule Alias “NSFNoteSign” _

( Byval hNT As Long) As Integer

Declare Private Function NSFItemSetTextSummary Lib wAPIModule Alias “NSFItemSetText” _

( Byval hNT As Long, Byval N As String, Byval T As String, Byval nT As Integer, Byval S As Integer) As Integer

Declare Private Function NSFItemAppend Lib wAPIModule Alias “NSFItemAppend” _

( Byval hNT As Long, Byval F As Integer, Byval N As String, Byval nN As Integer _

, Byval T As Integer, Byval V As String, Byval nV As Long) As Integer

Declare Private Function OSPathNetConstruct Lib wAPIModule Alias “OSPathNetConstruct” _

( Byval NullPort As Long, Byval Server As String, Byval File As String, Byval PathNet As String) As Integer

Declare Sub NEMDisplayError Lib “NNOTESWS” Alias “NEMDisplayError” _

( Byval E As Long)

…to here

what is need of the above functions

'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

'++++++++++Change Rep ID Declarations +++++++++++++++++++++++++++++++++++++++++++++

Type TIMEDATE

Innard1 As Long

Innard2 As Long

End Type

Type DBREPLICAINFO

ID As TIMEDATE

Flags As Long

CutoffInterval As Long

Cutoff As Long 

End Type

…from here…

Declare Sub W32_OSCurrentTimeDate Lib “nnotes.dll” Alias “OSCurrentTIMEDATE”(Ret As TIMEDATE)

Declare Function W32_OSPathNetConstruct Lib"nnotes" Alias “OSPathNetConstruct” (Byval PortName As String, Byval ServerName As String, Byval FileName As String, Byval retPathName As String) As Integer

Declare Function W32_NSFDBReplicaInfoGet Lib “NNOTES.DLL” Alias “NSFDbReplicaInfoGet” (Byval dbHandle As Long, replInfoStruct As DBREPLICAINFO) As Integer

Declare Function W32_NSFDBReplicaInfoSet Lib “nnotes.dll” Alias “NSFDbReplicaInfoSet” (Byval dbHandle As Long, replInfoStruct As DBREPLICAINFO) As Integer

… to here …

what is the need?

'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

As there are lots of function defind in the “wAPIModule”, so is there any way from which i can understand that these these functions are under “wAPIModule”. i.e one of my question.

Subject: Private function 2 pls go through

The constant wAPIModule is used for reasons of readability. There is no other reason for using this construction, so it can be avoided.

Some people try to make platform independant code, by defining other variants of these functions for Unix with a different prefix and a different definition.

The functions declared here are all located in the standard “nnotes.dll” which comes with Lotus Notes on a Windows platform.