Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingSilkTest @ OneStopTesting

Message Icon Topic: kernel32 type is not defined

Post Reply Post New Topic
Author Message
Amlika
Newbie
Newbie
Avatar

Joined: 26Apr2007
Online Status: Offline
Posts: 1
Quote Amlika Replybullet Topic: kernel32 type is not defined
    Posted: 26Apr2007 at 10:12pm
Hi, I am learning to use dlls in my tests and I'm facing this problem (don't seem to find anything exactly about this on the forum):

I need to change file compression and file encryption. So, I figured I need these functions:
code:
 
[ ] use "mswtype.inc"
[ ] use "mswfun32.inc"
[ ] use "mswconst.inc"
[ ]
[-] dll "kernel32.dll"
[ ] BOOL DeviceIoControl (HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize,
LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
[ ] HANDLE CreateFile(LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
[ ] BOOL CloseHandle(HANDLE hObject)


But when I compile this, I get error that types LPVOID, LPWORD, LPOVERLAPPED are not defined.

I am clearly not including something, I just don't know what and how. I don't think the includes above are useful, since the files contain no related type or function declarations, but I've tried anyway



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Deepika
Newbie
Newbie
Avatar

Joined: 27Apr2007
Online Status: Offline
Posts: 1
Quote Deepika Replybullet Posted: 27Apr2007 at 3:07am
Hello,

OPEN_EXISTING is 3

I found this through a web search for "const OPEN_EXISTING visualbasic". At the very least,

a cache will have some code declaring the value. Sometimes it comes up on MSDN as the first

link, often it is somewhere else. I don't know if Micro$oft banks on this.

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.250 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting