Click here to Skip to main content
12,629,804 members (29,713 online)
Click here to Skip to main content

Stats

30.2K views
2.8K downloads
53 bookmarked
Posted

Secure Function Pointer and Callbacks in Windows Programming

, 4 May 2011 CPOL
This article explains the usage of function pointer and callback in Windows application programming Interface (API).
#pragma once
#include<tchar.h>
#include<strsafe.h>

#define BUF_SIZE 256

#ifdef _USRDLL
#define IMPEXP __declspec(dllexport)
#else
#define IMPEXP __declspec(dllimport)
#endif 

#ifdef __cplusplus    // If used by C++ code, 
extern "C" {          // we need to export the C interface
#endif
 
IMPEXP void func1( void );
IMPEXP void func2( void );

#ifdef __cplusplus
}
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

R.selvam
Software Developer (Senior)
India India
Selvam has worked on several technologies like Core Java, VC++, MFC, Windows API and Weblogic server. He takes a lot of interest in reading technical articles and enjoy writing them too. He has been awarded as a Microsoft Community Star in 2004, MVP in 2005-06, SCJP 5.0 in 2009, Microsoft Community Contributor(MCC) 2011.

Github : https://github.com/selvamselvam
Web site: http://www.careerdrill.com

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161205.3 | Last Updated 4 May 2011
Article Copyright 2011 by R.selvam
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid