¡@

Home 

c# Programming Glossary: hfile

Insert bytes into middle of a file (in windows filesystem) without reading entire file (using File Allocation Table)?

http://stackoverflow.com/questions/13430210/insert-bytes-into-middle-of-a-file-in-windows-filesystem-without-reading-entir

true public static extern bool ReadFile SafeFileHandle hFile handle to file byte pBuffer data buffer should be fixed int.. public static extern bool SetFilePointerEx SafeFileHandle hFile long liDistanceToMove out long lpNewFilePointer SeekOrigin dwMoveMethod..

Is IntPtr.Zero equivalent to null?

http://stackoverflow.com/questions/1456861/is-intptr-zero-equivalent-to-null

CharSet.Auto public static extern bool ReadFile IntPtr hFile out byte aBuffer int cbToRead IntPtr cbThatWereRead ref OVERLAPPED.. be using SafeHandle or HandleRef instead of IntPtr for the hFile reference I know to make sure that I close the handle with CloseHandle..

IO exception error when using serialport.open()

http://stackoverflow.com/questions/14885288/io-exception-error-when-using-serialport-open

Invalid Serial Port portName SafeFileHandle hFile CreateFile @ . portName dwAccess 0 IntPtr.Zero 3 dwFlagsAndAttributes.. 0 IntPtr.Zero 3 dwFlagsAndAttributes IntPtr.Zero if hFile.IsInvalid WinIoError try int fileType GetFileType hFile if.. hFile.IsInvalid WinIoError try int fileType GetFileType hFile if fileType 2 fileType 0 throw new ArgumentException Invalid..

NTFS Alternate Data Streams - .NET

http://stackoverflow.com/questions/604960/ntfs-alternate-data-streams-net

#include windows.h #include stdio.h void main HANDLE hFile hStream DWORD dwRet hFile CreateFile testfile GENERIC_WRITE.. stdio.h void main HANDLE hFile hStream DWORD dwRet hFile CreateFile testfile GENERIC_WRITE FILE_SHARE_WRITE NULL.. FILE_SHARE_WRITE NULL OPEN_ALWAYS 0 NULL if hFile INVALID_HANDLE_VALUE printf Cannot open testfile n else WriteFile..

Has anyone got any code to call SignerSignEx from C#?

http://stackoverflow.com/questions/6357759/has-anyone-got-any-code-to-call-signersignex-from-c

uint cbSize public IntPtr pwszFileName public IntPtr hFile StructLayoutAttribute LayoutKind.Sequential struct SIGNER_CERT_STORE_INFO.. typeof SIGNER_FILE_INFO pwszFileName assemblyFilePtr hFile IntPtr.Zero info.Union1 new SIGNER_SUBJECT_INFO.SubjectChoiceUnion..

How to parse a text file in C# and be io bound?

http://stackoverflow.com/questions/7153315/how-to-parse-a-text-file-in-c-sharp-and-be-io-bound

true unsafe static extern uint ReadFile SafeFileHandle hFile Out byte lpBuffer uint nNumberOfBytesToRead out uint lpNumberOfBytesRead..

C# classes to undelete files? [duplicate]

http://stackoverflow.com/questions/8819188/c-sharp-classes-to-undelete-files

kernel32.dll public static extern bool ReadFile IntPtr hFile byte lpBuffer uint nNumberOfBytesToRead ref uint lpNumberOfBytesRead.. public static extern bool SetFilePointerEx IntPtr hFile long liDistanceToMove ref long lpNewFilePointer uint dwMoveMethod..