I follow the sample code from MSDN as shown below.
h = CreateFileMapping(-1,pNull,PAGE_READWRITE,0, 65535,"MyShare")
The problem I am having is that I can't find where the constant pNull and PAGE_READWRITE are defined. I tried to replace pNull with vbNull, Null, 0, and 0& and I get type mismatch error. How can I create a handle by using CreateFileMapping. Please help